@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,357 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Copyright (c) Microsoft Corporation.
|
|
4
|
+
* Licensed under the MIT License.
|
|
5
|
+
*
|
|
6
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
7
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
8
|
+
*/
|
|
9
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
+
exports.LinkedSubscriptionsImpl = void 0;
|
|
11
|
+
const tslib_1 = require("tslib");
|
|
12
|
+
const pagingHelper_js_1 = require("../pagingHelper.js");
|
|
13
|
+
const coreClient = tslib_1.__importStar(require("@azure/core-client"));
|
|
14
|
+
const Mappers = tslib_1.__importStar(require("../models/mappers.js"));
|
|
15
|
+
const Parameters = tslib_1.__importStar(require("../models/parameters.js"));
|
|
16
|
+
/// <reference lib="esnext.asynciterable" />
|
|
17
|
+
/** Class containing LinkedSubscriptions operations. */
|
|
18
|
+
class LinkedSubscriptionsImpl {
|
|
19
|
+
client;
|
|
20
|
+
/**
|
|
21
|
+
* Initialize a new instance of the class LinkedSubscriptions class.
|
|
22
|
+
* @param client Reference to the service client
|
|
23
|
+
*/
|
|
24
|
+
constructor(client) {
|
|
25
|
+
this.client = client;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Returns a list of all linked subscriptions under current resource group.
|
|
29
|
+
* @param resourceGroup Name of the resource group.
|
|
30
|
+
* @param options The options parameters.
|
|
31
|
+
*/
|
|
32
|
+
listByResourceGroup(resourceGroup, options) {
|
|
33
|
+
const iter = this.listByResourceGroupPagingAll(resourceGroup, options);
|
|
34
|
+
return {
|
|
35
|
+
next() {
|
|
36
|
+
return iter.next();
|
|
37
|
+
},
|
|
38
|
+
[Symbol.asyncIterator]() {
|
|
39
|
+
return this;
|
|
40
|
+
},
|
|
41
|
+
byPage: (settings) => {
|
|
42
|
+
if (settings?.maxPageSize) {
|
|
43
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
44
|
+
}
|
|
45
|
+
return this.listByResourceGroupPagingPage(resourceGroup, options, settings);
|
|
46
|
+
}
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
async *listByResourceGroupPagingPage(resourceGroup, options, settings) {
|
|
50
|
+
let result;
|
|
51
|
+
let continuationToken = settings?.continuationToken;
|
|
52
|
+
if (!continuationToken) {
|
|
53
|
+
result = await this._listByResourceGroup(resourceGroup, options);
|
|
54
|
+
let page = result.value || [];
|
|
55
|
+
continuationToken = result.nextLink;
|
|
56
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
57
|
+
yield page;
|
|
58
|
+
}
|
|
59
|
+
while (continuationToken) {
|
|
60
|
+
result = await this._listByResourceGroupNext(resourceGroup, continuationToken, options);
|
|
61
|
+
continuationToken = result.nextLink;
|
|
62
|
+
let page = result.value || [];
|
|
63
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
64
|
+
yield page;
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
async *listByResourceGroupPagingAll(resourceGroup, options) {
|
|
68
|
+
for await (const page of this.listByResourceGroupPagingPage(resourceGroup, options)) {
|
|
69
|
+
yield* page;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* Returns a list of all linked subscriptions under current subscription.
|
|
74
|
+
* @param options The options parameters.
|
|
75
|
+
*/
|
|
76
|
+
listBySubscription(options) {
|
|
77
|
+
const iter = this.listBySubscriptionPagingAll(options);
|
|
78
|
+
return {
|
|
79
|
+
next() {
|
|
80
|
+
return iter.next();
|
|
81
|
+
},
|
|
82
|
+
[Symbol.asyncIterator]() {
|
|
83
|
+
return this;
|
|
84
|
+
},
|
|
85
|
+
byPage: (settings) => {
|
|
86
|
+
if (settings?.maxPageSize) {
|
|
87
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
88
|
+
}
|
|
89
|
+
return this.listBySubscriptionPagingPage(options, settings);
|
|
90
|
+
}
|
|
91
|
+
};
|
|
92
|
+
}
|
|
93
|
+
async *listBySubscriptionPagingPage(options, settings) {
|
|
94
|
+
let result;
|
|
95
|
+
let continuationToken = settings?.continuationToken;
|
|
96
|
+
if (!continuationToken) {
|
|
97
|
+
result = await this._listBySubscription(options);
|
|
98
|
+
let page = result.value || [];
|
|
99
|
+
continuationToken = result.nextLink;
|
|
100
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
101
|
+
yield page;
|
|
102
|
+
}
|
|
103
|
+
while (continuationToken) {
|
|
104
|
+
result = await this._listBySubscriptionNext(continuationToken, options);
|
|
105
|
+
continuationToken = result.nextLink;
|
|
106
|
+
let page = result.value || [];
|
|
107
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
108
|
+
yield page;
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
async *listBySubscriptionPagingAll(options) {
|
|
112
|
+
for await (const page of this.listBySubscriptionPagingPage(options)) {
|
|
113
|
+
yield* page;
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
/**
|
|
117
|
+
* Returns a list of all linked subscriptions under current resource group.
|
|
118
|
+
* @param resourceGroup Name of the resource group.
|
|
119
|
+
* @param options The options parameters.
|
|
120
|
+
*/
|
|
121
|
+
_listByResourceGroup(resourceGroup, options) {
|
|
122
|
+
return this.client.sendOperationRequest({ resourceGroup, options }, listByResourceGroupOperationSpec);
|
|
123
|
+
}
|
|
124
|
+
/**
|
|
125
|
+
* Returns a list of all linked subscriptions under current subscription.
|
|
126
|
+
* @param options The options parameters.
|
|
127
|
+
*/
|
|
128
|
+
_listBySubscription(options) {
|
|
129
|
+
return this.client.sendOperationRequest({ options }, listBySubscriptionOperationSpec);
|
|
130
|
+
}
|
|
131
|
+
/**
|
|
132
|
+
* Returns the properties of a Linked Subscription resource.
|
|
133
|
+
* @param resourceGroup Name of the resource group.
|
|
134
|
+
* @param linkedSubscriptionName Name of the Linked Subscription resource.
|
|
135
|
+
* @param options The options parameters.
|
|
136
|
+
*/
|
|
137
|
+
get(resourceGroup, linkedSubscriptionName, options) {
|
|
138
|
+
return this.client.sendOperationRequest({ resourceGroup, linkedSubscriptionName, options }, getOperationSpec);
|
|
139
|
+
}
|
|
140
|
+
/**
|
|
141
|
+
* Delete the requested Linked Subscription resource.
|
|
142
|
+
* @param resourceGroup Name of the resource group.
|
|
143
|
+
* @param linkedSubscriptionName Name of the Linked Subscription resource.
|
|
144
|
+
* @param options The options parameters.
|
|
145
|
+
*/
|
|
146
|
+
delete(resourceGroup, linkedSubscriptionName, options) {
|
|
147
|
+
return this.client.sendOperationRequest({ resourceGroup, linkedSubscriptionName, options }, deleteOperationSpec);
|
|
148
|
+
}
|
|
149
|
+
/**
|
|
150
|
+
* Create or update a linked subscription resource.
|
|
151
|
+
* @param resourceGroup Name of the resource group.
|
|
152
|
+
* @param linkedSubscriptionName Name of the Linked Subscription resource.
|
|
153
|
+
* @param resource Linked subscription resource parameter.
|
|
154
|
+
* @param options The options parameters.
|
|
155
|
+
*/
|
|
156
|
+
createOrUpdate(resourceGroup, linkedSubscriptionName, resource, options) {
|
|
157
|
+
return this.client.sendOperationRequest({ resourceGroup, linkedSubscriptionName, resource, options }, createOrUpdateOperationSpec);
|
|
158
|
+
}
|
|
159
|
+
/**
|
|
160
|
+
* Patch a Linked Subscription resource.
|
|
161
|
+
* @param resourceGroup Name of the resource group.
|
|
162
|
+
* @param linkedSubscriptionName Name of the Linked Subscription resource.
|
|
163
|
+
* @param resource Linked subscription resource parameter.
|
|
164
|
+
* @param options The options parameters.
|
|
165
|
+
*/
|
|
166
|
+
update(resourceGroup, linkedSubscriptionName, resource, options) {
|
|
167
|
+
return this.client.sendOperationRequest({ resourceGroup, linkedSubscriptionName, resource, options }, updateOperationSpec);
|
|
168
|
+
}
|
|
169
|
+
/**
|
|
170
|
+
* ListByResourceGroupNext
|
|
171
|
+
* @param resourceGroup Name of the resource group.
|
|
172
|
+
* @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
|
|
173
|
+
* @param options The options parameters.
|
|
174
|
+
*/
|
|
175
|
+
_listByResourceGroupNext(resourceGroup, nextLink, options) {
|
|
176
|
+
return this.client.sendOperationRequest({ resourceGroup, nextLink, options }, listByResourceGroupNextOperationSpec);
|
|
177
|
+
}
|
|
178
|
+
/**
|
|
179
|
+
* ListBySubscriptionNext
|
|
180
|
+
* @param nextLink The nextLink from the previous successful call to the ListBySubscription method.
|
|
181
|
+
* @param options The options parameters.
|
|
182
|
+
*/
|
|
183
|
+
_listBySubscriptionNext(nextLink, options) {
|
|
184
|
+
return this.client.sendOperationRequest({ nextLink, options }, listBySubscriptionNextOperationSpec);
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
exports.LinkedSubscriptionsImpl = LinkedSubscriptionsImpl;
|
|
188
|
+
// Operation Specifications
|
|
189
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
190
|
+
const listByResourceGroupOperationSpec = {
|
|
191
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.AzureStack/linkedSubscriptions",
|
|
192
|
+
httpMethod: "GET",
|
|
193
|
+
responses: {
|
|
194
|
+
200: {
|
|
195
|
+
bodyMapper: Mappers.LinkedSubscriptionsList
|
|
196
|
+
},
|
|
197
|
+
default: {
|
|
198
|
+
bodyMapper: Mappers.ErrorResponse
|
|
199
|
+
}
|
|
200
|
+
},
|
|
201
|
+
queryParameters: [Parameters.apiVersion],
|
|
202
|
+
urlParameters: [
|
|
203
|
+
Parameters.$host,
|
|
204
|
+
Parameters.subscriptionId,
|
|
205
|
+
Parameters.resourceGroup
|
|
206
|
+
],
|
|
207
|
+
headerParameters: [Parameters.accept],
|
|
208
|
+
serializer
|
|
209
|
+
};
|
|
210
|
+
const listBySubscriptionOperationSpec = {
|
|
211
|
+
path: "/subscriptions/{subscriptionId}/providers/Microsoft.AzureStack/linkedSubscriptions",
|
|
212
|
+
httpMethod: "GET",
|
|
213
|
+
responses: {
|
|
214
|
+
200: {
|
|
215
|
+
bodyMapper: Mappers.LinkedSubscriptionsList
|
|
216
|
+
},
|
|
217
|
+
default: {
|
|
218
|
+
bodyMapper: Mappers.ErrorResponse
|
|
219
|
+
}
|
|
220
|
+
},
|
|
221
|
+
queryParameters: [Parameters.apiVersion],
|
|
222
|
+
urlParameters: [Parameters.$host, Parameters.subscriptionId],
|
|
223
|
+
headerParameters: [Parameters.accept],
|
|
224
|
+
serializer
|
|
225
|
+
};
|
|
226
|
+
const getOperationSpec = {
|
|
227
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.AzureStack/linkedSubscriptions/{linkedSubscriptionName}",
|
|
228
|
+
httpMethod: "GET",
|
|
229
|
+
responses: {
|
|
230
|
+
200: {
|
|
231
|
+
bodyMapper: Mappers.LinkedSubscription
|
|
232
|
+
},
|
|
233
|
+
default: {
|
|
234
|
+
bodyMapper: Mappers.ErrorResponse
|
|
235
|
+
}
|
|
236
|
+
},
|
|
237
|
+
queryParameters: [Parameters.apiVersion],
|
|
238
|
+
urlParameters: [
|
|
239
|
+
Parameters.$host,
|
|
240
|
+
Parameters.subscriptionId,
|
|
241
|
+
Parameters.resourceGroup,
|
|
242
|
+
Parameters.linkedSubscriptionName
|
|
243
|
+
],
|
|
244
|
+
headerParameters: [Parameters.accept],
|
|
245
|
+
serializer
|
|
246
|
+
};
|
|
247
|
+
const deleteOperationSpec = {
|
|
248
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.AzureStack/linkedSubscriptions/{linkedSubscriptionName}",
|
|
249
|
+
httpMethod: "DELETE",
|
|
250
|
+
responses: {
|
|
251
|
+
200: {},
|
|
252
|
+
204: {},
|
|
253
|
+
default: {
|
|
254
|
+
bodyMapper: Mappers.ErrorResponse
|
|
255
|
+
}
|
|
256
|
+
},
|
|
257
|
+
queryParameters: [Parameters.apiVersion],
|
|
258
|
+
urlParameters: [
|
|
259
|
+
Parameters.$host,
|
|
260
|
+
Parameters.subscriptionId,
|
|
261
|
+
Parameters.resourceGroup,
|
|
262
|
+
Parameters.linkedSubscriptionName
|
|
263
|
+
],
|
|
264
|
+
headerParameters: [Parameters.accept],
|
|
265
|
+
serializer
|
|
266
|
+
};
|
|
267
|
+
const createOrUpdateOperationSpec = {
|
|
268
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.AzureStack/linkedSubscriptions/{linkedSubscriptionName}",
|
|
269
|
+
httpMethod: "PUT",
|
|
270
|
+
responses: {
|
|
271
|
+
200: {
|
|
272
|
+
bodyMapper: Mappers.LinkedSubscription
|
|
273
|
+
},
|
|
274
|
+
201: {
|
|
275
|
+
bodyMapper: Mappers.LinkedSubscription
|
|
276
|
+
},
|
|
277
|
+
default: {
|
|
278
|
+
bodyMapper: Mappers.ErrorResponse
|
|
279
|
+
}
|
|
280
|
+
},
|
|
281
|
+
requestBody: Parameters.resource,
|
|
282
|
+
queryParameters: [Parameters.apiVersion],
|
|
283
|
+
urlParameters: [
|
|
284
|
+
Parameters.$host,
|
|
285
|
+
Parameters.subscriptionId,
|
|
286
|
+
Parameters.resourceGroup,
|
|
287
|
+
Parameters.linkedSubscriptionName
|
|
288
|
+
],
|
|
289
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
290
|
+
mediaType: "json",
|
|
291
|
+
serializer
|
|
292
|
+
};
|
|
293
|
+
const updateOperationSpec = {
|
|
294
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.AzureStack/linkedSubscriptions/{linkedSubscriptionName}",
|
|
295
|
+
httpMethod: "PATCH",
|
|
296
|
+
responses: {
|
|
297
|
+
200: {
|
|
298
|
+
bodyMapper: Mappers.LinkedSubscription
|
|
299
|
+
},
|
|
300
|
+
default: {
|
|
301
|
+
bodyMapper: Mappers.ErrorResponse
|
|
302
|
+
}
|
|
303
|
+
},
|
|
304
|
+
requestBody: Parameters.resource,
|
|
305
|
+
queryParameters: [Parameters.apiVersion],
|
|
306
|
+
urlParameters: [
|
|
307
|
+
Parameters.$host,
|
|
308
|
+
Parameters.subscriptionId,
|
|
309
|
+
Parameters.resourceGroup,
|
|
310
|
+
Parameters.linkedSubscriptionName
|
|
311
|
+
],
|
|
312
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
313
|
+
mediaType: "json",
|
|
314
|
+
serializer
|
|
315
|
+
};
|
|
316
|
+
const listByResourceGroupNextOperationSpec = {
|
|
317
|
+
path: "{nextLink}",
|
|
318
|
+
httpMethod: "GET",
|
|
319
|
+
responses: {
|
|
320
|
+
200: {
|
|
321
|
+
bodyMapper: Mappers.LinkedSubscriptionsList
|
|
322
|
+
},
|
|
323
|
+
default: {
|
|
324
|
+
bodyMapper: Mappers.ErrorResponse
|
|
325
|
+
}
|
|
326
|
+
},
|
|
327
|
+
queryParameters: [Parameters.apiVersion],
|
|
328
|
+
urlParameters: [
|
|
329
|
+
Parameters.$host,
|
|
330
|
+
Parameters.nextLink,
|
|
331
|
+
Parameters.subscriptionId,
|
|
332
|
+
Parameters.resourceGroup
|
|
333
|
+
],
|
|
334
|
+
headerParameters: [Parameters.accept],
|
|
335
|
+
serializer
|
|
336
|
+
};
|
|
337
|
+
const listBySubscriptionNextOperationSpec = {
|
|
338
|
+
path: "{nextLink}",
|
|
339
|
+
httpMethod: "GET",
|
|
340
|
+
responses: {
|
|
341
|
+
200: {
|
|
342
|
+
bodyMapper: Mappers.LinkedSubscriptionsList
|
|
343
|
+
},
|
|
344
|
+
default: {
|
|
345
|
+
bodyMapper: Mappers.ErrorResponse
|
|
346
|
+
}
|
|
347
|
+
},
|
|
348
|
+
queryParameters: [Parameters.apiVersion],
|
|
349
|
+
urlParameters: [
|
|
350
|
+
Parameters.$host,
|
|
351
|
+
Parameters.nextLink,
|
|
352
|
+
Parameters.subscriptionId
|
|
353
|
+
],
|
|
354
|
+
headerParameters: [Parameters.accept],
|
|
355
|
+
serializer
|
|
356
|
+
};
|
|
357
|
+
//# sourceMappingURL=linkedSubscriptions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"linkedSubscriptions.js","sourceRoot":"","sources":["../../../src/operations/linkedSubscriptions.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,wDAA0D;AAE1D,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAsBtD,4CAA4C;AAC5C,uDAAuD;AACvD,MAAa,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,C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B,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,aAAa;QACxB,UAAU,CAAC,sBAAsB;KAClC;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,EAAE,UAAU,CAAC,WAAW,CAAC;IAC7D,SAAS,EAAE,MAAM;IACjB,UAAU;CACX,CAAC;AACF,MAAM,oCAAoC,GAA6B;IACrE,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,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;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"]}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
2
|
+
import { Operations } from "../operationsInterfaces/index.js";
|
|
3
|
+
import { AzureStackManagementClient } from "../azureStackManagementClient.js";
|
|
4
|
+
import { Operation, OperationsListOptionalParams } from "../models/index.js";
|
|
5
|
+
/** Class containing Operations operations. */
|
|
6
|
+
export declare class OperationsImpl implements Operations {
|
|
7
|
+
private readonly client;
|
|
8
|
+
/**
|
|
9
|
+
* Initialize a new instance of the class Operations class.
|
|
10
|
+
* @param client Reference to the service client
|
|
11
|
+
*/
|
|
12
|
+
constructor(client: AzureStackManagementClient);
|
|
13
|
+
/**
|
|
14
|
+
* Returns the list of supported REST operations.
|
|
15
|
+
* @param options The options parameters.
|
|
16
|
+
*/
|
|
17
|
+
list(options?: OperationsListOptionalParams): PagedAsyncIterableIterator<Operation>;
|
|
18
|
+
private listPagingPage;
|
|
19
|
+
private listPagingAll;
|
|
20
|
+
/**
|
|
21
|
+
* Returns the list of supported REST operations.
|
|
22
|
+
* @param options The options parameters.
|
|
23
|
+
*/
|
|
24
|
+
private _list;
|
|
25
|
+
/**
|
|
26
|
+
* ListNext
|
|
27
|
+
* @param nextLink The nextLink from the previous successful call to the List method.
|
|
28
|
+
* @param options The options parameters.
|
|
29
|
+
*/
|
|
30
|
+
private _listNext;
|
|
31
|
+
}
|
|
32
|
+
//# sourceMappingURL=operations.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"operations.d.ts","sourceRoot":"","sources":["../../../src/operations/operations.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAgB,MAAM,oBAAoB,CAAC;AAE9E,OAAO,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAC;AAI9D,OAAO,EAAE,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"}
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Copyright (c) Microsoft Corporation.
|
|
4
|
+
* Licensed under the MIT License.
|
|
5
|
+
*
|
|
6
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
7
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
8
|
+
*/
|
|
9
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
+
exports.OperationsImpl = void 0;
|
|
11
|
+
const tslib_1 = require("tslib");
|
|
12
|
+
const pagingHelper_js_1 = require("../pagingHelper.js");
|
|
13
|
+
const coreClient = tslib_1.__importStar(require("@azure/core-client"));
|
|
14
|
+
const Mappers = tslib_1.__importStar(require("../models/mappers.js"));
|
|
15
|
+
const Parameters = tslib_1.__importStar(require("../models/parameters.js"));
|
|
16
|
+
/// <reference lib="esnext.asynciterable" />
|
|
17
|
+
/** Class containing Operations operations. */
|
|
18
|
+
class OperationsImpl {
|
|
19
|
+
client;
|
|
20
|
+
/**
|
|
21
|
+
* Initialize a new instance of the class Operations class.
|
|
22
|
+
* @param client Reference to the service client
|
|
23
|
+
*/
|
|
24
|
+
constructor(client) {
|
|
25
|
+
this.client = client;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Returns the list of supported REST operations.
|
|
29
|
+
* @param options The options parameters.
|
|
30
|
+
*/
|
|
31
|
+
list(options) {
|
|
32
|
+
const iter = this.listPagingAll(options);
|
|
33
|
+
return {
|
|
34
|
+
next() {
|
|
35
|
+
return iter.next();
|
|
36
|
+
},
|
|
37
|
+
[Symbol.asyncIterator]() {
|
|
38
|
+
return this;
|
|
39
|
+
},
|
|
40
|
+
byPage: (settings) => {
|
|
41
|
+
if (settings?.maxPageSize) {
|
|
42
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
43
|
+
}
|
|
44
|
+
return this.listPagingPage(options, settings);
|
|
45
|
+
}
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
async *listPagingPage(options, settings) {
|
|
49
|
+
let result;
|
|
50
|
+
let continuationToken = settings?.continuationToken;
|
|
51
|
+
if (!continuationToken) {
|
|
52
|
+
result = await this._list(options);
|
|
53
|
+
let page = result.value || [];
|
|
54
|
+
continuationToken = result.nextLink;
|
|
55
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
56
|
+
yield page;
|
|
57
|
+
}
|
|
58
|
+
while (continuationToken) {
|
|
59
|
+
result = await this._listNext(continuationToken, options);
|
|
60
|
+
continuationToken = result.nextLink;
|
|
61
|
+
let page = result.value || [];
|
|
62
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
63
|
+
yield page;
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
async *listPagingAll(options) {
|
|
67
|
+
for await (const page of this.listPagingPage(options)) {
|
|
68
|
+
yield* page;
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
/**
|
|
72
|
+
* Returns the list of supported REST operations.
|
|
73
|
+
* @param options The options parameters.
|
|
74
|
+
*/
|
|
75
|
+
_list(options) {
|
|
76
|
+
return this.client.sendOperationRequest({ options }, listOperationSpec);
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
* ListNext
|
|
80
|
+
* @param nextLink The nextLink from the previous successful call to the List method.
|
|
81
|
+
* @param options The options parameters.
|
|
82
|
+
*/
|
|
83
|
+
_listNext(nextLink, options) {
|
|
84
|
+
return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec);
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
exports.OperationsImpl = OperationsImpl;
|
|
88
|
+
// Operation Specifications
|
|
89
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
90
|
+
const listOperationSpec = {
|
|
91
|
+
path: "/providers/Microsoft.AzureStack/operations",
|
|
92
|
+
httpMethod: "GET",
|
|
93
|
+
responses: {
|
|
94
|
+
200: {
|
|
95
|
+
bodyMapper: Mappers.OperationList
|
|
96
|
+
},
|
|
97
|
+
default: {
|
|
98
|
+
bodyMapper: Mappers.ErrorResponse
|
|
99
|
+
}
|
|
100
|
+
},
|
|
101
|
+
queryParameters: [Parameters.apiVersion],
|
|
102
|
+
urlParameters: [Parameters.$host],
|
|
103
|
+
headerParameters: [Parameters.accept],
|
|
104
|
+
serializer
|
|
105
|
+
};
|
|
106
|
+
const listNextOperationSpec = {
|
|
107
|
+
path: "{nextLink}",
|
|
108
|
+
httpMethod: "GET",
|
|
109
|
+
responses: {
|
|
110
|
+
200: {
|
|
111
|
+
bodyMapper: Mappers.OperationList
|
|
112
|
+
},
|
|
113
|
+
default: {
|
|
114
|
+
bodyMapper: Mappers.ErrorResponse
|
|
115
|
+
}
|
|
116
|
+
},
|
|
117
|
+
queryParameters: [Parameters.apiVersion],
|
|
118
|
+
urlParameters: [Parameters.$host, Parameters.nextLink],
|
|
119
|
+
headerParameters: [Parameters.accept],
|
|
120
|
+
serializer
|
|
121
|
+
};
|
|
122
|
+
//# sourceMappingURL=operations.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"operations.js","sourceRoot":"","sources":["../../../src/operations/operations.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,wDAA0D;AAE1D,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAUtD,4CAA4C;AAC5C,8CAA8C;AAC9C,MAAa,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,IAAI,CAAC;YACd,CAAC;YACD,MAAM,EAAE,CAAC,QAAuB,EAAE,EAAE;gBAClC,IAAI,QAAQ,EAAE,WAAW,EAAE,CAAC;oBAC1B,MAAM,IAAI,KAAK,CAAC,iDAAiD,CAAC,CAAC;gBACrE,CAAC;gBACD,OAAO,IAAI,CAAC,cAAc,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC;YAChD,CAAC;SACF,CAAC;IACJ,CAAC;IAEO,KAAK,CAAC,CAAC,cAAc,CAC3B,OAAsC,EACtC,QAAuB;QAEvB,IAAI,MAA8B,CAAC;QACnC,IAAI,iBAAiB,GAAG,QAAQ,EAAE,iBAAiB,CAAC;QACpD,IAAI,CAAC,iBAAiB,EAAE,CAAC;YACvB,MAAM,GAAG,MAAM,IAAI,CAAC,KAAK,CAAC,OAA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A4C;IAClD,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,CAAC;IACjC,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,qBAAqB,GAA6B;IACtD,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,QAAQ,CAAC;IACtD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { Operations } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { 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"]}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
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
|
+
/** Class containing Products operations. */
|
|
6
|
+
export declare class ProductsImpl implements Products {
|
|
7
|
+
private readonly client;
|
|
8
|
+
/**
|
|
9
|
+
* Initialize a new instance of the class Products class.
|
|
10
|
+
* @param client Reference to the service client
|
|
11
|
+
*/
|
|
12
|
+
constructor(client: AzureStackManagementClient);
|
|
13
|
+
/**
|
|
14
|
+
* Returns a list of products.
|
|
15
|
+
* @param resourceGroup Name of the resource group.
|
|
16
|
+
* @param registrationName Name of the Azure Stack registration.
|
|
17
|
+
* @param options The options parameters.
|
|
18
|
+
*/
|
|
19
|
+
list(resourceGroup: string, registrationName: string, options?: ProductsListOptionalParams): PagedAsyncIterableIterator<Product>;
|
|
20
|
+
private listPagingPage;
|
|
21
|
+
private listPagingAll;
|
|
22
|
+
/**
|
|
23
|
+
* Returns a list of products.
|
|
24
|
+
* @param resourceGroup Name of the resource group.
|
|
25
|
+
* @param registrationName Name of the Azure Stack registration.
|
|
26
|
+
* @param options The options parameters.
|
|
27
|
+
*/
|
|
28
|
+
private _list;
|
|
29
|
+
/**
|
|
30
|
+
* Returns the specified product.
|
|
31
|
+
* @param resourceGroup Name of the resource group.
|
|
32
|
+
* @param registrationName Name of the Azure Stack registration.
|
|
33
|
+
* @param productName Name of the product.
|
|
34
|
+
* @param options The options parameters.
|
|
35
|
+
*/
|
|
36
|
+
get(resourceGroup: string, registrationName: string, productName: string, options?: ProductsGetOptionalParams): Promise<ProductsGetResponse>;
|
|
37
|
+
/**
|
|
38
|
+
* Returns the extended properties of a product.
|
|
39
|
+
* @param resourceGroup Name of the resource group.
|
|
40
|
+
* @param registrationName Name of the Azure Stack registration.
|
|
41
|
+
* @param productName Name of the product.
|
|
42
|
+
* @param options The options parameters.
|
|
43
|
+
*/
|
|
44
|
+
listDetails(resourceGroup: string, registrationName: string, productName: string, options?: ProductsListDetailsOptionalParams): Promise<ProductsListDetailsResponse>;
|
|
45
|
+
/**
|
|
46
|
+
* Returns a list of products.
|
|
47
|
+
* @param resourceGroup Name of the resource group.
|
|
48
|
+
* @param registrationName Name of the Azure Stack registration.
|
|
49
|
+
* @param productName Name of the product.
|
|
50
|
+
* @param options The options parameters.
|
|
51
|
+
*/
|
|
52
|
+
getProducts(resourceGroup: string, registrationName: string, productName: string, options?: ProductsGetProductsOptionalParams): Promise<ProductsGetProductsResponse>;
|
|
53
|
+
/**
|
|
54
|
+
* Returns the specified product.
|
|
55
|
+
* @param resourceGroup Name of the resource group.
|
|
56
|
+
* @param registrationName Name of the Azure Stack registration.
|
|
57
|
+
* @param productName Name of the product.
|
|
58
|
+
* @param options The options parameters.
|
|
59
|
+
*/
|
|
60
|
+
getProduct(resourceGroup: string, registrationName: string, productName: string, options?: ProductsGetProductOptionalParams): Promise<ProductsGetProductResponse>;
|
|
61
|
+
/**
|
|
62
|
+
* Returns the specified product.
|
|
63
|
+
* @param resourceGroup Name of the resource group.
|
|
64
|
+
* @param registrationName Name of the Azure Stack registration.
|
|
65
|
+
* @param productName Name of the product.
|
|
66
|
+
* @param options The options parameters.
|
|
67
|
+
*/
|
|
68
|
+
uploadLog(resourceGroup: string, registrationName: string, productName: string, options?: ProductsUploadLogOptionalParams): Promise<ProductsUploadLogResponse>;
|
|
69
|
+
/**
|
|
70
|
+
* ListNext
|
|
71
|
+
* @param resourceGroup Name of the resource group.
|
|
72
|
+
* @param registrationName Name of the Azure Stack registration.
|
|
73
|
+
* @param nextLink The nextLink from the previous successful call to the List method.
|
|
74
|
+
* @param options The options parameters.
|
|
75
|
+
*/
|
|
76
|
+
private _listNext;
|
|
77
|
+
}
|
|
78
|
+
//# sourceMappingURL=products.d.ts.map
|
|
@@ -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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