@azure/arm-baremetalinfrastructure 1.0.0-beta.2 → 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 +14 -4
- package/LICENSE +4 -4
- package/README.md +26 -17
- package/{dist-esm/src → dist/browser}/bareMetalInfrastructureClient.d.ts +2 -2
- package/dist/browser/bareMetalInfrastructureClient.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/bareMetalInfrastructureClient.js +32 -24
- 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-esm/src → dist/browser}/lroImpl.d.ts.map +1 -1
- package/dist/browser/lroImpl.js +18 -0
- package/dist/browser/lroImpl.js.map +1 -0
- package/dist/browser/models/index.js.map +1 -0
- package/{dist-esm/src → dist/browser}/models/mappers.js +37 -17
- 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-esm/src → dist/browser}/operations/azureBareMetalInstances.d.ts +3 -3
- package/dist/browser/operations/azureBareMetalInstances.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/azureBareMetalInstances.js +175 -206
- package/dist/browser/operations/azureBareMetalInstances.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/azureBareMetalStorageInstances.d.ts +3 -3
- package/dist/browser/operations/azureBareMetalStorageInstances.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/azureBareMetalStorageInstances.js +48 -82
- 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-esm/src/operationsInterfaces → dist/browser/operations}/index.js +3 -3
- 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 +12 -29
- package/dist/browser/operations/operations.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operationsInterfaces/azureBareMetalInstances.d.ts +1 -1
- package/dist/browser/operationsInterfaces/azureBareMetalInstances.d.ts.map +1 -0
- package/dist/browser/operationsInterfaces/azureBareMetalInstances.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operationsInterfaces/azureBareMetalStorageInstances.d.ts +1 -1
- package/dist/browser/operationsInterfaces/azureBareMetalStorageInstances.d.ts.map +1 -0
- 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-esm/src/operations → dist/browser/operationsInterfaces}/index.js +3 -3
- 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/{types/arm-baremetalinfrastructure.d.ts → dist/commonjs/models/index.d.ts} +808 -1069
- 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/commonjs/operationsInterfaces/azureBareMetalInstances.js +10 -0
- 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/{src/operations/index.ts → dist/commonjs/operationsInterfaces/operations.js} +3 -4
- 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/dist/esm/operationsInterfaces/azureBareMetalInstances.js +9 -0
- 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 -74
- package/dist/index.js +0 -2418
- 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 -54
- 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 -53
- package/dist-esm/samples-dev/azureBareMetalInstancesListBySubscriptionSample.js.map +0 -1
- package/dist-esm/samples-dev/azureBareMetalInstancesRestartSample.d.ts +0 -2
- package/dist-esm/samples-dev/azureBareMetalInstancesRestartSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/azureBareMetalInstancesRestartSample.js +0 -39
- package/dist-esm/samples-dev/azureBareMetalInstancesRestartSample.js.map +0 -1
- package/dist-esm/samples-dev/azureBareMetalInstancesShutdownSample.d.ts +0 -2
- package/dist-esm/samples-dev/azureBareMetalInstancesShutdownSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/azureBareMetalInstancesShutdownSample.js +0 -39
- package/dist-esm/samples-dev/azureBareMetalInstancesShutdownSample.js.map +0 -1
- package/dist-esm/samples-dev/azureBareMetalInstancesStartSample.d.ts +0 -2
- package/dist-esm/samples-dev/azureBareMetalInstancesStartSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/azureBareMetalInstancesStartSample.js +0 -39
- package/dist-esm/samples-dev/azureBareMetalInstancesStartSample.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/azureBareMetalStorageInstancesCreateSample.d.ts +0 -2
- package/dist-esm/samples-dev/azureBareMetalStorageInstancesCreateSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/azureBareMetalStorageInstancesCreateSample.js +0 -56
- package/dist-esm/samples-dev/azureBareMetalStorageInstancesCreateSample.js.map +0 -1
- package/dist-esm/samples-dev/azureBareMetalStorageInstancesDeleteSample.d.ts +0 -2
- package/dist-esm/samples-dev/azureBareMetalStorageInstancesDeleteSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/azureBareMetalStorageInstancesDeleteSample.js +0 -39
- package/dist-esm/samples-dev/azureBareMetalStorageInstancesDeleteSample.js.map +0 -1
- package/dist-esm/samples-dev/azureBareMetalStorageInstancesGetSample.d.ts +0 -2
- package/dist-esm/samples-dev/azureBareMetalStorageInstancesGetSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/azureBareMetalStorageInstancesGetSample.js +0 -39
- package/dist-esm/samples-dev/azureBareMetalStorageInstancesGetSample.js.map +0 -1
- package/dist-esm/samples-dev/azureBareMetalStorageInstancesListByResourceGroupSample.d.ts +0 -2
- package/dist-esm/samples-dev/azureBareMetalStorageInstancesListByResourceGroupSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/azureBareMetalStorageInstancesListByResourceGroupSample.js +0 -54
- package/dist-esm/samples-dev/azureBareMetalStorageInstancesListByResourceGroupSample.js.map +0 -1
- package/dist-esm/samples-dev/azureBareMetalStorageInstancesListBySubscriptionSample.d.ts +0 -2
- package/dist-esm/samples-dev/azureBareMetalStorageInstancesListBySubscriptionSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/azureBareMetalStorageInstancesListBySubscriptionSample.js +0 -53
- package/dist-esm/samples-dev/azureBareMetalStorageInstancesListBySubscriptionSample.js.map +0 -1
- package/dist-esm/samples-dev/azureBareMetalStorageInstancesUpdateSample.d.ts +0 -2
- package/dist-esm/samples-dev/azureBareMetalStorageInstancesUpdateSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/azureBareMetalStorageInstancesUpdateSample.js +0 -60
- package/dist-esm/samples-dev/azureBareMetalStorageInstancesUpdateSample.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 -53
- 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/lroImpl.js +0 -21
- 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/azureBareMetalInstances.d.ts.map +0 -1
- package/dist-esm/src/operations/azureBareMetalInstances.js.map +0 -1
- package/dist-esm/src/operations/azureBareMetalStorageInstances.d.ts.map +0 -1
- package/dist-esm/src/operations/azureBareMetalStorageInstances.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/operations.d.ts.map +0 -1
- package/dist-esm/src/operations/operations.js.map +0 -1
- 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/azureBareMetalStorageInstances.d.ts.map +0 -1
- package/dist-esm/src/operationsInterfaces/azureBareMetalStorageInstances.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/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 -76
- package/dist-esm/test/baremetalinfrastructure_operations_test.spec.js.map +0 -1
- package/src/bareMetalInfrastructureClient.ts +0 -154
- package/src/lroImpl.ts +0 -42
- package/src/models/index.ts +0 -899
- package/src/models/mappers.ts +0 -839
- package/src/models/parameters.ts +0 -147
- package/src/operations/azureBareMetalInstances.ts +0 -783
- package/src/operations/azureBareMetalStorageInstances.ts +0 -498
- package/src/operations/operations.ts +0 -103
- package/src/operationsInterfaces/azureBareMetalInstances.ts +0 -163
- package/src/operationsInterfaces/azureBareMetalStorageInstances.ts +0 -99
- package/src/operationsInterfaces/index.ts +0 -11
- package/src/operationsInterfaces/operations.ts +0 -22
- 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}/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/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/azureBareMetalInstances.js +0 -0
- /package/{dist-esm/src → dist/browser}/operationsInterfaces/azureBareMetalStorageInstances.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
- /package/review/{arm-baremetalinfrastructure.api.md → arm-baremetalinfrastructure-node.api.md} +0 -0
|
@@ -0,0 +1,563 @@
|
|
|
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 { setContinuationToken } from "../pagingHelper.js";
|
|
9
|
+
import * as coreClient from "@azure/core-client";
|
|
10
|
+
import * as Mappers from "../models/mappers.js";
|
|
11
|
+
import * as Parameters from "../models/parameters.js";
|
|
12
|
+
import { createHttpPoller } from "@azure/core-lro";
|
|
13
|
+
import { createLroSpec } from "../lroImpl.js";
|
|
14
|
+
/// <reference lib="esnext.asynciterable" />
|
|
15
|
+
/** Class containing AzureBareMetalInstances operations. */
|
|
16
|
+
export class AzureBareMetalInstancesImpl {
|
|
17
|
+
client;
|
|
18
|
+
/**
|
|
19
|
+
* Initialize a new instance of the class AzureBareMetalInstances class.
|
|
20
|
+
* @param client Reference to the service client
|
|
21
|
+
*/
|
|
22
|
+
constructor(client) {
|
|
23
|
+
this.client = client;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Returns a list of Azure Bare Metal Instances in the specified subscription. The operations returns
|
|
27
|
+
* various properties of each Azure Bare Metal Instance.
|
|
28
|
+
* @param options The options parameters.
|
|
29
|
+
*/
|
|
30
|
+
listBySubscription(options) {
|
|
31
|
+
const iter = this.listBySubscriptionPagingAll(options);
|
|
32
|
+
return {
|
|
33
|
+
next() {
|
|
34
|
+
return iter.next();
|
|
35
|
+
},
|
|
36
|
+
[Symbol.asyncIterator]() {
|
|
37
|
+
return this;
|
|
38
|
+
},
|
|
39
|
+
byPage: (settings) => {
|
|
40
|
+
if (settings?.maxPageSize) {
|
|
41
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
42
|
+
}
|
|
43
|
+
return this.listBySubscriptionPagingPage(options, settings);
|
|
44
|
+
}
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
async *listBySubscriptionPagingPage(options, settings) {
|
|
48
|
+
let result;
|
|
49
|
+
let continuationToken = settings?.continuationToken;
|
|
50
|
+
if (!continuationToken) {
|
|
51
|
+
result = await this._listBySubscription(options);
|
|
52
|
+
let page = result.value || [];
|
|
53
|
+
continuationToken = result.nextLink;
|
|
54
|
+
setContinuationToken(page, continuationToken);
|
|
55
|
+
yield page;
|
|
56
|
+
}
|
|
57
|
+
while (continuationToken) {
|
|
58
|
+
result = await this._listBySubscriptionNext(continuationToken, options);
|
|
59
|
+
continuationToken = result.nextLink;
|
|
60
|
+
let page = result.value || [];
|
|
61
|
+
setContinuationToken(page, continuationToken);
|
|
62
|
+
yield page;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
async *listBySubscriptionPagingAll(options) {
|
|
66
|
+
for await (const page of this.listBySubscriptionPagingPage(options)) {
|
|
67
|
+
yield* page;
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
/**
|
|
71
|
+
* Gets a list of Azure Bare Metal Instances in the specified subscription and resource group. The
|
|
72
|
+
* operations returns various properties of each Azure Bare Metal Instance.
|
|
73
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
74
|
+
* @param options The options parameters.
|
|
75
|
+
*/
|
|
76
|
+
listByResourceGroup(resourceGroupName, options) {
|
|
77
|
+
const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);
|
|
78
|
+
return {
|
|
79
|
+
next() {
|
|
80
|
+
return iter.next();
|
|
81
|
+
},
|
|
82
|
+
[Symbol.asyncIterator]() {
|
|
83
|
+
return this;
|
|
84
|
+
},
|
|
85
|
+
byPage: (settings) => {
|
|
86
|
+
if (settings?.maxPageSize) {
|
|
87
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
88
|
+
}
|
|
89
|
+
return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
|
|
90
|
+
}
|
|
91
|
+
};
|
|
92
|
+
}
|
|
93
|
+
async *listByResourceGroupPagingPage(resourceGroupName, options, settings) {
|
|
94
|
+
let result;
|
|
95
|
+
let continuationToken = settings?.continuationToken;
|
|
96
|
+
if (!continuationToken) {
|
|
97
|
+
result = await this._listByResourceGroup(resourceGroupName, options);
|
|
98
|
+
let page = result.value || [];
|
|
99
|
+
continuationToken = result.nextLink;
|
|
100
|
+
setContinuationToken(page, continuationToken);
|
|
101
|
+
yield page;
|
|
102
|
+
}
|
|
103
|
+
while (continuationToken) {
|
|
104
|
+
result = await this._listByResourceGroupNext(resourceGroupName, continuationToken, options);
|
|
105
|
+
continuationToken = result.nextLink;
|
|
106
|
+
let page = result.value || [];
|
|
107
|
+
setContinuationToken(page, continuationToken);
|
|
108
|
+
yield page;
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
async *listByResourceGroupPagingAll(resourceGroupName, options) {
|
|
112
|
+
for await (const page of this.listByResourceGroupPagingPage(resourceGroupName, options)) {
|
|
113
|
+
yield* page;
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
/**
|
|
117
|
+
* The operation to start an Azure Bare Metal instance
|
|
118
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
119
|
+
* @param azureBareMetalInstanceName Name of the Azure Bare Metal Instance, also known as the
|
|
120
|
+
* ResourceName.
|
|
121
|
+
* @param options The options parameters.
|
|
122
|
+
*/
|
|
123
|
+
async beginStart(resourceGroupName, azureBareMetalInstanceName, options) {
|
|
124
|
+
const directSendOperation = async (args, spec) => {
|
|
125
|
+
return this.client.sendOperationRequest(args, spec);
|
|
126
|
+
};
|
|
127
|
+
const sendOperationFn = async (args, spec) => {
|
|
128
|
+
let currentRawResponse = undefined;
|
|
129
|
+
const providedCallback = args.options?.onResponse;
|
|
130
|
+
const callback = (rawResponse, flatResponse) => {
|
|
131
|
+
currentRawResponse = rawResponse;
|
|
132
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
133
|
+
};
|
|
134
|
+
const updatedArgs = {
|
|
135
|
+
...args,
|
|
136
|
+
options: {
|
|
137
|
+
...args.options,
|
|
138
|
+
onResponse: callback
|
|
139
|
+
}
|
|
140
|
+
};
|
|
141
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
142
|
+
return {
|
|
143
|
+
flatResponse,
|
|
144
|
+
rawResponse: {
|
|
145
|
+
statusCode: currentRawResponse.status,
|
|
146
|
+
body: currentRawResponse.parsedBody,
|
|
147
|
+
headers: currentRawResponse.headers.toJSON()
|
|
148
|
+
}
|
|
149
|
+
};
|
|
150
|
+
};
|
|
151
|
+
const lro = createLroSpec({
|
|
152
|
+
sendOperationFn,
|
|
153
|
+
args: { resourceGroupName, azureBareMetalInstanceName, options },
|
|
154
|
+
spec: startOperationSpec
|
|
155
|
+
});
|
|
156
|
+
const poller = await createHttpPoller(lro, {
|
|
157
|
+
restoreFrom: options?.resumeFrom,
|
|
158
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
159
|
+
resourceLocationConfig: "location"
|
|
160
|
+
});
|
|
161
|
+
await poller.poll();
|
|
162
|
+
return poller;
|
|
163
|
+
}
|
|
164
|
+
/**
|
|
165
|
+
* The operation to start an Azure Bare Metal instance
|
|
166
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
167
|
+
* @param azureBareMetalInstanceName Name of the Azure Bare Metal Instance, also known as the
|
|
168
|
+
* ResourceName.
|
|
169
|
+
* @param options The options parameters.
|
|
170
|
+
*/
|
|
171
|
+
async beginStartAndWait(resourceGroupName, azureBareMetalInstanceName, options) {
|
|
172
|
+
const poller = await this.beginStart(resourceGroupName, azureBareMetalInstanceName, options);
|
|
173
|
+
return poller.pollUntilDone();
|
|
174
|
+
}
|
|
175
|
+
/**
|
|
176
|
+
* The operation to restart an Azure Bare Metal Instance
|
|
177
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
178
|
+
* @param azureBareMetalInstanceName Name of the Azure Bare Metal Instance, also known as the
|
|
179
|
+
* ResourceName.
|
|
180
|
+
* @param options The options parameters.
|
|
181
|
+
*/
|
|
182
|
+
async beginRestart(resourceGroupName, azureBareMetalInstanceName, options) {
|
|
183
|
+
const directSendOperation = async (args, spec) => {
|
|
184
|
+
return this.client.sendOperationRequest(args, spec);
|
|
185
|
+
};
|
|
186
|
+
const sendOperationFn = async (args, spec) => {
|
|
187
|
+
let currentRawResponse = undefined;
|
|
188
|
+
const providedCallback = args.options?.onResponse;
|
|
189
|
+
const callback = (rawResponse, flatResponse) => {
|
|
190
|
+
currentRawResponse = rawResponse;
|
|
191
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
192
|
+
};
|
|
193
|
+
const updatedArgs = {
|
|
194
|
+
...args,
|
|
195
|
+
options: {
|
|
196
|
+
...args.options,
|
|
197
|
+
onResponse: callback
|
|
198
|
+
}
|
|
199
|
+
};
|
|
200
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
201
|
+
return {
|
|
202
|
+
flatResponse,
|
|
203
|
+
rawResponse: {
|
|
204
|
+
statusCode: currentRawResponse.status,
|
|
205
|
+
body: currentRawResponse.parsedBody,
|
|
206
|
+
headers: currentRawResponse.headers.toJSON()
|
|
207
|
+
}
|
|
208
|
+
};
|
|
209
|
+
};
|
|
210
|
+
const lro = createLroSpec({
|
|
211
|
+
sendOperationFn,
|
|
212
|
+
args: { resourceGroupName, azureBareMetalInstanceName, options },
|
|
213
|
+
spec: restartOperationSpec
|
|
214
|
+
});
|
|
215
|
+
const poller = await createHttpPoller(lro, {
|
|
216
|
+
restoreFrom: options?.resumeFrom,
|
|
217
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
218
|
+
resourceLocationConfig: "location"
|
|
219
|
+
});
|
|
220
|
+
await poller.poll();
|
|
221
|
+
return poller;
|
|
222
|
+
}
|
|
223
|
+
/**
|
|
224
|
+
* The operation to restart an Azure Bare Metal Instance
|
|
225
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
226
|
+
* @param azureBareMetalInstanceName Name of the Azure Bare Metal Instance, also known as the
|
|
227
|
+
* ResourceName.
|
|
228
|
+
* @param options The options parameters.
|
|
229
|
+
*/
|
|
230
|
+
async beginRestartAndWait(resourceGroupName, azureBareMetalInstanceName, options) {
|
|
231
|
+
const poller = await this.beginRestart(resourceGroupName, azureBareMetalInstanceName, options);
|
|
232
|
+
return poller.pollUntilDone();
|
|
233
|
+
}
|
|
234
|
+
/**
|
|
235
|
+
* The operation to shutdown an Azure Bare Metal Instance
|
|
236
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
237
|
+
* @param azureBareMetalInstanceName Name of the Azure Bare Metal Instance, also known as the
|
|
238
|
+
* ResourceName.
|
|
239
|
+
* @param options The options parameters.
|
|
240
|
+
*/
|
|
241
|
+
async beginShutdown(resourceGroupName, azureBareMetalInstanceName, options) {
|
|
242
|
+
const directSendOperation = async (args, spec) => {
|
|
243
|
+
return this.client.sendOperationRequest(args, spec);
|
|
244
|
+
};
|
|
245
|
+
const sendOperationFn = async (args, spec) => {
|
|
246
|
+
let currentRawResponse = undefined;
|
|
247
|
+
const providedCallback = args.options?.onResponse;
|
|
248
|
+
const callback = (rawResponse, flatResponse) => {
|
|
249
|
+
currentRawResponse = rawResponse;
|
|
250
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
251
|
+
};
|
|
252
|
+
const updatedArgs = {
|
|
253
|
+
...args,
|
|
254
|
+
options: {
|
|
255
|
+
...args.options,
|
|
256
|
+
onResponse: callback
|
|
257
|
+
}
|
|
258
|
+
};
|
|
259
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
260
|
+
return {
|
|
261
|
+
flatResponse,
|
|
262
|
+
rawResponse: {
|
|
263
|
+
statusCode: currentRawResponse.status,
|
|
264
|
+
body: currentRawResponse.parsedBody,
|
|
265
|
+
headers: currentRawResponse.headers.toJSON()
|
|
266
|
+
}
|
|
267
|
+
};
|
|
268
|
+
};
|
|
269
|
+
const lro = createLroSpec({
|
|
270
|
+
sendOperationFn,
|
|
271
|
+
args: { resourceGroupName, azureBareMetalInstanceName, options },
|
|
272
|
+
spec: shutdownOperationSpec
|
|
273
|
+
});
|
|
274
|
+
const poller = await createHttpPoller(lro, {
|
|
275
|
+
restoreFrom: options?.resumeFrom,
|
|
276
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
277
|
+
resourceLocationConfig: "location"
|
|
278
|
+
});
|
|
279
|
+
await poller.poll();
|
|
280
|
+
return poller;
|
|
281
|
+
}
|
|
282
|
+
/**
|
|
283
|
+
* The operation to shutdown an Azure Bare Metal Instance
|
|
284
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
285
|
+
* @param azureBareMetalInstanceName Name of the Azure Bare Metal Instance, also known as the
|
|
286
|
+
* ResourceName.
|
|
287
|
+
* @param options The options parameters.
|
|
288
|
+
*/
|
|
289
|
+
async beginShutdownAndWait(resourceGroupName, azureBareMetalInstanceName, options) {
|
|
290
|
+
const poller = await this.beginShutdown(resourceGroupName, azureBareMetalInstanceName, options);
|
|
291
|
+
return poller.pollUntilDone();
|
|
292
|
+
}
|
|
293
|
+
/**
|
|
294
|
+
* Returns a list of Azure Bare Metal Instances in the specified subscription. The operations returns
|
|
295
|
+
* various properties of each Azure Bare Metal Instance.
|
|
296
|
+
* @param options The options parameters.
|
|
297
|
+
*/
|
|
298
|
+
_listBySubscription(options) {
|
|
299
|
+
return this.client.sendOperationRequest({ options }, listBySubscriptionOperationSpec);
|
|
300
|
+
}
|
|
301
|
+
/**
|
|
302
|
+
* Gets a list of Azure Bare Metal Instances in the specified subscription and resource group. The
|
|
303
|
+
* operations returns various properties of each Azure Bare Metal Instance.
|
|
304
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
305
|
+
* @param options The options parameters.
|
|
306
|
+
*/
|
|
307
|
+
_listByResourceGroup(resourceGroupName, options) {
|
|
308
|
+
return this.client.sendOperationRequest({ resourceGroupName, options }, listByResourceGroupOperationSpec);
|
|
309
|
+
}
|
|
310
|
+
/**
|
|
311
|
+
* Gets an Azure Bare Metal Instance for the specified subscription, resource group, and instance name.
|
|
312
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
313
|
+
* @param azureBareMetalInstanceName Name of the Azure Bare Metal Instance, also known as the
|
|
314
|
+
* ResourceName.
|
|
315
|
+
* @param options The options parameters.
|
|
316
|
+
*/
|
|
317
|
+
get(resourceGroupName, azureBareMetalInstanceName, options) {
|
|
318
|
+
return this.client.sendOperationRequest({ resourceGroupName, azureBareMetalInstanceName, options }, getOperationSpec);
|
|
319
|
+
}
|
|
320
|
+
/**
|
|
321
|
+
* Patches the Tags field of a Azure Bare Metal Instance for the specified subscription, resource
|
|
322
|
+
* group, and instance name.
|
|
323
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
324
|
+
* @param azureBareMetalInstanceName Name of the Azure Bare Metal Instance, also known as the
|
|
325
|
+
* ResourceName.
|
|
326
|
+
* @param tagsParameter Request body that only contains the new Tags field
|
|
327
|
+
* @param options The options parameters.
|
|
328
|
+
*/
|
|
329
|
+
update(resourceGroupName, azureBareMetalInstanceName, tagsParameter, options) {
|
|
330
|
+
return this.client.sendOperationRequest({ resourceGroupName, azureBareMetalInstanceName, tagsParameter, options }, updateOperationSpec);
|
|
331
|
+
}
|
|
332
|
+
/**
|
|
333
|
+
* ListBySubscriptionNext
|
|
334
|
+
* @param nextLink The nextLink from the previous successful call to the ListBySubscription method.
|
|
335
|
+
* @param options The options parameters.
|
|
336
|
+
*/
|
|
337
|
+
_listBySubscriptionNext(nextLink, options) {
|
|
338
|
+
return this.client.sendOperationRequest({ nextLink, options }, listBySubscriptionNextOperationSpec);
|
|
339
|
+
}
|
|
340
|
+
/**
|
|
341
|
+
* ListByResourceGroupNext
|
|
342
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
343
|
+
* @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
|
|
344
|
+
* @param options The options parameters.
|
|
345
|
+
*/
|
|
346
|
+
_listByResourceGroupNext(resourceGroupName, nextLink, options) {
|
|
347
|
+
return this.client.sendOperationRequest({ resourceGroupName, nextLink, options }, listByResourceGroupNextOperationSpec);
|
|
348
|
+
}
|
|
349
|
+
}
|
|
350
|
+
// Operation Specifications
|
|
351
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
352
|
+
const startOperationSpec = {
|
|
353
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BareMetalInfrastructure/bareMetalInstances/{azureBareMetalInstanceName}/start",
|
|
354
|
+
httpMethod: "POST",
|
|
355
|
+
responses: {
|
|
356
|
+
200: {
|
|
357
|
+
bodyMapper: Mappers.OperationStatus
|
|
358
|
+
},
|
|
359
|
+
201: {
|
|
360
|
+
bodyMapper: Mappers.OperationStatus
|
|
361
|
+
},
|
|
362
|
+
202: {
|
|
363
|
+
bodyMapper: Mappers.OperationStatus
|
|
364
|
+
},
|
|
365
|
+
204: {
|
|
366
|
+
bodyMapper: Mappers.OperationStatus
|
|
367
|
+
},
|
|
368
|
+
default: {
|
|
369
|
+
bodyMapper: Mappers.ErrorResponse
|
|
370
|
+
}
|
|
371
|
+
},
|
|
372
|
+
queryParameters: [Parameters.apiVersion],
|
|
373
|
+
urlParameters: [
|
|
374
|
+
Parameters.$host,
|
|
375
|
+
Parameters.subscriptionId,
|
|
376
|
+
Parameters.resourceGroupName,
|
|
377
|
+
Parameters.azureBareMetalInstanceName
|
|
378
|
+
],
|
|
379
|
+
headerParameters: [Parameters.accept],
|
|
380
|
+
serializer
|
|
381
|
+
};
|
|
382
|
+
const restartOperationSpec = {
|
|
383
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BareMetalInfrastructure/bareMetalInstances/{azureBareMetalInstanceName}/restart",
|
|
384
|
+
httpMethod: "POST",
|
|
385
|
+
responses: {
|
|
386
|
+
200: {
|
|
387
|
+
bodyMapper: Mappers.OperationStatus
|
|
388
|
+
},
|
|
389
|
+
201: {
|
|
390
|
+
bodyMapper: Mappers.OperationStatus
|
|
391
|
+
},
|
|
392
|
+
202: {
|
|
393
|
+
bodyMapper: Mappers.OperationStatus
|
|
394
|
+
},
|
|
395
|
+
204: {
|
|
396
|
+
bodyMapper: Mappers.OperationStatus
|
|
397
|
+
},
|
|
398
|
+
default: {
|
|
399
|
+
bodyMapper: Mappers.ErrorResponse
|
|
400
|
+
}
|
|
401
|
+
},
|
|
402
|
+
requestBody: Parameters.forceParameter,
|
|
403
|
+
queryParameters: [Parameters.apiVersion],
|
|
404
|
+
urlParameters: [
|
|
405
|
+
Parameters.$host,
|
|
406
|
+
Parameters.subscriptionId,
|
|
407
|
+
Parameters.resourceGroupName,
|
|
408
|
+
Parameters.azureBareMetalInstanceName
|
|
409
|
+
],
|
|
410
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
411
|
+
mediaType: "json",
|
|
412
|
+
serializer
|
|
413
|
+
};
|
|
414
|
+
const shutdownOperationSpec = {
|
|
415
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BareMetalInfrastructure/bareMetalInstances/{azureBareMetalInstanceName}/shutdown",
|
|
416
|
+
httpMethod: "POST",
|
|
417
|
+
responses: {
|
|
418
|
+
200: {
|
|
419
|
+
bodyMapper: Mappers.OperationStatus
|
|
420
|
+
},
|
|
421
|
+
201: {
|
|
422
|
+
bodyMapper: Mappers.OperationStatus
|
|
423
|
+
},
|
|
424
|
+
202: {
|
|
425
|
+
bodyMapper: Mappers.OperationStatus
|
|
426
|
+
},
|
|
427
|
+
204: {
|
|
428
|
+
bodyMapper: Mappers.OperationStatus
|
|
429
|
+
},
|
|
430
|
+
default: {
|
|
431
|
+
bodyMapper: Mappers.ErrorResponse
|
|
432
|
+
}
|
|
433
|
+
},
|
|
434
|
+
queryParameters: [Parameters.apiVersion],
|
|
435
|
+
urlParameters: [
|
|
436
|
+
Parameters.$host,
|
|
437
|
+
Parameters.subscriptionId,
|
|
438
|
+
Parameters.resourceGroupName,
|
|
439
|
+
Parameters.azureBareMetalInstanceName
|
|
440
|
+
],
|
|
441
|
+
headerParameters: [Parameters.accept],
|
|
442
|
+
serializer
|
|
443
|
+
};
|
|
444
|
+
const listBySubscriptionOperationSpec = {
|
|
445
|
+
path: "/subscriptions/{subscriptionId}/providers/Microsoft.BareMetalInfrastructure/bareMetalInstances",
|
|
446
|
+
httpMethod: "GET",
|
|
447
|
+
responses: {
|
|
448
|
+
200: {
|
|
449
|
+
bodyMapper: Mappers.AzureBareMetalInstancesListResult
|
|
450
|
+
},
|
|
451
|
+
default: {
|
|
452
|
+
bodyMapper: Mappers.ErrorResponse
|
|
453
|
+
}
|
|
454
|
+
},
|
|
455
|
+
queryParameters: [Parameters.apiVersion],
|
|
456
|
+
urlParameters: [Parameters.$host, Parameters.subscriptionId],
|
|
457
|
+
headerParameters: [Parameters.accept],
|
|
458
|
+
serializer
|
|
459
|
+
};
|
|
460
|
+
const listByResourceGroupOperationSpec = {
|
|
461
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BareMetalInfrastructure/bareMetalInstances",
|
|
462
|
+
httpMethod: "GET",
|
|
463
|
+
responses: {
|
|
464
|
+
200: {
|
|
465
|
+
bodyMapper: Mappers.AzureBareMetalInstancesListResult
|
|
466
|
+
},
|
|
467
|
+
default: {
|
|
468
|
+
bodyMapper: Mappers.ErrorResponse
|
|
469
|
+
}
|
|
470
|
+
},
|
|
471
|
+
queryParameters: [Parameters.apiVersion],
|
|
472
|
+
urlParameters: [
|
|
473
|
+
Parameters.$host,
|
|
474
|
+
Parameters.subscriptionId,
|
|
475
|
+
Parameters.resourceGroupName
|
|
476
|
+
],
|
|
477
|
+
headerParameters: [Parameters.accept],
|
|
478
|
+
serializer
|
|
479
|
+
};
|
|
480
|
+
const getOperationSpec = {
|
|
481
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BareMetalInfrastructure/bareMetalInstances/{azureBareMetalInstanceName}",
|
|
482
|
+
httpMethod: "GET",
|
|
483
|
+
responses: {
|
|
484
|
+
200: {
|
|
485
|
+
bodyMapper: Mappers.AzureBareMetalInstance
|
|
486
|
+
},
|
|
487
|
+
default: {
|
|
488
|
+
bodyMapper: Mappers.ErrorResponse
|
|
489
|
+
}
|
|
490
|
+
},
|
|
491
|
+
queryParameters: [Parameters.apiVersion],
|
|
492
|
+
urlParameters: [
|
|
493
|
+
Parameters.$host,
|
|
494
|
+
Parameters.subscriptionId,
|
|
495
|
+
Parameters.resourceGroupName,
|
|
496
|
+
Parameters.azureBareMetalInstanceName
|
|
497
|
+
],
|
|
498
|
+
headerParameters: [Parameters.accept],
|
|
499
|
+
serializer
|
|
500
|
+
};
|
|
501
|
+
const updateOperationSpec = {
|
|
502
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BareMetalInfrastructure/bareMetalInstances/{azureBareMetalInstanceName}",
|
|
503
|
+
httpMethod: "PATCH",
|
|
504
|
+
responses: {
|
|
505
|
+
200: {
|
|
506
|
+
bodyMapper: Mappers.AzureBareMetalInstance
|
|
507
|
+
},
|
|
508
|
+
default: {
|
|
509
|
+
bodyMapper: Mappers.ErrorResponse
|
|
510
|
+
}
|
|
511
|
+
},
|
|
512
|
+
requestBody: Parameters.tagsParameter,
|
|
513
|
+
queryParameters: [Parameters.apiVersion],
|
|
514
|
+
urlParameters: [
|
|
515
|
+
Parameters.$host,
|
|
516
|
+
Parameters.subscriptionId,
|
|
517
|
+
Parameters.resourceGroupName,
|
|
518
|
+
Parameters.azureBareMetalInstanceName
|
|
519
|
+
],
|
|
520
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
521
|
+
mediaType: "json",
|
|
522
|
+
serializer
|
|
523
|
+
};
|
|
524
|
+
const listBySubscriptionNextOperationSpec = {
|
|
525
|
+
path: "{nextLink}",
|
|
526
|
+
httpMethod: "GET",
|
|
527
|
+
responses: {
|
|
528
|
+
200: {
|
|
529
|
+
bodyMapper: Mappers.AzureBareMetalInstancesListResult
|
|
530
|
+
},
|
|
531
|
+
default: {
|
|
532
|
+
bodyMapper: Mappers.ErrorResponse
|
|
533
|
+
}
|
|
534
|
+
},
|
|
535
|
+
urlParameters: [
|
|
536
|
+
Parameters.$host,
|
|
537
|
+
Parameters.subscriptionId,
|
|
538
|
+
Parameters.nextLink
|
|
539
|
+
],
|
|
540
|
+
headerParameters: [Parameters.accept],
|
|
541
|
+
serializer
|
|
542
|
+
};
|
|
543
|
+
const listByResourceGroupNextOperationSpec = {
|
|
544
|
+
path: "{nextLink}",
|
|
545
|
+
httpMethod: "GET",
|
|
546
|
+
responses: {
|
|
547
|
+
200: {
|
|
548
|
+
bodyMapper: Mappers.AzureBareMetalInstancesListResult
|
|
549
|
+
},
|
|
550
|
+
default: {
|
|
551
|
+
bodyMapper: Mappers.ErrorResponse
|
|
552
|
+
}
|
|
553
|
+
},
|
|
554
|
+
urlParameters: [
|
|
555
|
+
Parameters.$host,
|
|
556
|
+
Parameters.subscriptionId,
|
|
557
|
+
Parameters.resourceGroupName,
|
|
558
|
+
Parameters.nextLink
|
|
559
|
+
],
|
|
560
|
+
headerParameters: [Parameters.accept],
|
|
561
|
+
serializer
|
|
562
|
+
};
|
|
563
|
+
//# sourceMappingURL=azureBareMetalInstances.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"azureBareMetalInstances.js","sourceRoot":"","sources":["../../../src/operations/azureBareMetalInstances.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE1D,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAEtD,OAAO,EAGL,gBAAgB,EACjB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAwB9C,4CAA4C;AAC5C,2DAA2D;AAC3D,MAAM,OAAO,2BAA2B;IACrB,MAAM,CAAgC;IAEvD;;;OAGG;IACH,YAAY,MAAqC;QAC/C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;OAIG;IACI,kBAAkB,CACvB,OAAiE;QAEjE,MAAM,IAAI,GAAG,IAAI,CAAC,2BAA2B,CAAC,OAAO,CAAC,CAAC;QACvD,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;gBACpB,OAAO,IAAI,CAAC;YACd,CAAC;YACD,MAAM,EAAE,CAAC,QAAuB,EAAE,EAAE;gBAClC,IAAI,QAAQ,EAAE,WAAW,EAAE,CAAC;oBAC1B,MAAM,IAAI,KAAK,CAAC,iDAAiD,CAAC,CAAC;gBACrE,CAAC;gBACD,OAAO,IAAI,CAAC,4BAA4B,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC;YAC9D,CAAC;SACF,CAAC;IACJ,CAAC;IAEO,KAAK,CAAC,CAAC,4BAA4B,CACzC,OAAiE,EACjE,QAAuB;QAEvB,IAAI,MAAyD,CAAC;QAC9D,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U,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,0BAA0B;KACtC;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,EAAE,UAAU,CAAC,WAAW,CAAC;IAC7D,SAAS,EAAE,MAAM;IACjB,UAAU;CACX,CAAC;AACF,MAAM,mCAAmC,GAA6B;IACpE,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,iCAAiC;SACtD;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,QAAQ;KACpB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,oCAAoC,GAA6B;IACrE,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,iCAAiC;SACtD;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,QAAQ;KACpB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { AzureBareMetalInstances } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { BareMetalInfrastructureClient } from \"../bareMetalInfrastructureClient.js\";\nimport {\n SimplePollerLike,\n OperationState,\n createHttpPoller\n} from \"@azure/core-lro\";\nimport { createLroSpec } from \"../lroImpl.js\";\nimport {\n AzureBareMetalInstance,\n AzureBareMetalInstancesListBySubscriptionNextOptionalParams,\n AzureBareMetalInstancesListBySubscriptionOptionalParams,\n AzureBareMetalInstancesListBySubscriptionResponse,\n AzureBareMetalInstancesListByResourceGroupNextOptionalParams,\n AzureBareMetalInstancesListByResourceGroupOptionalParams,\n AzureBareMetalInstancesListByResourceGroupResponse,\n AzureBareMetalInstancesStartOptionalParams,\n AzureBareMetalInstancesStartResponse,\n AzureBareMetalInstancesRestartOptionalParams,\n AzureBareMetalInstancesRestartResponse,\n AzureBareMetalInstancesShutdownOptionalParams,\n AzureBareMetalInstancesShutdownResponse,\n AzureBareMetalInstancesGetOptionalParams,\n AzureBareMetalInstancesGetResponse,\n Tags,\n AzureBareMetalInstancesUpdateOptionalParams,\n AzureBareMetalInstancesUpdateResponse,\n AzureBareMetalInstancesListBySubscriptionNextResponse,\n AzureBareMetalInstancesListByResourceGroupNextResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing AzureBareMetalInstances operations. */\nexport class AzureBareMetalInstancesImpl implements AzureBareMetalInstances {\n private readonly client: BareMetalInfrastructureClient;\n\n /**\n * Initialize a new instance of the class AzureBareMetalInstances class.\n * @param client Reference to the service client\n */\n constructor(client: BareMetalInfrastructureClient) {\n this.client = client;\n }\n\n /**\n * Returns a list of Azure Bare Metal Instances in the specified subscription. The operations returns\n * various properties of each Azure Bare Metal Instance.\n * @param options The options parameters.\n */\n public listBySubscription(\n options?: AzureBareMetalInstancesListBySubscriptionOptionalParams\n ): PagedAsyncIterableIterator<AzureBareMetalInstance> {\n const iter = this.listBySubscriptionPagingAll(options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listBySubscriptionPagingPage(options, settings);\n }\n };\n }\n\n private async *listBySubscriptionPagingPage(\n options?: AzureBareMetalInstancesListBySubscriptionOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<AzureBareMetalInstance[]> {\n let result: AzureBareMetalInstancesListBySubscriptionResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listBySubscription(options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listBySubscriptionNext(continuationToken, options);\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listBySubscriptionPagingAll(\n options?: AzureBareMetalInstancesListBySubscriptionOptionalParams\n ): AsyncIterableIterator<AzureBareMetalInstance> {\n for await (const page of this.listBySubscriptionPagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * Gets a list of Azure Bare Metal Instances in the specified subscription and resource group. The\n * operations returns various properties of each Azure Bare Metal Instance.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param options The options parameters.\n */\n public listByResourceGroup(\n resourceGroupName: string,\n options?: AzureBareMetalInstancesListByResourceGroupOptionalParams\n ): PagedAsyncIterableIterator<AzureBareMetalInstance> {\n const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listByResourceGroupPagingPage(\n resourceGroupName,\n options,\n settings\n );\n }\n };\n }\n\n private async *listByResourceGroupPagingPage(\n resourceGroupName: string,\n options?: AzureBareMetalInstancesListByResourceGroupOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<AzureBareMetalInstance[]> {\n let result: AzureBareMetalInstancesListByResourceGroupResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listByResourceGroup(resourceGroupName, options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listByResourceGroupNext(\n resourceGroupName,\n continuationToken,\n options\n );\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listByResourceGroupPagingAll(\n resourceGroupName: string,\n options?: AzureBareMetalInstancesListByResourceGroupOptionalParams\n ): AsyncIterableIterator<AzureBareMetalInstance> {\n for await (const page of this.listByResourceGroupPagingPage(\n resourceGroupName,\n options\n )) {\n yield* page;\n }\n }\n\n /**\n * The operation to start an Azure Bare Metal instance\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param azureBareMetalInstanceName Name of the Azure Bare Metal Instance, also known as the\n * ResourceName.\n * @param options The options parameters.\n */\n async beginStart(\n resourceGroupName: string,\n azureBareMetalInstanceName: string,\n options?: AzureBareMetalInstancesStartOptionalParams\n ): Promise<\n SimplePollerLike<\n OperationState<AzureBareMetalInstancesStartResponse>,\n AzureBareMetalInstancesStartResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ): Promise<AzureBareMetalInstancesStartResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ) => {\n let currentRawResponse:\n | coreClient.FullOperationResponse\n | undefined = undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback\n }\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON()\n }\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: { resourceGroupName, azureBareMetalInstanceName, options },\n spec: startOperationSpec\n });\n const poller = await createHttpPoller<\n AzureBareMetalInstancesStartResponse,\n OperationState<AzureBareMetalInstancesStartResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"location\"\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * The operation to start an Azure Bare Metal instance\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param azureBareMetalInstanceName Name of the Azure Bare Metal Instance, also known as the\n * ResourceName.\n * @param options The options parameters.\n */\n async beginStartAndWait(\n resourceGroupName: string,\n azureBareMetalInstanceName: string,\n options?: AzureBareMetalInstancesStartOptionalParams\n ): Promise<AzureBareMetalInstancesStartResponse> {\n const poller = await this.beginStart(\n resourceGroupName,\n azureBareMetalInstanceName,\n options\n );\n return poller.pollUntilDone();\n }\n\n /**\n * The operation to restart an Azure Bare Metal Instance\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param azureBareMetalInstanceName Name of the Azure Bare Metal Instance, also known as the\n * ResourceName.\n * @param options The options parameters.\n */\n async beginRestart(\n resourceGroupName: string,\n azureBareMetalInstanceName: string,\n options?: AzureBareMetalInstancesRestartOptionalParams\n ): Promise<\n SimplePollerLike<\n OperationState<AzureBareMetalInstancesRestartResponse>,\n AzureBareMetalInstancesRestartResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ): Promise<AzureBareMetalInstancesRestartResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ) => {\n let currentRawResponse:\n | coreClient.FullOperationResponse\n | undefined = undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback\n }\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON()\n }\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: { resourceGroupName, azureBareMetalInstanceName, options },\n spec: restartOperationSpec\n });\n const poller = await createHttpPoller<\n AzureBareMetalInstancesRestartResponse,\n OperationState<AzureBareMetalInstancesRestartResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"location\"\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * The operation to restart an Azure Bare Metal Instance\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param azureBareMetalInstanceName Name of the Azure Bare Metal Instance, also known as the\n * ResourceName.\n * @param options The options parameters.\n */\n async beginRestartAndWait(\n resourceGroupName: string,\n azureBareMetalInstanceName: string,\n options?: AzureBareMetalInstancesRestartOptionalParams\n ): Promise<AzureBareMetalInstancesRestartResponse> {\n const poller = await this.beginRestart(\n resourceGroupName,\n azureBareMetalInstanceName,\n options\n );\n return poller.pollUntilDone();\n }\n\n /**\n * The operation to shutdown an Azure Bare Metal Instance\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param azureBareMetalInstanceName Name of the Azure Bare Metal Instance, also known as the\n * ResourceName.\n * @param options The options parameters.\n */\n async beginShutdown(\n resourceGroupName: string,\n azureBareMetalInstanceName: string,\n options?: AzureBareMetalInstancesShutdownOptionalParams\n ): Promise<\n SimplePollerLike<\n OperationState<AzureBareMetalInstancesShutdownResponse>,\n AzureBareMetalInstancesShutdownResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ): Promise<AzureBareMetalInstancesShutdownResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ) => {\n let currentRawResponse:\n | coreClient.FullOperationResponse\n | undefined = undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback\n }\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON()\n }\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: { resourceGroupName, azureBareMetalInstanceName, options },\n spec: shutdownOperationSpec\n });\n const poller = await createHttpPoller<\n AzureBareMetalInstancesShutdownResponse,\n OperationState<AzureBareMetalInstancesShutdownResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"location\"\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * The operation to shutdown an Azure Bare Metal Instance\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param azureBareMetalInstanceName Name of the Azure Bare Metal Instance, also known as the\n * ResourceName.\n * @param options The options parameters.\n */\n async beginShutdownAndWait(\n resourceGroupName: string,\n azureBareMetalInstanceName: string,\n options?: AzureBareMetalInstancesShutdownOptionalParams\n ): Promise<AzureBareMetalInstancesShutdownResponse> {\n const poller = await this.beginShutdown(\n resourceGroupName,\n azureBareMetalInstanceName,\n options\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Returns a list of Azure Bare Metal Instances in the specified subscription. The operations returns\n * various properties of each Azure Bare Metal Instance.\n * @param options The options parameters.\n */\n private _listBySubscription(\n options?: AzureBareMetalInstancesListBySubscriptionOptionalParams\n ): Promise<AzureBareMetalInstancesListBySubscriptionResponse> {\n return this.client.sendOperationRequest(\n { options },\n listBySubscriptionOperationSpec\n );\n }\n\n /**\n * Gets a list of Azure Bare Metal Instances in the specified subscription and resource group. The\n * operations returns various properties of each Azure Bare Metal Instance.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param options The options parameters.\n */\n private _listByResourceGroup(\n resourceGroupName: string,\n options?: AzureBareMetalInstancesListByResourceGroupOptionalParams\n ): Promise<AzureBareMetalInstancesListByResourceGroupResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, options },\n listByResourceGroupOperationSpec\n );\n }\n\n /**\n * Gets an Azure Bare Metal Instance for the specified subscription, resource group, and instance name.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param azureBareMetalInstanceName Name of the Azure Bare Metal Instance, also known as the\n * ResourceName.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n azureBareMetalInstanceName: string,\n options?: AzureBareMetalInstancesGetOptionalParams\n ): Promise<AzureBareMetalInstancesGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, azureBareMetalInstanceName, options },\n getOperationSpec\n );\n }\n\n /**\n * Patches the Tags field of a Azure Bare Metal Instance for the specified subscription, resource\n * group, and instance name.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param azureBareMetalInstanceName Name of the Azure Bare Metal Instance, also known as the\n * ResourceName.\n * @param tagsParameter Request body that only contains the new Tags field\n * @param options The options parameters.\n */\n update(\n resourceGroupName: string,\n azureBareMetalInstanceName: string,\n tagsParameter: Tags,\n options?: AzureBareMetalInstancesUpdateOptionalParams\n ): Promise<AzureBareMetalInstancesUpdateResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, azureBareMetalInstanceName, tagsParameter, options },\n updateOperationSpec\n );\n }\n\n /**\n * ListBySubscriptionNext\n * @param nextLink The nextLink from the previous successful call to the ListBySubscription method.\n * @param options The options parameters.\n */\n private _listBySubscriptionNext(\n nextLink: string,\n options?: AzureBareMetalInstancesListBySubscriptionNextOptionalParams\n ): Promise<AzureBareMetalInstancesListBySubscriptionNextResponse> {\n return this.client.sendOperationRequest(\n { nextLink, options },\n listBySubscriptionNextOperationSpec\n );\n }\n\n /**\n * ListByResourceGroupNext\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.\n * @param options The options parameters.\n */\n private _listByResourceGroupNext(\n resourceGroupName: string,\n nextLink: string,\n options?: AzureBareMetalInstancesListByResourceGroupNextOptionalParams\n ): Promise<AzureBareMetalInstancesListByResourceGroupNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, nextLink, options },\n listByResourceGroupNextOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst startOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BareMetalInfrastructure/bareMetalInstances/{azureBareMetalInstanceName}/start\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.OperationStatus\n },\n 201: {\n bodyMapper: Mappers.OperationStatus\n },\n 202: {\n bodyMapper: Mappers.OperationStatus\n },\n 204: {\n bodyMapper: Mappers.OperationStatus\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.azureBareMetalInstanceName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst restartOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BareMetalInfrastructure/bareMetalInstances/{azureBareMetalInstanceName}/restart\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.OperationStatus\n },\n 201: {\n bodyMapper: Mappers.OperationStatus\n },\n 202: {\n bodyMapper: Mappers.OperationStatus\n },\n 204: {\n bodyMapper: Mappers.OperationStatus\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n requestBody: Parameters.forceParameter,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.azureBareMetalInstanceName\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst shutdownOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BareMetalInfrastructure/bareMetalInstances/{azureBareMetalInstanceName}/shutdown\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.OperationStatus\n },\n 201: {\n bodyMapper: Mappers.OperationStatus\n },\n 202: {\n bodyMapper: Mappers.OperationStatus\n },\n 204: {\n bodyMapper: Mappers.OperationStatus\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.azureBareMetalInstanceName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listBySubscriptionOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/providers/Microsoft.BareMetalInfrastructure/bareMetalInstances\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.AzureBareMetalInstancesListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.subscriptionId],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listByResourceGroupOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BareMetalInfrastructure/bareMetalInstances\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.AzureBareMetalInstancesListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BareMetalInfrastructure/bareMetalInstances/{azureBareMetalInstanceName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.AzureBareMetalInstance\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.azureBareMetalInstanceName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst updateOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BareMetalInfrastructure/bareMetalInstances/{azureBareMetalInstanceName}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.AzureBareMetalInstance\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n requestBody: Parameters.tagsParameter,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.azureBareMetalInstanceName\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst listBySubscriptionNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.AzureBareMetalInstancesListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.nextLink\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listByResourceGroupNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.AzureBareMetalInstancesListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.nextLink\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
|