@azure/arm-containerinstance 9.2.0-beta.1 → 9.2.0-beta.2
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 +11 -1
- package/LICENSE +4 -4
- package/README.md +26 -19
- package/{dist-esm/src → dist/browser}/containerInstanceManagementClient.d.ts +2 -2
- package/dist/browser/containerInstanceManagementClient.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/containerInstanceManagementClient.js +36 -24
- package/dist/browser/containerInstanceManagementClient.js.map +1 -0
- package/dist/browser/index.d.ts +5 -0
- package/{dist-esm/src → dist/browser}/index.d.ts.map +1 -1
- package/{dist-esm/src → dist/browser}/index.js +4 -4
- package/dist/browser/index.js.map +1 -0
- package/{dist-esm/src → dist/browser}/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 +8 -2
- 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/containerGroupProfileOperations.d.ts +3 -3
- package/dist/browser/operations/containerGroupProfileOperations.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/containerGroupProfileOperations.js +26 -43
- package/dist/browser/operations/containerGroupProfileOperations.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/containerGroupProfiles.d.ts +3 -3
- package/dist/browser/operations/containerGroupProfiles.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/containerGroupProfiles.js +48 -82
- package/dist/browser/operations/containerGroupProfiles.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/containerGroups.d.ts +3 -3
- package/dist/browser/operations/containerGroups.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/containerGroups.js +213 -243
- package/dist/browser/operations/containerGroups.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/containers.d.ts +3 -3
- package/dist/browser/operations/containers.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/containers.js +3 -2
- package/dist/browser/operations/containers.js.map +1 -0
- package/dist/browser/operations/index.d.ts +8 -0
- package/dist/browser/operations/index.d.ts.map +1 -0
- package/dist/browser/operations/index.js +15 -0
- package/dist/browser/operations/index.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/location.d.ts +3 -3
- package/dist/browser/operations/location.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/location.js +57 -108
- package/dist/browser/operations/location.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 +26 -43
- package/dist/browser/operations/operations.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/subnetServiceAssociationLink.d.ts +3 -3
- package/dist/browser/operations/subnetServiceAssociationLink.d.ts.map +1 -0
- package/dist/browser/operations/subnetServiceAssociationLink.js +109 -0
- package/dist/browser/operations/subnetServiceAssociationLink.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operationsInterfaces/containerGroupProfileOperations.d.ts +1 -1
- package/dist/browser/operationsInterfaces/containerGroupProfileOperations.d.ts.map +1 -0
- package/dist/browser/operationsInterfaces/containerGroupProfileOperations.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operationsInterfaces/containerGroupProfiles.d.ts +1 -1
- package/dist/browser/operationsInterfaces/containerGroupProfiles.d.ts.map +1 -0
- package/dist/browser/operationsInterfaces/containerGroupProfiles.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operationsInterfaces/containerGroups.d.ts +1 -1
- package/dist/browser/operationsInterfaces/containerGroups.d.ts.map +1 -0
- package/dist/browser/operationsInterfaces/containerGroups.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operationsInterfaces/containers.d.ts +1 -1
- package/dist/browser/operationsInterfaces/containers.d.ts.map +1 -0
- package/dist/browser/operationsInterfaces/containers.js.map +1 -0
- package/dist/browser/operationsInterfaces/index.d.ts +8 -0
- package/dist/browser/operationsInterfaces/index.d.ts.map +1 -0
- package/dist/browser/operationsInterfaces/index.js +15 -0
- package/dist/browser/operationsInterfaces/index.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operationsInterfaces/location.d.ts +1 -1
- package/dist/browser/operationsInterfaces/location.d.ts.map +1 -0
- package/dist/browser/operationsInterfaces/location.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operationsInterfaces/operations.d.ts +1 -1
- package/{dist-esm/src → dist/browser}/operationsInterfaces/operations.d.ts.map +1 -1
- package/dist/browser/operationsInterfaces/operations.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operationsInterfaces/subnetServiceAssociationLink.d.ts +1 -1
- package/dist/browser/operationsInterfaces/subnetServiceAssociationLink.d.ts.map +1 -0
- package/dist/browser/operationsInterfaces/subnetServiceAssociationLink.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/containerInstanceManagementClient.d.ts +26 -0
- package/dist/commonjs/containerInstanceManagementClient.d.ts.map +1 -0
- package/dist/commonjs/containerInstanceManagementClient.js +124 -0
- package/dist/commonjs/containerInstanceManagementClient.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-containerinstance.d.ts → dist/commonjs/models/index.d.ts} +1242 -1711
- package/dist/commonjs/models/index.d.ts.map +1 -0
- package/dist/commonjs/models/index.js +119 -0
- package/dist/commonjs/models/index.js.map +1 -0
- package/dist/commonjs/models/mappers.d.ts +66 -0
- package/dist/commonjs/models/mappers.d.ts.map +1 -0
- package/dist/commonjs/models/mappers.js +2246 -0
- package/dist/commonjs/models/mappers.js.map +1 -0
- package/dist/commonjs/models/parameters.d.ts +23 -0
- package/dist/commonjs/models/parameters.d.ts.map +1 -0
- package/dist/commonjs/models/parameters.js +207 -0
- package/dist/commonjs/models/parameters.js.map +1 -0
- package/dist/commonjs/operations/containerGroupProfileOperations.d.ts +55 -0
- package/dist/commonjs/operations/containerGroupProfileOperations.d.ts.map +1 -0
- package/dist/commonjs/operations/containerGroupProfileOperations.js +179 -0
- package/dist/commonjs/operations/containerGroupProfileOperations.js.map +1 -0
- package/dist/commonjs/operations/containerGroupProfiles.d.ts +95 -0
- package/dist/commonjs/operations/containerGroupProfiles.d.ts.map +1 -0
- package/dist/commonjs/operations/containerGroupProfiles.js +372 -0
- package/dist/commonjs/operations/containerGroupProfiles.js.map +1 -0
- package/dist/commonjs/operations/containerGroups.d.ts +159 -0
- package/dist/commonjs/operations/containerGroups.d.ts.map +1 -0
- package/dist/commonjs/operations/containerGroups.js +702 -0
- package/dist/commonjs/operations/containerGroups.js.map +1 -0
- package/dist/commonjs/operations/containers.d.ts +40 -0
- package/dist/commonjs/operations/containers.d.ts.map +1 -0
- package/dist/commonjs/operations/containers.js +140 -0
- package/dist/commonjs/operations/containers.js.map +1 -0
- package/dist/commonjs/operations/index.d.ts +8 -0
- package/dist/commonjs/operations/index.d.ts.map +1 -0
- package/dist/commonjs/operations/index.js +18 -0
- package/dist/commonjs/operations/index.js.map +1 -0
- package/dist/commonjs/operations/location.d.ts +70 -0
- package/dist/commonjs/operations/location.d.ts.map +1 -0
- package/dist/commonjs/operations/location.js +295 -0
- package/dist/commonjs/operations/location.js.map +1 -0
- package/dist/commonjs/operations/operations.d.ts +32 -0
- package/dist/commonjs/operations/operations.d.ts.map +1 -0
- package/dist/commonjs/operations/operations.js +121 -0
- package/dist/commonjs/operations/operations.js.map +1 -0
- package/dist/commonjs/operations/subnetServiceAssociationLink.d.ts +32 -0
- package/dist/commonjs/operations/subnetServiceAssociationLink.d.ts.map +1 -0
- package/dist/commonjs/operations/subnetServiceAssociationLink.js +114 -0
- package/dist/commonjs/operations/subnetServiceAssociationLink.js.map +1 -0
- package/dist/commonjs/operationsInterfaces/containerGroupProfileOperations.d.ts +27 -0
- package/dist/commonjs/operationsInterfaces/containerGroupProfileOperations.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/containerGroupProfileOperations.js +10 -0
- package/dist/commonjs/operationsInterfaces/containerGroupProfileOperations.js.map +1 -0
- package/dist/commonjs/operationsInterfaces/containerGroupProfiles.d.ts +55 -0
- package/dist/commonjs/operationsInterfaces/containerGroupProfiles.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/containerGroupProfiles.js +10 -0
- package/dist/commonjs/operationsInterfaces/containerGroupProfiles.js.map +1 -0
- package/dist/commonjs/operationsInterfaces/containerGroups.d.ts +119 -0
- package/dist/commonjs/operationsInterfaces/containerGroups.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/containerGroups.js +10 -0
- package/dist/commonjs/operationsInterfaces/containerGroups.js.map +1 -0
- package/dist/commonjs/operationsInterfaces/containers.d.ts +32 -0
- package/dist/commonjs/operationsInterfaces/containers.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/containers.js +10 -0
- package/dist/commonjs/operationsInterfaces/containers.js.map +1 -0
- package/dist/commonjs/operationsInterfaces/index.d.ts +8 -0
- package/dist/commonjs/operationsInterfaces/index.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/index.js +18 -0
- package/dist/commonjs/operationsInterfaces/index.js.map +1 -0
- package/dist/commonjs/operationsInterfaces/location.d.ts +24 -0
- package/dist/commonjs/operationsInterfaces/location.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/location.js +10 -0
- package/dist/commonjs/operationsInterfaces/location.js.map +1 -0
- package/dist/commonjs/operationsInterfaces/operations.d.ts +11 -0
- package/dist/commonjs/operationsInterfaces/operations.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/operations.js +10 -0
- package/dist/commonjs/operationsInterfaces/operations.js.map +1 -0
- package/dist/commonjs/operationsInterfaces/subnetServiceAssociationLink.d.ts +24 -0
- package/dist/commonjs/operationsInterfaces/subnetServiceAssociationLink.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/subnetServiceAssociationLink.js +10 -0
- package/dist/commonjs/operationsInterfaces/subnetServiceAssociationLink.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/containerInstanceManagementClient.d.ts +26 -0
- package/dist/esm/containerInstanceManagementClient.d.ts.map +1 -0
- package/dist/esm/containerInstanceManagementClient.js +119 -0
- package/dist/esm/containerInstanceManagementClient.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 +1242 -0
- package/dist/esm/models/index.d.ts.map +1 -0
- package/dist/esm/models/index.js +116 -0
- package/dist/esm/models/index.js.map +1 -0
- package/dist/esm/models/mappers.d.ts +66 -0
- package/dist/esm/models/mappers.d.ts.map +1 -0
- package/dist/esm/models/mappers.js +2242 -0
- package/dist/esm/models/mappers.js.map +1 -0
- package/dist/esm/models/parameters.d.ts +23 -0
- package/dist/esm/models/parameters.d.ts.map +1 -0
- package/dist/esm/models/parameters.js +204 -0
- package/dist/esm/models/parameters.js.map +1 -0
- package/dist/esm/operations/containerGroupProfileOperations.d.ts +55 -0
- package/dist/esm/operations/containerGroupProfileOperations.d.ts.map +1 -0
- package/dist/esm/operations/containerGroupProfileOperations.js +174 -0
- package/dist/esm/operations/containerGroupProfileOperations.js.map +1 -0
- package/dist/esm/operations/containerGroupProfiles.d.ts +95 -0
- package/dist/esm/operations/containerGroupProfiles.d.ts.map +1 -0
- package/dist/esm/operations/containerGroupProfiles.js +367 -0
- package/dist/esm/operations/containerGroupProfiles.js.map +1 -0
- package/dist/esm/operations/containerGroups.d.ts +159 -0
- package/dist/esm/operations/containerGroups.d.ts.map +1 -0
- package/dist/esm/operations/containerGroups.js +697 -0
- package/dist/esm/operations/containerGroups.js.map +1 -0
- package/dist/esm/operations/containers.d.ts +40 -0
- package/dist/esm/operations/containers.d.ts.map +1 -0
- package/dist/esm/operations/containers.js +135 -0
- package/dist/esm/operations/containers.js.map +1 -0
- package/dist/esm/operations/index.d.ts +8 -0
- package/dist/esm/operations/index.d.ts.map +1 -0
- package/dist/esm/operations/index.js +15 -0
- package/dist/esm/operations/index.js.map +1 -0
- package/dist/esm/operations/location.d.ts +70 -0
- package/dist/esm/operations/location.d.ts.map +1 -0
- package/dist/esm/operations/location.js +290 -0
- package/dist/esm/operations/location.js.map +1 -0
- package/dist/esm/operations/operations.d.ts +32 -0
- package/dist/esm/operations/operations.d.ts.map +1 -0
- package/dist/esm/operations/operations.js +116 -0
- package/dist/esm/operations/operations.js.map +1 -0
- package/dist/esm/operations/subnetServiceAssociationLink.d.ts +32 -0
- package/dist/esm/operations/subnetServiceAssociationLink.d.ts.map +1 -0
- package/dist/esm/operations/subnetServiceAssociationLink.js +109 -0
- package/dist/esm/operations/subnetServiceAssociationLink.js.map +1 -0
- package/dist/esm/operationsInterfaces/containerGroupProfileOperations.d.ts +27 -0
- package/dist/esm/operationsInterfaces/containerGroupProfileOperations.d.ts.map +1 -0
- package/dist/esm/operationsInterfaces/containerGroupProfileOperations.js +9 -0
- package/dist/esm/operationsInterfaces/containerGroupProfileOperations.js.map +1 -0
- package/dist/esm/operationsInterfaces/containerGroupProfiles.d.ts +55 -0
- package/dist/esm/operationsInterfaces/containerGroupProfiles.d.ts.map +1 -0
- package/dist/esm/operationsInterfaces/containerGroupProfiles.js +9 -0
- package/dist/esm/operationsInterfaces/containerGroupProfiles.js.map +1 -0
- package/dist/esm/operationsInterfaces/containerGroups.d.ts +119 -0
- package/dist/esm/operationsInterfaces/containerGroups.d.ts.map +1 -0
- package/dist/esm/operationsInterfaces/containerGroups.js +9 -0
- package/dist/esm/operationsInterfaces/containerGroups.js.map +1 -0
- package/dist/esm/operationsInterfaces/containers.d.ts +32 -0
- package/dist/esm/operationsInterfaces/containers.d.ts.map +1 -0
- package/dist/esm/operationsInterfaces/containers.js +9 -0
- package/dist/esm/operationsInterfaces/containers.js.map +1 -0
- package/dist/esm/operationsInterfaces/index.d.ts +8 -0
- package/dist/esm/operationsInterfaces/index.d.ts.map +1 -0
- package/dist/esm/operationsInterfaces/index.js +15 -0
- package/dist/esm/operationsInterfaces/index.js.map +1 -0
- package/dist/esm/operationsInterfaces/location.d.ts +24 -0
- package/dist/esm/operationsInterfaces/location.d.ts.map +1 -0
- package/dist/esm/operationsInterfaces/location.js +9 -0
- package/dist/esm/operationsInterfaces/location.js.map +1 -0
- package/dist/esm/operationsInterfaces/operations.d.ts +11 -0
- package/dist/esm/operationsInterfaces/operations.d.ts.map +1 -0
- package/dist/esm/operationsInterfaces/operations.js +9 -0
- package/dist/esm/operationsInterfaces/operations.js.map +1 -0
- package/dist/esm/operationsInterfaces/subnetServiceAssociationLink.d.ts +24 -0
- package/dist/esm/operationsInterfaces/subnetServiceAssociationLink.d.ts.map +1 -0
- package/dist/esm/operationsInterfaces/subnetServiceAssociationLink.js +9 -0
- package/dist/esm/operationsInterfaces/subnetServiceAssociationLink.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/containerInstanceManagementClient.d.ts +26 -0
- package/dist/react-native/containerInstanceManagementClient.d.ts.map +1 -0
- package/dist/react-native/containerInstanceManagementClient.js +119 -0
- package/dist/react-native/containerInstanceManagementClient.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 +1242 -0
- package/dist/react-native/models/index.d.ts.map +1 -0
- package/dist/react-native/models/index.js +116 -0
- package/dist/react-native/models/index.js.map +1 -0
- package/dist/react-native/models/mappers.d.ts +66 -0
- package/dist/react-native/models/mappers.d.ts.map +1 -0
- package/dist/react-native/models/mappers.js +2242 -0
- package/dist/react-native/models/mappers.js.map +1 -0
- package/dist/react-native/models/parameters.d.ts +23 -0
- package/dist/react-native/models/parameters.d.ts.map +1 -0
- package/dist/react-native/models/parameters.js +204 -0
- package/dist/react-native/models/parameters.js.map +1 -0
- package/dist/react-native/operations/containerGroupProfileOperations.d.ts +55 -0
- package/dist/react-native/operations/containerGroupProfileOperations.d.ts.map +1 -0
- package/dist/react-native/operations/containerGroupProfileOperations.js +174 -0
- package/dist/react-native/operations/containerGroupProfileOperations.js.map +1 -0
- package/dist/react-native/operations/containerGroupProfiles.d.ts +95 -0
- package/dist/react-native/operations/containerGroupProfiles.d.ts.map +1 -0
- package/dist/react-native/operations/containerGroupProfiles.js +367 -0
- package/dist/react-native/operations/containerGroupProfiles.js.map +1 -0
- package/dist/react-native/operations/containerGroups.d.ts +159 -0
- package/dist/react-native/operations/containerGroups.d.ts.map +1 -0
- package/dist/react-native/operations/containerGroups.js +697 -0
- package/dist/react-native/operations/containerGroups.js.map +1 -0
- package/dist/react-native/operations/containers.d.ts +40 -0
- package/dist/react-native/operations/containers.d.ts.map +1 -0
- package/dist/react-native/operations/containers.js +135 -0
- package/dist/react-native/operations/containers.js.map +1 -0
- package/dist/react-native/operations/index.d.ts +8 -0
- package/dist/react-native/operations/index.d.ts.map +1 -0
- package/dist/react-native/operations/index.js +15 -0
- package/dist/react-native/operations/index.js.map +1 -0
- package/dist/react-native/operations/location.d.ts +70 -0
- package/dist/react-native/operations/location.d.ts.map +1 -0
- package/dist/react-native/operations/location.js +290 -0
- package/dist/react-native/operations/location.js.map +1 -0
- package/dist/react-native/operations/operations.d.ts +32 -0
- package/dist/react-native/operations/operations.d.ts.map +1 -0
- package/dist/react-native/operations/operations.js +116 -0
- package/dist/react-native/operations/operations.js.map +1 -0
- package/dist/react-native/operations/subnetServiceAssociationLink.d.ts +32 -0
- package/dist/react-native/operations/subnetServiceAssociationLink.d.ts.map +1 -0
- package/dist/react-native/operations/subnetServiceAssociationLink.js +109 -0
- package/dist/react-native/operations/subnetServiceAssociationLink.js.map +1 -0
- package/dist/react-native/operationsInterfaces/containerGroupProfileOperations.d.ts +27 -0
- package/dist/react-native/operationsInterfaces/containerGroupProfileOperations.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/containerGroupProfileOperations.js +9 -0
- package/dist/react-native/operationsInterfaces/containerGroupProfileOperations.js.map +1 -0
- package/dist/react-native/operationsInterfaces/containerGroupProfiles.d.ts +55 -0
- package/dist/react-native/operationsInterfaces/containerGroupProfiles.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/containerGroupProfiles.js +9 -0
- package/dist/react-native/operationsInterfaces/containerGroupProfiles.js.map +1 -0
- package/dist/react-native/operationsInterfaces/containerGroups.d.ts +119 -0
- package/dist/react-native/operationsInterfaces/containerGroups.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/containerGroups.js +9 -0
- package/dist/react-native/operationsInterfaces/containerGroups.js.map +1 -0
- package/dist/react-native/operationsInterfaces/containers.d.ts +32 -0
- package/dist/react-native/operationsInterfaces/containers.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/containers.js +9 -0
- package/dist/react-native/operationsInterfaces/containers.js.map +1 -0
- package/dist/react-native/operationsInterfaces/index.d.ts +8 -0
- package/dist/react-native/operationsInterfaces/index.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/index.js +15 -0
- package/dist/react-native/operationsInterfaces/index.js.map +1 -0
- package/dist/react-native/operationsInterfaces/location.d.ts +24 -0
- package/dist/react-native/operationsInterfaces/location.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/location.js +9 -0
- package/dist/react-native/operationsInterfaces/location.js.map +1 -0
- package/dist/react-native/operationsInterfaces/operations.d.ts +11 -0
- package/dist/react-native/operationsInterfaces/operations.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/operations.js +9 -0
- package/dist/react-native/operationsInterfaces/operations.js.map +1 -0
- package/dist/react-native/operationsInterfaces/subnetServiceAssociationLink.d.ts +24 -0
- package/dist/react-native/operationsInterfaces/subnetServiceAssociationLink.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/subnetServiceAssociationLink.js +9 -0
- package/dist/react-native/operationsInterfaces/subnetServiceAssociationLink.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 +86 -69
- package/review/{arm-containerinstance.api.md → arm-containerinstance-node.api.md} +2 -3
- package/dist/index.js +0 -4809
- 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/containerGroupProfileGetByRevisionNumberSample.d.ts +0 -2
- package/dist-esm/samples-dev/containerGroupProfileGetByRevisionNumberSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/containerGroupProfileGetByRevisionNumberSample.js +0 -40
- package/dist-esm/samples-dev/containerGroupProfileGetByRevisionNumberSample.js.map +0 -1
- package/dist-esm/samples-dev/containerGroupProfileListAllRevisionsSample.d.ts +0 -2
- package/dist-esm/samples-dev/containerGroupProfileListAllRevisionsSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/containerGroupProfileListAllRevisionsSample.js +0 -55
- package/dist-esm/samples-dev/containerGroupProfileListAllRevisionsSample.js.map +0 -1
- package/dist-esm/samples-dev/containerGroupProfilesCreateOrUpdateSample.d.ts +0 -2
- package/dist-esm/samples-dev/containerGroupProfilesCreateOrUpdateSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/containerGroupProfilesCreateOrUpdateSample.js +0 -260
- package/dist-esm/samples-dev/containerGroupProfilesCreateOrUpdateSample.js.map +0 -1
- package/dist-esm/samples-dev/containerGroupProfilesDeleteSample.d.ts +0 -2
- package/dist-esm/samples-dev/containerGroupProfilesDeleteSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/containerGroupProfilesDeleteSample.js +0 -39
- package/dist-esm/samples-dev/containerGroupProfilesDeleteSample.js.map +0 -1
- package/dist-esm/samples-dev/containerGroupProfilesGetSample.d.ts +0 -2
- package/dist-esm/samples-dev/containerGroupProfilesGetSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/containerGroupProfilesGetSample.js +0 -58
- package/dist-esm/samples-dev/containerGroupProfilesGetSample.js.map +0 -1
- package/dist-esm/samples-dev/containerGroupProfilesListByResourceGroupSample.d.ts +0 -2
- package/dist-esm/samples-dev/containerGroupProfilesListByResourceGroupSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/containerGroupProfilesListByResourceGroupSample.js +0 -54
- package/dist-esm/samples-dev/containerGroupProfilesListByResourceGroupSample.js.map +0 -1
- package/dist-esm/samples-dev/containerGroupProfilesListSample.d.ts +0 -2
- package/dist-esm/samples-dev/containerGroupProfilesListSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/containerGroupProfilesListSample.js +0 -53
- package/dist-esm/samples-dev/containerGroupProfilesListSample.js.map +0 -1
- package/dist-esm/samples-dev/containerGroupProfilesPatchSample.d.ts +0 -2
- package/dist-esm/samples-dev/containerGroupProfilesPatchSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/containerGroupProfilesPatchSample.js +0 -42
- package/dist-esm/samples-dev/containerGroupProfilesPatchSample.js.map +0 -1
- package/dist-esm/samples-dev/containerGroupsCreateOrUpdateSample.d.ts +0 -2
- package/dist-esm/samples-dev/containerGroupsCreateOrUpdateSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/containerGroupsCreateOrUpdateSample.js +0 -320
- package/dist-esm/samples-dev/containerGroupsCreateOrUpdateSample.js.map +0 -1
- package/dist-esm/samples-dev/containerGroupsDeleteSample.d.ts +0 -2
- package/dist-esm/samples-dev/containerGroupsDeleteSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/containerGroupsDeleteSample.js +0 -39
- package/dist-esm/samples-dev/containerGroupsDeleteSample.js.map +0 -1
- package/dist-esm/samples-dev/containerGroupsGetSample.d.ts +0 -2
- package/dist-esm/samples-dev/containerGroupsGetSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/containerGroupsGetSample.js +0 -77
- package/dist-esm/samples-dev/containerGroupsGetSample.js.map +0 -1
- package/dist-esm/samples-dev/containerGroupsListByResourceGroupSample.d.ts +0 -2
- package/dist-esm/samples-dev/containerGroupsListByResourceGroupSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/containerGroupsListByResourceGroupSample.js +0 -54
- package/dist-esm/samples-dev/containerGroupsListByResourceGroupSample.js.map +0 -1
- package/dist-esm/samples-dev/containerGroupsListSample.d.ts +0 -2
- package/dist-esm/samples-dev/containerGroupsListSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/containerGroupsListSample.js +0 -53
- package/dist-esm/samples-dev/containerGroupsListSample.js.map +0 -1
- package/dist-esm/samples-dev/containerGroupsRestartSample.d.ts +0 -2
- package/dist-esm/samples-dev/containerGroupsRestartSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/containerGroupsRestartSample.js +0 -39
- package/dist-esm/samples-dev/containerGroupsRestartSample.js.map +0 -1
- package/dist-esm/samples-dev/containerGroupsStartSample.d.ts +0 -2
- package/dist-esm/samples-dev/containerGroupsStartSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/containerGroupsStartSample.js +0 -39
- package/dist-esm/samples-dev/containerGroupsStartSample.js.map +0 -1
- package/dist-esm/samples-dev/containerGroupsStopSample.d.ts +0 -2
- package/dist-esm/samples-dev/containerGroupsStopSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/containerGroupsStopSample.js +0 -39
- package/dist-esm/samples-dev/containerGroupsStopSample.js.map +0 -1
- package/dist-esm/samples-dev/containerGroupsUpdateSample.d.ts +0 -2
- package/dist-esm/samples-dev/containerGroupsUpdateSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/containerGroupsUpdateSample.js +0 -42
- package/dist-esm/samples-dev/containerGroupsUpdateSample.js.map +0 -1
- package/dist-esm/samples-dev/containersAttachSample.d.ts +0 -2
- package/dist-esm/samples-dev/containersAttachSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/containersAttachSample.js +0 -40
- package/dist-esm/samples-dev/containersAttachSample.js.map +0 -1
- package/dist-esm/samples-dev/containersExecuteCommandSample.d.ts +0 -2
- package/dist-esm/samples-dev/containersExecuteCommandSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/containersExecuteCommandSample.js +0 -44
- package/dist-esm/samples-dev/containersExecuteCommandSample.js.map +0 -1
- package/dist-esm/samples-dev/containersListLogsSample.d.ts +0 -2
- package/dist-esm/samples-dev/containersListLogsSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/containersListLogsSample.js +0 -42
- package/dist-esm/samples-dev/containersListLogsSample.js.map +0 -1
- package/dist-esm/samples-dev/locationListCachedImagesSample.d.ts +0 -2
- package/dist-esm/samples-dev/locationListCachedImagesSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/locationListCachedImagesSample.js +0 -54
- package/dist-esm/samples-dev/locationListCachedImagesSample.js.map +0 -1
- package/dist-esm/samples-dev/locationListCapabilitiesSample.d.ts +0 -2
- package/dist-esm/samples-dev/locationListCapabilitiesSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/locationListCapabilitiesSample.js +0 -54
- package/dist-esm/samples-dev/locationListCapabilitiesSample.js.map +0 -1
- package/dist-esm/samples-dev/locationListUsageSample.d.ts +0 -2
- package/dist-esm/samples-dev/locationListUsageSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/locationListUsageSample.js +0 -54
- package/dist-esm/samples-dev/locationListUsageSample.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/samples-dev/subnetServiceAssociationLinkDeleteSample.d.ts +0 -2
- package/dist-esm/samples-dev/subnetServiceAssociationLinkDeleteSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/subnetServiceAssociationLinkDeleteSample.js +0 -40
- package/dist-esm/samples-dev/subnetServiceAssociationLinkDeleteSample.js.map +0 -1
- package/dist-esm/src/containerInstanceManagementClient.d.ts.map +0 -1
- package/dist-esm/src/containerInstanceManagementClient.js.map +0 -1
- package/dist-esm/src/index.d.ts +0 -5
- package/dist-esm/src/index.js.map +0 -1
- package/dist-esm/src/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/containerGroupProfileOperations.d.ts.map +0 -1
- package/dist-esm/src/operations/containerGroupProfileOperations.js.map +0 -1
- package/dist-esm/src/operations/containerGroupProfiles.d.ts.map +0 -1
- package/dist-esm/src/operations/containerGroupProfiles.js.map +0 -1
- package/dist-esm/src/operations/containerGroups.d.ts.map +0 -1
- package/dist-esm/src/operations/containerGroups.js.map +0 -1
- package/dist-esm/src/operations/containers.d.ts.map +0 -1
- package/dist-esm/src/operations/containers.js.map +0 -1
- package/dist-esm/src/operations/index.d.ts +0 -8
- package/dist-esm/src/operations/index.d.ts.map +0 -1
- package/dist-esm/src/operations/index.js +0 -15
- package/dist-esm/src/operations/index.js.map +0 -1
- package/dist-esm/src/operations/location.d.ts.map +0 -1
- package/dist-esm/src/operations/location.js.map +0 -1
- package/dist-esm/src/operations/operations.d.ts.map +0 -1
- package/dist-esm/src/operations/operations.js.map +0 -1
- package/dist-esm/src/operations/subnetServiceAssociationLink.d.ts.map +0 -1
- package/dist-esm/src/operations/subnetServiceAssociationLink.js +0 -108
- package/dist-esm/src/operations/subnetServiceAssociationLink.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/containerGroupProfileOperations.d.ts.map +0 -1
- package/dist-esm/src/operationsInterfaces/containerGroupProfileOperations.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/containerGroupProfiles.d.ts.map +0 -1
- package/dist-esm/src/operationsInterfaces/containerGroupProfiles.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/containerGroups.d.ts.map +0 -1
- package/dist-esm/src/operationsInterfaces/containerGroups.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/containers.d.ts.map +0 -1
- package/dist-esm/src/operationsInterfaces/containers.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/index.d.ts +0 -8
- package/dist-esm/src/operationsInterfaces/index.d.ts.map +0 -1
- package/dist-esm/src/operationsInterfaces/index.js +0 -15
- package/dist-esm/src/operationsInterfaces/index.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/location.d.ts.map +0 -1
- package/dist-esm/src/operationsInterfaces/location.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/operations.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/subnetServiceAssociationLink.d.ts.map +0 -1
- package/dist-esm/src/operationsInterfaces/subnetServiceAssociationLink.js.map +0 -1
- package/dist-esm/src/pagingHelper.js.map +0 -1
- package/dist-esm/test/containerinstance_examples.d.ts +0 -4
- package/dist-esm/test/containerinstance_examples.d.ts.map +0 -1
- package/dist-esm/test/containerinstance_examples.js +0 -159
- package/dist-esm/test/containerinstance_examples.js.map +0 -1
- package/src/containerInstanceManagementClient.ts +0 -172
- package/src/lroImpl.ts +0 -42
- package/src/models/index.ts +0 -1410
- package/src/models/mappers.ts +0 -2311
- package/src/models/parameters.ts +0 -236
- package/src/operations/containerGroupProfileOperations.ts +0 -255
- package/src/operations/containerGroupProfiles.ts +0 -485
- package/src/operations/containerGroups.ts +0 -944
- package/src/operations/containers.ts +0 -177
- package/src/operations/index.ts +0 -15
- package/src/operations/location.ts +0 -401
- package/src/operations/operations.ts +0 -149
- package/src/operations/subnetServiceAssociationLink.ts +0 -149
- package/src/operationsInterfaces/containerGroupProfileOperations.ts +0 -50
- package/src/operationsInterfaces/containerGroupProfiles.ts +0 -99
- package/src/operationsInterfaces/containerGroups.ts +0 -212
- package/src/operationsInterfaces/containers.ts +0 -64
- package/src/operationsInterfaces/index.ts +0 -15
- package/src/operationsInterfaces/location.ts +0 -49
- package/src/operationsInterfaces/operations.ts +0 -22
- package/src/operationsInterfaces/subnetServiceAssociationLink.ts +0 -42
- 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/containerGroupProfileOperations.js +0 -0
- /package/{dist-esm/src → dist/browser}/operationsInterfaces/containerGroupProfiles.js +0 -0
- /package/{dist-esm/src → dist/browser}/operationsInterfaces/containerGroups.js +0 -0
- /package/{dist-esm/src → dist/browser}/operationsInterfaces/containers.js +0 -0
- /package/{dist-esm/src → dist/browser}/operationsInterfaces/location.js +0 -0
- /package/{dist-esm/src → dist/browser}/operationsInterfaces/operations.js +0 -0
- /package/{dist-esm/src → dist/browser}/operationsInterfaces/subnetServiceAssociationLink.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
|
@@ -0,0 +1,290 @@
|
|
|
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
|
+
/// <reference lib="esnext.asynciterable" />
|
|
13
|
+
/** Class containing Location operations. */
|
|
14
|
+
export class LocationImpl {
|
|
15
|
+
client;
|
|
16
|
+
/**
|
|
17
|
+
* Initialize a new instance of the class Location class.
|
|
18
|
+
* @param client Reference to the service client
|
|
19
|
+
*/
|
|
20
|
+
constructor(client) {
|
|
21
|
+
this.client = client;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Get the usage for a subscription
|
|
25
|
+
* @param location The name of the Azure region.
|
|
26
|
+
* @param options The options parameters.
|
|
27
|
+
*/
|
|
28
|
+
listUsage(location, options) {
|
|
29
|
+
const iter = this.listUsagePagingAll(location, options);
|
|
30
|
+
return {
|
|
31
|
+
next() {
|
|
32
|
+
return iter.next();
|
|
33
|
+
},
|
|
34
|
+
[Symbol.asyncIterator]() {
|
|
35
|
+
return this;
|
|
36
|
+
},
|
|
37
|
+
byPage: (settings) => {
|
|
38
|
+
if (settings?.maxPageSize) {
|
|
39
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
40
|
+
}
|
|
41
|
+
return this.listUsagePagingPage(location, options, settings);
|
|
42
|
+
},
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
async *listUsagePagingPage(location, options, _settings) {
|
|
46
|
+
let result;
|
|
47
|
+
result = await this._listUsage(location, options);
|
|
48
|
+
yield result.value || [];
|
|
49
|
+
}
|
|
50
|
+
async *listUsagePagingAll(location, options) {
|
|
51
|
+
for await (const page of this.listUsagePagingPage(location, options)) {
|
|
52
|
+
yield* page;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* Get the list of cached images on specific OS type for a subscription in a region.
|
|
57
|
+
* @param location The name of the Azure region.
|
|
58
|
+
* @param options The options parameters.
|
|
59
|
+
*/
|
|
60
|
+
listCachedImages(location, options) {
|
|
61
|
+
const iter = this.listCachedImagesPagingAll(location, options);
|
|
62
|
+
return {
|
|
63
|
+
next() {
|
|
64
|
+
return iter.next();
|
|
65
|
+
},
|
|
66
|
+
[Symbol.asyncIterator]() {
|
|
67
|
+
return this;
|
|
68
|
+
},
|
|
69
|
+
byPage: (settings) => {
|
|
70
|
+
if (settings?.maxPageSize) {
|
|
71
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
72
|
+
}
|
|
73
|
+
return this.listCachedImagesPagingPage(location, options, settings);
|
|
74
|
+
},
|
|
75
|
+
};
|
|
76
|
+
}
|
|
77
|
+
async *listCachedImagesPagingPage(location, options, settings) {
|
|
78
|
+
let result;
|
|
79
|
+
let continuationToken = settings?.continuationToken;
|
|
80
|
+
if (!continuationToken) {
|
|
81
|
+
result = await this._listCachedImages(location, options);
|
|
82
|
+
let page = result.value || [];
|
|
83
|
+
continuationToken = result.nextLink;
|
|
84
|
+
setContinuationToken(page, continuationToken);
|
|
85
|
+
yield page;
|
|
86
|
+
}
|
|
87
|
+
while (continuationToken) {
|
|
88
|
+
result = await this._listCachedImagesNext(location, continuationToken, options);
|
|
89
|
+
continuationToken = result.nextLink;
|
|
90
|
+
let page = result.value || [];
|
|
91
|
+
setContinuationToken(page, continuationToken);
|
|
92
|
+
yield page;
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
async *listCachedImagesPagingAll(location, options) {
|
|
96
|
+
for await (const page of this.listCachedImagesPagingPage(location, options)) {
|
|
97
|
+
yield* page;
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
/**
|
|
101
|
+
* Get the list of CPU/memory/GPU capabilities of a region.
|
|
102
|
+
* @param location The name of the Azure region.
|
|
103
|
+
* @param options The options parameters.
|
|
104
|
+
*/
|
|
105
|
+
listCapabilities(location, options) {
|
|
106
|
+
const iter = this.listCapabilitiesPagingAll(location, options);
|
|
107
|
+
return {
|
|
108
|
+
next() {
|
|
109
|
+
return iter.next();
|
|
110
|
+
},
|
|
111
|
+
[Symbol.asyncIterator]() {
|
|
112
|
+
return this;
|
|
113
|
+
},
|
|
114
|
+
byPage: (settings) => {
|
|
115
|
+
if (settings?.maxPageSize) {
|
|
116
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
117
|
+
}
|
|
118
|
+
return this.listCapabilitiesPagingPage(location, options, settings);
|
|
119
|
+
},
|
|
120
|
+
};
|
|
121
|
+
}
|
|
122
|
+
async *listCapabilitiesPagingPage(location, options, settings) {
|
|
123
|
+
let result;
|
|
124
|
+
let continuationToken = settings?.continuationToken;
|
|
125
|
+
if (!continuationToken) {
|
|
126
|
+
result = await this._listCapabilities(location, options);
|
|
127
|
+
let page = result.value || [];
|
|
128
|
+
continuationToken = result.nextLink;
|
|
129
|
+
setContinuationToken(page, continuationToken);
|
|
130
|
+
yield page;
|
|
131
|
+
}
|
|
132
|
+
while (continuationToken) {
|
|
133
|
+
result = await this._listCapabilitiesNext(location, continuationToken, options);
|
|
134
|
+
continuationToken = result.nextLink;
|
|
135
|
+
let page = result.value || [];
|
|
136
|
+
setContinuationToken(page, continuationToken);
|
|
137
|
+
yield page;
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
async *listCapabilitiesPagingAll(location, options) {
|
|
141
|
+
for await (const page of this.listCapabilitiesPagingPage(location, options)) {
|
|
142
|
+
yield* page;
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
/**
|
|
146
|
+
* Get the usage for a subscription
|
|
147
|
+
* @param location The name of the Azure region.
|
|
148
|
+
* @param options The options parameters.
|
|
149
|
+
*/
|
|
150
|
+
_listUsage(location, options) {
|
|
151
|
+
return this.client.sendOperationRequest({ location, options }, listUsageOperationSpec);
|
|
152
|
+
}
|
|
153
|
+
/**
|
|
154
|
+
* Get the list of cached images on specific OS type for a subscription in a region.
|
|
155
|
+
* @param location The name of the Azure region.
|
|
156
|
+
* @param options The options parameters.
|
|
157
|
+
*/
|
|
158
|
+
_listCachedImages(location, options) {
|
|
159
|
+
return this.client.sendOperationRequest({ location, options }, listCachedImagesOperationSpec);
|
|
160
|
+
}
|
|
161
|
+
/**
|
|
162
|
+
* Get the list of CPU/memory/GPU capabilities of a region.
|
|
163
|
+
* @param location The name of the Azure region.
|
|
164
|
+
* @param options The options parameters.
|
|
165
|
+
*/
|
|
166
|
+
_listCapabilities(location, options) {
|
|
167
|
+
return this.client.sendOperationRequest({ location, options }, listCapabilitiesOperationSpec);
|
|
168
|
+
}
|
|
169
|
+
/**
|
|
170
|
+
* ListCachedImagesNext
|
|
171
|
+
* @param location The name of the Azure region.
|
|
172
|
+
* @param nextLink The nextLink from the previous successful call to the ListCachedImages method.
|
|
173
|
+
* @param options The options parameters.
|
|
174
|
+
*/
|
|
175
|
+
_listCachedImagesNext(location, nextLink, options) {
|
|
176
|
+
return this.client.sendOperationRequest({ location, nextLink, options }, listCachedImagesNextOperationSpec);
|
|
177
|
+
}
|
|
178
|
+
/**
|
|
179
|
+
* ListCapabilitiesNext
|
|
180
|
+
* @param location The name of the Azure region.
|
|
181
|
+
* @param nextLink The nextLink from the previous successful call to the ListCapabilities method.
|
|
182
|
+
* @param options The options parameters.
|
|
183
|
+
*/
|
|
184
|
+
_listCapabilitiesNext(location, nextLink, options) {
|
|
185
|
+
return this.client.sendOperationRequest({ location, nextLink, options }, listCapabilitiesNextOperationSpec);
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
// Operation Specifications
|
|
189
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
190
|
+
const listUsageOperationSpec = {
|
|
191
|
+
path: "/subscriptions/{subscriptionId}/providers/Microsoft.ContainerInstance/locations/{location}/usages",
|
|
192
|
+
httpMethod: "GET",
|
|
193
|
+
responses: {
|
|
194
|
+
200: {
|
|
195
|
+
bodyMapper: Mappers.UsageListResult,
|
|
196
|
+
},
|
|
197
|
+
default: {
|
|
198
|
+
bodyMapper: Mappers.CloudError,
|
|
199
|
+
},
|
|
200
|
+
},
|
|
201
|
+
queryParameters: [Parameters.apiVersion],
|
|
202
|
+
urlParameters: [
|
|
203
|
+
Parameters.$host,
|
|
204
|
+
Parameters.subscriptionId,
|
|
205
|
+
Parameters.location,
|
|
206
|
+
],
|
|
207
|
+
headerParameters: [Parameters.accept],
|
|
208
|
+
serializer,
|
|
209
|
+
};
|
|
210
|
+
const listCachedImagesOperationSpec = {
|
|
211
|
+
path: "/subscriptions/{subscriptionId}/providers/Microsoft.ContainerInstance/locations/{location}/cachedImages",
|
|
212
|
+
httpMethod: "GET",
|
|
213
|
+
responses: {
|
|
214
|
+
200: {
|
|
215
|
+
bodyMapper: Mappers.CachedImagesListResult,
|
|
216
|
+
},
|
|
217
|
+
default: {
|
|
218
|
+
bodyMapper: Mappers.CloudError,
|
|
219
|
+
},
|
|
220
|
+
},
|
|
221
|
+
queryParameters: [Parameters.apiVersion],
|
|
222
|
+
urlParameters: [
|
|
223
|
+
Parameters.$host,
|
|
224
|
+
Parameters.subscriptionId,
|
|
225
|
+
Parameters.location,
|
|
226
|
+
],
|
|
227
|
+
headerParameters: [Parameters.accept],
|
|
228
|
+
serializer,
|
|
229
|
+
};
|
|
230
|
+
const listCapabilitiesOperationSpec = {
|
|
231
|
+
path: "/subscriptions/{subscriptionId}/providers/Microsoft.ContainerInstance/locations/{location}/capabilities",
|
|
232
|
+
httpMethod: "GET",
|
|
233
|
+
responses: {
|
|
234
|
+
200: {
|
|
235
|
+
bodyMapper: Mappers.CapabilitiesListResult,
|
|
236
|
+
},
|
|
237
|
+
default: {
|
|
238
|
+
bodyMapper: Mappers.CloudError,
|
|
239
|
+
},
|
|
240
|
+
},
|
|
241
|
+
queryParameters: [Parameters.apiVersion],
|
|
242
|
+
urlParameters: [
|
|
243
|
+
Parameters.$host,
|
|
244
|
+
Parameters.subscriptionId,
|
|
245
|
+
Parameters.location,
|
|
246
|
+
],
|
|
247
|
+
headerParameters: [Parameters.accept],
|
|
248
|
+
serializer,
|
|
249
|
+
};
|
|
250
|
+
const listCachedImagesNextOperationSpec = {
|
|
251
|
+
path: "{nextLink}",
|
|
252
|
+
httpMethod: "GET",
|
|
253
|
+
responses: {
|
|
254
|
+
200: {
|
|
255
|
+
bodyMapper: Mappers.CachedImagesListResult,
|
|
256
|
+
},
|
|
257
|
+
default: {
|
|
258
|
+
bodyMapper: Mappers.CloudError,
|
|
259
|
+
},
|
|
260
|
+
},
|
|
261
|
+
urlParameters: [
|
|
262
|
+
Parameters.$host,
|
|
263
|
+
Parameters.subscriptionId,
|
|
264
|
+
Parameters.nextLink,
|
|
265
|
+
Parameters.location,
|
|
266
|
+
],
|
|
267
|
+
headerParameters: [Parameters.accept],
|
|
268
|
+
serializer,
|
|
269
|
+
};
|
|
270
|
+
const listCapabilitiesNextOperationSpec = {
|
|
271
|
+
path: "{nextLink}",
|
|
272
|
+
httpMethod: "GET",
|
|
273
|
+
responses: {
|
|
274
|
+
200: {
|
|
275
|
+
bodyMapper: Mappers.CapabilitiesListResult,
|
|
276
|
+
},
|
|
277
|
+
default: {
|
|
278
|
+
bodyMapper: Mappers.CloudError,
|
|
279
|
+
},
|
|
280
|
+
},
|
|
281
|
+
urlParameters: [
|
|
282
|
+
Parameters.$host,
|
|
283
|
+
Parameters.subscriptionId,
|
|
284
|
+
Parameters.nextLink,
|
|
285
|
+
Parameters.location,
|
|
286
|
+
],
|
|
287
|
+
headerParameters: [Parameters.accept],
|
|
288
|
+
serializer,
|
|
289
|
+
};
|
|
290
|
+
//# sourceMappingURL=location.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"location.js","sourceRoot":"","sources":["../../../src/operations/location.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;AAkBtD,4CAA4C;AAC5C,4CAA4C;AAC5C,MAAM,OAAO,YAAY;IACN,MAAM,CAAoC;IAE3D;;;OAGG;IACH,YAAY,MAAyC;QACnD,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;OAIG;IACI,SAAS,CACd,QAAgB,EAChB,OAAyC;QAEzC,MAAM,IAAI,GAAG,IAAI,CAAC,kBAAkB,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC;QACxD,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;o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AAC;AACF,MAAM,iCAAiC,GAA6B;IAClE,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,sBAAsB;SAC3C;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,QAAQ;KACpB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,iCAAiC,GAA6B;IAClE,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,sBAAsB;SAC3C;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,QAAQ;QACnB,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 { Location } 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 { ContainerInstanceManagementClient } from \"../containerInstanceManagementClient.js\";\nimport {\n Usage,\n LocationListUsageOptionalParams,\n LocationListUsageResponse,\n CachedImages,\n LocationListCachedImagesNextOptionalParams,\n LocationListCachedImagesOptionalParams,\n LocationListCachedImagesResponse,\n Capabilities,\n LocationListCapabilitiesNextOptionalParams,\n LocationListCapabilitiesOptionalParams,\n LocationListCapabilitiesResponse,\n LocationListCachedImagesNextResponse,\n LocationListCapabilitiesNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing Location operations. */\nexport class LocationImpl implements Location {\n private readonly client: ContainerInstanceManagementClient;\n\n /**\n * Initialize a new instance of the class Location class.\n * @param client Reference to the service client\n */\n constructor(client: ContainerInstanceManagementClient) {\n this.client = client;\n }\n\n /**\n * Get the usage for a subscription\n * @param location The name of the Azure region.\n * @param options The options parameters.\n */\n public listUsage(\n location: string,\n options?: LocationListUsageOptionalParams,\n ): PagedAsyncIterableIterator<Usage> {\n const iter = this.listUsagePagingAll(location, 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.listUsagePagingPage(location, options, settings);\n },\n };\n }\n\n private async *listUsagePagingPage(\n location: string,\n options?: LocationListUsageOptionalParams,\n _settings?: PageSettings,\n ): AsyncIterableIterator<Usage[]> {\n let result: LocationListUsageResponse;\n result = await this._listUsage(location, options);\n yield result.value || [];\n }\n\n private async *listUsagePagingAll(\n location: string,\n options?: LocationListUsageOptionalParams,\n ): AsyncIterableIterator<Usage> {\n for await (const page of this.listUsagePagingPage(location, options)) {\n yield* page;\n }\n }\n\n /**\n * Get the list of cached images on specific OS type for a subscription in a region.\n * @param location The name of the Azure region.\n * @param options The options parameters.\n */\n public listCachedImages(\n location: string,\n options?: LocationListCachedImagesOptionalParams,\n ): PagedAsyncIterableIterator<CachedImages> {\n const iter = this.listCachedImagesPagingAll(location, 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.listCachedImagesPagingPage(location, options, settings);\n },\n };\n }\n\n private async *listCachedImagesPagingPage(\n location: string,\n options?: LocationListCachedImagesOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<CachedImages[]> {\n let result: LocationListCachedImagesResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listCachedImages(location, 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._listCachedImagesNext(\n location,\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 *listCachedImagesPagingAll(\n location: string,\n options?: LocationListCachedImagesOptionalParams,\n ): AsyncIterableIterator<CachedImages> {\n for await (const page of this.listCachedImagesPagingPage(\n location,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Get the list of CPU/memory/GPU capabilities of a region.\n * @param location The name of the Azure region.\n * @param options The options parameters.\n */\n public listCapabilities(\n location: string,\n options?: LocationListCapabilitiesOptionalParams,\n ): PagedAsyncIterableIterator<Capabilities> {\n const iter = this.listCapabilitiesPagingAll(location, 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.listCapabilitiesPagingPage(location, options, settings);\n },\n };\n }\n\n private async *listCapabilitiesPagingPage(\n location: string,\n options?: LocationListCapabilitiesOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<Capabilities[]> {\n let result: LocationListCapabilitiesResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listCapabilities(location, 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._listCapabilitiesNext(\n location,\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 *listCapabilitiesPagingAll(\n location: string,\n options?: LocationListCapabilitiesOptionalParams,\n ): AsyncIterableIterator<Capabilities> {\n for await (const page of this.listCapabilitiesPagingPage(\n location,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Get the usage for a subscription\n * @param location The name of the Azure region.\n * @param options The options parameters.\n */\n private _listUsage(\n location: string,\n options?: LocationListUsageOptionalParams,\n ): Promise<LocationListUsageResponse> {\n return this.client.sendOperationRequest(\n { location, options },\n listUsageOperationSpec,\n );\n }\n\n /**\n * Get the list of cached images on specific OS type for a subscription in a region.\n * @param location The name of the Azure region.\n * @param options The options parameters.\n */\n private _listCachedImages(\n location: string,\n options?: LocationListCachedImagesOptionalParams,\n ): Promise<LocationListCachedImagesResponse> {\n return this.client.sendOperationRequest(\n { location, options },\n listCachedImagesOperationSpec,\n );\n }\n\n /**\n * Get the list of CPU/memory/GPU capabilities of a region.\n * @param location The name of the Azure region.\n * @param options The options parameters.\n */\n private _listCapabilities(\n location: string,\n options?: LocationListCapabilitiesOptionalParams,\n ): Promise<LocationListCapabilitiesResponse> {\n return this.client.sendOperationRequest(\n { location, options },\n listCapabilitiesOperationSpec,\n );\n }\n\n /**\n * ListCachedImagesNext\n * @param location The name of the Azure region.\n * @param nextLink The nextLink from the previous successful call to the ListCachedImages method.\n * @param options The options parameters.\n */\n private _listCachedImagesNext(\n location: string,\n nextLink: string,\n options?: LocationListCachedImagesNextOptionalParams,\n ): Promise<LocationListCachedImagesNextResponse> {\n return this.client.sendOperationRequest(\n { location, nextLink, options },\n listCachedImagesNextOperationSpec,\n );\n }\n\n /**\n * ListCapabilitiesNext\n * @param location The name of the Azure region.\n * @param nextLink The nextLink from the previous successful call to the ListCapabilities method.\n * @param options The options parameters.\n */\n private _listCapabilitiesNext(\n location: string,\n nextLink: string,\n options?: LocationListCapabilitiesNextOptionalParams,\n ): Promise<LocationListCapabilitiesNextResponse> {\n return this.client.sendOperationRequest(\n { location, nextLink, options },\n listCapabilitiesNextOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listUsageOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/providers/Microsoft.ContainerInstance/locations/{location}/usages\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.UsageListResult,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.location,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listCachedImagesOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/providers/Microsoft.ContainerInstance/locations/{location}/cachedImages\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.CachedImagesListResult,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.location,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listCapabilitiesOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/providers/Microsoft.ContainerInstance/locations/{location}/capabilities\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.CapabilitiesListResult,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.location,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listCachedImagesNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.CachedImagesListResult,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.nextLink,\n Parameters.location,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listCapabilitiesNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.CapabilitiesListResult,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.nextLink,\n Parameters.location,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
2
|
+
import { Operations } from "../operationsInterfaces/index.js";
|
|
3
|
+
import { ContainerInstanceManagementClient } from "../containerInstanceManagementClient.js";
|
|
4
|
+
import { Operation, OperationsListOptionalParams } from "../models/index.js";
|
|
5
|
+
/** Class containing Operations operations. */
|
|
6
|
+
export declare class OperationsImpl implements Operations {
|
|
7
|
+
private readonly client;
|
|
8
|
+
/**
|
|
9
|
+
* Initialize a new instance of the class Operations class.
|
|
10
|
+
* @param client Reference to the service client
|
|
11
|
+
*/
|
|
12
|
+
constructor(client: ContainerInstanceManagementClient);
|
|
13
|
+
/**
|
|
14
|
+
* List the operations for Azure Container Instance service.
|
|
15
|
+
* @param options The options parameters.
|
|
16
|
+
*/
|
|
17
|
+
list(options?: OperationsListOptionalParams): PagedAsyncIterableIterator<Operation>;
|
|
18
|
+
private listPagingPage;
|
|
19
|
+
private listPagingAll;
|
|
20
|
+
/**
|
|
21
|
+
* List the operations for Azure Container Instance service.
|
|
22
|
+
* @param options The options parameters.
|
|
23
|
+
*/
|
|
24
|
+
private _list;
|
|
25
|
+
/**
|
|
26
|
+
* ListNext
|
|
27
|
+
* @param nextLink The nextLink from the previous successful call to the List method.
|
|
28
|
+
* @param options The options parameters.
|
|
29
|
+
*/
|
|
30
|
+
private _listNext;
|
|
31
|
+
}
|
|
32
|
+
//# sourceMappingURL=operations.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"operations.d.ts","sourceRoot":"","sources":["../../../src/operations/operations.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAgB,MAAM,oBAAoB,CAAC;AAE9E,OAAO,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAC;AAI9D,OAAO,EAAE,iCAAiC,EAAE,MAAM,yCAAyC,CAAC;AAC5F,OAAO,EACL,SAAS,EAET,4BAA4B,EAG7B,MAAM,oBAAoB,CAAC;AAG5B,8CAA8C;AAC9C,qBAAa,cAAe,YAAW,UAAU;IAC/C,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAoC;IAE3D;;;OAGG;gBACS,MAAM,EAAE,iCAAiC;IAIrD;;;OAGG;IACI,IAAI,CACT,OAAO,CAAC,EAAE,4BAA4B,GACrC,0BAA0B,CAAC,SAAS,CAAC;YAkBzB,cAAc;YAsBd,aAAa;IAQ5B;;;OAGG;IACH,OAAO,CAAC,KAAK;IAMb;;;;OAIG;IACH,OAAO,CAAC,SAAS;CASlB"}
|
|
@@ -0,0 +1,116 @@
|
|
|
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
|
+
/// <reference lib="esnext.asynciterable" />
|
|
13
|
+
/** Class containing Operations operations. */
|
|
14
|
+
export class OperationsImpl {
|
|
15
|
+
client;
|
|
16
|
+
/**
|
|
17
|
+
* Initialize a new instance of the class Operations class.
|
|
18
|
+
* @param client Reference to the service client
|
|
19
|
+
*/
|
|
20
|
+
constructor(client) {
|
|
21
|
+
this.client = client;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* List the operations for Azure Container Instance service.
|
|
25
|
+
* @param options The options parameters.
|
|
26
|
+
*/
|
|
27
|
+
list(options) {
|
|
28
|
+
const iter = this.listPagingAll(options);
|
|
29
|
+
return {
|
|
30
|
+
next() {
|
|
31
|
+
return iter.next();
|
|
32
|
+
},
|
|
33
|
+
[Symbol.asyncIterator]() {
|
|
34
|
+
return this;
|
|
35
|
+
},
|
|
36
|
+
byPage: (settings) => {
|
|
37
|
+
if (settings?.maxPageSize) {
|
|
38
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
39
|
+
}
|
|
40
|
+
return this.listPagingPage(options, settings);
|
|
41
|
+
},
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
async *listPagingPage(options, settings) {
|
|
45
|
+
let result;
|
|
46
|
+
let continuationToken = settings?.continuationToken;
|
|
47
|
+
if (!continuationToken) {
|
|
48
|
+
result = await this._list(options);
|
|
49
|
+
let page = result.value || [];
|
|
50
|
+
continuationToken = result.nextLink;
|
|
51
|
+
setContinuationToken(page, continuationToken);
|
|
52
|
+
yield page;
|
|
53
|
+
}
|
|
54
|
+
while (continuationToken) {
|
|
55
|
+
result = await this._listNext(continuationToken, options);
|
|
56
|
+
continuationToken = result.nextLink;
|
|
57
|
+
let page = result.value || [];
|
|
58
|
+
setContinuationToken(page, continuationToken);
|
|
59
|
+
yield page;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
async *listPagingAll(options) {
|
|
63
|
+
for await (const page of this.listPagingPage(options)) {
|
|
64
|
+
yield* page;
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* List the operations for Azure Container Instance service.
|
|
69
|
+
* @param options The options parameters.
|
|
70
|
+
*/
|
|
71
|
+
_list(options) {
|
|
72
|
+
return this.client.sendOperationRequest({ options }, listOperationSpec);
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* ListNext
|
|
76
|
+
* @param nextLink The nextLink from the previous successful call to the List method.
|
|
77
|
+
* @param options The options parameters.
|
|
78
|
+
*/
|
|
79
|
+
_listNext(nextLink, options) {
|
|
80
|
+
return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec);
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
// Operation Specifications
|
|
84
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
85
|
+
const listOperationSpec = {
|
|
86
|
+
path: "/providers/Microsoft.ContainerInstance/operations",
|
|
87
|
+
httpMethod: "GET",
|
|
88
|
+
responses: {
|
|
89
|
+
200: {
|
|
90
|
+
bodyMapper: Mappers.OperationListResult,
|
|
91
|
+
},
|
|
92
|
+
default: {
|
|
93
|
+
bodyMapper: Mappers.CloudError,
|
|
94
|
+
},
|
|
95
|
+
},
|
|
96
|
+
queryParameters: [Parameters.apiVersion],
|
|
97
|
+
urlParameters: [Parameters.$host],
|
|
98
|
+
headerParameters: [Parameters.accept],
|
|
99
|
+
serializer,
|
|
100
|
+
};
|
|
101
|
+
const listNextOperationSpec = {
|
|
102
|
+
path: "{nextLink}",
|
|
103
|
+
httpMethod: "GET",
|
|
104
|
+
responses: {
|
|
105
|
+
200: {
|
|
106
|
+
bodyMapper: Mappers.OperationListResult,
|
|
107
|
+
},
|
|
108
|
+
default: {
|
|
109
|
+
bodyMapper: Mappers.CloudError,
|
|
110
|
+
},
|
|
111
|
+
},
|
|
112
|
+
urlParameters: [Parameters.$host, Parameters.nextLink],
|
|
113
|
+
headerParameters: [Parameters.accept],
|
|
114
|
+
serializer,
|
|
115
|
+
};
|
|
116
|
+
//# sourceMappingURL=operations.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"operations.js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ACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;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;AACF,MAAM,qBAAqB,GAA6B;IACtD,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,mBAAmB;SACxC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;KACF;IACD,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,QAAQ,CAAC;IACtD,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 { 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 { ContainerInstanceManagementClient } from \"../containerInstanceManagementClient.js\";\nimport {\n Operation,\n OperationsListNextOptionalParams,\n OperationsListOptionalParams,\n OperationsListResponse,\n OperationsListNextResponse,\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: ContainerInstanceManagementClient;\n\n /**\n * Initialize a new instance of the class Operations class.\n * @param client Reference to the service client\n */\n constructor(client: ContainerInstanceManagementClient) {\n this.client = client;\n }\n\n /**\n * List the operations for Azure Container Instance service.\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 let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(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._listNext(continuationToken, options);\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\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 * List the operations for Azure Container Instance service.\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 /**\n * ListNext\n * @param nextLink The nextLink from the previous successful call to the List method.\n * @param options The options parameters.\n */\n private _listNext(\n nextLink: string,\n options?: OperationsListNextOptionalParams,\n ): Promise<OperationsListNextResponse> {\n return this.client.sendOperationRequest(\n { nextLink, options },\n listNextOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.ContainerInstance/operations\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.OperationListResult,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.OperationListResult,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n urlParameters: [Parameters.$host, Parameters.nextLink],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { SubnetServiceAssociationLink } from "../operationsInterfaces/index.js";
|
|
2
|
+
import { ContainerInstanceManagementClient } from "../containerInstanceManagementClient.js";
|
|
3
|
+
import { SimplePollerLike, OperationState } from "@azure/core-lro";
|
|
4
|
+
import { SubnetServiceAssociationLinkDeleteOptionalParams } from "../models/index.js";
|
|
5
|
+
/** Class containing SubnetServiceAssociationLink operations. */
|
|
6
|
+
export declare class SubnetServiceAssociationLinkImpl implements SubnetServiceAssociationLink {
|
|
7
|
+
private readonly client;
|
|
8
|
+
/**
|
|
9
|
+
* Initialize a new instance of the class SubnetServiceAssociationLink class.
|
|
10
|
+
* @param client Reference to the service client
|
|
11
|
+
*/
|
|
12
|
+
constructor(client: ContainerInstanceManagementClient);
|
|
13
|
+
/**
|
|
14
|
+
* Delete container group virtual network association links. The operation does not delete other
|
|
15
|
+
* resources provided by the user.
|
|
16
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
17
|
+
* @param virtualNetworkName The name of the virtual network.
|
|
18
|
+
* @param subnetName The name of the subnet.
|
|
19
|
+
* @param options The options parameters.
|
|
20
|
+
*/
|
|
21
|
+
beginDelete(resourceGroupName: string, virtualNetworkName: string, subnetName: string, options?: SubnetServiceAssociationLinkDeleteOptionalParams): Promise<SimplePollerLike<OperationState<void>, void>>;
|
|
22
|
+
/**
|
|
23
|
+
* Delete container group virtual network association links. The operation does not delete other
|
|
24
|
+
* resources provided by the user.
|
|
25
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
26
|
+
* @param virtualNetworkName The name of the virtual network.
|
|
27
|
+
* @param subnetName The name of the subnet.
|
|
28
|
+
* @param options The options parameters.
|
|
29
|
+
*/
|
|
30
|
+
beginDeleteAndWait(resourceGroupName: string, virtualNetworkName: string, subnetName: string, options?: SubnetServiceAssociationLinkDeleteOptionalParams): Promise<void>;
|
|
31
|
+
}
|
|
32
|
+
//# sourceMappingURL=subnetServiceAssociationLink.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"subnetServiceAssociationLink.d.ts","sourceRoot":"","sources":["../../../src/operations/subnetServiceAssociationLink.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,4BAA4B,EAAE,MAAM,kCAAkC,CAAC;AAIhF,OAAO,EAAE,iCAAiC,EAAE,MAAM,yCAAyC,CAAC;AAC5F,OAAO,EACL,gBAAgB,EAChB,cAAc,EAEf,MAAM,iBAAiB,CAAC;AAEzB,OAAO,EAAE,gDAAgD,EAAE,MAAM,oBAAoB,CAAC;AAEtF,gEAAgE;AAChE,qBAAa,gCACX,YAAW,4BAA4B;IAEvC,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAoC;IAE3D;;;OAGG;gBACS,MAAM,EAAE,iCAAiC;IAIrD;;;;;;;OAOG;IACG,WAAW,CACf,iBAAiB,EAAE,MAAM,EACzB,kBAAkB,EAAE,MAAM,EAC1B,UAAU,EAAE,MAAM,EAClB,OAAO,CAAC,EAAE,gDAAgD,GACzD,OAAO,CAAC,gBAAgB,CAAC,cAAc,CAAC,IAAI,CAAC,EAAE,IAAI,CAAC,CAAC;IAoDxD;;;;;;;OAOG;IACG,kBAAkB,CACtB,iBAAiB,EAAE,MAAM,EACzB,kBAAkB,EAAE,MAAM,EAC1B,UAAU,EAAE,MAAM,EAClB,OAAO,CAAC,EAAE,gDAAgD,GACzD,OAAO,CAAC,IAAI,CAAC;CASjB"}
|
|
@@ -0,0 +1,109 @@
|
|
|
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 Mappers from "../models/mappers.js";
|
|
10
|
+
import * as Parameters from "../models/parameters.js";
|
|
11
|
+
import { createHttpPoller, } from "@azure/core-lro";
|
|
12
|
+
import { createLroSpec } from "../lroImpl.js";
|
|
13
|
+
/** Class containing SubnetServiceAssociationLink operations. */
|
|
14
|
+
export class SubnetServiceAssociationLinkImpl {
|
|
15
|
+
client;
|
|
16
|
+
/**
|
|
17
|
+
* Initialize a new instance of the class SubnetServiceAssociationLink class.
|
|
18
|
+
* @param client Reference to the service client
|
|
19
|
+
*/
|
|
20
|
+
constructor(client) {
|
|
21
|
+
this.client = client;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Delete container group virtual network association links. The operation does not delete other
|
|
25
|
+
* resources provided by the user.
|
|
26
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
27
|
+
* @param virtualNetworkName The name of the virtual network.
|
|
28
|
+
* @param subnetName The name of the subnet.
|
|
29
|
+
* @param options The options parameters.
|
|
30
|
+
*/
|
|
31
|
+
async beginDelete(resourceGroupName, virtualNetworkName, subnetName, options) {
|
|
32
|
+
const directSendOperation = async (args, spec) => {
|
|
33
|
+
return this.client.sendOperationRequest(args, spec);
|
|
34
|
+
};
|
|
35
|
+
const sendOperationFn = async (args, spec) => {
|
|
36
|
+
let currentRawResponse = undefined;
|
|
37
|
+
const providedCallback = args.options?.onResponse;
|
|
38
|
+
const callback = (rawResponse, flatResponse) => {
|
|
39
|
+
currentRawResponse = rawResponse;
|
|
40
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
41
|
+
};
|
|
42
|
+
const updatedArgs = {
|
|
43
|
+
...args,
|
|
44
|
+
options: {
|
|
45
|
+
...args.options,
|
|
46
|
+
onResponse: callback,
|
|
47
|
+
},
|
|
48
|
+
};
|
|
49
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
50
|
+
return {
|
|
51
|
+
flatResponse,
|
|
52
|
+
rawResponse: {
|
|
53
|
+
statusCode: currentRawResponse.status,
|
|
54
|
+
body: currentRawResponse.parsedBody,
|
|
55
|
+
headers: currentRawResponse.headers.toJSON(),
|
|
56
|
+
},
|
|
57
|
+
};
|
|
58
|
+
};
|
|
59
|
+
const lro = createLroSpec({
|
|
60
|
+
sendOperationFn,
|
|
61
|
+
args: { resourceGroupName, virtualNetworkName, subnetName, options },
|
|
62
|
+
spec: deleteOperationSpec,
|
|
63
|
+
});
|
|
64
|
+
const poller = await createHttpPoller(lro, {
|
|
65
|
+
restoreFrom: options?.resumeFrom,
|
|
66
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
67
|
+
});
|
|
68
|
+
await poller.poll();
|
|
69
|
+
return poller;
|
|
70
|
+
}
|
|
71
|
+
/**
|
|
72
|
+
* Delete container group virtual network association links. The operation does not delete other
|
|
73
|
+
* resources provided by the user.
|
|
74
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
75
|
+
* @param virtualNetworkName The name of the virtual network.
|
|
76
|
+
* @param subnetName The name of the subnet.
|
|
77
|
+
* @param options The options parameters.
|
|
78
|
+
*/
|
|
79
|
+
async beginDeleteAndWait(resourceGroupName, virtualNetworkName, subnetName, options) {
|
|
80
|
+
const poller = await this.beginDelete(resourceGroupName, virtualNetworkName, subnetName, options);
|
|
81
|
+
return poller.pollUntilDone();
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
// Operation Specifications
|
|
85
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
86
|
+
const deleteOperationSpec = {
|
|
87
|
+
path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/subnets/{subnetName}/providers/Microsoft.ContainerInstance/serviceAssociationLinks/default",
|
|
88
|
+
httpMethod: "DELETE",
|
|
89
|
+
responses: {
|
|
90
|
+
200: {},
|
|
91
|
+
201: {},
|
|
92
|
+
202: {},
|
|
93
|
+
204: {},
|
|
94
|
+
default: {
|
|
95
|
+
bodyMapper: Mappers.CloudError,
|
|
96
|
+
},
|
|
97
|
+
},
|
|
98
|
+
queryParameters: [Parameters.apiVersion],
|
|
99
|
+
urlParameters: [
|
|
100
|
+
Parameters.$host,
|
|
101
|
+
Parameters.subscriptionId,
|
|
102
|
+
Parameters.resourceGroupName,
|
|
103
|
+
Parameters.virtualNetworkName,
|
|
104
|
+
Parameters.subnetName,
|
|
105
|
+
],
|
|
106
|
+
headerParameters: [Parameters.accept],
|
|
107
|
+
serializer,
|
|
108
|
+
};
|
|
109
|
+
//# sourceMappingURL=subnetServiceAssociationLink.js.map
|