@azure/arm-azurestack 3.0.0-beta.4 → 3.0.0-beta.6
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 +23 -3
- package/LICENSE +4 -4
- package/README.md +26 -17
- package/{dist-esm/src → dist/browser}/azureStackManagementClient.d.ts +4 -2
- package/dist/browser/azureStackManagementClient.d.ts.map +1 -0
- package/dist/browser/azureStackManagementClient.js +117 -0
- package/dist/browser/azureStackManagementClient.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 -3
- package/dist/browser/index.js.map +1 -0
- package/{dist-esm/src → dist/browser}/models/index.d.ts +72 -48
- package/dist/browser/models/index.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/models/index.js +23 -0
- package/dist/browser/models/index.js.map +1 -0
- package/{dist-esm/src → dist/browser}/models/mappers.js +83 -38
- 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/cloudManifestFile.d.ts +3 -3
- package/dist/browser/operations/cloudManifestFile.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/cloudManifestFile.js +3 -2
- package/dist/browser/operations/cloudManifestFile.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/customerSubscriptions.d.ts +3 -3
- package/dist/browser/operations/customerSubscriptions.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/customerSubscriptions.js +30 -33
- package/dist/browser/operations/customerSubscriptions.js.map +1 -0
- package/dist/browser/operations/index.d.ts +7 -0
- package/{dist-esm/src → dist/browser}/operations/index.d.ts.map +1 -1
- package/dist/browser/operations/index.js +14 -0
- package/dist/browser/operations/index.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/linkedSubscriptions.d.ts +3 -3
- package/dist/browser/operations/linkedSubscriptions.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/linkedSubscriptions.js +56 -63
- package/dist/browser/operations/linkedSubscriptions.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 +30 -33
- package/dist/browser/operations/operations.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/products.d.ts +3 -3
- package/dist/browser/operations/products.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/products.js +30 -33
- package/dist/browser/operations/products.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/registrations.d.ts +3 -3
- package/dist/browser/operations/registrations.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/registrations.js +56 -63
- package/dist/browser/operations/registrations.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operationsInterfaces/cloudManifestFile.d.ts +1 -1
- package/dist/browser/operationsInterfaces/cloudManifestFile.d.ts.map +1 -0
- package/dist/browser/operationsInterfaces/cloudManifestFile.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operationsInterfaces/customerSubscriptions.d.ts +1 -1
- package/dist/browser/operationsInterfaces/customerSubscriptions.d.ts.map +1 -0
- package/dist/browser/operationsInterfaces/customerSubscriptions.js.map +1 -0
- package/dist/browser/operationsInterfaces/index.d.ts +7 -0
- package/dist/browser/operationsInterfaces/index.d.ts.map +1 -0
- package/dist/browser/operationsInterfaces/index.js +14 -0
- package/dist/browser/operationsInterfaces/index.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operationsInterfaces/linkedSubscriptions.d.ts +1 -1
- package/dist/browser/operationsInterfaces/linkedSubscriptions.d.ts.map +1 -0
- package/dist/browser/operationsInterfaces/linkedSubscriptions.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/products.d.ts +1 -1
- package/dist/browser/operationsInterfaces/products.d.ts.map +1 -0
- package/dist/browser/operationsInterfaces/products.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operationsInterfaces/registrations.d.ts +1 -1
- package/dist/browser/operationsInterfaces/registrations.d.ts.map +1 -0
- package/dist/browser/operationsInterfaces/registrations.js.map +1 -0
- package/dist/browser/package.json +3 -0
- package/dist/browser/pagingHelper.d.ts +13 -0
- package/dist/browser/pagingHelper.d.ts.map +1 -0
- package/dist/browser/pagingHelper.js +30 -0
- package/dist/browser/pagingHelper.js.map +1 -0
- package/dist/commonjs/azureStackManagementClient.d.ts +26 -0
- package/dist/commonjs/azureStackManagementClient.d.ts.map +1 -0
- package/dist/commonjs/azureStackManagementClient.js +122 -0
- package/dist/commonjs/azureStackManagementClient.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/{types/arm-azurestack.d.ts → dist/commonjs/models/index.d.ts} +878 -1206
- package/dist/commonjs/models/index.d.ts.map +1 -0
- package/dist/commonjs/models/index.js +81 -0
- package/dist/commonjs/models/index.js.map +1 -0
- package/dist/commonjs/models/mappers.d.ts +37 -0
- package/dist/commonjs/models/mappers.d.ts.map +1 -0
- package/dist/commonjs/models/mappers.js +1254 -0
- package/dist/commonjs/models/mappers.js.map +1 -0
- package/dist/commonjs/models/parameters.d.ts +20 -0
- package/dist/commonjs/models/parameters.d.ts.map +1 -0
- package/dist/commonjs/models/parameters.js +166 -0
- package/dist/commonjs/models/parameters.js.map +1 -0
- package/dist/commonjs/operations/cloudManifestFile.d.ts +24 -0
- package/dist/commonjs/operations/cloudManifestFile.d.ts.map +1 -0
- package/dist/commonjs/operations/cloudManifestFile.js +76 -0
- package/dist/commonjs/operations/cloudManifestFile.js.map +1 -0
- package/dist/commonjs/operations/customerSubscriptions.d.ts +63 -0
- package/dist/commonjs/operations/customerSubscriptions.d.ts.map +1 -0
- package/dist/commonjs/operations/customerSubscriptions.js +243 -0
- package/dist/commonjs/operations/customerSubscriptions.js.map +1 -0
- package/dist/commonjs/operations/index.d.ts +7 -0
- package/dist/commonjs/operations/index.d.ts.map +1 -0
- package/dist/commonjs/operations/index.js +17 -0
- package/dist/commonjs/operations/index.js.map +1 -0
- package/dist/commonjs/operations/linkedSubscriptions.d.ts +83 -0
- package/dist/commonjs/operations/linkedSubscriptions.d.ts.map +1 -0
- package/dist/commonjs/operations/linkedSubscriptions.js +357 -0
- package/dist/commonjs/operations/linkedSubscriptions.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 +122 -0
- package/dist/commonjs/operations/operations.js.map +1 -0
- package/dist/commonjs/operations/products.d.ts +78 -0
- package/dist/commonjs/operations/products.d.ts.map +1 -0
- package/dist/commonjs/operations/products.js +305 -0
- package/dist/commonjs/operations/products.js.map +1 -0
- package/dist/commonjs/operations/registrations.d.ts +97 -0
- package/dist/commonjs/operations/registrations.d.ts.map +1 -0
- package/dist/commonjs/operations/registrations.js +414 -0
- package/dist/commonjs/operations/registrations.js.map +1 -0
- package/dist/commonjs/operationsInterfaces/cloudManifestFile.d.ts +16 -0
- package/dist/commonjs/operationsInterfaces/cloudManifestFile.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/cloudManifestFile.js +10 -0
- package/dist/commonjs/operationsInterfaces/cloudManifestFile.js.map +1 -0
- package/dist/commonjs/operationsInterfaces/customerSubscriptions.d.ts +38 -0
- package/dist/commonjs/operationsInterfaces/customerSubscriptions.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/customerSubscriptions.js +10 -0
- package/dist/commonjs/operationsInterfaces/customerSubscriptions.js.map +1 -0
- package/dist/commonjs/operationsInterfaces/index.d.ts +7 -0
- package/dist/commonjs/operationsInterfaces/index.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/index.js +17 -0
- package/dist/commonjs/operationsInterfaces/index.js.map +1 -0
- package/dist/commonjs/operationsInterfaces/linkedSubscriptions.d.ts +47 -0
- package/dist/commonjs/operationsInterfaces/linkedSubscriptions.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/linkedSubscriptions.js +10 -0
- package/dist/commonjs/operationsInterfaces/linkedSubscriptions.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/products.d.ts +53 -0
- package/dist/commonjs/operationsInterfaces/products.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/products.js +10 -0
- package/dist/commonjs/operationsInterfaces/products.js.map +1 -0
- package/dist/commonjs/operationsInterfaces/registrations.d.ts +61 -0
- package/dist/commonjs/operationsInterfaces/registrations.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/registrations.js +10 -0
- package/dist/commonjs/operationsInterfaces/registrations.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/azureStackManagementClient.d.ts +26 -0
- package/dist/esm/azureStackManagementClient.d.ts.map +1 -0
- package/dist/esm/azureStackManagementClient.js +117 -0
- package/dist/esm/azureStackManagementClient.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 -4
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/models/index.d.ts +878 -0
- package/dist/esm/models/index.d.ts.map +1 -0
- package/dist/esm/models/index.js +78 -0
- package/dist/esm/models/index.js.map +1 -0
- package/dist/esm/models/mappers.d.ts +37 -0
- package/dist/esm/models/mappers.d.ts.map +1 -0
- package/dist/esm/models/mappers.js +1251 -0
- package/dist/esm/models/mappers.js.map +1 -0
- package/dist/esm/models/parameters.d.ts +20 -0
- package/dist/esm/models/parameters.d.ts.map +1 -0
- package/dist/esm/models/parameters.js +163 -0
- package/dist/esm/models/parameters.js.map +1 -0
- package/dist/esm/operations/cloudManifestFile.d.ts +24 -0
- package/dist/esm/operations/cloudManifestFile.d.ts.map +1 -0
- package/dist/esm/operations/cloudManifestFile.js +71 -0
- package/dist/esm/operations/cloudManifestFile.js.map +1 -0
- package/dist/esm/operations/customerSubscriptions.d.ts +63 -0
- package/dist/esm/operations/customerSubscriptions.d.ts.map +1 -0
- package/dist/esm/operations/customerSubscriptions.js +238 -0
- package/dist/esm/operations/customerSubscriptions.js.map +1 -0
- package/dist/esm/operations/index.d.ts +7 -0
- package/dist/esm/operations/index.d.ts.map +1 -0
- package/dist/esm/operations/index.js +14 -0
- package/dist/esm/operations/index.js.map +1 -0
- package/dist/esm/operations/linkedSubscriptions.d.ts +83 -0
- package/dist/esm/operations/linkedSubscriptions.d.ts.map +1 -0
- package/dist/esm/operations/linkedSubscriptions.js +352 -0
- package/dist/esm/operations/linkedSubscriptions.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 +117 -0
- package/dist/esm/operations/operations.js.map +1 -0
- package/dist/esm/operations/products.d.ts +78 -0
- package/dist/esm/operations/products.d.ts.map +1 -0
- package/dist/esm/operations/products.js +300 -0
- package/dist/esm/operations/products.js.map +1 -0
- package/dist/esm/operations/registrations.d.ts +97 -0
- package/dist/esm/operations/registrations.d.ts.map +1 -0
- package/dist/esm/operations/registrations.js +409 -0
- package/dist/esm/operations/registrations.js.map +1 -0
- package/dist/esm/operationsInterfaces/cloudManifestFile.d.ts +16 -0
- package/dist/esm/operationsInterfaces/cloudManifestFile.d.ts.map +1 -0
- package/dist/esm/operationsInterfaces/cloudManifestFile.js +9 -0
- package/dist/esm/operationsInterfaces/cloudManifestFile.js.map +1 -0
- package/dist/esm/operationsInterfaces/customerSubscriptions.d.ts +38 -0
- package/dist/esm/operationsInterfaces/customerSubscriptions.d.ts.map +1 -0
- package/dist/esm/operationsInterfaces/customerSubscriptions.js +9 -0
- package/dist/esm/operationsInterfaces/customerSubscriptions.js.map +1 -0
- package/dist/esm/operationsInterfaces/index.d.ts +7 -0
- package/dist/esm/operationsInterfaces/index.d.ts.map +1 -0
- package/dist/esm/operationsInterfaces/index.js +14 -0
- package/dist/esm/operationsInterfaces/index.js.map +1 -0
- package/dist/esm/operationsInterfaces/linkedSubscriptions.d.ts +47 -0
- package/dist/esm/operationsInterfaces/linkedSubscriptions.d.ts.map +1 -0
- package/dist/esm/operationsInterfaces/linkedSubscriptions.js +9 -0
- package/dist/esm/operationsInterfaces/linkedSubscriptions.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/products.d.ts +53 -0
- package/dist/esm/operationsInterfaces/products.d.ts.map +1 -0
- package/dist/esm/operationsInterfaces/products.js +9 -0
- package/dist/esm/operationsInterfaces/products.js.map +1 -0
- package/dist/esm/operationsInterfaces/registrations.d.ts +61 -0
- package/dist/esm/operationsInterfaces/registrations.d.ts.map +1 -0
- package/dist/esm/operationsInterfaces/registrations.js +9 -0
- package/dist/esm/operationsInterfaces/registrations.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/azureStackManagementClient.d.ts +26 -0
- package/dist/react-native/azureStackManagementClient.d.ts.map +1 -0
- package/dist/react-native/azureStackManagementClient.js +117 -0
- package/dist/react-native/azureStackManagementClient.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/models/index.d.ts +878 -0
- package/dist/react-native/models/index.d.ts.map +1 -0
- package/dist/react-native/models/index.js +78 -0
- package/dist/react-native/models/index.js.map +1 -0
- package/dist/react-native/models/mappers.d.ts +37 -0
- package/dist/react-native/models/mappers.d.ts.map +1 -0
- package/dist/react-native/models/mappers.js +1251 -0
- package/dist/react-native/models/mappers.js.map +1 -0
- package/dist/react-native/models/parameters.d.ts +20 -0
- package/dist/react-native/models/parameters.d.ts.map +1 -0
- package/dist/react-native/models/parameters.js +163 -0
- package/dist/react-native/models/parameters.js.map +1 -0
- package/dist/react-native/operations/cloudManifestFile.d.ts +24 -0
- package/dist/react-native/operations/cloudManifestFile.d.ts.map +1 -0
- package/dist/react-native/operations/cloudManifestFile.js +71 -0
- package/dist/react-native/operations/cloudManifestFile.js.map +1 -0
- package/dist/react-native/operations/customerSubscriptions.d.ts +63 -0
- package/dist/react-native/operations/customerSubscriptions.d.ts.map +1 -0
- package/dist/react-native/operations/customerSubscriptions.js +238 -0
- package/dist/react-native/operations/customerSubscriptions.js.map +1 -0
- package/dist/react-native/operations/index.d.ts +7 -0
- package/dist/react-native/operations/index.d.ts.map +1 -0
- package/dist/react-native/operations/index.js +14 -0
- package/dist/react-native/operations/index.js.map +1 -0
- package/dist/react-native/operations/linkedSubscriptions.d.ts +83 -0
- package/dist/react-native/operations/linkedSubscriptions.d.ts.map +1 -0
- package/dist/react-native/operations/linkedSubscriptions.js +352 -0
- package/dist/react-native/operations/linkedSubscriptions.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 +117 -0
- package/dist/react-native/operations/operations.js.map +1 -0
- package/dist/react-native/operations/products.d.ts +78 -0
- package/dist/react-native/operations/products.d.ts.map +1 -0
- package/dist/react-native/operations/products.js +300 -0
- package/dist/react-native/operations/products.js.map +1 -0
- package/dist/react-native/operations/registrations.d.ts +97 -0
- package/dist/react-native/operations/registrations.d.ts.map +1 -0
- package/dist/react-native/operations/registrations.js +409 -0
- package/dist/react-native/operations/registrations.js.map +1 -0
- package/dist/react-native/operationsInterfaces/cloudManifestFile.d.ts +16 -0
- package/dist/react-native/operationsInterfaces/cloudManifestFile.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/cloudManifestFile.js +9 -0
- package/dist/react-native/operationsInterfaces/cloudManifestFile.js.map +1 -0
- package/dist/react-native/operationsInterfaces/customerSubscriptions.d.ts +38 -0
- package/dist/react-native/operationsInterfaces/customerSubscriptions.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/customerSubscriptions.js +9 -0
- package/dist/react-native/operationsInterfaces/customerSubscriptions.js.map +1 -0
- package/dist/react-native/operationsInterfaces/index.d.ts +7 -0
- package/dist/react-native/operationsInterfaces/index.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/index.js +14 -0
- package/dist/react-native/operationsInterfaces/index.js.map +1 -0
- package/dist/react-native/operationsInterfaces/linkedSubscriptions.d.ts +47 -0
- package/dist/react-native/operationsInterfaces/linkedSubscriptions.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/linkedSubscriptions.js +9 -0
- package/dist/react-native/operationsInterfaces/linkedSubscriptions.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/products.d.ts +53 -0
- package/dist/react-native/operationsInterfaces/products.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/products.js +9 -0
- package/dist/react-native/operationsInterfaces/products.js.map +1 -0
- package/dist/react-native/operationsInterfaces/registrations.d.ts +61 -0
- package/dist/react-native/operationsInterfaces/registrations.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/registrations.js +9 -0
- package/dist/react-native/operationsInterfaces/registrations.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 -73
- package/review/{arm-azurestack.api.md → arm-azurestack-node.api.md} +37 -57
- package/dist/index.js +0 -3033
- 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/cloudManifestFileGetSample.d.ts +0 -2
- package/dist-esm/samples-dev/cloudManifestFileGetSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/cloudManifestFileGetSample.js +0 -30
- package/dist-esm/samples-dev/cloudManifestFileGetSample.js.map +0 -1
- package/dist-esm/samples-dev/cloudManifestFileListSample.d.ts +0 -2
- package/dist-esm/samples-dev/cloudManifestFileListSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/cloudManifestFileListSample.js +0 -29
- package/dist-esm/samples-dev/cloudManifestFileListSample.js.map +0 -1
- package/dist-esm/samples-dev/customerSubscriptionsCreateSample.d.ts +0 -2
- package/dist-esm/samples-dev/customerSubscriptionsCreateSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/customerSubscriptionsCreateSample.js +0 -35
- package/dist-esm/samples-dev/customerSubscriptionsCreateSample.js.map +0 -1
- package/dist-esm/samples-dev/customerSubscriptionsDeleteSample.d.ts +0 -2
- package/dist-esm/samples-dev/customerSubscriptionsDeleteSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/customerSubscriptionsDeleteSample.js +0 -32
- package/dist-esm/samples-dev/customerSubscriptionsDeleteSample.js.map +0 -1
- package/dist-esm/samples-dev/customerSubscriptionsGetSample.d.ts +0 -2
- package/dist-esm/samples-dev/customerSubscriptionsGetSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/customerSubscriptionsGetSample.js +0 -32
- package/dist-esm/samples-dev/customerSubscriptionsGetSample.js.map +0 -1
- package/dist-esm/samples-dev/customerSubscriptionsListSample.d.ts +0 -2
- package/dist-esm/samples-dev/customerSubscriptionsListSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/customerSubscriptionsListSample.js +0 -45
- package/dist-esm/samples-dev/customerSubscriptionsListSample.js.map +0 -1
- package/dist-esm/samples-dev/linkedSubscriptionsCreateOrUpdateSample.d.ts +0 -2
- package/dist-esm/samples-dev/linkedSubscriptionsCreateOrUpdateSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/linkedSubscriptionsCreateOrUpdateSample.js +0 -36
- package/dist-esm/samples-dev/linkedSubscriptionsCreateOrUpdateSample.js.map +0 -1
- package/dist-esm/samples-dev/linkedSubscriptionsDeleteSample.d.ts +0 -2
- package/dist-esm/samples-dev/linkedSubscriptionsDeleteSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/linkedSubscriptionsDeleteSample.js +0 -31
- package/dist-esm/samples-dev/linkedSubscriptionsDeleteSample.js.map +0 -1
- package/dist-esm/samples-dev/linkedSubscriptionsGetSample.d.ts +0 -2
- package/dist-esm/samples-dev/linkedSubscriptionsGetSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/linkedSubscriptionsGetSample.js +0 -31
- package/dist-esm/samples-dev/linkedSubscriptionsGetSample.js.map +0 -1
- package/dist-esm/samples-dev/linkedSubscriptionsListByResourceGroupSample.d.ts +0 -2
- package/dist-esm/samples-dev/linkedSubscriptionsListByResourceGroupSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/linkedSubscriptionsListByResourceGroupSample.js +0 -44
- package/dist-esm/samples-dev/linkedSubscriptionsListByResourceGroupSample.js.map +0 -1
- package/dist-esm/samples-dev/linkedSubscriptionsListBySubscriptionSample.d.ts +0 -2
- package/dist-esm/samples-dev/linkedSubscriptionsListBySubscriptionSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/linkedSubscriptionsListBySubscriptionSample.js +0 -43
- package/dist-esm/samples-dev/linkedSubscriptionsListBySubscriptionSample.js.map +0 -1
- package/dist-esm/samples-dev/linkedSubscriptionsUpdateSample.d.ts +0 -2
- package/dist-esm/samples-dev/linkedSubscriptionsUpdateSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/linkedSubscriptionsUpdateSample.js +0 -36
- package/dist-esm/samples-dev/linkedSubscriptionsUpdateSample.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 -43
- package/dist-esm/samples-dev/operationsListSample.js.map +0 -1
- package/dist-esm/samples-dev/productsGetProductSample.d.ts +0 -2
- package/dist-esm/samples-dev/productsGetProductSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/productsGetProductSample.js +0 -32
- package/dist-esm/samples-dev/productsGetProductSample.js.map +0 -1
- package/dist-esm/samples-dev/productsGetProductsSample.d.ts +0 -2
- package/dist-esm/samples-dev/productsGetProductsSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/productsGetProductsSample.js +0 -32
- package/dist-esm/samples-dev/productsGetProductsSample.js.map +0 -1
- package/dist-esm/samples-dev/productsGetSample.d.ts +0 -2
- package/dist-esm/samples-dev/productsGetSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/productsGetSample.js +0 -32
- package/dist-esm/samples-dev/productsGetSample.js.map +0 -1
- package/dist-esm/samples-dev/productsListDetailsSample.d.ts +0 -2
- package/dist-esm/samples-dev/productsListDetailsSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/productsListDetailsSample.js +0 -32
- package/dist-esm/samples-dev/productsListDetailsSample.js.map +0 -1
- package/dist-esm/samples-dev/productsListSample.d.ts +0 -2
- package/dist-esm/samples-dev/productsListSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/productsListSample.js +0 -45
- package/dist-esm/samples-dev/productsListSample.js.map +0 -1
- package/dist-esm/samples-dev/productsUploadLogSample.d.ts +0 -2
- package/dist-esm/samples-dev/productsUploadLogSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/productsUploadLogSample.js +0 -32
- package/dist-esm/samples-dev/productsUploadLogSample.js.map +0 -1
- package/dist-esm/samples-dev/registrationsCreateOrUpdateSample.d.ts +0 -2
- package/dist-esm/samples-dev/registrationsCreateOrUpdateSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/registrationsCreateOrUpdateSample.js +0 -35
- package/dist-esm/samples-dev/registrationsCreateOrUpdateSample.js.map +0 -1
- package/dist-esm/samples-dev/registrationsDeleteSample.d.ts +0 -2
- package/dist-esm/samples-dev/registrationsDeleteSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/registrationsDeleteSample.js +0 -31
- package/dist-esm/samples-dev/registrationsDeleteSample.js.map +0 -1
- package/dist-esm/samples-dev/registrationsEnableRemoteManagementSample.d.ts +0 -2
- package/dist-esm/samples-dev/registrationsEnableRemoteManagementSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/registrationsEnableRemoteManagementSample.js +0 -31
- package/dist-esm/samples-dev/registrationsEnableRemoteManagementSample.js.map +0 -1
- package/dist-esm/samples-dev/registrationsGetActivationKeySample.d.ts +0 -2
- package/dist-esm/samples-dev/registrationsGetActivationKeySample.d.ts.map +0 -1
- package/dist-esm/samples-dev/registrationsGetActivationKeySample.js +0 -31
- package/dist-esm/samples-dev/registrationsGetActivationKeySample.js.map +0 -1
- package/dist-esm/samples-dev/registrationsGetSample.d.ts +0 -2
- package/dist-esm/samples-dev/registrationsGetSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/registrationsGetSample.js +0 -31
- package/dist-esm/samples-dev/registrationsGetSample.js.map +0 -1
- package/dist-esm/samples-dev/registrationsListBySubscriptionSample.d.ts +0 -2
- package/dist-esm/samples-dev/registrationsListBySubscriptionSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/registrationsListBySubscriptionSample.js +0 -43
- package/dist-esm/samples-dev/registrationsListBySubscriptionSample.js.map +0 -1
- package/dist-esm/samples-dev/registrationsListSample.d.ts +0 -2
- package/dist-esm/samples-dev/registrationsListSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/registrationsListSample.js +0 -44
- package/dist-esm/samples-dev/registrationsListSample.js.map +0 -1
- package/dist-esm/samples-dev/registrationsUpdateSample.d.ts +0 -2
- package/dist-esm/samples-dev/registrationsUpdateSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/registrationsUpdateSample.js +0 -35
- package/dist-esm/samples-dev/registrationsUpdateSample.js.map +0 -1
- package/dist-esm/src/azureStackManagementClient.d.ts.map +0 -1
- package/dist-esm/src/azureStackManagementClient.js +0 -58
- package/dist-esm/src/azureStackManagementClient.js.map +0 -1
- package/dist-esm/src/index.d.ts +0 -5
- package/dist-esm/src/index.d.ts.map +0 -1
- package/dist-esm/src/index.js.map +0 -1
- package/dist-esm/src/models/index.d.ts.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/cloudManifestFile.d.ts.map +0 -1
- package/dist-esm/src/operations/cloudManifestFile.js.map +0 -1
- package/dist-esm/src/operations/customerSubscriptions.d.ts.map +0 -1
- package/dist-esm/src/operations/customerSubscriptions.js.map +0 -1
- package/dist-esm/src/operations/index.d.ts +0 -7
- package/dist-esm/src/operations/index.js +0 -14
- package/dist-esm/src/operations/index.js.map +0 -1
- package/dist-esm/src/operations/linkedSubscriptions.d.ts.map +0 -1
- package/dist-esm/src/operations/linkedSubscriptions.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/products.d.ts.map +0 -1
- package/dist-esm/src/operations/products.js.map +0 -1
- package/dist-esm/src/operations/registrations.d.ts.map +0 -1
- package/dist-esm/src/operations/registrations.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/cloudManifestFile.d.ts.map +0 -1
- package/dist-esm/src/operationsInterfaces/cloudManifestFile.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/customerSubscriptions.d.ts.map +0 -1
- package/dist-esm/src/operationsInterfaces/customerSubscriptions.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/index.d.ts +0 -7
- package/dist-esm/src/operationsInterfaces/index.d.ts.map +0 -1
- package/dist-esm/src/operationsInterfaces/index.js +0 -14
- package/dist-esm/src/operationsInterfaces/index.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/linkedSubscriptions.d.ts.map +0 -1
- package/dist-esm/src/operationsInterfaces/linkedSubscriptions.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/operations.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/products.d.ts.map +0 -1
- package/dist-esm/src/operationsInterfaces/products.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/registrations.d.ts.map +0 -1
- package/dist-esm/src/operationsInterfaces/registrations.js.map +0 -1
- package/dist-esm/test/sampleTest.d.ts +0 -2
- package/dist-esm/test/sampleTest.d.ts.map +0 -1
- package/dist-esm/test/sampleTest.js +0 -40
- package/dist-esm/test/sampleTest.js.map +0 -1
- package/rollup.config.js +0 -122
- package/src/azureStackManagementClient.ts +0 -101
- package/src/models/index.ts +0 -981
- package/src/models/mappers.ts +0 -1287
- package/src/models/parameters.ts +0 -192
- package/src/operations/cloudManifestFile.ts +0 -93
- package/src/operations/customerSubscriptions.ts +0 -317
- package/src/operations/index.ts +0 -14
- package/src/operations/linkedSubscriptions.ts +0 -450
- package/src/operations/operations.ts +0 -137
- package/src/operations/products.ts +0 -403
- package/src/operations/registrations.ts +0 -521
- package/src/operationsInterfaces/cloudManifestFile.ts +0 -34
- package/src/operationsInterfaces/customerSubscriptions.ts +0 -75
- package/src/operationsInterfaces/index.ts +0 -14
- package/src/operationsInterfaces/linkedSubscriptions.ts +0 -91
- package/src/operationsInterfaces/operations.ts +0 -22
- package/src/operationsInterfaces/products.ts +0 -104
- package/src/operationsInterfaces/registrations.ts +0 -116
- package/tsconfig.json +0 -33
- /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/cloudManifestFile.js +0 -0
- /package/{dist-esm/src → dist/browser}/operationsInterfaces/customerSubscriptions.js +0 -0
- /package/{dist-esm/src → dist/browser}/operationsInterfaces/linkedSubscriptions.js +0 -0
- /package/{dist-esm/src → dist/browser}/operationsInterfaces/operations.js +0 -0
- /package/{dist-esm/src → dist/browser}/operationsInterfaces/products.js +0 -0
- /package/{dist-esm/src → dist/browser}/operationsInterfaces/registrations.js +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"customerSubscriptions.js","sourceRoot":"","sources":["../../../src/operations/customerSubscriptions.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE1D,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAetD,4CAA4C;AAC5C,yDAAyD;AACzD,MAAM,OAAO,yBAAyB;IACnB,MAAM,CAA6B;IAEpD;;;OAGG;IACH,YAAY,MAAkC;QAC5C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;OAKG;IACI,IAAI,CACT,a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AAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,wBAAwB;SAC7C;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,aAAa;QACxB,UAAU,CAAC,gBAAgB;KAC5B;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 { CustomerSubscriptions } 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 { AzureStackManagementClient } from \"../azureStackManagementClient.js\";\nimport {\n CustomerSubscription,\n CustomerSubscriptionsListNextOptionalParams,\n CustomerSubscriptionsListOptionalParams,\n CustomerSubscriptionsListResponse,\n CustomerSubscriptionsGetOptionalParams,\n CustomerSubscriptionsGetResponse,\n CustomerSubscriptionsDeleteOptionalParams,\n CustomerSubscriptionsCreateOptionalParams,\n CustomerSubscriptionsCreateResponse,\n CustomerSubscriptionsListNextResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing CustomerSubscriptions operations. */\nexport class CustomerSubscriptionsImpl implements CustomerSubscriptions {\n private readonly client: AzureStackManagementClient;\n\n /**\n * Initialize a new instance of the class CustomerSubscriptions class.\n * @param client Reference to the service client\n */\n constructor(client: AzureStackManagementClient) {\n this.client = client;\n }\n\n /**\n * Returns a list of products.\n * @param resourceGroup Name of the resource group.\n * @param registrationName Name of the Azure Stack registration.\n * @param options The options parameters.\n */\n public list(\n resourceGroup: string,\n registrationName: string,\n options?: CustomerSubscriptionsListOptionalParams\n ): PagedAsyncIterableIterator<CustomerSubscription> {\n const iter = this.listPagingAll(resourceGroup, registrationName, 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(\n resourceGroup,\n registrationName,\n options,\n settings\n );\n }\n };\n }\n\n private async *listPagingPage(\n resourceGroup: string,\n registrationName: string,\n options?: CustomerSubscriptionsListOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<CustomerSubscription[]> {\n let result: CustomerSubscriptionsListResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(resourceGroup, registrationName, 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(\n resourceGroup,\n registrationName,\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 *listPagingAll(\n resourceGroup: string,\n registrationName: string,\n options?: CustomerSubscriptionsListOptionalParams\n ): AsyncIterableIterator<CustomerSubscription> {\n for await (const page of this.listPagingPage(\n resourceGroup,\n registrationName,\n options\n )) {\n yield* page;\n }\n }\n\n /**\n * Returns a list of products.\n * @param resourceGroup Name of the resource group.\n * @param registrationName Name of the Azure Stack registration.\n * @param options The options parameters.\n */\n private _list(\n resourceGroup: string,\n registrationName: string,\n options?: CustomerSubscriptionsListOptionalParams\n ): Promise<CustomerSubscriptionsListResponse> {\n return this.client.sendOperationRequest(\n { resourceGroup, registrationName, options },\n listOperationSpec\n );\n }\n\n /**\n * Returns the specified product.\n * @param resourceGroup Name of the resource group.\n * @param registrationName Name of the Azure Stack registration.\n * @param customerSubscriptionName Name of the product.\n * @param options The options parameters.\n */\n get(\n resourceGroup: string,\n registrationName: string,\n customerSubscriptionName: string,\n options?: CustomerSubscriptionsGetOptionalParams\n ): Promise<CustomerSubscriptionsGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroup, registrationName, customerSubscriptionName, options },\n getOperationSpec\n );\n }\n\n /**\n * Deletes a customer subscription under a registration.\n * @param resourceGroup Name of the resource group.\n * @param registrationName Name of the Azure Stack registration.\n * @param customerSubscriptionName Name of the product.\n * @param options The options parameters.\n */\n delete(\n resourceGroup: string,\n registrationName: string,\n customerSubscriptionName: string,\n options?: CustomerSubscriptionsDeleteOptionalParams\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { resourceGroup, registrationName, customerSubscriptionName, options },\n deleteOperationSpec\n );\n }\n\n /**\n * Creates a new customer subscription under a registration.\n * @param resourceGroup Name of the resource group.\n * @param registrationName Name of the Azure Stack registration.\n * @param customerSubscriptionName Name of the product.\n * @param customerCreationParameters Parameters use to create a customer subscription.\n * @param options The options parameters.\n */\n create(\n resourceGroup: string,\n registrationName: string,\n customerSubscriptionName: string,\n customerCreationParameters: CustomerSubscription,\n options?: CustomerSubscriptionsCreateOptionalParams\n ): Promise<CustomerSubscriptionsCreateResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroup,\n registrationName,\n customerSubscriptionName,\n customerCreationParameters,\n options\n },\n createOperationSpec\n );\n }\n\n /**\n * ListNext\n * @param resourceGroup Name of the resource group.\n * @param registrationName Name of the Azure Stack registration.\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 resourceGroup: string,\n registrationName: string,\n nextLink: string,\n options?: CustomerSubscriptionsListNextOptionalParams\n ): Promise<CustomerSubscriptionsListNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroup, registrationName, nextLink, options },\n listNextOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.AzureStack/registrations/{registrationName}/customerSubscriptions\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.CustomerSubscriptionList\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroup,\n Parameters.registrationName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.AzureStack/registrations/{registrationName}/customerSubscriptions/{customerSubscriptionName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.CustomerSubscription\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroup,\n Parameters.registrationName,\n Parameters.customerSubscriptionName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.AzureStack/registrations/{registrationName}/customerSubscriptions/{customerSubscriptionName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 204: {},\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroup,\n Parameters.registrationName,\n Parameters.customerSubscriptionName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst createOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.AzureStack/registrations/{registrationName}/customerSubscriptions/{customerSubscriptionName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.CustomerSubscription\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n requestBody: Parameters.customerCreationParameters,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroup,\n Parameters.registrationName,\n Parameters.customerSubscriptionName\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.CustomerSubscriptionList\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.nextLink,\n Parameters.subscriptionId,\n Parameters.resourceGroup,\n Parameters.registrationName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export * from "./operations.js";
|
|
2
|
+
export * from "./cloudManifestFile.js";
|
|
3
|
+
export * from "./customerSubscriptions.js";
|
|
4
|
+
export * from "./products.js";
|
|
5
|
+
export * from "./registrations.js";
|
|
6
|
+
export * from "./linkedSubscriptions.js";
|
|
7
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/operations/index.ts"],"names":[],"mappings":"AAQA,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/operations/index.ts"],"names":[],"mappings":"AAQA,cAAc,iBAAiB,CAAC;AAChC,cAAc,wBAAwB,CAAC;AACvC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,eAAe,CAAC;AAC9B,cAAc,oBAAoB,CAAC;AACnC,cAAc,0BAA0B,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
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 "./operations.js";
|
|
9
|
+
export * from "./cloudManifestFile.js";
|
|
10
|
+
export * from "./customerSubscriptions.js";
|
|
11
|
+
export * from "./products.js";
|
|
12
|
+
export * from "./registrations.js";
|
|
13
|
+
export * from "./linkedSubscriptions.js";
|
|
14
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/operations/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,cAAc,iBAAiB,CAAC;AAChC,cAAc,wBAAwB,CAAC;AACvC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,eAAe,CAAC;AAC9B,cAAc,oBAAoB,CAAC;AACnC,cAAc,0BAA0B,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 \"./operations.js\";\nexport * from \"./cloudManifestFile.js\";\nexport * from \"./customerSubscriptions.js\";\nexport * from \"./products.js\";\nexport * from \"./registrations.js\";\nexport * from \"./linkedSubscriptions.js\";\n"]}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
2
|
-
import { LinkedSubscriptions } from "../operationsInterfaces";
|
|
3
|
-
import { AzureStackManagementClient } from "../azureStackManagementClient";
|
|
4
|
-
import { LinkedSubscription, LinkedSubscriptionsListByResourceGroupOptionalParams, LinkedSubscriptionsListBySubscriptionOptionalParams, LinkedSubscriptionsGetOptionalParams, LinkedSubscriptionsGetResponse, LinkedSubscriptionsDeleteOptionalParams, LinkedSubscriptionParameter, LinkedSubscriptionsCreateOrUpdateOptionalParams, LinkedSubscriptionsCreateOrUpdateResponse, LinkedSubscriptionsUpdateOptionalParams, LinkedSubscriptionsUpdateResponse } from "../models";
|
|
2
|
+
import { LinkedSubscriptions } from "../operationsInterfaces/index.js";
|
|
3
|
+
import { AzureStackManagementClient } from "../azureStackManagementClient.js";
|
|
4
|
+
import { LinkedSubscription, LinkedSubscriptionsListByResourceGroupOptionalParams, LinkedSubscriptionsListBySubscriptionOptionalParams, LinkedSubscriptionsGetOptionalParams, LinkedSubscriptionsGetResponse, LinkedSubscriptionsDeleteOptionalParams, LinkedSubscriptionParameter, LinkedSubscriptionsCreateOrUpdateOptionalParams, LinkedSubscriptionsCreateOrUpdateResponse, LinkedSubscriptionsUpdateOptionalParams, LinkedSubscriptionsUpdateResponse } from "../models/index.js";
|
|
5
5
|
/** Class containing LinkedSubscriptions operations. */
|
|
6
6
|
export declare class LinkedSubscriptionsImpl implements LinkedSubscriptions {
|
|
7
7
|
private readonly client;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"linkedSubscriptions.d.ts","sourceRoot":"","sources":["../../../src/operations/linkedSubscriptions.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAgB,MAAM,oBAAoB,CAAC;AAE9E,OAAO,EAAE,mBAAmB,EAAE,MAAM,kCAAkC,CAAC;AAIvE,OAAO,EAAE,0BAA0B,EAAE,MAAM,kCAAkC,CAAC;AAC9E,OAAO,EACL,kBAAkB,EAElB,oDAAoD,EAGpD,mDAAmD,EAEnD,oCAAoC,EACpC,8BAA8B,EAC9B,uCAAuC,EACvC,2BAA2B,EAC3B,+CAA+C,EAC/C,yCAAyC,EACzC,uCAAuC,EACvC,iCA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;;OAIG;IACH,OAAO,CAAC,uBAAuB;CAShC"}
|
|
@@ -5,13 +5,14 @@
|
|
|
5
5
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
7
|
*/
|
|
8
|
-
import {
|
|
8
|
+
import { setContinuationToken } from "../pagingHelper.js";
|
|
9
9
|
import * as coreClient from "@azure/core-client";
|
|
10
|
-
import * as Mappers from "../models/mappers";
|
|
11
|
-
import * as Parameters from "../models/parameters";
|
|
10
|
+
import * as Mappers from "../models/mappers.js";
|
|
11
|
+
import * as Parameters from "../models/parameters.js";
|
|
12
12
|
/// <reference lib="esnext.asynciterable" />
|
|
13
13
|
/** Class containing LinkedSubscriptions operations. */
|
|
14
14
|
export class LinkedSubscriptionsImpl {
|
|
15
|
+
client;
|
|
15
16
|
/**
|
|
16
17
|
* Initialize a new instance of the class LinkedSubscriptions class.
|
|
17
18
|
* @param client Reference to the service client
|
|
@@ -33,40 +34,36 @@ export class LinkedSubscriptionsImpl {
|
|
|
33
34
|
[Symbol.asyncIterator]() {
|
|
34
35
|
return this;
|
|
35
36
|
},
|
|
36
|
-
byPage: () => {
|
|
37
|
-
|
|
37
|
+
byPage: (settings) => {
|
|
38
|
+
if (settings?.maxPageSize) {
|
|
39
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
40
|
+
}
|
|
41
|
+
return this.listByResourceGroupPagingPage(resourceGroup, options, settings);
|
|
38
42
|
}
|
|
39
43
|
};
|
|
40
44
|
}
|
|
41
|
-
listByResourceGroupPagingPage(resourceGroup, options) {
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
45
|
+
async *listByResourceGroupPagingPage(resourceGroup, options, settings) {
|
|
46
|
+
let result;
|
|
47
|
+
let continuationToken = settings?.continuationToken;
|
|
48
|
+
if (!continuationToken) {
|
|
49
|
+
result = await this._listByResourceGroup(resourceGroup, options);
|
|
50
|
+
let page = result.value || [];
|
|
51
|
+
continuationToken = result.nextLink;
|
|
52
|
+
setContinuationToken(page, continuationToken);
|
|
53
|
+
yield page;
|
|
54
|
+
}
|
|
55
|
+
while (continuationToken) {
|
|
56
|
+
result = await this._listByResourceGroupNext(resourceGroup, continuationToken, options);
|
|
57
|
+
continuationToken = result.nextLink;
|
|
58
|
+
let page = result.value || [];
|
|
59
|
+
setContinuationToken(page, continuationToken);
|
|
60
|
+
yield page;
|
|
61
|
+
}
|
|
52
62
|
}
|
|
53
|
-
listByResourceGroupPagingAll(resourceGroup, options) {
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
for (var _b = __asyncValues(this.listByResourceGroupPagingPage(resourceGroup, options)), _c; _c = yield __await(_b.next()), !_c.done;) {
|
|
58
|
-
const page = _c.value;
|
|
59
|
-
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
63
|
-
finally {
|
|
64
|
-
try {
|
|
65
|
-
if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
|
|
66
|
-
}
|
|
67
|
-
finally { if (e_1) throw e_1.error; }
|
|
68
|
-
}
|
|
69
|
-
});
|
|
63
|
+
async *listByResourceGroupPagingAll(resourceGroup, options) {
|
|
64
|
+
for await (const page of this.listByResourceGroupPagingPage(resourceGroup, options)) {
|
|
65
|
+
yield* page;
|
|
66
|
+
}
|
|
70
67
|
}
|
|
71
68
|
/**
|
|
72
69
|
* Returns a list of all linked subscriptions under current subscription.
|
|
@@ -81,40 +78,36 @@ export class LinkedSubscriptionsImpl {
|
|
|
81
78
|
[Symbol.asyncIterator]() {
|
|
82
79
|
return this;
|
|
83
80
|
},
|
|
84
|
-
byPage: () => {
|
|
85
|
-
|
|
81
|
+
byPage: (settings) => {
|
|
82
|
+
if (settings?.maxPageSize) {
|
|
83
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
84
|
+
}
|
|
85
|
+
return this.listBySubscriptionPagingPage(options, settings);
|
|
86
86
|
}
|
|
87
87
|
};
|
|
88
88
|
}
|
|
89
|
-
listBySubscriptionPagingPage(options) {
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
89
|
+
async *listBySubscriptionPagingPage(options, settings) {
|
|
90
|
+
let result;
|
|
91
|
+
let continuationToken = settings?.continuationToken;
|
|
92
|
+
if (!continuationToken) {
|
|
93
|
+
result = await this._listBySubscription(options);
|
|
94
|
+
let page = result.value || [];
|
|
95
|
+
continuationToken = result.nextLink;
|
|
96
|
+
setContinuationToken(page, continuationToken);
|
|
97
|
+
yield page;
|
|
98
|
+
}
|
|
99
|
+
while (continuationToken) {
|
|
100
|
+
result = await this._listBySubscriptionNext(continuationToken, options);
|
|
101
|
+
continuationToken = result.nextLink;
|
|
102
|
+
let page = result.value || [];
|
|
103
|
+
setContinuationToken(page, continuationToken);
|
|
104
|
+
yield page;
|
|
105
|
+
}
|
|
100
106
|
}
|
|
101
|
-
listBySubscriptionPagingAll(options) {
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
for (var _b = __asyncValues(this.listBySubscriptionPagingPage(options)), _c; _c = yield __await(_b.next()), !_c.done;) {
|
|
106
|
-
const page = _c.value;
|
|
107
|
-
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
111
|
-
finally {
|
|
112
|
-
try {
|
|
113
|
-
if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
|
|
114
|
-
}
|
|
115
|
-
finally { if (e_2) throw e_2.error; }
|
|
116
|
-
}
|
|
117
|
-
});
|
|
107
|
+
async *listBySubscriptionPagingAll(options) {
|
|
108
|
+
for await (const page of this.listBySubscriptionPagingPage(options)) {
|
|
109
|
+
yield* page;
|
|
110
|
+
}
|
|
118
111
|
}
|
|
119
112
|
/**
|
|
120
113
|
* Returns a list of all linked subscriptions under current resource group.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"linkedSubscriptions.js","sourceRoot":"","sources":["../../../src/operations/linkedSubscriptions.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;AAsBtD,4CAA4C;AAC5C,uDAAuD;AACvD,MAAM,OAAO,uBAAuB;IACjB,MAAM,CAA6B;IAEpD;;;OAGG;IACH,YAAY,MAAkC;QAC5C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;OAIG;IACI,mBAAmB,CACxB,aAAqB,EACrB,OAA8D;QAE9D,MAAM,IAAI,GAAG,IAAI,CAAC,4BAA4B,CAAC,aAAa,EAAE,OAAO,CAAC,CAAC;QACvE,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,6BAA6B,CACvC,aAAa,EACb,OAAO,EACP,QAAQ,CACT,CAAC;YACJ,CAAC;SACF,CAAC;IACJ,CAAC;IAEO,KAAK,C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AAC,QAAQ;QACnB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,aAAa;KACzB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,mCAAmC,GAA6B;IACpE,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,uBAAuB;SAC5C;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,cAAc;KAC1B;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 { LinkedSubscriptions } 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 { AzureStackManagementClient } from \"../azureStackManagementClient.js\";\nimport {\n LinkedSubscription,\n LinkedSubscriptionsListByResourceGroupNextOptionalParams,\n LinkedSubscriptionsListByResourceGroupOptionalParams,\n LinkedSubscriptionsListByResourceGroupResponse,\n LinkedSubscriptionsListBySubscriptionNextOptionalParams,\n LinkedSubscriptionsListBySubscriptionOptionalParams,\n LinkedSubscriptionsListBySubscriptionResponse,\n LinkedSubscriptionsGetOptionalParams,\n LinkedSubscriptionsGetResponse,\n LinkedSubscriptionsDeleteOptionalParams,\n LinkedSubscriptionParameter,\n LinkedSubscriptionsCreateOrUpdateOptionalParams,\n LinkedSubscriptionsCreateOrUpdateResponse,\n LinkedSubscriptionsUpdateOptionalParams,\n LinkedSubscriptionsUpdateResponse,\n LinkedSubscriptionsListByResourceGroupNextResponse,\n LinkedSubscriptionsListBySubscriptionNextResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing LinkedSubscriptions operations. */\nexport class LinkedSubscriptionsImpl implements LinkedSubscriptions {\n private readonly client: AzureStackManagementClient;\n\n /**\n * Initialize a new instance of the class LinkedSubscriptions class.\n * @param client Reference to the service client\n */\n constructor(client: AzureStackManagementClient) {\n this.client = client;\n }\n\n /**\n * Returns a list of all linked subscriptions under current resource group.\n * @param resourceGroup Name of the resource group.\n * @param options The options parameters.\n */\n public listByResourceGroup(\n resourceGroup: string,\n options?: LinkedSubscriptionsListByResourceGroupOptionalParams\n ): PagedAsyncIterableIterator<LinkedSubscription> {\n const iter = this.listByResourceGroupPagingAll(resourceGroup, options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listByResourceGroupPagingPage(\n resourceGroup,\n options,\n settings\n );\n }\n };\n }\n\n private async *listByResourceGroupPagingPage(\n resourceGroup: string,\n options?: LinkedSubscriptionsListByResourceGroupOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<LinkedSubscription[]> {\n let result: LinkedSubscriptionsListByResourceGroupResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listByResourceGroup(resourceGroup, options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listByResourceGroupNext(\n resourceGroup,\n continuationToken,\n options\n );\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listByResourceGroupPagingAll(\n resourceGroup: string,\n options?: LinkedSubscriptionsListByResourceGroupOptionalParams\n ): AsyncIterableIterator<LinkedSubscription> {\n for await (const page of this.listByResourceGroupPagingPage(\n resourceGroup,\n options\n )) {\n yield* page;\n }\n }\n\n /**\n * Returns a list of all linked subscriptions under current subscription.\n * @param options The options parameters.\n */\n public listBySubscription(\n options?: LinkedSubscriptionsListBySubscriptionOptionalParams\n ): PagedAsyncIterableIterator<LinkedSubscription> {\n const iter = this.listBySubscriptionPagingAll(options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listBySubscriptionPagingPage(options, settings);\n }\n };\n }\n\n private async *listBySubscriptionPagingPage(\n options?: LinkedSubscriptionsListBySubscriptionOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<LinkedSubscription[]> {\n let result: LinkedSubscriptionsListBySubscriptionResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listBySubscription(options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listBySubscriptionNext(continuationToken, options);\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listBySubscriptionPagingAll(\n options?: LinkedSubscriptionsListBySubscriptionOptionalParams\n ): AsyncIterableIterator<LinkedSubscription> {\n for await (const page of this.listBySubscriptionPagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * Returns a list of all linked subscriptions under current resource group.\n * @param resourceGroup Name of the resource group.\n * @param options The options parameters.\n */\n private _listByResourceGroup(\n resourceGroup: string,\n options?: LinkedSubscriptionsListByResourceGroupOptionalParams\n ): Promise<LinkedSubscriptionsListByResourceGroupResponse> {\n return this.client.sendOperationRequest(\n { resourceGroup, options },\n listByResourceGroupOperationSpec\n );\n }\n\n /**\n * Returns a list of all linked subscriptions under current subscription.\n * @param options The options parameters.\n */\n private _listBySubscription(\n options?: LinkedSubscriptionsListBySubscriptionOptionalParams\n ): Promise<LinkedSubscriptionsListBySubscriptionResponse> {\n return this.client.sendOperationRequest(\n { options },\n listBySubscriptionOperationSpec\n );\n }\n\n /**\n * Returns the properties of a Linked Subscription resource.\n * @param resourceGroup Name of the resource group.\n * @param linkedSubscriptionName Name of the Linked Subscription resource.\n * @param options The options parameters.\n */\n get(\n resourceGroup: string,\n linkedSubscriptionName: string,\n options?: LinkedSubscriptionsGetOptionalParams\n ): Promise<LinkedSubscriptionsGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroup, linkedSubscriptionName, options },\n getOperationSpec\n );\n }\n\n /**\n * Delete the requested Linked Subscription resource.\n * @param resourceGroup Name of the resource group.\n * @param linkedSubscriptionName Name of the Linked Subscription resource.\n * @param options The options parameters.\n */\n delete(\n resourceGroup: string,\n linkedSubscriptionName: string,\n options?: LinkedSubscriptionsDeleteOptionalParams\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { resourceGroup, linkedSubscriptionName, options },\n deleteOperationSpec\n );\n }\n\n /**\n * Create or update a linked subscription resource.\n * @param resourceGroup Name of the resource group.\n * @param linkedSubscriptionName Name of the Linked Subscription resource.\n * @param resource Linked subscription resource parameter.\n * @param options The options parameters.\n */\n createOrUpdate(\n resourceGroup: string,\n linkedSubscriptionName: string,\n resource: LinkedSubscriptionParameter,\n options?: LinkedSubscriptionsCreateOrUpdateOptionalParams\n ): Promise<LinkedSubscriptionsCreateOrUpdateResponse> {\n return this.client.sendOperationRequest(\n { resourceGroup, linkedSubscriptionName, resource, options },\n createOrUpdateOperationSpec\n );\n }\n\n /**\n * Patch a Linked Subscription resource.\n * @param resourceGroup Name of the resource group.\n * @param linkedSubscriptionName Name of the Linked Subscription resource.\n * @param resource Linked subscription resource parameter.\n * @param options The options parameters.\n */\n update(\n resourceGroup: string,\n linkedSubscriptionName: string,\n resource: LinkedSubscriptionParameter,\n options?: LinkedSubscriptionsUpdateOptionalParams\n ): Promise<LinkedSubscriptionsUpdateResponse> {\n return this.client.sendOperationRequest(\n { resourceGroup, linkedSubscriptionName, resource, options },\n updateOperationSpec\n );\n }\n\n /**\n * ListByResourceGroupNext\n * @param resourceGroup Name of the resource group.\n * @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.\n * @param options The options parameters.\n */\n private _listByResourceGroupNext(\n resourceGroup: string,\n nextLink: string,\n options?: LinkedSubscriptionsListByResourceGroupNextOptionalParams\n ): Promise<LinkedSubscriptionsListByResourceGroupNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroup, nextLink, options },\n listByResourceGroupNextOperationSpec\n );\n }\n\n /**\n * ListBySubscriptionNext\n * @param nextLink The nextLink from the previous successful call to the ListBySubscription method.\n * @param options The options parameters.\n */\n private _listBySubscriptionNext(\n nextLink: string,\n options?: LinkedSubscriptionsListBySubscriptionNextOptionalParams\n ): Promise<LinkedSubscriptionsListBySubscriptionNextResponse> {\n return this.client.sendOperationRequest(\n { nextLink, options },\n listBySubscriptionNextOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listByResourceGroupOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.AzureStack/linkedSubscriptions\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.LinkedSubscriptionsList\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroup\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listBySubscriptionOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/providers/Microsoft.AzureStack/linkedSubscriptions\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.LinkedSubscriptionsList\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.subscriptionId],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.AzureStack/linkedSubscriptions/{linkedSubscriptionName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.LinkedSubscription\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroup,\n Parameters.linkedSubscriptionName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.AzureStack/linkedSubscriptions/{linkedSubscriptionName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 204: {},\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroup,\n Parameters.linkedSubscriptionName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.AzureStack/linkedSubscriptions/{linkedSubscriptionName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.LinkedSubscription\n },\n 201: {\n bodyMapper: Mappers.LinkedSubscription\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n requestBody: Parameters.resource,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroup,\n Parameters.linkedSubscriptionName\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst updateOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.AzureStack/linkedSubscriptions/{linkedSubscriptionName}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.LinkedSubscription\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n requestBody: Parameters.resource,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroup,\n Parameters.linkedSubscriptionName\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst listByResourceGroupNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.LinkedSubscriptionsList\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.nextLink,\n Parameters.subscriptionId,\n Parameters.resourceGroup\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listBySubscriptionNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.LinkedSubscriptionsList\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.nextLink,\n Parameters.subscriptionId\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
2
|
-
import { Operations } from "../operationsInterfaces";
|
|
3
|
-
import { AzureStackManagementClient } from "../azureStackManagementClient";
|
|
4
|
-
import { Operation, OperationsListOptionalParams } from "../models";
|
|
2
|
+
import { Operations } from "../operationsInterfaces/index.js";
|
|
3
|
+
import { AzureStackManagementClient } from "../azureStackManagementClient.js";
|
|
4
|
+
import { Operation, OperationsListOptionalParams } from "../models/index.js";
|
|
5
5
|
/** Class containing Operations operations. */
|
|
6
6
|
export declare class OperationsImpl implements Operations {
|
|
7
7
|
private readonly client;
|
|
@@ -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,0BAA0B,EAAE,MAAM,kCAAkC,CAAC;AAC9E,OAAO,EACL,SAAS,EAET,4BAA4B,EAG7B,MAAM,oBAAoB,CAAC;AAG5B,8CAA8C;AAC9C,qBAAa,cAAe,YAAW,UAAU;IAC/C,OAAO,CAAC,QAAQ,CAAC,MAAM,CAA6B;IAEpD;;;OAGG;gBACS,MAAM,EAAE,0BAA0B;IAI9C;;;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"}
|
|
@@ -5,13 +5,14 @@
|
|
|
5
5
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
7
|
*/
|
|
8
|
-
import {
|
|
8
|
+
import { setContinuationToken } from "../pagingHelper.js";
|
|
9
9
|
import * as coreClient from "@azure/core-client";
|
|
10
|
-
import * as Mappers from "../models/mappers";
|
|
11
|
-
import * as Parameters from "../models/parameters";
|
|
10
|
+
import * as Mappers from "../models/mappers.js";
|
|
11
|
+
import * as Parameters from "../models/parameters.js";
|
|
12
12
|
/// <reference lib="esnext.asynciterable" />
|
|
13
13
|
/** Class containing Operations operations. */
|
|
14
14
|
export class OperationsImpl {
|
|
15
|
+
client;
|
|
15
16
|
/**
|
|
16
17
|
* Initialize a new instance of the class Operations class.
|
|
17
18
|
* @param client Reference to the service client
|
|
@@ -32,40 +33,36 @@ export class OperationsImpl {
|
|
|
32
33
|
[Symbol.asyncIterator]() {
|
|
33
34
|
return this;
|
|
34
35
|
},
|
|
35
|
-
byPage: () => {
|
|
36
|
-
|
|
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);
|
|
37
41
|
}
|
|
38
42
|
};
|
|
39
43
|
}
|
|
40
|
-
listPagingPage(options) {
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
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
|
+
}
|
|
51
61
|
}
|
|
52
|
-
listPagingAll(options) {
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
for (var _b = __asyncValues(this.listPagingPage(options)), _c; _c = yield __await(_b.next()), !_c.done;) {
|
|
57
|
-
const page = _c.value;
|
|
58
|
-
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
62
|
-
finally {
|
|
63
|
-
try {
|
|
64
|
-
if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
|
|
65
|
-
}
|
|
66
|
-
finally { if (e_1) throw e_1.error; }
|
|
67
|
-
}
|
|
68
|
-
});
|
|
62
|
+
async *listPagingAll(options) {
|
|
63
|
+
for await (const page of this.listPagingPage(options)) {
|
|
64
|
+
yield* page;
|
|
65
|
+
}
|
|
69
66
|
}
|
|
70
67
|
/**
|
|
71
68
|
* Returns the list of supported REST operations.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"operations.js","sourceRoot":"","sources":["../../../src/operations/operations.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;AAUtD,4CAA4C;AAC5C,8CAA8C;AAC9C,MAAM,OAAO,cAAc;IACR,MAAM,CAA6B;IAEpD;;;OAGG;IACH,YAAY,MAAkC;QAC5C,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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/*\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 { AzureStackManagementClient } from \"../azureStackManagementClient.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: AzureStackManagementClient;\n\n /**\n * Initialize a new instance of the class Operations class.\n * @param client Reference to the service client\n */\n constructor(client: AzureStackManagementClient) {\n this.client = client;\n }\n\n /**\n * Returns the list of supported REST 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 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 * Returns the list of supported REST 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 /**\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.AzureStack/operations\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.OperationList\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\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.OperationList\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.nextLink],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
2
|
-
import { Products } from "../operationsInterfaces";
|
|
3
|
-
import { AzureStackManagementClient } from "../azureStackManagementClient";
|
|
4
|
-
import { Product, ProductsListOptionalParams, ProductsGetOptionalParams, ProductsGetResponse, ProductsListDetailsOptionalParams, ProductsListDetailsResponse, ProductsGetProductsOptionalParams, ProductsGetProductsResponse, ProductsGetProductOptionalParams, ProductsGetProductResponse, ProductsUploadLogOptionalParams, ProductsUploadLogResponse } from "../models";
|
|
2
|
+
import { Products } from "../operationsInterfaces/index.js";
|
|
3
|
+
import { AzureStackManagementClient } from "../azureStackManagementClient.js";
|
|
4
|
+
import { Product, ProductsListOptionalParams, ProductsGetOptionalParams, ProductsGetResponse, ProductsListDetailsOptionalParams, ProductsListDetailsResponse, ProductsGetProductsOptionalParams, ProductsGetProductsResponse, ProductsGetProductOptionalParams, ProductsGetProductResponse, ProductsUploadLogOptionalParams, ProductsUploadLogResponse } from "../models/index.js";
|
|
5
5
|
/** Class containing Products operations. */
|
|
6
6
|
export declare class ProductsImpl implements Products {
|
|
7
7
|
private readonly client;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"products.d.ts","sourceRoot":"","sources":["../../../src/operations/products.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAgB,MAAM,oBAAoB,CAAC;AAE9E,OAAO,EAAE,QAAQ,EAAE,MAAM,kCAAkC,CAAC;AAI5D,OAAO,EAAE,0BAA0B,EAAE,MAAM,kCAAkC,CAAC;AAC9E,OAAO,EACL,OAAO,EAEP,0BAA0B,EAE1B,yBAAyB,EACzB,mBAAmB,EACnB,iCAAiC,EACjC,2BAA2B,EAC3B,iCAAiC,EACjC,2BAA2B,EAC3B,gCAAgC,EAChC,0BAA0B,EAC1B,+BAA+B,EAC/B,yBAAyB,EAE1B,MAAM,oBAAoB,CAAC;AAG5B,4CAA4C;AAC5C,qBAAa,YAAa,YAAW,QAAQ;IAC3C,OAAO,CAAC,QAAQ,CAAC,MAAM,CAA6B;IAEpD;;;OAGG;gBACS,MAAM,EAAE,0BAA0B;IAI9C;;;;;OAKG;IACI,IAAI,CACT,aAAa,EAAE,MAAM,EACrB,gBAAgB,EAAE,MAAM,EACxB,OAAO,CAAC,EAAE,0BAA0B,GACnC,0BAA0B,CAAC,OAAO,CAAC;YAuBvB,cAAc;YA6Bd,aAAa;IAc5B;;;;;OAKG;IACH,OAAO,CAAC,KAAK;IAWb;;;;;;OAMG;IACH,GAAG,CACD,aAAa,EAAE,MAAM,EACrB,gBAAgB,EAAE,MAAM,EACxB,WAAW,EAAE,MAAM,EACnB,OAAO,CAAC,EAAE,yBAAyB,GAClC,OAAO,CAAC,mBAAmB,CAAC;IAO/B;;;;;;OAMG;IACH,WAAW,CACT,aAAa,EAAE,MAAM,EACrB,gBAAgB,EAAE,MAAM,EACxB,WAAW,EAAE,MAAM,EACnB,OAAO,CAAC,EAAE,iCAAiC,GAC1C,OAAO,CAAC,2BAA2B,CAAC;IAOvC;;;;;;OAMG;IACH,WAAW,CACT,aAAa,EAAE,MAAM,EACrB,gBAAgB,EAAE,MAAM,EACxB,WAAW,EAAE,MAAM,EACnB,OAAO,CAAC,EAAE,iCAAiC,GAC1C,OAAO,CAAC,2BAA2B,CAAC;IAOvC;;;;;;OAMG;IACH,UAAU,CACR,aAAa,EAAE,MAAM,EACrB,gBAAgB,EAAE,MAAM,EACxB,WAAW,EAAE,MAAM,EACnB,OAAO,CAAC,EAAE,gCAAgC,GACzC,OAAO,CAAC,0BAA0B,CAAC;IAOtC;;;;;;OAMG;IACH,SAAS,CACP,aAAa,EAAE,MAAM,EACrB,gBAAgB,EAAE,MAAM,EACxB,WAAW,EAAE,MAAM,EACnB,OAAO,CAAC,EAAE,+BAA+B,GACxC,OAAO,CAAC,yBAAyB,CAAC;IAOrC;;;;;;OAMG;IACH,OAAO,CAAC,SAAS;CAWlB"}
|
|
@@ -5,13 +5,14 @@
|
|
|
5
5
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
7
|
*/
|
|
8
|
-
import {
|
|
8
|
+
import { setContinuationToken } from "../pagingHelper.js";
|
|
9
9
|
import * as coreClient from "@azure/core-client";
|
|
10
|
-
import * as Mappers from "../models/mappers";
|
|
11
|
-
import * as Parameters from "../models/parameters";
|
|
10
|
+
import * as Mappers from "../models/mappers.js";
|
|
11
|
+
import * as Parameters from "../models/parameters.js";
|
|
12
12
|
/// <reference lib="esnext.asynciterable" />
|
|
13
13
|
/** Class containing Products operations. */
|
|
14
14
|
export class ProductsImpl {
|
|
15
|
+
client;
|
|
15
16
|
/**
|
|
16
17
|
* Initialize a new instance of the class Products class.
|
|
17
18
|
* @param client Reference to the service client
|
|
@@ -34,40 +35,36 @@ export class ProductsImpl {
|
|
|
34
35
|
[Symbol.asyncIterator]() {
|
|
35
36
|
return this;
|
|
36
37
|
},
|
|
37
|
-
byPage: () => {
|
|
38
|
-
|
|
38
|
+
byPage: (settings) => {
|
|
39
|
+
if (settings?.maxPageSize) {
|
|
40
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
41
|
+
}
|
|
42
|
+
return this.listPagingPage(resourceGroup, registrationName, options, settings);
|
|
39
43
|
}
|
|
40
44
|
};
|
|
41
45
|
}
|
|
42
|
-
listPagingPage(resourceGroup, registrationName, options) {
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
46
|
+
async *listPagingPage(resourceGroup, registrationName, options, settings) {
|
|
47
|
+
let result;
|
|
48
|
+
let continuationToken = settings?.continuationToken;
|
|
49
|
+
if (!continuationToken) {
|
|
50
|
+
result = await this._list(resourceGroup, registrationName, options);
|
|
51
|
+
let page = result.value || [];
|
|
52
|
+
continuationToken = result.nextLink;
|
|
53
|
+
setContinuationToken(page, continuationToken);
|
|
54
|
+
yield page;
|
|
55
|
+
}
|
|
56
|
+
while (continuationToken) {
|
|
57
|
+
result = await this._listNext(resourceGroup, registrationName, continuationToken, options);
|
|
58
|
+
continuationToken = result.nextLink;
|
|
59
|
+
let page = result.value || [];
|
|
60
|
+
setContinuationToken(page, continuationToken);
|
|
61
|
+
yield page;
|
|
62
|
+
}
|
|
53
63
|
}
|
|
54
|
-
listPagingAll(resourceGroup, registrationName, options) {
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
for (var _b = __asyncValues(this.listPagingPage(resourceGroup, registrationName, options)), _c; _c = yield __await(_b.next()), !_c.done;) {
|
|
59
|
-
const page = _c.value;
|
|
60
|
-
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
64
|
-
finally {
|
|
65
|
-
try {
|
|
66
|
-
if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
|
|
67
|
-
}
|
|
68
|
-
finally { if (e_1) throw e_1.error; }
|
|
69
|
-
}
|
|
70
|
-
});
|
|
64
|
+
async *listPagingAll(resourceGroup, registrationName, options) {
|
|
65
|
+
for await (const page of this.listPagingPage(resourceGroup, registrationName, options)) {
|
|
66
|
+
yield* page;
|
|
67
|
+
}
|
|
71
68
|
}
|
|
72
69
|
/**
|
|
73
70
|
* Returns a list of products.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"products.js","sourceRoot":"","sources":["../../../src/operations/products.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;AAoBtD,4CAA4C;AAC5C,4CAA4C;AAC5C,MAAM,OAAO,YAAY;IACN,MAAM,CAA6B;IAEpD;;;OAGG;IACH,YAAY,MAAkC;QAC5C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;OAKG;IACI,IAAI,CACT,aAAqB,EACrB,gBAAwB,EACxB,OAAoC;QAEpC,MAAM,IAAI,GAAG,IAAI,CAAC,aAAa,CAAC,aAAa,EAAE,gBAAgB,EAAE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QACxB,UAAU,CAAC,gBAAgB;QAC3B,UAAU,CAAC,WAAW;KACvB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,EAAE,UAAU,CAAC,WAAW,CAAC;IAC7D,SAAS,EAAE,MAAM;IACjB,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,WAAW;SAChC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,aAAa;QACxB,UAAU,CAAC,gBAAgB;KAC5B;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 { Products } 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 { AzureStackManagementClient } from \"../azureStackManagementClient.js\";\nimport {\n Product,\n ProductsListNextOptionalParams,\n ProductsListOptionalParams,\n ProductsListResponse,\n ProductsGetOptionalParams,\n ProductsGetResponse,\n ProductsListDetailsOptionalParams,\n ProductsListDetailsResponse,\n ProductsGetProductsOptionalParams,\n ProductsGetProductsResponse,\n ProductsGetProductOptionalParams,\n ProductsGetProductResponse,\n ProductsUploadLogOptionalParams,\n ProductsUploadLogResponse,\n ProductsListNextResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing Products operations. */\nexport class ProductsImpl implements Products {\n private readonly client: AzureStackManagementClient;\n\n /**\n * Initialize a new instance of the class Products class.\n * @param client Reference to the service client\n */\n constructor(client: AzureStackManagementClient) {\n this.client = client;\n }\n\n /**\n * Returns a list of products.\n * @param resourceGroup Name of the resource group.\n * @param registrationName Name of the Azure Stack registration.\n * @param options The options parameters.\n */\n public list(\n resourceGroup: string,\n registrationName: string,\n options?: ProductsListOptionalParams\n ): PagedAsyncIterableIterator<Product> {\n const iter = this.listPagingAll(resourceGroup, registrationName, 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(\n resourceGroup,\n registrationName,\n options,\n settings\n );\n }\n };\n }\n\n private async *listPagingPage(\n resourceGroup: string,\n registrationName: string,\n options?: ProductsListOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<Product[]> {\n let result: ProductsListResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(resourceGroup, registrationName, 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(\n resourceGroup,\n registrationName,\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 *listPagingAll(\n resourceGroup: string,\n registrationName: string,\n options?: ProductsListOptionalParams\n ): AsyncIterableIterator<Product> {\n for await (const page of this.listPagingPage(\n resourceGroup,\n registrationName,\n options\n )) {\n yield* page;\n }\n }\n\n /**\n * Returns a list of products.\n * @param resourceGroup Name of the resource group.\n * @param registrationName Name of the Azure Stack registration.\n * @param options The options parameters.\n */\n private _list(\n resourceGroup: string,\n registrationName: string,\n options?: ProductsListOptionalParams\n ): Promise<ProductsListResponse> {\n return this.client.sendOperationRequest(\n { resourceGroup, registrationName, options },\n listOperationSpec\n );\n }\n\n /**\n * Returns the specified product.\n * @param resourceGroup Name of the resource group.\n * @param registrationName Name of the Azure Stack registration.\n * @param productName Name of the product.\n * @param options The options parameters.\n */\n get(\n resourceGroup: string,\n registrationName: string,\n productName: string,\n options?: ProductsGetOptionalParams\n ): Promise<ProductsGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroup, registrationName, productName, options },\n getOperationSpec\n );\n }\n\n /**\n * Returns the extended properties of a product.\n * @param resourceGroup Name of the resource group.\n * @param registrationName Name of the Azure Stack registration.\n * @param productName Name of the product.\n * @param options The options parameters.\n */\n listDetails(\n resourceGroup: string,\n registrationName: string,\n productName: string,\n options?: ProductsListDetailsOptionalParams\n ): Promise<ProductsListDetailsResponse> {\n return this.client.sendOperationRequest(\n { resourceGroup, registrationName, productName, options },\n listDetailsOperationSpec\n );\n }\n\n /**\n * Returns a list of products.\n * @param resourceGroup Name of the resource group.\n * @param registrationName Name of the Azure Stack registration.\n * @param productName Name of the product.\n * @param options The options parameters.\n */\n getProducts(\n resourceGroup: string,\n registrationName: string,\n productName: string,\n options?: ProductsGetProductsOptionalParams\n ): Promise<ProductsGetProductsResponse> {\n return this.client.sendOperationRequest(\n { resourceGroup, registrationName, productName, options },\n getProductsOperationSpec\n );\n }\n\n /**\n * Returns the specified product.\n * @param resourceGroup Name of the resource group.\n * @param registrationName Name of the Azure Stack registration.\n * @param productName Name of the product.\n * @param options The options parameters.\n */\n getProduct(\n resourceGroup: string,\n registrationName: string,\n productName: string,\n options?: ProductsGetProductOptionalParams\n ): Promise<ProductsGetProductResponse> {\n return this.client.sendOperationRequest(\n { resourceGroup, registrationName, productName, options },\n getProductOperationSpec\n );\n }\n\n /**\n * Returns the specified product.\n * @param resourceGroup Name of the resource group.\n * @param registrationName Name of the Azure Stack registration.\n * @param productName Name of the product.\n * @param options The options parameters.\n */\n uploadLog(\n resourceGroup: string,\n registrationName: string,\n productName: string,\n options?: ProductsUploadLogOptionalParams\n ): Promise<ProductsUploadLogResponse> {\n return this.client.sendOperationRequest(\n { resourceGroup, registrationName, productName, options },\n uploadLogOperationSpec\n );\n }\n\n /**\n * ListNext\n * @param resourceGroup Name of the resource group.\n * @param registrationName Name of the Azure Stack registration.\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 resourceGroup: string,\n registrationName: string,\n nextLink: string,\n options?: ProductsListNextOptionalParams\n ): Promise<ProductsListNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroup, registrationName, nextLink, options },\n listNextOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.AzureStack/registrations/{registrationName}/products\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ProductList\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroup,\n Parameters.registrationName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.AzureStack/registrations/{registrationName}/products/{productName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.Product\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroup,\n Parameters.registrationName,\n Parameters.productName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listDetailsOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.AzureStack/registrations/{registrationName}/products/{productName}/listDetails\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.ExtendedProduct\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroup,\n Parameters.registrationName,\n Parameters.productName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst getProductsOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.AzureStack/registrations/{registrationName}/products/{productName}/getProducts\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.ProductList\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n requestBody: Parameters.deviceConfiguration,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroup,\n Parameters.registrationName,\n Parameters.productName\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst getProductOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.AzureStack/registrations/{registrationName}/products/{productName}/getProduct\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.Product\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n requestBody: Parameters.deviceConfiguration,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroup,\n Parameters.registrationName,\n Parameters.productName\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst uploadLogOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.AzureStack/registrations/{registrationName}/products/{productName}/uploadProductLog\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.ProductLog\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n requestBody: Parameters.marketplaceProductLogUpdate,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroup,\n Parameters.registrationName,\n Parameters.productName\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ProductList\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.nextLink,\n Parameters.subscriptionId,\n Parameters.resourceGroup,\n Parameters.registrationName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
2
|
-
import { Registrations } from "../operationsInterfaces";
|
|
3
|
-
import { AzureStackManagementClient } from "../azureStackManagementClient";
|
|
4
|
-
import { Registration, RegistrationsListOptionalParams, RegistrationsListBySubscriptionOptionalParams, RegistrationsGetOptionalParams, RegistrationsGetResponse, RegistrationsDeleteOptionalParams, RegistrationParameter, RegistrationsCreateOrUpdateOptionalParams, RegistrationsCreateOrUpdateResponse, RegistrationsUpdateOptionalParams, RegistrationsUpdateResponse, RegistrationsGetActivationKeyOptionalParams, RegistrationsGetActivationKeyResponse, RegistrationsEnableRemoteManagementOptionalParams } from "../models";
|
|
2
|
+
import { Registrations } from "../operationsInterfaces/index.js";
|
|
3
|
+
import { AzureStackManagementClient } from "../azureStackManagementClient.js";
|
|
4
|
+
import { Registration, RegistrationsListOptionalParams, RegistrationsListBySubscriptionOptionalParams, RegistrationsGetOptionalParams, RegistrationsGetResponse, RegistrationsDeleteOptionalParams, RegistrationParameter, RegistrationsCreateOrUpdateOptionalParams, RegistrationsCreateOrUpdateResponse, RegistrationsUpdateOptionalParams, RegistrationsUpdateResponse, RegistrationsGetActivationKeyOptionalParams, RegistrationsGetActivationKeyResponse, RegistrationsEnableRemoteManagementOptionalParams } from "../models/index.js";
|
|
5
5
|
/** Class containing Registrations operations. */
|
|
6
6
|
export declare class RegistrationsImpl implements Registrations {
|
|
7
7
|
private readonly client;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"registrations.d.ts","sourceRoot":"","sources":["../../../src/operations/registrations.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAgB,MAAM,oBAAoB,CAAC;AAE9E,OAAO,EAAE,aAAa,EAAE,MAAM,kCAAkC,CAAC;AAIjE,OAAO,EAAE,0BAA0B,EAAE,MAAM,kCAAkC,CAAC;AAC9E,OAAO,EACL,YAAY,EAEZ,+BAA+B,EAG/B,6CAA6C,EAE7C,8BAA8B,EAC9B,wBAAwB,EACxB,iCAAiC,EACjC,qBAAqB,EACrB,yCAAyC,EACzC,mCAAmC,EACnC,iCAAiC,EACjC,2BAA2B,EAC3B,2CAA2C,EAC3C,qCAAqC,EACrC,iDAAiD,EAGlD,MAAM,oBAAoB,CAAC;AAG5B,iDAAiD;AACjD,qBAAa,iBAAkB,YAAW,aAAa;IACrD,OAAO,CAAC,QAAQ,CAAC,MAAM,CAA6B;IAEpD;;;OAGG;gBACS,MAAM,EAAE,0BAA0B;IAI9C;;;;OAIG;IACI,IAAI,CACT,aAAa,EAAE,MAAM,EACrB,OAAO,CAAC,EAAE,+BAA+B,GACxC,0BAA0B,CAAC,YAAY,CAAC;YAkB5B,cAAc;YAuBd,aAAa;IAS5B;;;OAGG;IACI,kBAAkB,CACvB,OAAO,CAAC,EAAE,6CAA6C,GACtD,0BAA0B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