@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 @@
|
|
|
1
|
+
{"version":3,"file":"operations.js","sourceRoot":"","sources":["../../../src/operations/operations.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAIH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAQtD,4CAA4C;AAC5C,8CAA8C;AAC9C,MAAM,OAAO,cAAc;IACR,MAAM,CAAgC;IAEvD;;;OAGG;IACH,YAAY,MAAqC;QAC/C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;OAGG;IACI,IAAI,CACT,OAAsC;QAEtC,MAAM,IAAI,GAAG,IAAI,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;QACzC,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,cAAc,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC;YAChD,CAAC;SACF,CAAC;IACJ,CAAC;IAEO,KAAK,CAAC,CAAC,cAAc,CAC3B,OAAsC,EACtC,SAAwB;QAExB,IAAI,MAA8B,CAAC;QACnC,MAAM,GAAG,MAAM,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;QACnC,MAAM,MAAM,CAAC,KAAK,IAAI,EAAE,CAAC;IAC3B,CAAC;IAEO,KAAK,CAAC,CAAC,aAAa,CAC1B,OAAsC;QAEtC,IAAI,KAAK,EAAE,MAAM,IAAI,IAAI,IAAI,CAAC,cAAc,CAAC,OAAO,CAAC,EAAE,CAAC;YACtD,KAAK,CAAC,CAAC,IAAI,CAAC;QACd,CAAC;IACH,CAAC;IAED;;;OAGG;IACK,KAAK,CACX,OAAsC;QAEtC,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CAAC,EAAE,OAAO,EAAE,EAAE,iBAAiB,CAAC,CAAC;IAC1E,CAAC;CACF;AACD,2BAA2B;AAC3B,MAAM,UAAU,GAAG,UAAU,CAAC,gBAAgB,CAAC,OAAO,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;AAE3E,MAAM,iBAAiB,GAA6B;IAClD,IAAI,EAAE,yDAAyD;IAC/D,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,mBAAmB;SACxC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,CAAC;IACjC,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 { Operations } 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 Operation,\n OperationsListOptionalParams,\n OperationsListResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing Operations operations. */\nexport class OperationsImpl implements Operations {\n private readonly client: BareMetalInfrastructureClient;\n\n /**\n * Initialize a new instance of the class Operations class.\n * @param client Reference to the service client\n */\n constructor(client: BareMetalInfrastructureClient) {\n this.client = client;\n }\n\n /**\n * Gets a list of AzureBareMetal management operations.\n * @param options The options parameters.\n */\n public list(\n options?: OperationsListOptionalParams\n ): PagedAsyncIterableIterator<Operation> {\n const iter = this.listPagingAll(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.listPagingPage(options, settings);\n }\n };\n }\n\n private async *listPagingPage(\n options?: OperationsListOptionalParams,\n _settings?: PageSettings\n ): AsyncIterableIterator<Operation[]> {\n let result: OperationsListResponse;\n result = await this._list(options);\n yield result.value || [];\n }\n\n private async *listPagingAll(\n options?: OperationsListOptionalParams\n ): AsyncIterableIterator<Operation> {\n for await (const page of this.listPagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * Gets a list of AzureBareMetal management operations.\n * @param options The options parameters.\n */\n private _list(\n options?: OperationsListOptionalParams\n ): Promise<OperationsListResponse> {\n return this.client.sendOperationRequest({ options }, listOperationSpec);\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.BareMetalInfrastructure/operations\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.OperationListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
2
|
+
import { SimplePollerLike, OperationState } from "@azure/core-lro";
|
|
3
|
+
import { AzureBareMetalInstance, AzureBareMetalInstancesListBySubscriptionOptionalParams, AzureBareMetalInstancesListByResourceGroupOptionalParams, AzureBareMetalInstancesStartOptionalParams, AzureBareMetalInstancesStartResponse, AzureBareMetalInstancesRestartOptionalParams, AzureBareMetalInstancesRestartResponse, AzureBareMetalInstancesShutdownOptionalParams, AzureBareMetalInstancesShutdownResponse, AzureBareMetalInstancesGetOptionalParams, AzureBareMetalInstancesGetResponse, Tags, AzureBareMetalInstancesUpdateOptionalParams, AzureBareMetalInstancesUpdateResponse } from "../models/index.js";
|
|
4
|
+
/** Interface representing a AzureBareMetalInstances. */
|
|
5
|
+
export interface AzureBareMetalInstances {
|
|
6
|
+
/**
|
|
7
|
+
* Returns a list of Azure Bare Metal Instances in the specified subscription. The operations returns
|
|
8
|
+
* various properties of each Azure Bare Metal Instance.
|
|
9
|
+
* @param options The options parameters.
|
|
10
|
+
*/
|
|
11
|
+
listBySubscription(options?: AzureBareMetalInstancesListBySubscriptionOptionalParams): PagedAsyncIterableIterator<AzureBareMetalInstance>;
|
|
12
|
+
/**
|
|
13
|
+
* Gets a list of Azure Bare Metal Instances in the specified subscription and resource group. The
|
|
14
|
+
* operations returns various properties of each Azure Bare Metal Instance.
|
|
15
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
16
|
+
* @param options The options parameters.
|
|
17
|
+
*/
|
|
18
|
+
listByResourceGroup(resourceGroupName: string, options?: AzureBareMetalInstancesListByResourceGroupOptionalParams): PagedAsyncIterableIterator<AzureBareMetalInstance>;
|
|
19
|
+
/**
|
|
20
|
+
* The operation to start an Azure Bare Metal instance
|
|
21
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
22
|
+
* @param azureBareMetalInstanceName Name of the Azure Bare Metal Instance, also known as the
|
|
23
|
+
* ResourceName.
|
|
24
|
+
* @param options The options parameters.
|
|
25
|
+
*/
|
|
26
|
+
beginStart(resourceGroupName: string, azureBareMetalInstanceName: string, options?: AzureBareMetalInstancesStartOptionalParams): Promise<SimplePollerLike<OperationState<AzureBareMetalInstancesStartResponse>, AzureBareMetalInstancesStartResponse>>;
|
|
27
|
+
/**
|
|
28
|
+
* The operation to start an Azure Bare Metal instance
|
|
29
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
30
|
+
* @param azureBareMetalInstanceName Name of the Azure Bare Metal Instance, also known as the
|
|
31
|
+
* ResourceName.
|
|
32
|
+
* @param options The options parameters.
|
|
33
|
+
*/
|
|
34
|
+
beginStartAndWait(resourceGroupName: string, azureBareMetalInstanceName: string, options?: AzureBareMetalInstancesStartOptionalParams): Promise<AzureBareMetalInstancesStartResponse>;
|
|
35
|
+
/**
|
|
36
|
+
* The operation to restart an Azure Bare Metal Instance
|
|
37
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
38
|
+
* @param azureBareMetalInstanceName Name of the Azure Bare Metal Instance, also known as the
|
|
39
|
+
* ResourceName.
|
|
40
|
+
* @param options The options parameters.
|
|
41
|
+
*/
|
|
42
|
+
beginRestart(resourceGroupName: string, azureBareMetalInstanceName: string, options?: AzureBareMetalInstancesRestartOptionalParams): Promise<SimplePollerLike<OperationState<AzureBareMetalInstancesRestartResponse>, AzureBareMetalInstancesRestartResponse>>;
|
|
43
|
+
/**
|
|
44
|
+
* The operation to restart an Azure Bare Metal Instance
|
|
45
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
46
|
+
* @param azureBareMetalInstanceName Name of the Azure Bare Metal Instance, also known as the
|
|
47
|
+
* ResourceName.
|
|
48
|
+
* @param options The options parameters.
|
|
49
|
+
*/
|
|
50
|
+
beginRestartAndWait(resourceGroupName: string, azureBareMetalInstanceName: string, options?: AzureBareMetalInstancesRestartOptionalParams): Promise<AzureBareMetalInstancesRestartResponse>;
|
|
51
|
+
/**
|
|
52
|
+
* The operation to shutdown an Azure Bare Metal Instance
|
|
53
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
54
|
+
* @param azureBareMetalInstanceName Name of the Azure Bare Metal Instance, also known as the
|
|
55
|
+
* ResourceName.
|
|
56
|
+
* @param options The options parameters.
|
|
57
|
+
*/
|
|
58
|
+
beginShutdown(resourceGroupName: string, azureBareMetalInstanceName: string, options?: AzureBareMetalInstancesShutdownOptionalParams): Promise<SimplePollerLike<OperationState<AzureBareMetalInstancesShutdownResponse>, AzureBareMetalInstancesShutdownResponse>>;
|
|
59
|
+
/**
|
|
60
|
+
* The operation to shutdown an Azure Bare Metal Instance
|
|
61
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
62
|
+
* @param azureBareMetalInstanceName Name of the Azure Bare Metal Instance, also known as the
|
|
63
|
+
* ResourceName.
|
|
64
|
+
* @param options The options parameters.
|
|
65
|
+
*/
|
|
66
|
+
beginShutdownAndWait(resourceGroupName: string, azureBareMetalInstanceName: string, options?: AzureBareMetalInstancesShutdownOptionalParams): Promise<AzureBareMetalInstancesShutdownResponse>;
|
|
67
|
+
/**
|
|
68
|
+
* Gets an Azure Bare Metal Instance for the specified subscription, resource group, and instance name.
|
|
69
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
70
|
+
* @param azureBareMetalInstanceName Name of the Azure Bare Metal Instance, also known as the
|
|
71
|
+
* ResourceName.
|
|
72
|
+
* @param options The options parameters.
|
|
73
|
+
*/
|
|
74
|
+
get(resourceGroupName: string, azureBareMetalInstanceName: string, options?: AzureBareMetalInstancesGetOptionalParams): Promise<AzureBareMetalInstancesGetResponse>;
|
|
75
|
+
/**
|
|
76
|
+
* Patches the Tags field of a Azure Bare Metal Instance for the specified subscription, resource
|
|
77
|
+
* group, and instance name.
|
|
78
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
79
|
+
* @param azureBareMetalInstanceName Name of the Azure Bare Metal Instance, also known as the
|
|
80
|
+
* ResourceName.
|
|
81
|
+
* @param tagsParameter Request body that only contains the new Tags field
|
|
82
|
+
* @param options The options parameters.
|
|
83
|
+
*/
|
|
84
|
+
update(resourceGroupName: string, azureBareMetalInstanceName: string, tagsParameter: Tags, options?: AzureBareMetalInstancesUpdateOptionalParams): Promise<AzureBareMetalInstancesUpdateResponse>;
|
|
85
|
+
}
|
|
86
|
+
//# sourceMappingURL=azureBareMetalInstances.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"azureBareMetalInstances.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/azureBareMetalInstances.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EAAE,gBAAgB,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AACnE,OAAO,EACL,sBAAsB,EACtB,uDAAuD,EACvD,wDAAwD,EACxD,0CAA0C,EAC1C,oCAAoC,EACpC,4CAA4C,EAC5C,sCAAsC,EACtC,6CAA6C,EAC7C,uCAAuC,EACvC,wCAAwC,EACxC,kCAAkC,EAClC,IAAI,EACJ,2CAA2C,EAC3C,qCAAqC,EACtC,MAAM,oBAAoB,CAAC;AAG5B,wDAAwD;AACxD,MAAM,WAAW,uBAAuB;IACtC;;;;OAIG;IACH,kBAAkB,CAChB,OAAO,CAAC,EAAE,uDAAuD,GAChE,0BAA0B,CAAC,sBAAsB,CAAC,CAAC;IACtD;;;;;OAKG;IACH,mBAAmB,CACjB,iBAAiB,EAAE,MAAM,EACzB,OAAO,CAAC,EAAE,wDAAwD,GACjE,0BAA0B,CAAC,sBAAsB,CAAC,CAAC;IACtD;;;;;;OAMG;IACH,UAAU,CACR,iBAAiB,EAAE,MAAM,EACzB,0BAA0B,EAAE,MAAM,EAClC,OAAO,CAAC,EAAE,0CAA0C,GACnD,OAAO,CACR,gBAAgB,CACd,cAAc,CAAC,oCAAoC,CAAC,EACpD,oCAAoC,CACrC,CACF,CAAC;IACF;;;;;;OAMG;IACH,iBAAiB,CACf,iBAAiB,EAAE,MAAM,EACzB,0BAA0B,EAAE,MAAM,EAClC,OAAO,CAAC,EAAE,0CAA0C,GACnD,OAAO,CAAC,oCAAoC,CAAC,CAAC;IACjD;;;;;;OAMG;IACH,YAAY,CACV,iBAAiB,EAAE,MAAM,EACzB,0BAA0B,EAAE,MAAM,EAClC,OAAO,CAAC,EAAE,4CAA4C,GACrD,OAAO,CACR,gBAAgB,CACd,cAAc,CAAC,sCAAsC,CAAC,EACtD,sCAAsC,CACvC,CACF,CAAC;IACF;;;;;;OAMG;IACH,mBAAmB,CACjB,iBAAiB,EAAE,MAAM,EACzB,0BAA0B,EAAE,MAAM,EAClC,OAAO,CAAC,EAAE,4CAA4C,GACrD,OAAO,CAAC,sCAAsC,CAAC,CAAC;IACnD;;;;;;OAMG;IACH,aAAa,CACX,iBAAiB,EAAE,MAAM,EACzB,0BAA0B,EAAE,MAAM,EAClC,OAAO,CAAC,EAAE,6CAA6C,GACtD,OAAO,CACR,gBAAgB,CACd,cAAc,CAAC,uCAAuC,CAAC,EACvD,uCAAuC,CACxC,CACF,CAAC;IACF;;;;;;OAMG;IACH,oBAAoB,CAClB,iBAAiB,EAAE,MAAM,EACzB,0BAA0B,EAAE,MAAM,EAClC,OAAO,CAAC,EAAE,6CAA6C,GACtD,OAAO,CAAC,uCAAuC,CAAC,CAAC;IACpD;;;;;;OAMG;IACH,GAAG,CACD,iBAAiB,EAAE,MAAM,EACzB,0BAA0B,EAAE,MAAM,EAClC,OAAO,CAAC,EAAE,wCAAwC,GACjD,OAAO,CAAC,kCAAkC,CAAC,CAAC;IAC/C;;;;;;;;OAQG;IACH,MAAM,CACJ,iBAAiB,EAAE,MAAM,EACzB,0BAA0B,EAAE,MAAM,EAClC,aAAa,EAAE,IAAI,EACnB,OAAO,CAAC,EAAE,2CAA2C,GACpD,OAAO,CAAC,qCAAqC,CAAC,CAAC;CACnD"}
|
|
@@ -0,0 +1,9 @@
|
|
|
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
|
+
export {};
|
|
9
|
+
//# sourceMappingURL=azureBareMetalInstances.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"azureBareMetalInstances.js","sourceRoot":"","sources":["../../../src/operationsInterfaces/azureBareMetalInstances.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG","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 } from \"@azure/core-paging\";\nimport { SimplePollerLike, OperationState } from \"@azure/core-lro\";\nimport {\n AzureBareMetalInstance,\n AzureBareMetalInstancesListBySubscriptionOptionalParams,\n AzureBareMetalInstancesListByResourceGroupOptionalParams,\n AzureBareMetalInstancesStartOptionalParams,\n AzureBareMetalInstancesStartResponse,\n AzureBareMetalInstancesRestartOptionalParams,\n AzureBareMetalInstancesRestartResponse,\n AzureBareMetalInstancesShutdownOptionalParams,\n AzureBareMetalInstancesShutdownResponse,\n AzureBareMetalInstancesGetOptionalParams,\n AzureBareMetalInstancesGetResponse,\n Tags,\n AzureBareMetalInstancesUpdateOptionalParams,\n AzureBareMetalInstancesUpdateResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Interface representing a AzureBareMetalInstances. */\nexport interface AzureBareMetalInstances {\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 listBySubscription(\n options?: AzureBareMetalInstancesListBySubscriptionOptionalParams\n ): PagedAsyncIterableIterator<AzureBareMetalInstance>;\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 listByResourceGroup(\n resourceGroupName: string,\n options?: AzureBareMetalInstancesListByResourceGroupOptionalParams\n ): PagedAsyncIterableIterator<AzureBareMetalInstance>;\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 beginStart(\n resourceGroupName: string,\n azureBareMetalInstanceName: string,\n options?: AzureBareMetalInstancesStartOptionalParams\n ): Promise<\n SimplePollerLike<\n OperationState<AzureBareMetalInstancesStartResponse>,\n AzureBareMetalInstancesStartResponse\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 beginStartAndWait(\n resourceGroupName: string,\n azureBareMetalInstanceName: string,\n options?: AzureBareMetalInstancesStartOptionalParams\n ): Promise<AzureBareMetalInstancesStartResponse>;\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 beginRestart(\n resourceGroupName: string,\n azureBareMetalInstanceName: string,\n options?: AzureBareMetalInstancesRestartOptionalParams\n ): Promise<\n SimplePollerLike<\n OperationState<AzureBareMetalInstancesRestartResponse>,\n AzureBareMetalInstancesRestartResponse\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 beginRestartAndWait(\n resourceGroupName: string,\n azureBareMetalInstanceName: string,\n options?: AzureBareMetalInstancesRestartOptionalParams\n ): Promise<AzureBareMetalInstancesRestartResponse>;\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 beginShutdown(\n resourceGroupName: string,\n azureBareMetalInstanceName: string,\n options?: AzureBareMetalInstancesShutdownOptionalParams\n ): Promise<\n SimplePollerLike<\n OperationState<AzureBareMetalInstancesShutdownResponse>,\n AzureBareMetalInstancesShutdownResponse\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 beginShutdownAndWait(\n resourceGroupName: string,\n azureBareMetalInstanceName: string,\n options?: AzureBareMetalInstancesShutdownOptionalParams\n ): Promise<AzureBareMetalInstancesShutdownResponse>;\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 /**\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}\n"]}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
2
|
+
import { AzureBareMetalStorageInstance, AzureBareMetalStorageInstancesListBySubscriptionOptionalParams, AzureBareMetalStorageInstancesListByResourceGroupOptionalParams, AzureBareMetalStorageInstancesGetOptionalParams, AzureBareMetalStorageInstancesGetResponse, AzureBareMetalStorageInstancesCreateOptionalParams, AzureBareMetalStorageInstancesCreateResponse, Tags, AzureBareMetalStorageInstancesUpdateOptionalParams, AzureBareMetalStorageInstancesUpdateResponse, AzureBareMetalStorageInstancesDeleteOptionalParams } from "../models/index.js";
|
|
3
|
+
/** Interface representing a AzureBareMetalStorageInstances. */
|
|
4
|
+
export interface AzureBareMetalStorageInstances {
|
|
5
|
+
/**
|
|
6
|
+
* Gets a list of AzureBareMetalStorage instances in the specified subscription. The operations returns
|
|
7
|
+
* various properties of each Azure Bare Metal Instance.
|
|
8
|
+
* @param options The options parameters.
|
|
9
|
+
*/
|
|
10
|
+
listBySubscription(options?: AzureBareMetalStorageInstancesListBySubscriptionOptionalParams): PagedAsyncIterableIterator<AzureBareMetalStorageInstance>;
|
|
11
|
+
/**
|
|
12
|
+
* Gets a list of AzureBareMetalStorage instances in the specified subscription and resource group. The
|
|
13
|
+
* operations returns various properties of each Azure Bare Metal Instance.
|
|
14
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
15
|
+
* @param options The options parameters.
|
|
16
|
+
*/
|
|
17
|
+
listByResourceGroup(resourceGroupName: string, options?: AzureBareMetalStorageInstancesListByResourceGroupOptionalParams): PagedAsyncIterableIterator<AzureBareMetalStorageInstance>;
|
|
18
|
+
/**
|
|
19
|
+
* Gets an Azure Bare Metal Storage instance for the specified subscription, resource group, and
|
|
20
|
+
* instance name.
|
|
21
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
22
|
+
* @param azureBareMetalStorageInstanceName Name of the Azure Bare Metal Storage Instance, also known
|
|
23
|
+
* as the ResourceName.
|
|
24
|
+
* @param options The options parameters.
|
|
25
|
+
*/
|
|
26
|
+
get(resourceGroupName: string, azureBareMetalStorageInstanceName: string, options?: AzureBareMetalStorageInstancesGetOptionalParams): Promise<AzureBareMetalStorageInstancesGetResponse>;
|
|
27
|
+
/**
|
|
28
|
+
* Create an azure bare metal storage resource.
|
|
29
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
30
|
+
* @param azureBareMetalStorageInstanceName Name of the Azure Bare Metal Storage Instance, also known
|
|
31
|
+
* as the ResourceName.
|
|
32
|
+
* @param requestBodyParameters request body for put call
|
|
33
|
+
* @param options The options parameters.
|
|
34
|
+
*/
|
|
35
|
+
create(resourceGroupName: string, azureBareMetalStorageInstanceName: string, requestBodyParameters: AzureBareMetalStorageInstance, options?: AzureBareMetalStorageInstancesCreateOptionalParams): Promise<AzureBareMetalStorageInstancesCreateResponse>;
|
|
36
|
+
/**
|
|
37
|
+
* Patches the Tags field of a Azure Bare Metal Storage instance for the specified subscription,
|
|
38
|
+
* resource group, and instance name.
|
|
39
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
40
|
+
* @param azureBareMetalStorageInstanceName Name of the Azure Bare Metal Storage Instance, also known
|
|
41
|
+
* as the ResourceName.
|
|
42
|
+
* @param tagsParameter Request body that only contains the new Tags field
|
|
43
|
+
* @param options The options parameters.
|
|
44
|
+
*/
|
|
45
|
+
update(resourceGroupName: string, azureBareMetalStorageInstanceName: string, tagsParameter: Tags, options?: AzureBareMetalStorageInstancesUpdateOptionalParams): Promise<AzureBareMetalStorageInstancesUpdateResponse>;
|
|
46
|
+
/**
|
|
47
|
+
* Delete an AzureBareMetalStorageInstance.
|
|
48
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
49
|
+
* @param azureBareMetalStorageInstanceName Name of the Azure Bare Metal Storage Instance, also known
|
|
50
|
+
* as the ResourceName.
|
|
51
|
+
* @param options The options parameters.
|
|
52
|
+
*/
|
|
53
|
+
delete(resourceGroupName: string, azureBareMetalStorageInstanceName: string, options?: AzureBareMetalStorageInstancesDeleteOptionalParams): Promise<void>;
|
|
54
|
+
}
|
|
55
|
+
//# sourceMappingURL=azureBareMetalStorageInstances.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"azureBareMetalStorageInstances.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/azureBareMetalStorageInstances.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EACL,6BAA6B,EAC7B,8DAA8D,EAC9D,+DAA+D,EAC/D,+CAA+C,EAC/C,yCAAyC,EACzC,kDAAkD,EAClD,4CAA4C,EAC5C,IAAI,EACJ,kDAAkD,EAClD,4CAA4C,EAC5C,kDAAkD,EACnD,MAAM,oBAAoB,CAAC;AAG5B,+DAA+D;AAC/D,MAAM,WAAW,8BAA8B;IAC7C;;;;OAIG;IACH,kBAAkB,CAChB,OAAO,CAAC,EAAE,8DAA8D,GACvE,0BAA0B,CAAC,6BAA6B,CAAC,CAAC;IAC7D;;;;;OAKG;IACH,mBAAmB,CACjB,iBAAiB,EAAE,MAAM,EACzB,OAAO,CAAC,EAAE,+DAA+D,GACxE,0BAA0B,CAAC,6BAA6B,CAAC,CAAC;IAC7D;;;;;;;OAOG;IACH,GAAG,CACD,iBAAiB,EAAE,MAAM,EACzB,iCAAiC,EAAE,MAAM,EACzC,OAAO,CAAC,EAAE,+CAA+C,GACxD,OAAO,CAAC,yCAAyC,CAAC,CAAC;IACtD;;;;;;;OAOG;IACH,MAAM,CACJ,iBAAiB,EAAE,MAAM,EACzB,iCAAiC,EAAE,MAAM,EACzC,qBAAqB,EAAE,6BAA6B,EACpD,OAAO,CAAC,EAAE,kDAAkD,GAC3D,OAAO,CAAC,4CAA4C,CAAC,CAAC;IACzD;;;;;;;;OAQG;IACH,MAAM,CACJ,iBAAiB,EAAE,MAAM,EACzB,iCAAiC,EAAE,MAAM,EACzC,aAAa,EAAE,IAAI,EACnB,OAAO,CAAC,EAAE,kDAAkD,GAC3D,OAAO,CAAC,4CAA4C,CAAC,CAAC;IACzD;;;;;;OAMG;IACH,MAAM,CACJ,iBAAiB,EAAE,MAAM,EACzB,iCAAiC,EAAE,MAAM,EACzC,OAAO,CAAC,EAAE,kDAAkD,GAC3D,OAAO,CAAC,IAAI,CAAC,CAAC;CAClB"}
|
|
@@ -0,0 +1,9 @@
|
|
|
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
|
+
export {};
|
|
9
|
+
//# sourceMappingURL=azureBareMetalStorageInstances.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"azureBareMetalStorageInstances.js","sourceRoot":"","sources":["../../../src/operationsInterfaces/azureBareMetalStorageInstances.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG","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 } from \"@azure/core-paging\";\nimport {\n AzureBareMetalStorageInstance,\n AzureBareMetalStorageInstancesListBySubscriptionOptionalParams,\n AzureBareMetalStorageInstancesListByResourceGroupOptionalParams,\n AzureBareMetalStorageInstancesGetOptionalParams,\n AzureBareMetalStorageInstancesGetResponse,\n AzureBareMetalStorageInstancesCreateOptionalParams,\n AzureBareMetalStorageInstancesCreateResponse,\n Tags,\n AzureBareMetalStorageInstancesUpdateOptionalParams,\n AzureBareMetalStorageInstancesUpdateResponse,\n AzureBareMetalStorageInstancesDeleteOptionalParams\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Interface representing a AzureBareMetalStorageInstances. */\nexport interface AzureBareMetalStorageInstances {\n /**\n * Gets a list of AzureBareMetalStorage 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 listBySubscription(\n options?: AzureBareMetalStorageInstancesListBySubscriptionOptionalParams\n ): PagedAsyncIterableIterator<AzureBareMetalStorageInstance>;\n /**\n * Gets a list of AzureBareMetalStorage 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 listByResourceGroup(\n resourceGroupName: string,\n options?: AzureBareMetalStorageInstancesListByResourceGroupOptionalParams\n ): PagedAsyncIterableIterator<AzureBareMetalStorageInstance>;\n /**\n * Gets an Azure Bare Metal Storage instance for the specified subscription, resource group, and\n * instance name.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param azureBareMetalStorageInstanceName Name of the Azure Bare Metal Storage Instance, also known\n * as the ResourceName.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n azureBareMetalStorageInstanceName: string,\n options?: AzureBareMetalStorageInstancesGetOptionalParams\n ): Promise<AzureBareMetalStorageInstancesGetResponse>;\n /**\n * Create an azure bare metal storage resource.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param azureBareMetalStorageInstanceName Name of the Azure Bare Metal Storage Instance, also known\n * as the ResourceName.\n * @param requestBodyParameters request body for put call\n * @param options The options parameters.\n */\n create(\n resourceGroupName: string,\n azureBareMetalStorageInstanceName: string,\n requestBodyParameters: AzureBareMetalStorageInstance,\n options?: AzureBareMetalStorageInstancesCreateOptionalParams\n ): Promise<AzureBareMetalStorageInstancesCreateResponse>;\n /**\n * Patches the Tags field of a Azure Bare Metal Storage instance for the specified subscription,\n * resource group, and instance name.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param azureBareMetalStorageInstanceName Name of the Azure Bare Metal Storage Instance, also known\n * as the 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 azureBareMetalStorageInstanceName: string,\n tagsParameter: Tags,\n options?: AzureBareMetalStorageInstancesUpdateOptionalParams\n ): Promise<AzureBareMetalStorageInstancesUpdateResponse>;\n /**\n * Delete an AzureBareMetalStorageInstance.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param azureBareMetalStorageInstanceName Name of the Azure Bare Metal Storage Instance, also known\n * as the ResourceName.\n * @param options The options parameters.\n */\n delete(\n resourceGroupName: string,\n azureBareMetalStorageInstanceName: string,\n options?: AzureBareMetalStorageInstancesDeleteOptionalParams\n ): Promise<void>;\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/index.ts"],"names":[],"mappings":"AAQA,cAAc,8BAA8B,CAAC;AAC7C,cAAc,iBAAiB,CAAC;AAChC,cAAc,qCAAqC,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
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
|
+
export * from "./azureBareMetalInstances.js";
|
|
9
|
+
export * from "./operations.js";
|
|
10
|
+
export * from "./azureBareMetalStorageInstances.js";
|
|
11
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/operationsInterfaces/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,cAAc,8BAA8B,CAAC;AAC7C,cAAc,iBAAiB,CAAC;AAChC,cAAc,qCAAqC,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\nexport * from \"./azureBareMetalInstances.js\";\nexport * from \"./operations.js\";\nexport * from \"./azureBareMetalStorageInstances.js\";\n"]}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
2
|
+
import { Operation, OperationsListOptionalParams } from "../models/index.js";
|
|
3
|
+
/** Interface representing a Operations. */
|
|
4
|
+
export interface Operations {
|
|
5
|
+
/**
|
|
6
|
+
* Gets a list of AzureBareMetal management operations.
|
|
7
|
+
* @param options The options parameters.
|
|
8
|
+
*/
|
|
9
|
+
list(options?: OperationsListOptionalParams): PagedAsyncIterableIterator<Operation>;
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=operations.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"operations.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/operations.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EAAE,SAAS,EAAE,4BAA4B,EAAE,MAAM,oBAAoB,CAAC;AAG7E,2CAA2C;AAC3C,MAAM,WAAW,UAAU;IACzB;;;OAGG;IACH,IAAI,CACF,OAAO,CAAC,EAAE,4BAA4B,GACrC,0BAA0B,CAAC,SAAS,CAAC,CAAC;CAC1C"}
|
|
@@ -0,0 +1,9 @@
|
|
|
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
|
+
export {};
|
|
9
|
+
//# sourceMappingURL=operations.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"operations.js","sourceRoot":"","sources":["../../../src/operationsInterfaces/operations.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG","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 } from \"@azure/core-paging\";\nimport { Operation, OperationsListOptionalParams } from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Interface representing a Operations. */\nexport interface Operations {\n /**\n * Gets a list of AzureBareMetal management operations.\n * @param options The options parameters.\n */\n list(\n options?: OperationsListOptionalParams\n ): PagedAsyncIterableIterator<Operation>;\n}\n"]}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export interface PageInfo {
|
|
2
|
+
continuationToken?: string;
|
|
3
|
+
}
|
|
4
|
+
/**
|
|
5
|
+
* Given the last `.value` produced by the `byPage` iterator,
|
|
6
|
+
* returns a continuation token that can be used to begin paging from
|
|
7
|
+
* that point later.
|
|
8
|
+
* @param page An object from accessing `value` on the IteratorResult from a `byPage` iterator.
|
|
9
|
+
* @returns The continuation token that can be passed into byPage() during future calls.
|
|
10
|
+
*/
|
|
11
|
+
export declare function getContinuationToken(page: unknown): string | undefined;
|
|
12
|
+
export declare function setContinuationToken(page: unknown, continuationToken: string | undefined): void;
|
|
13
|
+
//# sourceMappingURL=pagingHelper.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pagingHelper.d.ts","sourceRoot":"","sources":["../../src/pagingHelper.ts"],"names":[],"mappings":"AAQA,MAAM,WAAW,QAAQ;IACvB,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B;AAID;;;;;;GAMG;AACH,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,OAAO,GAAG,MAAM,GAAG,SAAS,CAKtE;AAED,wBAAgB,oBAAoB,CAClC,IAAI,EAAE,OAAO,EACb,iBAAiB,EAAE,MAAM,GAAG,SAAS,GACpC,IAAI,CAON"}
|
|
@@ -0,0 +1,30 @@
|
|
|
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
|
+
const pageMap = new WeakMap();
|
|
9
|
+
/**
|
|
10
|
+
* Given the last `.value` produced by the `byPage` iterator,
|
|
11
|
+
* returns a continuation token that can be used to begin paging from
|
|
12
|
+
* that point later.
|
|
13
|
+
* @param page An object from accessing `value` on the IteratorResult from a `byPage` iterator.
|
|
14
|
+
* @returns The continuation token that can be passed into byPage() during future calls.
|
|
15
|
+
*/
|
|
16
|
+
export function getContinuationToken(page) {
|
|
17
|
+
if (typeof page !== "object" || page === null) {
|
|
18
|
+
return undefined;
|
|
19
|
+
}
|
|
20
|
+
return pageMap.get(page)?.continuationToken;
|
|
21
|
+
}
|
|
22
|
+
export function setContinuationToken(page, continuationToken) {
|
|
23
|
+
if (typeof page !== "object" || page === null || !continuationToken) {
|
|
24
|
+
return;
|
|
25
|
+
}
|
|
26
|
+
const pageInfo = pageMap.get(page) ?? {};
|
|
27
|
+
pageInfo.continuationToken = continuationToken;
|
|
28
|
+
pageMap.set(page, pageInfo);
|
|
29
|
+
}
|
|
30
|
+
//# sourceMappingURL=pagingHelper.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pagingHelper.js","sourceRoot":"","sources":["../../src/pagingHelper.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAMH,MAAM,OAAO,GAAG,IAAI,OAAO,EAAoB,CAAC;AAEhD;;;;;;GAMG;AACH,MAAM,UAAU,oBAAoB,CAAC,IAAa;IAChD,IAAI,OAAO,IAAI,KAAK,QAAQ,IAAI,IAAI,KAAK,IAAI,EAAE,CAAC;QAC9C,OAAO,SAAS,CAAC;IACnB,CAAC;IACD,OAAO,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,iBAAiB,CAAC;AAC9C,CAAC;AAED,MAAM,UAAU,oBAAoB,CAClC,IAAa,EACb,iBAAqC;IAErC,IAAI,OAAO,IAAI,KAAK,QAAQ,IAAI,IAAI,KAAK,IAAI,IAAI,CAAC,iBAAiB,EAAE,CAAC;QACpE,OAAO;IACT,CAAC;IACD,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC;IACzC,QAAQ,CAAC,iBAAiB,GAAG,iBAAiB,CAAC;IAC/C,OAAO,CAAC,GAAG,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;AAC9B,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\nexport interface PageInfo {\n continuationToken?: string;\n}\n\nconst pageMap = new WeakMap<object, PageInfo>();\n\n/**\n * Given the last `.value` produced by the `byPage` iterator,\n * returns a continuation token that can be used to begin paging from\n * that point later.\n * @param page An object from accessing `value` on the IteratorResult from a `byPage` iterator.\n * @returns The continuation token that can be passed into byPage() during future calls.\n */\nexport function getContinuationToken(page: unknown): string | undefined {\n if (typeof page !== \"object\" || page === null) {\n return undefined;\n }\n return pageMap.get(page)?.continuationToken;\n}\n\nexport function setContinuationToken(\n page: unknown,\n continuationToken: string | undefined\n): void {\n if (typeof page !== \"object\" || page === null || !continuationToken) {\n return;\n }\n const pageInfo = pageMap.get(page) ?? {};\n pageInfo.continuationToken = continuationToken;\n pageMap.set(page, pageInfo);\n}\n"]}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import * as coreClient from "@azure/core-client";
|
|
2
|
+
import * as coreAuth from "@azure/core-auth";
|
|
3
|
+
import { AzureBareMetalInstances, Operations, AzureBareMetalStorageInstances } from "./operationsInterfaces/index.js";
|
|
4
|
+
import { BareMetalInfrastructureClientOptionalParams } from "./models/index.js";
|
|
5
|
+
export declare class BareMetalInfrastructureClient extends coreClient.ServiceClient {
|
|
6
|
+
$host: string;
|
|
7
|
+
apiVersion: string;
|
|
8
|
+
subscriptionId: string;
|
|
9
|
+
/**
|
|
10
|
+
* Initializes a new instance of the BareMetalInfrastructureClient class.
|
|
11
|
+
* @param credentials Subscription credentials which uniquely identify client subscription.
|
|
12
|
+
* @param subscriptionId The ID of the target subscription. The value must be an UUID.
|
|
13
|
+
* @param options The parameter options
|
|
14
|
+
*/
|
|
15
|
+
constructor(credentials: coreAuth.TokenCredential, subscriptionId: string, options?: BareMetalInfrastructureClientOptionalParams);
|
|
16
|
+
/** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */
|
|
17
|
+
private addCustomApiVersionPolicy;
|
|
18
|
+
azureBareMetalInstances: AzureBareMetalInstances;
|
|
19
|
+
operations: Operations;
|
|
20
|
+
azureBareMetalStorageInstances: AzureBareMetalStorageInstances;
|
|
21
|
+
}
|
|
22
|
+
//# sourceMappingURL=bareMetalInfrastructureClient.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bareMetalInfrastructureClient.d.ts","sourceRoot":"","sources":["../../src/bareMetalInfrastructureClient.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AAOjD,OAAO,KAAK,QAAQ,MAAM,kBAAkB,CAAC;AAM7C,OAAO,EACL,uBAAuB,EACvB,UAAU,EACV,8BAA8B,EAC/B,MAAM,iCAAiC,CAAC;AACzC,OAAO,EAAE,2CAA2C,EAAE,MAAM,mBAAmB,CAAC;AAEhF,qBAAa,6BAA8B,SAAQ,UAAU,CAAC,aAAa;IACzE,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,MAAM,CAAC;IACnB,cAAc,EAAE,MAAM,CAAC;IAEvB;;;;;OAKG;gBAED,WAAW,EAAE,QAAQ,CAAC,eAAe,EACrC,cAAc,EAAE,MAAM,EACtB,OAAO,CAAC,EAAE,2CAA2C;IAgFvD,8GAA8G;IAC9G,OAAO,CAAC,yBAAyB;IA2BjC,uBAAuB,EAAE,uBAAuB,CAAC;IACjD,UAAU,EAAE,UAAU,CAAC;IACvB,8BAA8B,EAAE,8BAA8B,CAAC;CAChE"}
|
|
@@ -0,0 +1,110 @@
|
|
|
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 * as coreClient from "@azure/core-client";
|
|
9
|
+
import * as coreRestPipeline from "@azure/core-rest-pipeline";
|
|
10
|
+
import { AzureBareMetalInstancesImpl, OperationsImpl, AzureBareMetalStorageInstancesImpl } from "./operations/index.js";
|
|
11
|
+
export class BareMetalInfrastructureClient extends coreClient.ServiceClient {
|
|
12
|
+
$host;
|
|
13
|
+
apiVersion;
|
|
14
|
+
subscriptionId;
|
|
15
|
+
/**
|
|
16
|
+
* Initializes a new instance of the BareMetalInfrastructureClient class.
|
|
17
|
+
* @param credentials Subscription credentials which uniquely identify client subscription.
|
|
18
|
+
* @param subscriptionId The ID of the target subscription. The value must be an UUID.
|
|
19
|
+
* @param options The parameter options
|
|
20
|
+
*/
|
|
21
|
+
constructor(credentials, subscriptionId, options) {
|
|
22
|
+
if (credentials === undefined) {
|
|
23
|
+
throw new Error("'credentials' cannot be null");
|
|
24
|
+
}
|
|
25
|
+
if (subscriptionId === undefined) {
|
|
26
|
+
throw new Error("'subscriptionId' cannot be null");
|
|
27
|
+
}
|
|
28
|
+
// Initializing default values for options
|
|
29
|
+
if (!options) {
|
|
30
|
+
options = {};
|
|
31
|
+
}
|
|
32
|
+
const defaults = {
|
|
33
|
+
requestContentType: "application/json; charset=utf-8",
|
|
34
|
+
credential: credentials
|
|
35
|
+
};
|
|
36
|
+
const packageDetails = `azsdk-js-arm-baremetalinfrastructure/1.0.0-beta.3`;
|
|
37
|
+
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
38
|
+
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
39
|
+
: `${packageDetails}`;
|
|
40
|
+
const optionsWithDefaults = {
|
|
41
|
+
...defaults,
|
|
42
|
+
...options,
|
|
43
|
+
userAgentOptions: {
|
|
44
|
+
userAgentPrefix
|
|
45
|
+
},
|
|
46
|
+
endpoint: options.endpoint ?? options.baseUri ?? "https://management.azure.com"
|
|
47
|
+
};
|
|
48
|
+
super(optionsWithDefaults);
|
|
49
|
+
let bearerTokenAuthenticationPolicyFound = false;
|
|
50
|
+
if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {
|
|
51
|
+
const pipelinePolicies = options.pipeline.getOrderedPolicies();
|
|
52
|
+
bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
|
|
53
|
+
coreRestPipeline.bearerTokenAuthenticationPolicyName);
|
|
54
|
+
}
|
|
55
|
+
if (!options ||
|
|
56
|
+
!options.pipeline ||
|
|
57
|
+
options.pipeline.getOrderedPolicies().length == 0 ||
|
|
58
|
+
!bearerTokenAuthenticationPolicyFound) {
|
|
59
|
+
this.pipeline.removePolicy({
|
|
60
|
+
name: coreRestPipeline.bearerTokenAuthenticationPolicyName
|
|
61
|
+
});
|
|
62
|
+
this.pipeline.addPolicy(coreRestPipeline.bearerTokenAuthenticationPolicy({
|
|
63
|
+
credential: credentials,
|
|
64
|
+
scopes: optionsWithDefaults.credentialScopes ??
|
|
65
|
+
`${optionsWithDefaults.endpoint}/.default`,
|
|
66
|
+
challengeCallbacks: {
|
|
67
|
+
authorizeRequestOnChallenge: coreClient.authorizeRequestOnClaimChallenge
|
|
68
|
+
}
|
|
69
|
+
}));
|
|
70
|
+
}
|
|
71
|
+
// Parameter assignments
|
|
72
|
+
this.subscriptionId = subscriptionId;
|
|
73
|
+
// Assigning values to Constant parameters
|
|
74
|
+
this.$host = options.$host || "https://management.azure.com";
|
|
75
|
+
this.apiVersion = options.apiVersion || "2023-08-04-preview";
|
|
76
|
+
this.azureBareMetalInstances = new AzureBareMetalInstancesImpl(this);
|
|
77
|
+
this.operations = new OperationsImpl(this);
|
|
78
|
+
this.azureBareMetalStorageInstances = new AzureBareMetalStorageInstancesImpl(this);
|
|
79
|
+
this.addCustomApiVersionPolicy(options.apiVersion);
|
|
80
|
+
}
|
|
81
|
+
/** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */
|
|
82
|
+
addCustomApiVersionPolicy(apiVersion) {
|
|
83
|
+
if (!apiVersion) {
|
|
84
|
+
return;
|
|
85
|
+
}
|
|
86
|
+
const apiVersionPolicy = {
|
|
87
|
+
name: "CustomApiVersionPolicy",
|
|
88
|
+
async sendRequest(request, next) {
|
|
89
|
+
const param = request.url.split("?");
|
|
90
|
+
if (param.length > 1) {
|
|
91
|
+
const newParams = param[1].split("&").map((item) => {
|
|
92
|
+
if (item.indexOf("api-version") > -1) {
|
|
93
|
+
return "api-version=" + apiVersion;
|
|
94
|
+
}
|
|
95
|
+
else {
|
|
96
|
+
return item;
|
|
97
|
+
}
|
|
98
|
+
});
|
|
99
|
+
request.url = param[0] + "?" + newParams.join("&");
|
|
100
|
+
}
|
|
101
|
+
return next(request);
|
|
102
|
+
}
|
|
103
|
+
};
|
|
104
|
+
this.pipeline.addPolicy(apiVersionPolicy);
|
|
105
|
+
}
|
|
106
|
+
azureBareMetalInstances;
|
|
107
|
+
operations;
|
|
108
|
+
azureBareMetalStorageInstances;
|
|
109
|
+
}
|
|
110
|
+
//# sourceMappingURL=bareMetalInfrastructureClient.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bareMetalInfrastructureClient.js","sourceRoot":"","sources":["../../src/bareMetalInfrastructureClient.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,gBAAgB,MAAM,2BAA2B,CAAC;AAO9D,OAAO,EACL,2BAA2B,EAC3B,cAAc,EACd,kCAAkC,EACnC,MAAM,uBAAuB,CAAC;AAQ/B,MAAM,OAAO,6BAA8B,SAAQ,UAAU,CAAC,aAAa;IACzE,KAAK,CAAS;IACd,UAAU,CAAS;IACnB,cAAc,CAAS;IAEvB;;;;;OAKG;IACH,YACE,WAAqC,EACrC,cAAsB,EACtB,OAAqD;QAErD,IAAI,WAAW,KAAK,SAAS,EAAE,CAAC;YAC9B,MAAM,IAAI,KAAK,CAAC,8BAA8B,CAAC,CAAC;QAClD,CAAC;QACD,IAAI,cAAc,KAAK,SAAS,EAAE,CAAC;YACjC,MAAM,IAAI,KAAK,CAAC,iCAAiC,CAAC,CAAC;QACrD,CAAC;QAED,0CAA0C;QAC1C,IAAI,CAAC,OAAO,EAAE,CAAC;YACb,OAAO,GAAG,EAAE,CAAC;QACf,CAAC;QACD,MAAM,QAAQ,GAAgD;YAC5D,kBAAkB,EAAE,iCAAiC;YACrD,UAAU,EAAE,WAAW;SACxB,CAAC;QAEF,MAAM,cAAc,GAAG,mDAAmD,CAAC;QAC3E,MAAM,eAAe,GACnB,OAAO,CAAC,gBAAgB,IAAI,OAAO,CAAC,gBAAgB,CAAC,eAAe;YAClE,CAAC,CAAC,GAAG,OAAO,CAAC,gBAAgB,CAAC,eAAe,IAAI,cAAc,EAAE;YACjE,CAAC,CAAC,GAAG,cAAc,EAAE,CAAC;QAE1B,MAAM,mBAAmB,GAAG;YAC1B,GAAG,QAAQ;YACX,GAAG,OAAO;YACV,gBAAgB,EAAE;gBAChB,eAAe;aAChB;YACD,QAAQ,EACN,OAAO,CAAC,QAAQ,IAAI,OAAO,CAAC,OAAO,IAAI,8BAA8B;SACxE,CAAC;QACF,KAAK,CAAC,mBAAmB,CAAC,CAAC;QAE3B,IAAI,oCAAoC,GAAY,KAAK,CAAC;QAC1D,IAAI,OAAO,EAAE,QAAQ,IAAI,OAAO,CAAC,QAAQ,CAAC,kBAAkB,EAAE,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;YAC1E,MAAM,gBAAgB,GAAsC,OAAO,CAAC,QAAQ,CAAC,kBAAkB,EAAE,CAAC;YAClG,oCAAoC,GAAG,gBAAgB,CAAC,IAAI,CAC1D,CAAC,cAAc,EAAE,EAAE,CACjB,cAAc,CAAC,IAAI;gBACnB,gBAAgB,CAAC,mCAAmC,CACvD,CAAC;QACJ,CAAC;QACD,IACE,CAAC,OAAO;YACR,CAAC,OAAO,CAAC,QAAQ;YACjB,OAAO,CAAC,QAAQ,CAAC,kBAAkB,EAAE,CAAC,MAAM,IAAI,CAAC;YACjD,CAAC,oCAAoC,EACrC,CAAC;YACD,IAAI,CAAC,QAAQ,CAAC,YAAY,CAAC;gBACzB,IAAI,EAAE,gBAAgB,CAAC,mCAAmC;aAC3D,CAAC,CAAC;YACH,IAAI,CAAC,QAAQ,CAAC,SAAS,CACrB,gBAAgB,CAAC,+BAA+B,CAAC;gBAC/C,UAAU,EAAE,WAAW;gBACvB,MAAM,EACJ,mBAAmB,CAAC,gBAAgB;oBACpC,GAAG,mBAAmB,CAAC,QAAQ,WAAW;gBAC5C,kBAAkB,EAAE;oBAClB,2BAA2B,EACzB,UAAU,CAAC,gCAAgC;iBAC9C;aACF,CAAC,CACH,CAAC;QACJ,CAAC;QACD,wBAAwB;QACxB,IAAI,CAAC,cAAc,GAAG,cAAc,CAAC;QAErC,0CAA0C;QAC1C,IAAI,CAAC,KAAK,GAAG,OAAO,CAAC,KAAK,IAAI,8BAA8B,CAAC;QAC7D,IAAI,CAAC,UAAU,GAAG,OAAO,CAAC,UAAU,IAAI,oBAAoB,CAAC;QAC7D,IAAI,CAAC,uBAAuB,GAAG,IAAI,2BAA2B,CAAC,IAAI,CAAC,CAAC;QACrE,IAAI,CAAC,UAAU,GAAG,IAAI,cAAc,CAAC,IAAI,CAAC,CAAC;QAC3C,IAAI,CAAC,8BAA8B,GAAG,IAAI,kCAAkC,CAC1E,IAAI,CACL,CAAC;QACF,IAAI,CAAC,yBAAyB,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC;IACrD,CAAC;IAED,8GAA8G;IACtG,yBAAyB,CAAC,UAAmB;QACnD,IAAI,CAAC,UAAU,EAAE,CAAC;YAChB,OAAO;QACT,CAAC;QACD,MAAM,gBAAgB,GAAG;YACvB,IAAI,EAAE,wBAAwB;YAC9B,KAAK,CAAC,WAAW,CACf,OAAwB,EACxB,IAAiB;gBAEjB,MAAM,KAAK,GAAG,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;gBACrC,IAAI,KAAK,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;oBACrB,MAAM,SAAS,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE;wBACjD,IAAI,IAAI,CAAC,OAAO,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC;4BACrC,OAAO,cAAc,GAAG,UAAU,CAAC;wBACrC,CAAC;6BAAM,CAAC;4BACN,OAAO,IAAI,CAAC;wBACd,CAAC;oBACH,CAAC,CAAC,CAAC;oBACH,OAAO,CAAC,GAAG,GAAG,KAAK,CAAC,CAAC,CAAC,GAAG,GAAG,GAAG,SAAS,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;gBACrD,CAAC;gBACD,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC;YACvB,CAAC;SACF,CAAC;QACF,IAAI,CAAC,QAAQ,CAAC,SAAS,CAAC,gBAAgB,CAAC,CAAC;IAC5C,CAAC;IAED,uBAAuB,CAA0B;IACjD,UAAU,CAAa;IACvB,8BAA8B,CAAiC;CAChE","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 * as coreClient from \"@azure/core-client\";\nimport * as coreRestPipeline from \"@azure/core-rest-pipeline\";\nimport {\n PipelineRequest,\n PipelineResponse,\n SendRequest\n} from \"@azure/core-rest-pipeline\";\nimport * as coreAuth from \"@azure/core-auth\";\nimport {\n AzureBareMetalInstancesImpl,\n OperationsImpl,\n AzureBareMetalStorageInstancesImpl\n} from \"./operations/index.js\";\nimport {\n AzureBareMetalInstances,\n Operations,\n AzureBareMetalStorageInstances\n} from \"./operationsInterfaces/index.js\";\nimport { BareMetalInfrastructureClientOptionalParams } from \"./models/index.js\";\n\nexport class BareMetalInfrastructureClient extends coreClient.ServiceClient {\n $host: string;\n apiVersion: string;\n subscriptionId: string;\n\n /**\n * Initializes a new instance of the BareMetalInfrastructureClient class.\n * @param credentials Subscription credentials which uniquely identify client subscription.\n * @param subscriptionId The ID of the target subscription. The value must be an UUID.\n * @param options The parameter options\n */\n constructor(\n credentials: coreAuth.TokenCredential,\n subscriptionId: string,\n options?: BareMetalInfrastructureClientOptionalParams\n ) {\n if (credentials === undefined) {\n throw new Error(\"'credentials' cannot be null\");\n }\n if (subscriptionId === undefined) {\n throw new Error(\"'subscriptionId' cannot be null\");\n }\n\n // Initializing default values for options\n if (!options) {\n options = {};\n }\n const defaults: BareMetalInfrastructureClientOptionalParams = {\n requestContentType: \"application/json; charset=utf-8\",\n credential: credentials\n };\n\n const packageDetails = `azsdk-js-arm-baremetalinfrastructure/1.0.0-beta.3`;\n const userAgentPrefix =\n options.userAgentOptions && options.userAgentOptions.userAgentPrefix\n ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`\n : `${packageDetails}`;\n\n const optionsWithDefaults = {\n ...defaults,\n ...options,\n userAgentOptions: {\n userAgentPrefix\n },\n endpoint:\n options.endpoint ?? options.baseUri ?? \"https://management.azure.com\"\n };\n super(optionsWithDefaults);\n\n let bearerTokenAuthenticationPolicyFound: boolean = false;\n if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {\n const pipelinePolicies: coreRestPipeline.PipelinePolicy[] = options.pipeline.getOrderedPolicies();\n bearerTokenAuthenticationPolicyFound = pipelinePolicies.some(\n (pipelinePolicy) =>\n pipelinePolicy.name ===\n coreRestPipeline.bearerTokenAuthenticationPolicyName\n );\n }\n if (\n !options ||\n !options.pipeline ||\n options.pipeline.getOrderedPolicies().length == 0 ||\n !bearerTokenAuthenticationPolicyFound\n ) {\n this.pipeline.removePolicy({\n name: coreRestPipeline.bearerTokenAuthenticationPolicyName\n });\n this.pipeline.addPolicy(\n coreRestPipeline.bearerTokenAuthenticationPolicy({\n credential: credentials,\n scopes:\n optionsWithDefaults.credentialScopes ??\n `${optionsWithDefaults.endpoint}/.default`,\n challengeCallbacks: {\n authorizeRequestOnChallenge:\n coreClient.authorizeRequestOnClaimChallenge\n }\n })\n );\n }\n // Parameter assignments\n this.subscriptionId = subscriptionId;\n\n // Assigning values to Constant parameters\n this.$host = options.$host || \"https://management.azure.com\";\n this.apiVersion = options.apiVersion || \"2023-08-04-preview\";\n this.azureBareMetalInstances = new AzureBareMetalInstancesImpl(this);\n this.operations = new OperationsImpl(this);\n this.azureBareMetalStorageInstances = new AzureBareMetalStorageInstancesImpl(\n this\n );\n this.addCustomApiVersionPolicy(options.apiVersion);\n }\n\n /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */\n private addCustomApiVersionPolicy(apiVersion?: string) {\n if (!apiVersion) {\n return;\n }\n const apiVersionPolicy = {\n name: \"CustomApiVersionPolicy\",\n async sendRequest(\n request: PipelineRequest,\n next: SendRequest\n ): Promise<PipelineResponse> {\n const param = request.url.split(\"?\");\n if (param.length > 1) {\n const newParams = param[1].split(\"&\").map((item) => {\n if (item.indexOf(\"api-version\") > -1) {\n return \"api-version=\" + apiVersion;\n } else {\n return item;\n }\n });\n request.url = param[0] + \"?\" + newParams.join(\"&\");\n }\n return next(request);\n }\n };\n this.pipeline.addPolicy(apiVersionPolicy);\n }\n\n azureBareMetalInstances: AzureBareMetalInstances;\n operations: Operations;\n azureBareMetalStorageInstances: AzureBareMetalStorageInstances;\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AACzD,cAAc,mBAAmB,CAAC;AAClC,OAAO,EAAE,6BAA6B,EAAE,MAAM,oCAAoC,CAAC;AACnF,cAAc,iCAAiC,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
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
|
+
/// <reference lib="esnext.asynciterable" />
|
|
9
|
+
export { getContinuationToken } from "./pagingHelper.js";
|
|
10
|
+
export * from "./models/index.js";
|
|
11
|
+
export { BareMetalInfrastructureClient } from "./bareMetalInfrastructureClient.js";
|
|
12
|
+
export * from "./operationsInterfaces/index.js";
|
|
13
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,4CAA4C;AAC5C,OAAO,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AACzD,cAAc,mBAAmB,CAAC;AAClC,OAAO,EAAE,6BAA6B,EAAE,MAAM,oCAAoC,CAAC;AACnF,cAAc,iCAAiC,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\n/// <reference lib=\"esnext.asynciterable\" />\nexport { getContinuationToken } from \"./pagingHelper.js\";\nexport * from \"./models/index.js\";\nexport { BareMetalInfrastructureClient } from \"./bareMetalInfrastructureClient.js\";\nexport * from \"./operationsInterfaces/index.js\";\n"]}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { LongRunningOperation, LroResponse } from "@azure/core-lro";
|
|
2
|
+
export declare function createLroSpec<T>(inputs: {
|
|
3
|
+
sendOperationFn: (args: any, spec: any) => Promise<LroResponse<T>>;
|
|
4
|
+
args: Record<string, unknown>;
|
|
5
|
+
spec: {
|
|
6
|
+
readonly requestBody?: unknown;
|
|
7
|
+
readonly path?: string;
|
|
8
|
+
readonly httpMethod: string;
|
|
9
|
+
} & Record<string, any>;
|
|
10
|
+
}): LongRunningOperation<T>;
|
|
11
|
+
//# sourceMappingURL=lroImpl.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lroImpl.d.ts","sourceRoot":"","sources":["../../src/lroImpl.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,oBAAoB,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAEpE,wBAAgB,aAAa,CAAC,CAAC,EAAE,MAAM,EAAE;IACvC,eAAe,EAAE,CAAC,IAAI,EAAE,GAAG,EAAE,IAAI,EAAE,GAAG,KAAK,OAAO,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC;IACnE,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC9B,IAAI,EAAE;QACJ,QAAQ,CAAC,WAAW,CAAC,EAAE,OAAO,CAAC;QAC/B,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;QACvB,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;KAC7B,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CACzB,GAAG,oBAAoB,CAAC,CAAC,CAAC,CAmB1B"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export function createLroSpec(inputs) {
|
|
2
|
+
const { args, spec, sendOperationFn } = inputs;
|
|
3
|
+
return {
|
|
4
|
+
requestMethod: spec.httpMethod,
|
|
5
|
+
requestPath: spec.path,
|
|
6
|
+
sendInitialRequest: () => sendOperationFn(args, spec),
|
|
7
|
+
sendPollRequest: (path, options) => {
|
|
8
|
+
const { requestBody, ...restSpec } = spec;
|
|
9
|
+
return sendOperationFn(args, {
|
|
10
|
+
...restSpec,
|
|
11
|
+
httpMethod: "GET",
|
|
12
|
+
path,
|
|
13
|
+
abortSignal: options?.abortSignal
|
|
14
|
+
});
|
|
15
|
+
}
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
//# sourceMappingURL=lroImpl.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lroImpl.js","sourceRoot":"","sources":["../../src/lroImpl.ts"],"names":[],"mappings":"AAUA,MAAM,UAAU,aAAa,CAAI,MAQhC;IACC,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,eAAe,EAAE,GAAG,MAAM,CAAC;IAC/C,OAAO;QACL,aAAa,EAAE,IAAI,CAAC,UAAU;QAC9B,WAAW,EAAE,IAAI,CAAC,IAAK;QACvB,kBAAkB,EAAE,GAAG,EAAE,CAAC,eAAe,CAAC,IAAI,EAAE,IAAI,CAAC;QACrD,eAAe,EAAE,CACf,IAAY,EACZ,OAA2C,EAC3C,EAAE;YACF,MAAM,EAAE,WAAW,EAAE,GAAG,QAAQ,EAAE,GAAG,IAAI,CAAC;YAC1C,OAAO,eAAe,CAAC,IAAI,EAAE;gBAC3B,GAAG,QAAQ;gBACX,UAAU,EAAE,KAAK;gBACjB,IAAI;gBACJ,WAAW,EAAE,OAAO,EAAE,WAAW;aAClC,CAAC,CAAC;QACL,CAAC;KACF,CAAC;AACJ,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 */\nimport { AbortSignalLike } from \"@azure/abort-controller\";\nimport { LongRunningOperation, LroResponse } from \"@azure/core-lro\";\n\nexport function createLroSpec<T>(inputs: {\n sendOperationFn: (args: any, spec: any) => Promise<LroResponse<T>>;\n args: Record<string, unknown>;\n spec: {\n readonly requestBody?: unknown;\n readonly path?: string;\n readonly httpMethod: string;\n } & Record<string, any>;\n}): LongRunningOperation<T> {\n const { args, spec, sendOperationFn } = inputs;\n return {\n requestMethod: spec.httpMethod,\n requestPath: spec.path!,\n sendInitialRequest: () => sendOperationFn(args, spec),\n sendPollRequest: (\n path: string,\n options?: { abortSignal?: AbortSignalLike }\n ) => {\n const { requestBody, ...restSpec } = spec;\n return sendOperationFn(args, {\n ...restSpec,\n httpMethod: \"GET\",\n path,\n abortSignal: options?.abortSignal\n });\n }\n };\n}\n"]}
|