@azure/arm-hybridconnectivity 2.0.0-beta.1 → 2.0.0-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +16 -15
- package/dist/browser/api/endpoints/operations.d.ts +1 -1
- package/dist/browser/api/endpoints/operations.js +94 -44
- package/dist/browser/api/endpoints/operations.js.map +1 -1
- package/dist/browser/api/generateAwsTemplate/operations.d.ts +3 -3
- package/dist/browser/api/generateAwsTemplate/operations.js +14 -7
- package/dist/browser/api/generateAwsTemplate/operations.js.map +1 -1
- package/dist/browser/api/hybridConnectivityManagementAPIContext.d.ts +3 -0
- package/dist/browser/api/hybridConnectivityManagementAPIContext.js +18 -11
- package/dist/browser/api/hybridConnectivityManagementAPIContext.js.map +1 -1
- package/dist/browser/api/inventory/operations.d.ts +1 -1
- package/dist/browser/api/inventory/operations.js +20 -10
- package/dist/browser/api/inventory/operations.js.map +1 -1
- package/dist/browser/api/operations/operations.d.ts +1 -1
- package/dist/browser/api/operations/operations.js +11 -6
- package/dist/browser/api/operations/operations.js.map +1 -1
- package/dist/browser/api/publicCloudConnectors/operations.d.ts +2 -2
- package/dist/browser/api/publicCloudConnectors/operations.js +81 -42
- package/dist/browser/api/publicCloudConnectors/operations.js.map +1 -1
- package/dist/browser/api/serviceConfigurations/operations.d.ts +1 -1
- package/dist/browser/api/serviceConfigurations/operations.js +54 -25
- package/dist/browser/api/serviceConfigurations/operations.js.map +1 -1
- package/dist/browser/api/solutionConfigurations/operations.d.ts +2 -2
- package/dist/browser/api/solutionConfigurations/operations.js +67 -33
- package/dist/browser/api/solutionConfigurations/operations.js.map +1 -1
- package/dist/browser/api/solutionTypes/operations.d.ts +1 -1
- package/dist/browser/api/solutionTypes/operations.js +31 -16
- package/dist/browser/api/solutionTypes/operations.js.map +1 -1
- package/dist/browser/classic/endpoints/index.d.ts +1 -1
- package/dist/browser/classic/endpoints/index.js +3 -1
- package/dist/browser/classic/endpoints/index.js.map +1 -1
- package/dist/browser/classic/generateAwsTemplate/index.d.ts +2 -2
- package/dist/browser/classic/generateAwsTemplate/index.js +3 -1
- package/dist/browser/classic/generateAwsTemplate/index.js.map +1 -1
- package/dist/browser/classic/inventory/index.d.ts +1 -1
- package/dist/browser/classic/inventory/index.js +3 -1
- package/dist/browser/classic/inventory/index.js.map +1 -1
- package/dist/browser/classic/operations/index.d.ts +1 -1
- package/dist/browser/classic/operations/index.js +3 -1
- package/dist/browser/classic/operations/index.js.map +1 -1
- package/dist/browser/classic/publicCloudConnectors/index.d.ts +1 -1
- package/dist/browser/classic/publicCloudConnectors/index.js +3 -1
- package/dist/browser/classic/publicCloudConnectors/index.js.map +1 -1
- package/dist/browser/classic/serviceConfigurations/index.d.ts +1 -1
- package/dist/browser/classic/serviceConfigurations/index.js +3 -1
- package/dist/browser/classic/serviceConfigurations/index.js.map +1 -1
- package/dist/browser/classic/solutionConfigurations/index.d.ts +1 -1
- package/dist/browser/classic/solutionConfigurations/index.js +3 -1
- package/dist/browser/classic/solutionConfigurations/index.js.map +1 -1
- package/dist/browser/classic/solutionTypes/index.d.ts +1 -1
- package/dist/browser/classic/solutionTypes/index.js +3 -1
- package/dist/browser/classic/solutionTypes/index.js.map +1 -1
- package/dist/browser/hybridConnectivityManagementAPI.d.ts +6 -6
- package/dist/browser/hybridConnectivityManagementAPI.js +29 -8
- package/dist/browser/hybridConnectivityManagementAPI.js.map +1 -1
- package/dist/browser/index.d.ts +3 -1
- package/dist/browser/index.js +3 -1
- package/dist/browser/index.js.map +1 -1
- package/dist/browser/models/index.d.ts +1 -1
- package/dist/browser/models/index.js +1 -1
- package/dist/browser/models/index.js.map +1 -1
- package/dist/browser/models/models.d.ts +463 -465
- package/dist/browser/models/models.js +359 -359
- package/dist/browser/models/models.js.map +1 -1
- package/dist/browser/restorePollerHelpers.js +12 -14
- package/dist/browser/restorePollerHelpers.js.map +1 -1
- package/dist/browser/static-helpers/cloudSettingHelpers.d.ts +13 -0
- package/dist/browser/static-helpers/cloudSettingHelpers.js +29 -0
- package/dist/browser/static-helpers/cloudSettingHelpers.js.map +1 -0
- package/dist/browser/static-helpers/pagingHelpers.js +31 -50
- package/dist/browser/static-helpers/pagingHelpers.js.map +1 -1
- package/dist/browser/static-helpers/pollingHelpers.js +14 -11
- package/dist/browser/static-helpers/pollingHelpers.js.map +1 -1
- package/dist/browser/static-helpers/serialization/serialize-record.d.ts +2 -0
- package/dist/browser/static-helpers/serialization/serialize-record.js +19 -0
- package/dist/browser/static-helpers/serialization/serialize-record.js.map +1 -0
- package/dist/browser/static-helpers/urlTemplate.js +5 -4
- package/dist/browser/static-helpers/urlTemplate.js.map +1 -1
- package/dist/commonjs/api/endpoints/operations.d.ts +1 -1
- package/dist/commonjs/api/endpoints/operations.js +94 -44
- package/dist/commonjs/api/endpoints/operations.js.map +1 -1
- package/dist/commonjs/api/generateAwsTemplate/operations.d.ts +3 -3
- package/dist/commonjs/api/generateAwsTemplate/operations.js +13 -6
- package/dist/commonjs/api/generateAwsTemplate/operations.js.map +1 -1
- package/dist/commonjs/api/hybridConnectivityManagementAPIContext.d.ts +3 -0
- package/dist/commonjs/api/hybridConnectivityManagementAPIContext.js +18 -11
- package/dist/commonjs/api/hybridConnectivityManagementAPIContext.js.map +1 -1
- package/dist/commonjs/api/inventory/operations.d.ts +1 -1
- package/dist/commonjs/api/inventory/operations.js +20 -10
- package/dist/commonjs/api/inventory/operations.js.map +1 -1
- package/dist/commonjs/api/operations/operations.d.ts +1 -1
- package/dist/commonjs/api/operations/operations.js +10 -5
- package/dist/commonjs/api/operations/operations.js.map +1 -1
- package/dist/commonjs/api/publicCloudConnectors/operations.d.ts +2 -2
- package/dist/commonjs/api/publicCloudConnectors/operations.js +80 -41
- package/dist/commonjs/api/publicCloudConnectors/operations.js.map +1 -1
- package/dist/commonjs/api/serviceConfigurations/operations.d.ts +1 -1
- package/dist/commonjs/api/serviceConfigurations/operations.js +54 -25
- package/dist/commonjs/api/serviceConfigurations/operations.js.map +1 -1
- package/dist/commonjs/api/solutionConfigurations/operations.d.ts +2 -2
- package/dist/commonjs/api/solutionConfigurations/operations.js +66 -32
- package/dist/commonjs/api/solutionConfigurations/operations.js.map +1 -1
- package/dist/commonjs/api/solutionTypes/operations.d.ts +1 -1
- package/dist/commonjs/api/solutionTypes/operations.js +30 -15
- package/dist/commonjs/api/solutionTypes/operations.js.map +1 -1
- package/dist/commonjs/classic/endpoints/index.d.ts +1 -1
- package/dist/commonjs/classic/endpoints/index.js +3 -1
- package/dist/commonjs/classic/endpoints/index.js.map +1 -1
- package/dist/commonjs/classic/generateAwsTemplate/index.d.ts +2 -2
- package/dist/commonjs/classic/generateAwsTemplate/index.js +3 -1
- package/dist/commonjs/classic/generateAwsTemplate/index.js.map +1 -1
- package/dist/commonjs/classic/inventory/index.d.ts +1 -1
- package/dist/commonjs/classic/inventory/index.js +3 -1
- package/dist/commonjs/classic/inventory/index.js.map +1 -1
- package/dist/commonjs/classic/operations/index.d.ts +1 -1
- package/dist/commonjs/classic/operations/index.js +3 -1
- package/dist/commonjs/classic/operations/index.js.map +1 -1
- package/dist/commonjs/classic/publicCloudConnectors/index.d.ts +1 -1
- package/dist/commonjs/classic/publicCloudConnectors/index.js +3 -1
- package/dist/commonjs/classic/publicCloudConnectors/index.js.map +1 -1
- package/dist/commonjs/classic/serviceConfigurations/index.d.ts +1 -1
- package/dist/commonjs/classic/serviceConfigurations/index.js +3 -1
- package/dist/commonjs/classic/serviceConfigurations/index.js.map +1 -1
- package/dist/commonjs/classic/solutionConfigurations/index.d.ts +1 -1
- package/dist/commonjs/classic/solutionConfigurations/index.js +3 -1
- package/dist/commonjs/classic/solutionConfigurations/index.js.map +1 -1
- package/dist/commonjs/classic/solutionTypes/index.d.ts +1 -1
- package/dist/commonjs/classic/solutionTypes/index.js +3 -1
- package/dist/commonjs/classic/solutionTypes/index.js.map +1 -1
- package/dist/commonjs/hybridConnectivityManagementAPI.d.ts +6 -6
- package/dist/commonjs/hybridConnectivityManagementAPI.js +38 -17
- package/dist/commonjs/hybridConnectivityManagementAPI.js.map +1 -1
- package/dist/commonjs/index.d.ts +3 -1
- package/dist/commonjs/index.js +10 -8
- package/dist/commonjs/index.js.map +1 -1
- package/dist/commonjs/models/index.d.ts +1 -1
- package/dist/commonjs/models/index.js +8 -8
- package/dist/commonjs/models/index.js.map +1 -1
- package/dist/commonjs/models/models.d.ts +463 -465
- package/dist/commonjs/models/models.js +409 -410
- package/dist/commonjs/models/models.js.map +1 -1
- package/dist/commonjs/restorePollerHelpers.js +12 -14
- package/dist/commonjs/restorePollerHelpers.js.map +1 -1
- package/dist/commonjs/static-helpers/cloudSettingHelpers.d.ts +13 -0
- package/dist/commonjs/static-helpers/cloudSettingHelpers.js +33 -0
- package/dist/commonjs/static-helpers/cloudSettingHelpers.js.map +1 -0
- package/dist/commonjs/static-helpers/pagingHelpers.js +31 -50
- package/dist/commonjs/static-helpers/pagingHelpers.js.map +1 -1
- package/dist/commonjs/static-helpers/pollingHelpers.js +14 -11
- package/dist/commonjs/static-helpers/pollingHelpers.js.map +1 -1
- package/dist/commonjs/static-helpers/serialization/serialize-record.d.ts +2 -0
- package/dist/commonjs/static-helpers/serialization/serialize-record.js +22 -0
- package/dist/commonjs/static-helpers/serialization/serialize-record.js.map +1 -0
- package/dist/commonjs/static-helpers/urlTemplate.js +5 -4
- package/dist/commonjs/static-helpers/urlTemplate.js.map +1 -1
- package/dist/commonjs/tsdoc-metadata.json +11 -11
- package/dist/esm/api/endpoints/operations.d.ts +1 -1
- package/dist/esm/api/endpoints/operations.js +94 -44
- package/dist/esm/api/endpoints/operations.js.map +1 -1
- package/dist/esm/api/generateAwsTemplate/operations.d.ts +3 -3
- package/dist/esm/api/generateAwsTemplate/operations.js +14 -7
- package/dist/esm/api/generateAwsTemplate/operations.js.map +1 -1
- package/dist/esm/api/hybridConnectivityManagementAPIContext.d.ts +3 -0
- package/dist/esm/api/hybridConnectivityManagementAPIContext.js +18 -11
- package/dist/esm/api/hybridConnectivityManagementAPIContext.js.map +1 -1
- package/dist/esm/api/inventory/operations.d.ts +1 -1
- package/dist/esm/api/inventory/operations.js +20 -10
- package/dist/esm/api/inventory/operations.js.map +1 -1
- package/dist/esm/api/operations/operations.d.ts +1 -1
- package/dist/esm/api/operations/operations.js +11 -6
- package/dist/esm/api/operations/operations.js.map +1 -1
- package/dist/esm/api/publicCloudConnectors/operations.d.ts +2 -2
- package/dist/esm/api/publicCloudConnectors/operations.js +81 -42
- package/dist/esm/api/publicCloudConnectors/operations.js.map +1 -1
- package/dist/esm/api/serviceConfigurations/operations.d.ts +1 -1
- package/dist/esm/api/serviceConfigurations/operations.js +54 -25
- package/dist/esm/api/serviceConfigurations/operations.js.map +1 -1
- package/dist/esm/api/solutionConfigurations/operations.d.ts +2 -2
- package/dist/esm/api/solutionConfigurations/operations.js +67 -33
- package/dist/esm/api/solutionConfigurations/operations.js.map +1 -1
- package/dist/esm/api/solutionTypes/operations.d.ts +1 -1
- package/dist/esm/api/solutionTypes/operations.js +31 -16
- package/dist/esm/api/solutionTypes/operations.js.map +1 -1
- package/dist/esm/classic/endpoints/index.d.ts +1 -1
- package/dist/esm/classic/endpoints/index.js +3 -1
- package/dist/esm/classic/endpoints/index.js.map +1 -1
- package/dist/esm/classic/generateAwsTemplate/index.d.ts +2 -2
- package/dist/esm/classic/generateAwsTemplate/index.js +3 -1
- package/dist/esm/classic/generateAwsTemplate/index.js.map +1 -1
- package/dist/esm/classic/inventory/index.d.ts +1 -1
- package/dist/esm/classic/inventory/index.js +3 -1
- package/dist/esm/classic/inventory/index.js.map +1 -1
- package/dist/esm/classic/operations/index.d.ts +1 -1
- package/dist/esm/classic/operations/index.js +3 -1
- package/dist/esm/classic/operations/index.js.map +1 -1
- package/dist/esm/classic/publicCloudConnectors/index.d.ts +1 -1
- package/dist/esm/classic/publicCloudConnectors/index.js +3 -1
- package/dist/esm/classic/publicCloudConnectors/index.js.map +1 -1
- package/dist/esm/classic/serviceConfigurations/index.d.ts +1 -1
- package/dist/esm/classic/serviceConfigurations/index.js +3 -1
- package/dist/esm/classic/serviceConfigurations/index.js.map +1 -1
- package/dist/esm/classic/solutionConfigurations/index.d.ts +1 -1
- package/dist/esm/classic/solutionConfigurations/index.js +3 -1
- package/dist/esm/classic/solutionConfigurations/index.js.map +1 -1
- package/dist/esm/classic/solutionTypes/index.d.ts +1 -1
- package/dist/esm/classic/solutionTypes/index.js +3 -1
- package/dist/esm/classic/solutionTypes/index.js.map +1 -1
- package/dist/esm/hybridConnectivityManagementAPI.d.ts +6 -6
- package/dist/esm/hybridConnectivityManagementAPI.js +29 -8
- package/dist/esm/hybridConnectivityManagementAPI.js.map +1 -1
- package/dist/esm/index.d.ts +3 -1
- package/dist/esm/index.js +3 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/models/index.d.ts +1 -1
- package/dist/esm/models/index.js +1 -1
- package/dist/esm/models/index.js.map +1 -1
- package/dist/esm/models/models.d.ts +463 -465
- package/dist/esm/models/models.js +359 -359
- package/dist/esm/models/models.js.map +1 -1
- package/dist/esm/restorePollerHelpers.js +12 -14
- package/dist/esm/restorePollerHelpers.js.map +1 -1
- package/dist/esm/static-helpers/cloudSettingHelpers.d.ts +13 -0
- package/dist/esm/static-helpers/cloudSettingHelpers.js +29 -0
- package/dist/esm/static-helpers/cloudSettingHelpers.js.map +1 -0
- package/dist/esm/static-helpers/pagingHelpers.js +31 -50
- package/dist/esm/static-helpers/pagingHelpers.js.map +1 -1
- package/dist/esm/static-helpers/pollingHelpers.js +14 -11
- package/dist/esm/static-helpers/pollingHelpers.js.map +1 -1
- package/dist/esm/static-helpers/serialization/serialize-record.d.ts +2 -0
- package/dist/esm/static-helpers/serialization/serialize-record.js +19 -0
- package/dist/esm/static-helpers/serialization/serialize-record.js.map +1 -0
- package/dist/esm/static-helpers/urlTemplate.js +5 -4
- package/dist/esm/static-helpers/urlTemplate.js.map +1 -1
- package/dist/react-native/api/endpoints/operations.d.ts +1 -1
- package/dist/react-native/api/endpoints/operations.js +94 -44
- package/dist/react-native/api/endpoints/operations.js.map +1 -1
- package/dist/react-native/api/generateAwsTemplate/operations.d.ts +3 -3
- package/dist/react-native/api/generateAwsTemplate/operations.js +14 -7
- package/dist/react-native/api/generateAwsTemplate/operations.js.map +1 -1
- package/dist/react-native/api/hybridConnectivityManagementAPIContext.d.ts +3 -0
- package/dist/react-native/api/hybridConnectivityManagementAPIContext.js +18 -11
- package/dist/react-native/api/hybridConnectivityManagementAPIContext.js.map +1 -1
- package/dist/react-native/api/inventory/operations.d.ts +1 -1
- package/dist/react-native/api/inventory/operations.js +20 -10
- package/dist/react-native/api/inventory/operations.js.map +1 -1
- package/dist/react-native/api/operations/operations.d.ts +1 -1
- package/dist/react-native/api/operations/operations.js +11 -6
- package/dist/react-native/api/operations/operations.js.map +1 -1
- package/dist/react-native/api/publicCloudConnectors/operations.d.ts +2 -2
- package/dist/react-native/api/publicCloudConnectors/operations.js +81 -42
- package/dist/react-native/api/publicCloudConnectors/operations.js.map +1 -1
- package/dist/react-native/api/serviceConfigurations/operations.d.ts +1 -1
- package/dist/react-native/api/serviceConfigurations/operations.js +54 -25
- package/dist/react-native/api/serviceConfigurations/operations.js.map +1 -1
- package/dist/react-native/api/solutionConfigurations/operations.d.ts +2 -2
- package/dist/react-native/api/solutionConfigurations/operations.js +67 -33
- package/dist/react-native/api/solutionConfigurations/operations.js.map +1 -1
- package/dist/react-native/api/solutionTypes/operations.d.ts +1 -1
- package/dist/react-native/api/solutionTypes/operations.js +31 -16
- package/dist/react-native/api/solutionTypes/operations.js.map +1 -1
- package/dist/react-native/classic/endpoints/index.d.ts +1 -1
- package/dist/react-native/classic/endpoints/index.js +3 -1
- package/dist/react-native/classic/endpoints/index.js.map +1 -1
- package/dist/react-native/classic/generateAwsTemplate/index.d.ts +2 -2
- package/dist/react-native/classic/generateAwsTemplate/index.js +3 -1
- package/dist/react-native/classic/generateAwsTemplate/index.js.map +1 -1
- package/dist/react-native/classic/inventory/index.d.ts +1 -1
- package/dist/react-native/classic/inventory/index.js +3 -1
- package/dist/react-native/classic/inventory/index.js.map +1 -1
- package/dist/react-native/classic/operations/index.d.ts +1 -1
- package/dist/react-native/classic/operations/index.js +3 -1
- package/dist/react-native/classic/operations/index.js.map +1 -1
- package/dist/react-native/classic/publicCloudConnectors/index.d.ts +1 -1
- package/dist/react-native/classic/publicCloudConnectors/index.js +3 -1
- package/dist/react-native/classic/publicCloudConnectors/index.js.map +1 -1
- package/dist/react-native/classic/serviceConfigurations/index.d.ts +1 -1
- package/dist/react-native/classic/serviceConfigurations/index.js +3 -1
- package/dist/react-native/classic/serviceConfigurations/index.js.map +1 -1
- package/dist/react-native/classic/solutionConfigurations/index.d.ts +1 -1
- package/dist/react-native/classic/solutionConfigurations/index.js +3 -1
- package/dist/react-native/classic/solutionConfigurations/index.js.map +1 -1
- package/dist/react-native/classic/solutionTypes/index.d.ts +1 -1
- package/dist/react-native/classic/solutionTypes/index.js +3 -1
- package/dist/react-native/classic/solutionTypes/index.js.map +1 -1
- package/dist/react-native/hybridConnectivityManagementAPI.d.ts +6 -6
- package/dist/react-native/hybridConnectivityManagementAPI.js +29 -8
- package/dist/react-native/hybridConnectivityManagementAPI.js.map +1 -1
- package/dist/react-native/index.d.ts +3 -1
- package/dist/react-native/index.js +3 -1
- package/dist/react-native/index.js.map +1 -1
- package/dist/react-native/models/index.d.ts +1 -1
- package/dist/react-native/models/index.js +1 -1
- package/dist/react-native/models/index.js.map +1 -1
- package/dist/react-native/models/models.d.ts +463 -465
- package/dist/react-native/models/models.js +359 -359
- package/dist/react-native/models/models.js.map +1 -1
- package/dist/react-native/restorePollerHelpers.js +12 -14
- package/dist/react-native/restorePollerHelpers.js.map +1 -1
- package/dist/react-native/static-helpers/cloudSettingHelpers.d.ts +13 -0
- package/dist/react-native/static-helpers/cloudSettingHelpers.js +29 -0
- package/dist/react-native/static-helpers/cloudSettingHelpers.js.map +1 -0
- package/dist/react-native/static-helpers/pagingHelpers.js +31 -50
- package/dist/react-native/static-helpers/pagingHelpers.js.map +1 -1
- package/dist/react-native/static-helpers/pollingHelpers.js +14 -11
- package/dist/react-native/static-helpers/pollingHelpers.js.map +1 -1
- package/dist/react-native/static-helpers/serialization/serialize-record.d.ts +2 -0
- package/dist/react-native/static-helpers/serialization/serialize-record.js +19 -0
- package/dist/react-native/static-helpers/serialization/serialize-record.js.map +1 -0
- package/dist/react-native/static-helpers/urlTemplate.js +5 -4
- package/dist/react-native/static-helpers/urlTemplate.js.map +1 -1
- package/package.json +25 -33
- package/CHANGELOG.md +0 -111
- package/dist/browser/api/endpoints/index.d.ts.map +0 -1
- package/dist/browser/api/endpoints/operations.d.ts.map +0 -1
- package/dist/browser/api/endpoints/options.d.ts.map +0 -1
- package/dist/browser/api/generateAwsTemplate/index.d.ts.map +0 -1
- package/dist/browser/api/generateAwsTemplate/operations.d.ts.map +0 -1
- package/dist/browser/api/generateAwsTemplate/options.d.ts.map +0 -1
- package/dist/browser/api/hybridConnectivityManagementAPIContext.d.ts.map +0 -1
- package/dist/browser/api/index.d.ts.map +0 -1
- package/dist/browser/api/inventory/index.d.ts.map +0 -1
- package/dist/browser/api/inventory/operations.d.ts.map +0 -1
- package/dist/browser/api/inventory/options.d.ts.map +0 -1
- package/dist/browser/api/operations/index.d.ts.map +0 -1
- package/dist/browser/api/operations/operations.d.ts.map +0 -1
- package/dist/browser/api/operations/options.d.ts.map +0 -1
- package/dist/browser/api/publicCloudConnectors/index.d.ts.map +0 -1
- package/dist/browser/api/publicCloudConnectors/operations.d.ts.map +0 -1
- package/dist/browser/api/publicCloudConnectors/options.d.ts.map +0 -1
- package/dist/browser/api/serviceConfigurations/index.d.ts.map +0 -1
- package/dist/browser/api/serviceConfigurations/operations.d.ts.map +0 -1
- package/dist/browser/api/serviceConfigurations/options.d.ts.map +0 -1
- package/dist/browser/api/solutionConfigurations/index.d.ts.map +0 -1
- package/dist/browser/api/solutionConfigurations/operations.d.ts.map +0 -1
- package/dist/browser/api/solutionConfigurations/options.d.ts.map +0 -1
- package/dist/browser/api/solutionTypes/index.d.ts.map +0 -1
- package/dist/browser/api/solutionTypes/operations.d.ts.map +0 -1
- package/dist/browser/api/solutionTypes/options.d.ts.map +0 -1
- package/dist/browser/classic/endpoints/index.d.ts.map +0 -1
- package/dist/browser/classic/generateAwsTemplate/index.d.ts.map +0 -1
- package/dist/browser/classic/index.d.ts.map +0 -1
- package/dist/browser/classic/inventory/index.d.ts.map +0 -1
- package/dist/browser/classic/operations/index.d.ts.map +0 -1
- package/dist/browser/classic/publicCloudConnectors/index.d.ts.map +0 -1
- package/dist/browser/classic/serviceConfigurations/index.d.ts.map +0 -1
- package/dist/browser/classic/solutionConfigurations/index.d.ts.map +0 -1
- package/dist/browser/classic/solutionTypes/index.d.ts.map +0 -1
- package/dist/browser/hybridConnectivityManagementAPI.d.ts.map +0 -1
- package/dist/browser/index.d.ts.map +0 -1
- package/dist/browser/logger.d.ts.map +0 -1
- package/dist/browser/models/index.d.ts.map +0 -1
- package/dist/browser/models/models.d.ts.map +0 -1
- package/dist/browser/restorePollerHelpers.d.ts.map +0 -1
- package/dist/browser/static-helpers/pagingHelpers.d.ts.map +0 -1
- package/dist/browser/static-helpers/pollingHelpers.d.ts.map +0 -1
- package/dist/browser/static-helpers/urlTemplate.d.ts.map +0 -1
- package/dist/commonjs/api/endpoints/index.d.ts.map +0 -1
- package/dist/commonjs/api/endpoints/operations.d.ts.map +0 -1
- package/dist/commonjs/api/endpoints/options.d.ts.map +0 -1
- package/dist/commonjs/api/generateAwsTemplate/index.d.ts.map +0 -1
- package/dist/commonjs/api/generateAwsTemplate/operations.d.ts.map +0 -1
- package/dist/commonjs/api/generateAwsTemplate/options.d.ts.map +0 -1
- package/dist/commonjs/api/hybridConnectivityManagementAPIContext.d.ts.map +0 -1
- package/dist/commonjs/api/index.d.ts.map +0 -1
- package/dist/commonjs/api/inventory/index.d.ts.map +0 -1
- package/dist/commonjs/api/inventory/operations.d.ts.map +0 -1
- package/dist/commonjs/api/inventory/options.d.ts.map +0 -1
- package/dist/commonjs/api/operations/index.d.ts.map +0 -1
- package/dist/commonjs/api/operations/operations.d.ts.map +0 -1
- package/dist/commonjs/api/operations/options.d.ts.map +0 -1
- package/dist/commonjs/api/publicCloudConnectors/index.d.ts.map +0 -1
- package/dist/commonjs/api/publicCloudConnectors/operations.d.ts.map +0 -1
- package/dist/commonjs/api/publicCloudConnectors/options.d.ts.map +0 -1
- package/dist/commonjs/api/serviceConfigurations/index.d.ts.map +0 -1
- package/dist/commonjs/api/serviceConfigurations/operations.d.ts.map +0 -1
- package/dist/commonjs/api/serviceConfigurations/options.d.ts.map +0 -1
- package/dist/commonjs/api/solutionConfigurations/index.d.ts.map +0 -1
- package/dist/commonjs/api/solutionConfigurations/operations.d.ts.map +0 -1
- package/dist/commonjs/api/solutionConfigurations/options.d.ts.map +0 -1
- package/dist/commonjs/api/solutionTypes/index.d.ts.map +0 -1
- package/dist/commonjs/api/solutionTypes/operations.d.ts.map +0 -1
- package/dist/commonjs/api/solutionTypes/options.d.ts.map +0 -1
- package/dist/commonjs/classic/endpoints/index.d.ts.map +0 -1
- package/dist/commonjs/classic/generateAwsTemplate/index.d.ts.map +0 -1
- package/dist/commonjs/classic/index.d.ts.map +0 -1
- package/dist/commonjs/classic/inventory/index.d.ts.map +0 -1
- package/dist/commonjs/classic/operations/index.d.ts.map +0 -1
- package/dist/commonjs/classic/publicCloudConnectors/index.d.ts.map +0 -1
- package/dist/commonjs/classic/serviceConfigurations/index.d.ts.map +0 -1
- package/dist/commonjs/classic/solutionConfigurations/index.d.ts.map +0 -1
- package/dist/commonjs/classic/solutionTypes/index.d.ts.map +0 -1
- package/dist/commonjs/hybridConnectivityManagementAPI.d.ts.map +0 -1
- package/dist/commonjs/index.d.ts.map +0 -1
- package/dist/commonjs/logger.d.ts.map +0 -1
- package/dist/commonjs/models/index.d.ts.map +0 -1
- package/dist/commonjs/models/models.d.ts.map +0 -1
- package/dist/commonjs/restorePollerHelpers.d.ts.map +0 -1
- package/dist/commonjs/static-helpers/pagingHelpers.d.ts.map +0 -1
- package/dist/commonjs/static-helpers/pollingHelpers.d.ts.map +0 -1
- package/dist/commonjs/static-helpers/urlTemplate.d.ts.map +0 -1
- package/dist/esm/api/endpoints/index.d.ts.map +0 -1
- package/dist/esm/api/endpoints/operations.d.ts.map +0 -1
- package/dist/esm/api/endpoints/options.d.ts.map +0 -1
- package/dist/esm/api/generateAwsTemplate/index.d.ts.map +0 -1
- package/dist/esm/api/generateAwsTemplate/operations.d.ts.map +0 -1
- package/dist/esm/api/generateAwsTemplate/options.d.ts.map +0 -1
- package/dist/esm/api/hybridConnectivityManagementAPIContext.d.ts.map +0 -1
- package/dist/esm/api/index.d.ts.map +0 -1
- package/dist/esm/api/inventory/index.d.ts.map +0 -1
- package/dist/esm/api/inventory/operations.d.ts.map +0 -1
- package/dist/esm/api/inventory/options.d.ts.map +0 -1
- package/dist/esm/api/operations/index.d.ts.map +0 -1
- package/dist/esm/api/operations/operations.d.ts.map +0 -1
- package/dist/esm/api/operations/options.d.ts.map +0 -1
- package/dist/esm/api/publicCloudConnectors/index.d.ts.map +0 -1
- package/dist/esm/api/publicCloudConnectors/operations.d.ts.map +0 -1
- package/dist/esm/api/publicCloudConnectors/options.d.ts.map +0 -1
- package/dist/esm/api/serviceConfigurations/index.d.ts.map +0 -1
- package/dist/esm/api/serviceConfigurations/operations.d.ts.map +0 -1
- package/dist/esm/api/serviceConfigurations/options.d.ts.map +0 -1
- package/dist/esm/api/solutionConfigurations/index.d.ts.map +0 -1
- package/dist/esm/api/solutionConfigurations/operations.d.ts.map +0 -1
- package/dist/esm/api/solutionConfigurations/options.d.ts.map +0 -1
- package/dist/esm/api/solutionTypes/index.d.ts.map +0 -1
- package/dist/esm/api/solutionTypes/operations.d.ts.map +0 -1
- package/dist/esm/api/solutionTypes/options.d.ts.map +0 -1
- package/dist/esm/classic/endpoints/index.d.ts.map +0 -1
- package/dist/esm/classic/generateAwsTemplate/index.d.ts.map +0 -1
- package/dist/esm/classic/index.d.ts.map +0 -1
- package/dist/esm/classic/inventory/index.d.ts.map +0 -1
- package/dist/esm/classic/operations/index.d.ts.map +0 -1
- package/dist/esm/classic/publicCloudConnectors/index.d.ts.map +0 -1
- package/dist/esm/classic/serviceConfigurations/index.d.ts.map +0 -1
- package/dist/esm/classic/solutionConfigurations/index.d.ts.map +0 -1
- package/dist/esm/classic/solutionTypes/index.d.ts.map +0 -1
- package/dist/esm/hybridConnectivityManagementAPI.d.ts.map +0 -1
- package/dist/esm/index.d.ts.map +0 -1
- package/dist/esm/logger.d.ts.map +0 -1
- package/dist/esm/models/index.d.ts.map +0 -1
- package/dist/esm/models/models.d.ts.map +0 -1
- package/dist/esm/restorePollerHelpers.d.ts.map +0 -1
- package/dist/esm/static-helpers/pagingHelpers.d.ts.map +0 -1
- package/dist/esm/static-helpers/pollingHelpers.d.ts.map +0 -1
- package/dist/esm/static-helpers/urlTemplate.d.ts.map +0 -1
- package/dist/react-native/api/endpoints/index.d.ts.map +0 -1
- package/dist/react-native/api/endpoints/operations.d.ts.map +0 -1
- package/dist/react-native/api/endpoints/options.d.ts.map +0 -1
- package/dist/react-native/api/generateAwsTemplate/index.d.ts.map +0 -1
- package/dist/react-native/api/generateAwsTemplate/operations.d.ts.map +0 -1
- package/dist/react-native/api/generateAwsTemplate/options.d.ts.map +0 -1
- package/dist/react-native/api/hybridConnectivityManagementAPIContext.d.ts.map +0 -1
- package/dist/react-native/api/index.d.ts.map +0 -1
- package/dist/react-native/api/inventory/index.d.ts.map +0 -1
- package/dist/react-native/api/inventory/operations.d.ts.map +0 -1
- package/dist/react-native/api/inventory/options.d.ts.map +0 -1
- package/dist/react-native/api/operations/index.d.ts.map +0 -1
- package/dist/react-native/api/operations/operations.d.ts.map +0 -1
- package/dist/react-native/api/operations/options.d.ts.map +0 -1
- package/dist/react-native/api/publicCloudConnectors/index.d.ts.map +0 -1
- package/dist/react-native/api/publicCloudConnectors/operations.d.ts.map +0 -1
- package/dist/react-native/api/publicCloudConnectors/options.d.ts.map +0 -1
- package/dist/react-native/api/serviceConfigurations/index.d.ts.map +0 -1
- package/dist/react-native/api/serviceConfigurations/operations.d.ts.map +0 -1
- package/dist/react-native/api/serviceConfigurations/options.d.ts.map +0 -1
- package/dist/react-native/api/solutionConfigurations/index.d.ts.map +0 -1
- package/dist/react-native/api/solutionConfigurations/operations.d.ts.map +0 -1
- package/dist/react-native/api/solutionConfigurations/options.d.ts.map +0 -1
- package/dist/react-native/api/solutionTypes/index.d.ts.map +0 -1
- package/dist/react-native/api/solutionTypes/operations.d.ts.map +0 -1
- package/dist/react-native/api/solutionTypes/options.d.ts.map +0 -1
- package/dist/react-native/classic/endpoints/index.d.ts.map +0 -1
- package/dist/react-native/classic/generateAwsTemplate/index.d.ts.map +0 -1
- package/dist/react-native/classic/index.d.ts.map +0 -1
- package/dist/react-native/classic/inventory/index.d.ts.map +0 -1
- package/dist/react-native/classic/operations/index.d.ts.map +0 -1
- package/dist/react-native/classic/publicCloudConnectors/index.d.ts.map +0 -1
- package/dist/react-native/classic/serviceConfigurations/index.d.ts.map +0 -1
- package/dist/react-native/classic/solutionConfigurations/index.d.ts.map +0 -1
- package/dist/react-native/classic/solutionTypes/index.d.ts.map +0 -1
- package/dist/react-native/hybridConnectivityManagementAPI.d.ts.map +0 -1
- package/dist/react-native/index.d.ts.map +0 -1
- package/dist/react-native/logger.d.ts.map +0 -1
- package/dist/react-native/models/index.d.ts.map +0 -1
- package/dist/react-native/models/models.d.ts.map +0 -1
- package/dist/react-native/restorePollerHelpers.d.ts.map +0 -1
- package/dist/react-native/static-helpers/pagingHelpers.d.ts.map +0 -1
- package/dist/react-native/static-helpers/pollingHelpers.d.ts.map +0 -1
- package/dist/react-native/static-helpers/urlTemplate.d.ts.map +0 -1
- package/review/arm-hybridconnectivity-api-endpoints.api.md +0 -72
- package/review/arm-hybridconnectivity-api-generateAwsTemplate.api.md +0 -19
- package/review/arm-hybridconnectivity-api-inventory.api.md +0 -26
- package/review/arm-hybridconnectivity-api-operations.api.md +0 -19
- package/review/arm-hybridconnectivity-api-publicCloudConnectors.api.md +0 -65
- package/review/arm-hybridconnectivity-api-serviceConfigurations.api.md +0 -47
- package/review/arm-hybridconnectivity-api-solutionConfigurations.api.md +0 -57
- package/review/arm-hybridconnectivity-api-solutionTypes.api.md +0 -33
- package/review/arm-hybridconnectivity-api.api.md +0 -27
- package/review/arm-hybridconnectivity-models.api.md +0 -412
- package/review/arm-hybridconnectivity.api.md +0 -671
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
# Azure
|
|
1
|
+
# Azure HybridConnectivityManagementAPI client library for JavaScript
|
|
2
2
|
|
|
3
|
-
This package contains an isomorphic SDK (runs both in Node.js and in browsers) for Azure
|
|
3
|
+
This package contains an isomorphic SDK (runs both in Node.js and in browsers) for Azure HybridConnectivityManagementAPI client.
|
|
4
4
|
|
|
5
5
|
REST API for public clouds.
|
|
6
6
|
|
|
@@ -26,16 +26,16 @@ See our [support policy](https://github.com/Azure/azure-sdk-for-js/blob/main/SUP
|
|
|
26
26
|
|
|
27
27
|
### Install the `@azure/arm-hybridconnectivity` package
|
|
28
28
|
|
|
29
|
-
Install the Azure
|
|
29
|
+
Install the Azure HybridConnectivityManagementAPI client library for JavaScript with `npm`:
|
|
30
30
|
|
|
31
31
|
```bash
|
|
32
32
|
npm install @azure/arm-hybridconnectivity
|
|
33
33
|
```
|
|
34
34
|
|
|
35
|
-
### Create and authenticate a `
|
|
35
|
+
### Create and authenticate a `HybridConnectivityManagementAPI`
|
|
36
36
|
|
|
37
|
-
To create a client object to access the Azure
|
|
38
|
-
You can find the endpoint for your Azure
|
|
37
|
+
To create a client object to access the Azure HybridConnectivityManagementAPI API, you will need the `endpoint` of your Azure HybridConnectivityManagementAPI resource and a `credential`. The Azure HybridConnectivityManagementAPI client can use Azure Active Directory credentials to authenticate.
|
|
38
|
+
You can find the endpoint for your Azure HybridConnectivityManagementAPI resource in the [Azure Portal][azure_portal].
|
|
39
39
|
|
|
40
40
|
You can authenticate with Azure Active Directory using a credential from the [@azure/identity][azure_identity] library or [an existing AAD Token](https://github.com/Azure/azure-sdk-for-js/blob/master/sdk/identity/identity/samples/AzureIdentityExamples.md#authenticating-with-a-pre-fetched-access-token).
|
|
41
41
|
|
|
@@ -45,31 +45,32 @@ To use the [DefaultAzureCredential][defaultazurecredential] provider shown below
|
|
|
45
45
|
npm install @azure/identity
|
|
46
46
|
```
|
|
47
47
|
|
|
48
|
-
You will also need to **register a new AAD application and grant access to Azure
|
|
48
|
+
You will also need to **register a new AAD application and grant access to Azure HybridConnectivityManagementAPI** by assigning the suitable role to your service principal (note: roles such as `"Owner"` will not grant the necessary permissions).
|
|
49
49
|
|
|
50
50
|
For more information about how to create an Azure AD Application check out [this guide](https://learn.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal).
|
|
51
51
|
|
|
52
52
|
Using Node.js and Node-like environments, you can use the `DefaultAzureCredential` class to authenticate the client.
|
|
53
53
|
|
|
54
54
|
```ts snippet:ReadmeSampleCreateClient_Node
|
|
55
|
-
import {
|
|
55
|
+
import { HybridConnectivityManagementAPI } from "@azure/arm-hybridconnectivity";
|
|
56
56
|
import { DefaultAzureCredential } from "@azure/identity";
|
|
57
57
|
|
|
58
58
|
const subscriptionId = "00000000-0000-0000-0000-000000000000";
|
|
59
|
-
const client = new
|
|
59
|
+
const client = new HybridConnectivityManagementAPI(new DefaultAzureCredential(), subscriptionId);
|
|
60
60
|
```
|
|
61
61
|
|
|
62
62
|
For browser environments, use the `InteractiveBrowserCredential` from the `@azure/identity` package to authenticate.
|
|
63
63
|
|
|
64
64
|
```ts snippet:ReadmeSampleCreateClient_Browser
|
|
65
65
|
import { InteractiveBrowserCredential } from "@azure/identity";
|
|
66
|
-
import {
|
|
66
|
+
import { HybridConnectivityManagementAPI } from "@azure/arm-hybridconnectivity";
|
|
67
67
|
|
|
68
68
|
const credential = new InteractiveBrowserCredential({
|
|
69
69
|
tenantId: "<YOUR_TENANT_ID>",
|
|
70
|
-
clientId: "<YOUR_CLIENT_ID>"
|
|
71
|
-
|
|
72
|
-
const
|
|
70
|
+
clientId: "<YOUR_CLIENT_ID>",
|
|
71
|
+
});
|
|
72
|
+
const subscriptionId = "00000000-0000-0000-0000-000000000000";
|
|
73
|
+
const client = new HybridConnectivityManagementAPI(credential, subscriptionId);
|
|
73
74
|
```
|
|
74
75
|
|
|
75
76
|
|
|
@@ -78,9 +79,9 @@ To use this client library in the browser, first you need to use a bundler. For
|
|
|
78
79
|
|
|
79
80
|
## Key concepts
|
|
80
81
|
|
|
81
|
-
###
|
|
82
|
+
### HybridConnectivityManagementAPI
|
|
82
83
|
|
|
83
|
-
`
|
|
84
|
+
`HybridConnectivityManagementAPI` is the primary interface for developers using the Azure HybridConnectivityManagementAPI client library. Explore the methods on this client object to understand the different features of the Azure HybridConnectivityManagementAPI service that you can access.
|
|
84
85
|
|
|
85
86
|
## Troubleshooting
|
|
86
87
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { HybridConnectivityManagementAPIContext as Client } from "../index.js";
|
|
2
2
|
import { EndpointResource, _EndpointsList, EndpointAccessResource, IngressGatewayResource, ManagedProxyRequest, ManagedProxyResource } from "../../models/models.js";
|
|
3
|
-
import { EndpointsListManagedProxyDetailsOptionalParams, EndpointsListIngressGatewayCredentialsOptionalParams, EndpointsListCredentialsOptionalParams, EndpointsListOptionalParams, EndpointsDeleteOptionalParams, EndpointsUpdateOptionalParams, EndpointsCreateOrUpdateOptionalParams, EndpointsGetOptionalParams } from "./options.js";
|
|
4
3
|
import { PagedAsyncIterableIterator } from "../../static-helpers/pagingHelpers.js";
|
|
4
|
+
import { EndpointsListManagedProxyDetailsOptionalParams, EndpointsListIngressGatewayCredentialsOptionalParams, EndpointsListCredentialsOptionalParams, EndpointsListOptionalParams, EndpointsDeleteOptionalParams, EndpointsUpdateOptionalParams, EndpointsCreateOrUpdateOptionalParams, EndpointsGetOptionalParams } from "./options.js";
|
|
5
5
|
import { StreamableMethod, PathUncheckedResponse } from "@azure-rest/core-client";
|
|
6
6
|
export declare function _listManagedProxyDetailsSend(context: Client, resourceUri: string, endpointName: string, managedProxyRequest: ManagedProxyRequest, options?: EndpointsListManagedProxyDetailsOptionalParams): StreamableMethod;
|
|
7
7
|
export declare function _listManagedProxyDetailsDeserialize(result: PathUncheckedResponse): Promise<ManagedProxyResource>;
|
|
@@ -7,15 +7,22 @@ import { createRestError, operationOptionsToRequestParameters, } from "@azure-re
|
|
|
7
7
|
export function _listManagedProxyDetailsSend(context, resourceUri, endpointName, managedProxyRequest, options = {
|
|
8
8
|
requestOptions: {},
|
|
9
9
|
}) {
|
|
10
|
-
|
|
11
|
-
const path = expandUrlTemplate("/{+resourceUri}/providers/Microsoft.HybridConnectivity/endpoints/{+endpointName}/listManagedProxyDetails{?api-version}", {
|
|
10
|
+
const path = expandUrlTemplate("/{+resourceUri}/providers/Microsoft.HybridConnectivity/endpoints/{+endpointName}/listManagedProxyDetails{?api%2Dversion}", {
|
|
12
11
|
resourceUri: resourceUri,
|
|
13
12
|
endpointName: endpointName,
|
|
14
|
-
"api
|
|
13
|
+
"api%2Dversion": context.apiVersion,
|
|
15
14
|
}, {
|
|
16
|
-
allowReserved:
|
|
15
|
+
allowReserved: options?.requestOptions?.skipUrlEncoding,
|
|
16
|
+
});
|
|
17
|
+
return context.path(path).post({
|
|
18
|
+
...operationOptionsToRequestParameters(options),
|
|
19
|
+
contentType: "application/json",
|
|
20
|
+
headers: {
|
|
21
|
+
accept: "application/json",
|
|
22
|
+
...options.requestOptions?.headers,
|
|
23
|
+
},
|
|
24
|
+
body: managedProxyRequestSerializer(managedProxyRequest),
|
|
17
25
|
});
|
|
18
|
-
return context.path(path).post(Object.assign(Object.assign({}, operationOptionsToRequestParameters(options)), { contentType: "application/json", headers: Object.assign({ accept: "application/json" }, (_b = options.requestOptions) === null || _b === void 0 ? void 0 : _b.headers), body: managedProxyRequestSerializer(managedProxyRequest) }));
|
|
19
26
|
}
|
|
20
27
|
export async function _listManagedProxyDetailsDeserialize(result) {
|
|
21
28
|
const expectedStatuses = ["200"];
|
|
@@ -36,18 +43,25 @@ export async function listManagedProxyDetails(context, resourceUri, endpointName
|
|
|
36
43
|
export function _listIngressGatewayCredentialsSend(context, resourceUri, endpointName, options = {
|
|
37
44
|
requestOptions: {},
|
|
38
45
|
}) {
|
|
39
|
-
|
|
40
|
-
const path = expandUrlTemplate("/{+resourceUri}/providers/Microsoft.HybridConnectivity/endpoints/{+endpointName}/listIngressGatewayCredentials{?api-version,expiresin}", {
|
|
46
|
+
const path = expandUrlTemplate("/{+resourceUri}/providers/Microsoft.HybridConnectivity/endpoints/{+endpointName}/listIngressGatewayCredentials{?api%2Dversion,expiresin}", {
|
|
41
47
|
resourceUri: resourceUri,
|
|
42
48
|
endpointName: endpointName,
|
|
43
|
-
"api
|
|
44
|
-
expiresin: options
|
|
49
|
+
"api%2Dversion": context.apiVersion,
|
|
50
|
+
expiresin: options?.expiresin,
|
|
45
51
|
}, {
|
|
46
|
-
allowReserved:
|
|
52
|
+
allowReserved: options?.requestOptions?.skipUrlEncoding,
|
|
47
53
|
});
|
|
48
|
-
return context.path(path).post(
|
|
54
|
+
return context.path(path).post({
|
|
55
|
+
...operationOptionsToRequestParameters(options),
|
|
56
|
+
contentType: "application/json",
|
|
57
|
+
headers: {
|
|
58
|
+
accept: "application/json",
|
|
59
|
+
...options.requestOptions?.headers,
|
|
60
|
+
},
|
|
61
|
+
body: !options["listIngressGatewayCredentialsRequest"]
|
|
49
62
|
? options["listIngressGatewayCredentialsRequest"]
|
|
50
|
-
: listIngressGatewayCredentialsRequestSerializer(options["listIngressGatewayCredentialsRequest"])
|
|
63
|
+
: listIngressGatewayCredentialsRequestSerializer(options["listIngressGatewayCredentialsRequest"]),
|
|
64
|
+
});
|
|
51
65
|
}
|
|
52
66
|
export async function _listIngressGatewayCredentialsDeserialize(result) {
|
|
53
67
|
const expectedStatuses = ["200"];
|
|
@@ -66,18 +80,25 @@ export async function listIngressGatewayCredentials(context, resourceUri, endpoi
|
|
|
66
80
|
return _listIngressGatewayCredentialsDeserialize(result);
|
|
67
81
|
}
|
|
68
82
|
export function _listCredentialsSend(context, resourceUri, endpointName, options = { requestOptions: {} }) {
|
|
69
|
-
|
|
70
|
-
const path = expandUrlTemplate("/{+resourceUri}/providers/Microsoft.HybridConnectivity/endpoints/{+endpointName}/listCredentials{?api-version,expiresin}", {
|
|
83
|
+
const path = expandUrlTemplate("/{+resourceUri}/providers/Microsoft.HybridConnectivity/endpoints/{+endpointName}/listCredentials{?api%2Dversion,expiresin}", {
|
|
71
84
|
resourceUri: resourceUri,
|
|
72
85
|
endpointName: endpointName,
|
|
73
|
-
"api
|
|
74
|
-
expiresin: options
|
|
86
|
+
"api%2Dversion": context.apiVersion,
|
|
87
|
+
expiresin: options?.expiresin,
|
|
75
88
|
}, {
|
|
76
|
-
allowReserved:
|
|
89
|
+
allowReserved: options?.requestOptions?.skipUrlEncoding,
|
|
77
90
|
});
|
|
78
|
-
return context.path(path).post(
|
|
91
|
+
return context.path(path).post({
|
|
92
|
+
...operationOptionsToRequestParameters(options),
|
|
93
|
+
contentType: "application/json",
|
|
94
|
+
headers: {
|
|
95
|
+
accept: "application/json",
|
|
96
|
+
...options.requestOptions?.headers,
|
|
97
|
+
},
|
|
98
|
+
body: !options["listCredentialsRequest"]
|
|
79
99
|
? options["listCredentialsRequest"]
|
|
80
|
-
: listCredentialsRequestSerializer(options["listCredentialsRequest"])
|
|
100
|
+
: listCredentialsRequestSerializer(options["listCredentialsRequest"]),
|
|
101
|
+
});
|
|
81
102
|
}
|
|
82
103
|
export async function _listCredentialsDeserialize(result) {
|
|
83
104
|
const expectedStatuses = ["200"];
|
|
@@ -94,14 +115,19 @@ export async function listCredentials(context, resourceUri, endpointName, option
|
|
|
94
115
|
return _listCredentialsDeserialize(result);
|
|
95
116
|
}
|
|
96
117
|
export function _listSend(context, resourceUri, options = { requestOptions: {} }) {
|
|
97
|
-
|
|
98
|
-
const path = expandUrlTemplate("/{+resourceUri}/providers/Microsoft.HybridConnectivity/endpoints{?api-version}", {
|
|
118
|
+
const path = expandUrlTemplate("/{+resourceUri}/providers/Microsoft.HybridConnectivity/endpoints{?api%2Dversion}", {
|
|
99
119
|
resourceUri: resourceUri,
|
|
100
|
-
"api
|
|
120
|
+
"api%2Dversion": context.apiVersion,
|
|
101
121
|
}, {
|
|
102
|
-
allowReserved:
|
|
122
|
+
allowReserved: options?.requestOptions?.skipUrlEncoding,
|
|
123
|
+
});
|
|
124
|
+
return context.path(path).get({
|
|
125
|
+
...operationOptionsToRequestParameters(options),
|
|
126
|
+
headers: {
|
|
127
|
+
accept: "application/json",
|
|
128
|
+
...options.requestOptions?.headers,
|
|
129
|
+
},
|
|
103
130
|
});
|
|
104
|
-
return context.path(path).get(Object.assign(Object.assign({}, operationOptionsToRequestParameters(options)), { headers: Object.assign({ accept: "application/json" }, (_b = options.requestOptions) === null || _b === void 0 ? void 0 : _b.headers) }));
|
|
105
131
|
}
|
|
106
132
|
export async function _listDeserialize(result) {
|
|
107
133
|
const expectedStatuses = ["200"];
|
|
@@ -117,15 +143,20 @@ export function list(context, resourceUri, options = { requestOptions: {} }) {
|
|
|
117
143
|
return buildPagedAsyncIterator(context, () => _listSend(context, resourceUri, options), _listDeserialize, ["200"], { itemName: "value", nextLinkName: "nextLink" });
|
|
118
144
|
}
|
|
119
145
|
export function _$deleteSend(context, resourceUri, endpointName, options = { requestOptions: {} }) {
|
|
120
|
-
|
|
121
|
-
const path = expandUrlTemplate("/{+resourceUri}/providers/Microsoft.HybridConnectivity/endpoints/{+endpointName}{?api-version}", {
|
|
146
|
+
const path = expandUrlTemplate("/{+resourceUri}/providers/Microsoft.HybridConnectivity/endpoints/{+endpointName}{?api%2Dversion}", {
|
|
122
147
|
resourceUri: resourceUri,
|
|
123
148
|
endpointName: endpointName,
|
|
124
|
-
"api
|
|
149
|
+
"api%2Dversion": context.apiVersion,
|
|
125
150
|
}, {
|
|
126
|
-
allowReserved:
|
|
151
|
+
allowReserved: options?.requestOptions?.skipUrlEncoding,
|
|
152
|
+
});
|
|
153
|
+
return context.path(path).delete({
|
|
154
|
+
...operationOptionsToRequestParameters(options),
|
|
155
|
+
headers: {
|
|
156
|
+
accept: "application/json",
|
|
157
|
+
...options.requestOptions?.headers,
|
|
158
|
+
},
|
|
127
159
|
});
|
|
128
|
-
return context.path(path).delete(Object.assign(Object.assign({}, operationOptionsToRequestParameters(options)), { headers: Object.assign({ accept: "application/json" }, (_b = options.requestOptions) === null || _b === void 0 ? void 0 : _b.headers) }));
|
|
129
160
|
}
|
|
130
161
|
export async function _$deleteDeserialize(result) {
|
|
131
162
|
const expectedStatuses = ["200", "204"];
|
|
@@ -147,15 +178,22 @@ export async function $delete(context, resourceUri, endpointName, options = { re
|
|
|
147
178
|
return _$deleteDeserialize(result);
|
|
148
179
|
}
|
|
149
180
|
export function _updateSend(context, resourceUri, endpointName, endpointResource, options = { requestOptions: {} }) {
|
|
150
|
-
|
|
151
|
-
const path = expandUrlTemplate("/{+resourceUri}/providers/Microsoft.HybridConnectivity/endpoints/{+endpointName}{?api-version}", {
|
|
181
|
+
const path = expandUrlTemplate("/{+resourceUri}/providers/Microsoft.HybridConnectivity/endpoints/{+endpointName}{?api%2Dversion}", {
|
|
152
182
|
resourceUri: resourceUri,
|
|
153
183
|
endpointName: endpointName,
|
|
154
|
-
"api
|
|
184
|
+
"api%2Dversion": context.apiVersion,
|
|
155
185
|
}, {
|
|
156
|
-
allowReserved:
|
|
186
|
+
allowReserved: options?.requestOptions?.skipUrlEncoding,
|
|
187
|
+
});
|
|
188
|
+
return context.path(path).patch({
|
|
189
|
+
...operationOptionsToRequestParameters(options),
|
|
190
|
+
contentType: "application/json",
|
|
191
|
+
headers: {
|
|
192
|
+
accept: "application/json",
|
|
193
|
+
...options.requestOptions?.headers,
|
|
194
|
+
},
|
|
195
|
+
body: endpointResourceSerializer(endpointResource),
|
|
157
196
|
});
|
|
158
|
-
return context.path(path).patch(Object.assign(Object.assign({}, operationOptionsToRequestParameters(options)), { contentType: "application/json", headers: Object.assign({ accept: "application/json" }, (_b = options.requestOptions) === null || _b === void 0 ? void 0 : _b.headers), body: endpointResourceSerializer(endpointResource) }));
|
|
159
197
|
}
|
|
160
198
|
export async function _updateDeserialize(result) {
|
|
161
199
|
const expectedStatuses = ["200"];
|
|
@@ -172,15 +210,22 @@ export async function update(context, resourceUri, endpointName, endpointResourc
|
|
|
172
210
|
return _updateDeserialize(result);
|
|
173
211
|
}
|
|
174
212
|
export function _createOrUpdateSend(context, resourceUri, endpointName, endpointResource, options = { requestOptions: {} }) {
|
|
175
|
-
|
|
176
|
-
const path = expandUrlTemplate("/{+resourceUri}/providers/Microsoft.HybridConnectivity/endpoints/{+endpointName}{?api-version}", {
|
|
213
|
+
const path = expandUrlTemplate("/{+resourceUri}/providers/Microsoft.HybridConnectivity/endpoints/{+endpointName}{?api%2Dversion}", {
|
|
177
214
|
resourceUri: resourceUri,
|
|
178
215
|
endpointName: endpointName,
|
|
179
|
-
"api
|
|
216
|
+
"api%2Dversion": context.apiVersion,
|
|
180
217
|
}, {
|
|
181
|
-
allowReserved:
|
|
218
|
+
allowReserved: options?.requestOptions?.skipUrlEncoding,
|
|
219
|
+
});
|
|
220
|
+
return context.path(path).put({
|
|
221
|
+
...operationOptionsToRequestParameters(options),
|
|
222
|
+
contentType: "application/json",
|
|
223
|
+
headers: {
|
|
224
|
+
accept: "application/json",
|
|
225
|
+
...options.requestOptions?.headers,
|
|
226
|
+
},
|
|
227
|
+
body: endpointResourceSerializer(endpointResource),
|
|
182
228
|
});
|
|
183
|
-
return context.path(path).put(Object.assign(Object.assign({}, operationOptionsToRequestParameters(options)), { contentType: "application/json", headers: Object.assign({ accept: "application/json" }, (_b = options.requestOptions) === null || _b === void 0 ? void 0 : _b.headers), body: endpointResourceSerializer(endpointResource) }));
|
|
184
229
|
}
|
|
185
230
|
export async function _createOrUpdateDeserialize(result) {
|
|
186
231
|
const expectedStatuses = ["200"];
|
|
@@ -197,15 +242,20 @@ export async function createOrUpdate(context, resourceUri, endpointName, endpoin
|
|
|
197
242
|
return _createOrUpdateDeserialize(result);
|
|
198
243
|
}
|
|
199
244
|
export function _getSend(context, resourceUri, endpointName, options = { requestOptions: {} }) {
|
|
200
|
-
|
|
201
|
-
const path = expandUrlTemplate("/{+resourceUri}/providers/Microsoft.HybridConnectivity/endpoints/{+endpointName}{?api-version}", {
|
|
245
|
+
const path = expandUrlTemplate("/{+resourceUri}/providers/Microsoft.HybridConnectivity/endpoints/{+endpointName}{?api%2Dversion}", {
|
|
202
246
|
resourceUri: resourceUri,
|
|
203
247
|
endpointName: endpointName,
|
|
204
|
-
"api
|
|
248
|
+
"api%2Dversion": context.apiVersion,
|
|
205
249
|
}, {
|
|
206
|
-
allowReserved:
|
|
250
|
+
allowReserved: options?.requestOptions?.skipUrlEncoding,
|
|
251
|
+
});
|
|
252
|
+
return context.path(path).get({
|
|
253
|
+
...operationOptionsToRequestParameters(options),
|
|
254
|
+
headers: {
|
|
255
|
+
accept: "application/json",
|
|
256
|
+
...options.requestOptions?.headers,
|
|
257
|
+
},
|
|
207
258
|
});
|
|
208
|
-
return context.path(path).get(Object.assign(Object.assign({}, operationOptionsToRequestParameters(options)), { headers: Object.assign({ accept: "application/json" }, (_b = options.requestOptions) === null || _b === void 0 ? void 0 : _b.headers) }));
|
|
209
259
|
}
|
|
210
260
|
export async function _getDeserialize(result) {
|
|
211
261
|
const expectedStatuses = ["200"];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"operations.js","sourceRoot":"","sources":["../../../../src/api/endpoints/operations.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAGlC,OAAO,EACL,yBAAyB,EAEzB,0BAA0B,EAC1B,4BAA4B,EAE5B,0BAA0B,EAC1B,gCAAgC,EAEhC,kCAAkC,EAClC,8CAA8C,EAE9C,kCAAkC,EAElC,6BAA6B,EAE7B,gCAAgC,GACjC,MAAM,wBAAwB,CAAC;AAWhC,O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\n\nimport { HybridConnectivityManagementAPIContext as Client } from \"../index.js\";\nimport {\n errorResponseDeserializer,\n EndpointResource,\n endpointResourceSerializer,\n endpointResourceDeserializer,\n _EndpointsList,\n _endpointsListDeserializer,\n listCredentialsRequestSerializer,\n EndpointAccessResource,\n endpointAccessResourceDeserializer,\n listIngressGatewayCredentialsRequestSerializer,\n IngressGatewayResource,\n ingressGatewayResourceDeserializer,\n ManagedProxyRequest,\n managedProxyRequestSerializer,\n ManagedProxyResource,\n managedProxyResourceDeserializer,\n} from \"../../models/models.js\";\nimport {\n EndpointsListManagedProxyDetailsOptionalParams,\n EndpointsListIngressGatewayCredentialsOptionalParams,\n EndpointsListCredentialsOptionalParams,\n EndpointsListOptionalParams,\n EndpointsDeleteOptionalParams,\n EndpointsUpdateOptionalParams,\n EndpointsCreateOrUpdateOptionalParams,\n EndpointsGetOptionalParams,\n} from \"./options.js\";\nimport {\n PagedAsyncIterableIterator,\n buildPagedAsyncIterator,\n} from \"../../static-helpers/pagingHelpers.js\";\nimport { expandUrlTemplate } from \"../../static-helpers/urlTemplate.js\";\nimport {\n StreamableMethod,\n PathUncheckedResponse,\n createRestError,\n operationOptionsToRequestParameters,\n} from \"@azure-rest/core-client\";\n\nexport function _listManagedProxyDetailsSend(\n context: Client,\n resourceUri: string,\n endpointName: string,\n managedProxyRequest: ManagedProxyRequest,\n options: EndpointsListManagedProxyDetailsOptionalParams = {\n requestOptions: {},\n },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/{+resourceUri}/providers/Microsoft.HybridConnectivity/endpoints/{+endpointName}/listManagedProxyDetails{?api-version}\",\n {\n resourceUri: resourceUri,\n endpointName: endpointName,\n \"api-version\": context.apiVersion,\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).post({\n ...operationOptionsToRequestParameters(options),\n contentType: \"application/json\",\n headers: {\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n body: managedProxyRequestSerializer(managedProxyRequest),\n });\n}\n\nexport async function _listManagedProxyDetailsDeserialize(\n result: PathUncheckedResponse,\n): Promise<ManagedProxyResource> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n error.details = errorResponseDeserializer(result.body);\n throw error;\n }\n\n return managedProxyResourceDeserializer(result.body);\n}\n\n/** Fetches the managed proxy details */\nexport async function listManagedProxyDetails(\n context: Client,\n resourceUri: string,\n endpointName: string,\n managedProxyRequest: ManagedProxyRequest,\n options: EndpointsListManagedProxyDetailsOptionalParams = {\n requestOptions: {},\n },\n): Promise<ManagedProxyResource> {\n const result = await _listManagedProxyDetailsSend(\n context,\n resourceUri,\n endpointName,\n managedProxyRequest,\n options,\n );\n return _listManagedProxyDetailsDeserialize(result);\n}\n\nexport function _listIngressGatewayCredentialsSend(\n context: Client,\n resourceUri: string,\n endpointName: string,\n options: EndpointsListIngressGatewayCredentialsOptionalParams = {\n requestOptions: {},\n },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/{+resourceUri}/providers/Microsoft.HybridConnectivity/endpoints/{+endpointName}/listIngressGatewayCredentials{?api-version,expiresin}\",\n {\n resourceUri: resourceUri,\n endpointName: endpointName,\n \"api-version\": context.apiVersion,\n expiresin: options?.expiresin,\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).post({\n ...operationOptionsToRequestParameters(options),\n contentType: \"application/json\",\n headers: {\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n body: !options[\"listIngressGatewayCredentialsRequest\"]\n ? options[\"listIngressGatewayCredentialsRequest\"]\n : listIngressGatewayCredentialsRequestSerializer(\n options[\"listIngressGatewayCredentialsRequest\"],\n ),\n });\n}\n\nexport async function _listIngressGatewayCredentialsDeserialize(\n result: PathUncheckedResponse,\n): Promise<IngressGatewayResource> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n error.details = errorResponseDeserializer(result.body);\n throw error;\n }\n\n return ingressGatewayResourceDeserializer(result.body);\n}\n\n/** Gets the ingress gateway endpoint credentials */\nexport async function listIngressGatewayCredentials(\n context: Client,\n resourceUri: string,\n endpointName: string,\n options: EndpointsListIngressGatewayCredentialsOptionalParams = {\n requestOptions: {},\n },\n): Promise<IngressGatewayResource> {\n const result = await _listIngressGatewayCredentialsSend(\n context,\n resourceUri,\n endpointName,\n options,\n );\n return _listIngressGatewayCredentialsDeserialize(result);\n}\n\nexport function _listCredentialsSend(\n context: Client,\n resourceUri: string,\n endpointName: string,\n options: EndpointsListCredentialsOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/{+resourceUri}/providers/Microsoft.HybridConnectivity/endpoints/{+endpointName}/listCredentials{?api-version,expiresin}\",\n {\n resourceUri: resourceUri,\n endpointName: endpointName,\n \"api-version\": context.apiVersion,\n expiresin: options?.expiresin,\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).post({\n ...operationOptionsToRequestParameters(options),\n contentType: \"application/json\",\n headers: {\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n body: !options[\"listCredentialsRequest\"]\n ? options[\"listCredentialsRequest\"]\n : listCredentialsRequestSerializer(options[\"listCredentialsRequest\"]),\n });\n}\n\nexport async function _listCredentialsDeserialize(\n result: PathUncheckedResponse,\n): Promise<EndpointAccessResource> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n error.details = errorResponseDeserializer(result.body);\n throw error;\n }\n\n return endpointAccessResourceDeserializer(result.body);\n}\n\n/** Gets the endpoint access credentials to the resource. */\nexport async function listCredentials(\n context: Client,\n resourceUri: string,\n endpointName: string,\n options: EndpointsListCredentialsOptionalParams = { requestOptions: {} },\n): Promise<EndpointAccessResource> {\n const result = await _listCredentialsSend(context, resourceUri, endpointName, options);\n return _listCredentialsDeserialize(result);\n}\n\nexport function _listSend(\n context: Client,\n resourceUri: string,\n options: EndpointsListOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/{+resourceUri}/providers/Microsoft.HybridConnectivity/endpoints{?api-version}\",\n {\n resourceUri: resourceUri,\n \"api-version\": context.apiVersion,\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).get({\n ...operationOptionsToRequestParameters(options),\n headers: {\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n });\n}\n\nexport async function _listDeserialize(result: PathUncheckedResponse): Promise<_EndpointsList> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n error.details = errorResponseDeserializer(result.body);\n throw error;\n }\n\n return _endpointsListDeserializer(result.body);\n}\n\n/** List of endpoints to the target resource. */\nexport function list(\n context: Client,\n resourceUri: string,\n options: EndpointsListOptionalParams = { requestOptions: {} },\n): PagedAsyncIterableIterator<EndpointResource> {\n return buildPagedAsyncIterator(\n context,\n () => _listSend(context, resourceUri, options),\n _listDeserialize,\n [\"200\"],\n { itemName: \"value\", nextLinkName: \"nextLink\" },\n );\n}\n\nexport function _$deleteSend(\n context: Client,\n resourceUri: string,\n endpointName: string,\n options: EndpointsDeleteOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/{+resourceUri}/providers/Microsoft.HybridConnectivity/endpoints/{+endpointName}{?api-version}\",\n {\n resourceUri: resourceUri,\n endpointName: endpointName,\n \"api-version\": context.apiVersion,\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).delete({\n ...operationOptionsToRequestParameters(options),\n headers: {\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n });\n}\n\nexport async function _$deleteDeserialize(result: PathUncheckedResponse): Promise<void> {\n const expectedStatuses = [\"200\", \"204\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n error.details = errorResponseDeserializer(result.body);\n throw error;\n }\n\n return;\n}\n\n/** Deletes the endpoint access to the target resource. */\n/**\n * @fixme delete is a reserved word that cannot be used as an operation name.\n * Please add @clientName(\"clientName\") or @clientName(\"<JS-Specific-Name>\", \"javascript\")\n * to the operation to override the generated name.\n */\nexport async function $delete(\n context: Client,\n resourceUri: string,\n endpointName: string,\n options: EndpointsDeleteOptionalParams = { requestOptions: {} },\n): Promise<void> {\n const result = await _$deleteSend(context, resourceUri, endpointName, options);\n return _$deleteDeserialize(result);\n}\n\nexport function _updateSend(\n context: Client,\n resourceUri: string,\n endpointName: string,\n endpointResource: EndpointResource,\n options: EndpointsUpdateOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/{+resourceUri}/providers/Microsoft.HybridConnectivity/endpoints/{+endpointName}{?api-version}\",\n {\n resourceUri: resourceUri,\n endpointName: endpointName,\n \"api-version\": context.apiVersion,\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).patch({\n ...operationOptionsToRequestParameters(options),\n contentType: \"application/json\",\n headers: {\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n body: endpointResourceSerializer(endpointResource),\n });\n}\n\nexport async function _updateDeserialize(result: PathUncheckedResponse): Promise<EndpointResource> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n error.details = errorResponseDeserializer(result.body);\n throw error;\n }\n\n return endpointResourceDeserializer(result.body);\n}\n\n/** Update the endpoint to the target resource. */\nexport async function update(\n context: Client,\n resourceUri: string,\n endpointName: string,\n endpointResource: EndpointResource,\n options: EndpointsUpdateOptionalParams = { requestOptions: {} },\n): Promise<EndpointResource> {\n const result = await _updateSend(context, resourceUri, endpointName, endpointResource, options);\n return _updateDeserialize(result);\n}\n\nexport function _createOrUpdateSend(\n context: Client,\n resourceUri: string,\n endpointName: string,\n endpointResource: EndpointResource,\n options: EndpointsCreateOrUpdateOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/{+resourceUri}/providers/Microsoft.HybridConnectivity/endpoints/{+endpointName}{?api-version}\",\n {\n resourceUri: resourceUri,\n endpointName: endpointName,\n \"api-version\": context.apiVersion,\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).put({\n ...operationOptionsToRequestParameters(options),\n contentType: \"application/json\",\n headers: {\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n body: endpointResourceSerializer(endpointResource),\n });\n}\n\nexport async function _createOrUpdateDeserialize(\n result: PathUncheckedResponse,\n): Promise<EndpointResource> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n error.details = errorResponseDeserializer(result.body);\n throw error;\n }\n\n return endpointResourceDeserializer(result.body);\n}\n\n/** Create or update the endpoint to the target resource. */\nexport async function createOrUpdate(\n context: Client,\n resourceUri: string,\n endpointName: string,\n endpointResource: EndpointResource,\n options: EndpointsCreateOrUpdateOptionalParams = { requestOptions: {} },\n): Promise<EndpointResource> {\n const result = await _createOrUpdateSend(\n context,\n resourceUri,\n endpointName,\n endpointResource,\n options,\n );\n return _createOrUpdateDeserialize(result);\n}\n\nexport function _getSend(\n context: Client,\n resourceUri: string,\n endpointName: string,\n options: EndpointsGetOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/{+resourceUri}/providers/Microsoft.HybridConnectivity/endpoints/{+endpointName}{?api-version}\",\n {\n resourceUri: resourceUri,\n endpointName: endpointName,\n \"api-version\": context.apiVersion,\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).get({\n ...operationOptionsToRequestParameters(options),\n headers: {\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n });\n}\n\nexport async function _getDeserialize(result: PathUncheckedResponse): Promise<EndpointResource> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n error.details = errorResponseDeserializer(result.body);\n throw error;\n }\n\n return endpointResourceDeserializer(result.body);\n}\n\n/** Gets the endpoint to the resource. */\nexport async function get(\n context: Client,\n resourceUri: string,\n endpointName: string,\n options: EndpointsGetOptionalParams = { requestOptions: {} },\n): Promise<EndpointResource> {\n const result = await _getSend(context, resourceUri, endpointName, options);\n return _getDeserialize(result);\n}\n"]}
|
|
1
|
+
{"version":3,"file":"operations.js","sourceRoot":"","sources":["../../../../src/api/endpoints/operations.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAGlC,OAAO,EACL,yBAAyB,EAEzB,0BAA0B,EAC1B,4BAA4B,EAE5B,0BAA0B,EAC1B,gCAAgC,EAEhC,kCAAkC,EAClC,8CAA8C,EAE9C,kCAAkC,EAElC,6BAA6B,EAE7B,gCAAgC,GACjC,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAEL,uBAAuB,GACxB,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EAAE,iBAAiB,EAAE,MAAM,qCAAqC,CAAC;AAWxE,OAAO,EAGL,eAAe,EACf,mCAAmC,GACpC,MAAM,yBAAyB,CAAC;AAEjC,MAAM,UAAU,4BAA4B,CAC1C,OAAe,EACf,WAAmB,EACnB,YAAoB,EACpB,mBAAwC,EACxC,UAA0D;IACxD,cAAc,EAAE,EAAE;CACnB;IAED,MAAM,IAAI,GAAG,iBAAiB,CAC5B,0HAA0H,EAC1H;QACE,WAAW,EAAE,WAAW;QACxB,YAAY,EAAE,YAAY;QAC1B,eAAe,EAAE,OAAO,CAAC,UAAU;KACpC,EACD;QACE,aAAa,EAAE,OAAO,EAAE,cAAc,EAAE,eAAe;KACxD,CACF,CAAC;IACF,OAAO,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC;QAC7B,GAAG,mCAAmC,CAAC,OAAO,CAAC;QAC/C,WAAW,EAAE,kBAAkB;QAC/B,OAAO,EAAE;YACP,MAAM,EAAE,kBAAkB;YAC1B,GAAG,OAAO,CAAC,cAAc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CAAC;IACd,CAAC;IAED,OAAO,4BAA4B,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;AACnD,CAAC;AAED,yCAAyC;AACzC,MAAM,CAAC,KAAK,UAAU,GAAG,CACvB,OAAe,EACf,WAAmB,EACnB,YAAoB,EACpB,UAAsC,EAAE,cAAc,EAAE,EAAE,EAAE;IAE5D,MAAM,MAAM,GAAG,MAAM,QAAQ,CAAC,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,OAAO,CAAC,CAAC;IAC3E,OAAO,eAAe,CAAC,MAAM,CAAC,CAAC;AACjC,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { HybridConnectivityManagementAPIContext as Client } from \"../index.js\";\nimport {\n errorResponseDeserializer,\n EndpointResource,\n endpointResourceSerializer,\n endpointResourceDeserializer,\n _EndpointsList,\n _endpointsListDeserializer,\n listCredentialsRequestSerializer,\n EndpointAccessResource,\n endpointAccessResourceDeserializer,\n listIngressGatewayCredentialsRequestSerializer,\n IngressGatewayResource,\n ingressGatewayResourceDeserializer,\n ManagedProxyRequest,\n managedProxyRequestSerializer,\n ManagedProxyResource,\n managedProxyResourceDeserializer,\n} from \"../../models/models.js\";\nimport {\n PagedAsyncIterableIterator,\n buildPagedAsyncIterator,\n} from \"../../static-helpers/pagingHelpers.js\";\nimport { expandUrlTemplate } from \"../../static-helpers/urlTemplate.js\";\nimport {\n EndpointsListManagedProxyDetailsOptionalParams,\n EndpointsListIngressGatewayCredentialsOptionalParams,\n EndpointsListCredentialsOptionalParams,\n EndpointsListOptionalParams,\n EndpointsDeleteOptionalParams,\n EndpointsUpdateOptionalParams,\n EndpointsCreateOrUpdateOptionalParams,\n EndpointsGetOptionalParams,\n} from \"./options.js\";\nimport {\n StreamableMethod,\n PathUncheckedResponse,\n createRestError,\n operationOptionsToRequestParameters,\n} from \"@azure-rest/core-client\";\n\nexport function _listManagedProxyDetailsSend(\n context: Client,\n resourceUri: string,\n endpointName: string,\n managedProxyRequest: ManagedProxyRequest,\n options: EndpointsListManagedProxyDetailsOptionalParams = {\n requestOptions: {},\n },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/{+resourceUri}/providers/Microsoft.HybridConnectivity/endpoints/{+endpointName}/listManagedProxyDetails{?api%2Dversion}\",\n {\n resourceUri: resourceUri,\n endpointName: endpointName,\n \"api%2Dversion\": context.apiVersion,\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).post({\n ...operationOptionsToRequestParameters(options),\n contentType: \"application/json\",\n headers: {\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n body: managedProxyRequestSerializer(managedProxyRequest),\n });\n}\n\nexport async function _listManagedProxyDetailsDeserialize(\n result: PathUncheckedResponse,\n): Promise<ManagedProxyResource> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n error.details = errorResponseDeserializer(result.body);\n throw error;\n }\n\n return managedProxyResourceDeserializer(result.body);\n}\n\n/** Fetches the managed proxy details */\nexport async function listManagedProxyDetails(\n context: Client,\n resourceUri: string,\n endpointName: string,\n managedProxyRequest: ManagedProxyRequest,\n options: EndpointsListManagedProxyDetailsOptionalParams = {\n requestOptions: {},\n },\n): Promise<ManagedProxyResource> {\n const result = await _listManagedProxyDetailsSend(\n context,\n resourceUri,\n endpointName,\n managedProxyRequest,\n options,\n );\n return _listManagedProxyDetailsDeserialize(result);\n}\n\nexport function _listIngressGatewayCredentialsSend(\n context: Client,\n resourceUri: string,\n endpointName: string,\n options: EndpointsListIngressGatewayCredentialsOptionalParams = {\n requestOptions: {},\n },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/{+resourceUri}/providers/Microsoft.HybridConnectivity/endpoints/{+endpointName}/listIngressGatewayCredentials{?api%2Dversion,expiresin}\",\n {\n resourceUri: resourceUri,\n endpointName: endpointName,\n \"api%2Dversion\": context.apiVersion,\n expiresin: options?.expiresin,\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).post({\n ...operationOptionsToRequestParameters(options),\n contentType: \"application/json\",\n headers: {\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n body: !options[\"listIngressGatewayCredentialsRequest\"]\n ? options[\"listIngressGatewayCredentialsRequest\"]\n : listIngressGatewayCredentialsRequestSerializer(\n options[\"listIngressGatewayCredentialsRequest\"],\n ),\n });\n}\n\nexport async function _listIngressGatewayCredentialsDeserialize(\n result: PathUncheckedResponse,\n): Promise<IngressGatewayResource> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n error.details = errorResponseDeserializer(result.body);\n throw error;\n }\n\n return ingressGatewayResourceDeserializer(result.body);\n}\n\n/** Gets the ingress gateway endpoint credentials */\nexport async function listIngressGatewayCredentials(\n context: Client,\n resourceUri: string,\n endpointName: string,\n options: EndpointsListIngressGatewayCredentialsOptionalParams = {\n requestOptions: {},\n },\n): Promise<IngressGatewayResource> {\n const result = await _listIngressGatewayCredentialsSend(\n context,\n resourceUri,\n endpointName,\n options,\n );\n return _listIngressGatewayCredentialsDeserialize(result);\n}\n\nexport function _listCredentialsSend(\n context: Client,\n resourceUri: string,\n endpointName: string,\n options: EndpointsListCredentialsOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/{+resourceUri}/providers/Microsoft.HybridConnectivity/endpoints/{+endpointName}/listCredentials{?api%2Dversion,expiresin}\",\n {\n resourceUri: resourceUri,\n endpointName: endpointName,\n \"api%2Dversion\": context.apiVersion,\n expiresin: options?.expiresin,\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).post({\n ...operationOptionsToRequestParameters(options),\n contentType: \"application/json\",\n headers: {\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n body: !options[\"listCredentialsRequest\"]\n ? options[\"listCredentialsRequest\"]\n : listCredentialsRequestSerializer(options[\"listCredentialsRequest\"]),\n });\n}\n\nexport async function _listCredentialsDeserialize(\n result: PathUncheckedResponse,\n): Promise<EndpointAccessResource> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n error.details = errorResponseDeserializer(result.body);\n throw error;\n }\n\n return endpointAccessResourceDeserializer(result.body);\n}\n\n/** Gets the endpoint access credentials to the resource. */\nexport async function listCredentials(\n context: Client,\n resourceUri: string,\n endpointName: string,\n options: EndpointsListCredentialsOptionalParams = { requestOptions: {} },\n): Promise<EndpointAccessResource> {\n const result = await _listCredentialsSend(context, resourceUri, endpointName, options);\n return _listCredentialsDeserialize(result);\n}\n\nexport function _listSend(\n context: Client,\n resourceUri: string,\n options: EndpointsListOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/{+resourceUri}/providers/Microsoft.HybridConnectivity/endpoints{?api%2Dversion}\",\n {\n resourceUri: resourceUri,\n \"api%2Dversion\": context.apiVersion,\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).get({\n ...operationOptionsToRequestParameters(options),\n headers: {\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n });\n}\n\nexport async function _listDeserialize(result: PathUncheckedResponse): Promise<_EndpointsList> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n error.details = errorResponseDeserializer(result.body);\n throw error;\n }\n\n return _endpointsListDeserializer(result.body);\n}\n\n/** List of endpoints to the target resource. */\nexport function list(\n context: Client,\n resourceUri: string,\n options: EndpointsListOptionalParams = { requestOptions: {} },\n): PagedAsyncIterableIterator<EndpointResource> {\n return buildPagedAsyncIterator(\n context,\n () => _listSend(context, resourceUri, options),\n _listDeserialize,\n [\"200\"],\n { itemName: \"value\", nextLinkName: \"nextLink\" },\n );\n}\n\nexport function _$deleteSend(\n context: Client,\n resourceUri: string,\n endpointName: string,\n options: EndpointsDeleteOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/{+resourceUri}/providers/Microsoft.HybridConnectivity/endpoints/{+endpointName}{?api%2Dversion}\",\n {\n resourceUri: resourceUri,\n endpointName: endpointName,\n \"api%2Dversion\": context.apiVersion,\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).delete({\n ...operationOptionsToRequestParameters(options),\n headers: {\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n });\n}\n\nexport async function _$deleteDeserialize(result: PathUncheckedResponse): Promise<void> {\n const expectedStatuses = [\"200\", \"204\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n error.details = errorResponseDeserializer(result.body);\n throw error;\n }\n\n return;\n}\n\n/** Deletes the endpoint access to the target resource. */\n/**\n * @fixme delete is a reserved word that cannot be used as an operation name.\n * Please add @clientName(\"clientName\") or @clientName(\"<JS-Specific-Name>\", \"javascript\")\n * to the operation to override the generated name.\n */\nexport async function $delete(\n context: Client,\n resourceUri: string,\n endpointName: string,\n options: EndpointsDeleteOptionalParams = { requestOptions: {} },\n): Promise<void> {\n const result = await _$deleteSend(context, resourceUri, endpointName, options);\n return _$deleteDeserialize(result);\n}\n\nexport function _updateSend(\n context: Client,\n resourceUri: string,\n endpointName: string,\n endpointResource: EndpointResource,\n options: EndpointsUpdateOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/{+resourceUri}/providers/Microsoft.HybridConnectivity/endpoints/{+endpointName}{?api%2Dversion}\",\n {\n resourceUri: resourceUri,\n endpointName: endpointName,\n \"api%2Dversion\": context.apiVersion,\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).patch({\n ...operationOptionsToRequestParameters(options),\n contentType: \"application/json\",\n headers: {\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n body: endpointResourceSerializer(endpointResource),\n });\n}\n\nexport async function _updateDeserialize(result: PathUncheckedResponse): Promise<EndpointResource> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n error.details = errorResponseDeserializer(result.body);\n throw error;\n }\n\n return endpointResourceDeserializer(result.body);\n}\n\n/** Update the endpoint to the target resource. */\nexport async function update(\n context: Client,\n resourceUri: string,\n endpointName: string,\n endpointResource: EndpointResource,\n options: EndpointsUpdateOptionalParams = { requestOptions: {} },\n): Promise<EndpointResource> {\n const result = await _updateSend(context, resourceUri, endpointName, endpointResource, options);\n return _updateDeserialize(result);\n}\n\nexport function _createOrUpdateSend(\n context: Client,\n resourceUri: string,\n endpointName: string,\n endpointResource: EndpointResource,\n options: EndpointsCreateOrUpdateOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/{+resourceUri}/providers/Microsoft.HybridConnectivity/endpoints/{+endpointName}{?api%2Dversion}\",\n {\n resourceUri: resourceUri,\n endpointName: endpointName,\n \"api%2Dversion\": context.apiVersion,\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).put({\n ...operationOptionsToRequestParameters(options),\n contentType: \"application/json\",\n headers: {\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n body: endpointResourceSerializer(endpointResource),\n });\n}\n\nexport async function _createOrUpdateDeserialize(\n result: PathUncheckedResponse,\n): Promise<EndpointResource> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n error.details = errorResponseDeserializer(result.body);\n throw error;\n }\n\n return endpointResourceDeserializer(result.body);\n}\n\n/** Create or update the endpoint to the target resource. */\nexport async function createOrUpdate(\n context: Client,\n resourceUri: string,\n endpointName: string,\n endpointResource: EndpointResource,\n options: EndpointsCreateOrUpdateOptionalParams = { requestOptions: {} },\n): Promise<EndpointResource> {\n const result = await _createOrUpdateSend(\n context,\n resourceUri,\n endpointName,\n endpointResource,\n options,\n );\n return _createOrUpdateDeserialize(result);\n}\n\nexport function _getSend(\n context: Client,\n resourceUri: string,\n endpointName: string,\n options: EndpointsGetOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/{+resourceUri}/providers/Microsoft.HybridConnectivity/endpoints/{+endpointName}{?api%2Dversion}\",\n {\n resourceUri: resourceUri,\n endpointName: endpointName,\n \"api%2Dversion\": context.apiVersion,\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).get({\n ...operationOptionsToRequestParameters(options),\n headers: {\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n });\n}\n\nexport async function _getDeserialize(result: PathUncheckedResponse): Promise<EndpointResource> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n error.details = errorResponseDeserializer(result.body);\n throw error;\n }\n\n return endpointResourceDeserializer(result.body);\n}\n\n/** Gets the endpoint to the resource. */\nexport async function get(\n context: Client,\n resourceUri: string,\n endpointName: string,\n options: EndpointsGetOptionalParams = { requestOptions: {} },\n): Promise<EndpointResource> {\n const result = await _getSend(context, resourceUri, endpointName, options);\n return _getDeserialize(result);\n}\n"]}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { HybridConnectivityManagementAPIContext as Client } from "../index.js";
|
|
2
|
-
import { GenerateAwsTemplateRequest } from "../../models/models.js";
|
|
2
|
+
import { GenerateAwsTemplateRequest, GenerateAwsTemplateResponse } from "../../models/models.js";
|
|
3
3
|
import { GenerateAwsTemplatePostOptionalParams } from "./options.js";
|
|
4
4
|
import { StreamableMethod, PathUncheckedResponse } from "@azure-rest/core-client";
|
|
5
5
|
export declare function _postSend(context: Client, generateAwsTemplateRequest: GenerateAwsTemplateRequest, options?: GenerateAwsTemplatePostOptionalParams): StreamableMethod;
|
|
6
|
-
export declare function _postDeserialize(result: PathUncheckedResponse): Promise<
|
|
6
|
+
export declare function _postDeserialize(result: PathUncheckedResponse): Promise<GenerateAwsTemplateResponse>;
|
|
7
7
|
/** Retrieve AWS Cloud Formation template */
|
|
8
|
-
export declare function post(context: Client, generateAwsTemplateRequest: GenerateAwsTemplateRequest, options?: GenerateAwsTemplatePostOptionalParams): Promise<
|
|
8
|
+
export declare function post(context: Client, generateAwsTemplateRequest: GenerateAwsTemplateRequest, options?: GenerateAwsTemplatePostOptionalParams): Promise<GenerateAwsTemplateResponse>;
|
|
9
9
|
//# sourceMappingURL=operations.d.ts.map
|
|
@@ -1,17 +1,24 @@
|
|
|
1
1
|
// Copyright (c) Microsoft Corporation.
|
|
2
2
|
// Licensed under the MIT License.
|
|
3
|
-
import { errorResponseDeserializer, generateAwsTemplateRequestSerializer,
|
|
3
|
+
import { errorResponseDeserializer, generateAwsTemplateRequestSerializer, generateAwsTemplateResponseDeserializer, } from "../../models/models.js";
|
|
4
4
|
import { expandUrlTemplate } from "../../static-helpers/urlTemplate.js";
|
|
5
5
|
import { createRestError, operationOptionsToRequestParameters, } from "@azure-rest/core-client";
|
|
6
6
|
export function _postSend(context, generateAwsTemplateRequest, options = { requestOptions: {} }) {
|
|
7
|
-
|
|
8
|
-
const path = expandUrlTemplate("/subscriptions/{subscriptionId}/providers/Microsoft.HybridConnectivity/generateAwsTemplate{?api-version}", {
|
|
7
|
+
const path = expandUrlTemplate("/subscriptions/{subscriptionId}/providers/Microsoft.HybridConnectivity/generateAwsTemplate{?api%2Dversion}", {
|
|
9
8
|
subscriptionId: context.subscriptionId,
|
|
10
|
-
"api
|
|
9
|
+
"api%2Dversion": context.apiVersion,
|
|
11
10
|
}, {
|
|
12
|
-
allowReserved:
|
|
11
|
+
allowReserved: options?.requestOptions?.skipUrlEncoding,
|
|
12
|
+
});
|
|
13
|
+
return context.path(path).post({
|
|
14
|
+
...operationOptionsToRequestParameters(options),
|
|
15
|
+
contentType: "application/json",
|
|
16
|
+
headers: {
|
|
17
|
+
accept: "application/json",
|
|
18
|
+
...options.requestOptions?.headers,
|
|
19
|
+
},
|
|
20
|
+
body: generateAwsTemplateRequestSerializer(generateAwsTemplateRequest),
|
|
13
21
|
});
|
|
14
|
-
return context.path(path).post(Object.assign(Object.assign({}, operationOptionsToRequestParameters(options)), { contentType: "application/json", headers: Object.assign({ accept: "application/json" }, (_b = options.requestOptions) === null || _b === void 0 ? void 0 : _b.headers), body: generateAwsTemplateRequestSerializer(generateAwsTemplateRequest) }));
|
|
15
22
|
}
|
|
16
23
|
export async function _postDeserialize(result) {
|
|
17
24
|
const expectedStatuses = ["200"];
|
|
@@ -20,7 +27,7 @@ export async function _postDeserialize(result) {
|
|
|
20
27
|
error.details = errorResponseDeserializer(result.body);
|
|
21
28
|
throw error;
|
|
22
29
|
}
|
|
23
|
-
return
|
|
30
|
+
return generateAwsTemplateResponseDeserializer(result.body);
|
|
24
31
|
}
|
|
25
32
|
/** Retrieve AWS Cloud Formation template */
|
|
26
33
|
export async function post(context, generateAwsTemplateRequest, options = { requestOptions: {} }) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"operations.js","sourceRoot":"","sources":["../../../../src/api/generateAwsTemplate/operations.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAGlC,OAAO,EACL,yBAAyB,EAEzB,oCAAoC,
|
|
1
|
+
{"version":3,"file":"operations.js","sourceRoot":"","sources":["../../../../src/api/generateAwsTemplate/operations.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAGlC,OAAO,EACL,yBAAyB,EAEzB,oCAAoC,EAEpC,uCAAuC,GACxC,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,iBAAiB,EAAE,MAAM,qCAAqC,CAAC;AAExE,OAAO,EAGL,eAAe,EACf,mCAAmC,GACpC,MAAM,yBAAyB,CAAC;AAEjC,MAAM,UAAU,SAAS,CACvB,OAAe,EACf,0BAAsD,EACtD,UAAiD,EAAE,cAAc,EAAE,EAAE,EAAE;IAEvE,MAAM,IAAI,GAAG,iBAAiB,CAC5B,4GAA4G,EAC5G;QACE,cAAc,EAAE,OAAO,CAAC,cAAc;QACtC,eAAe,EAAE,OAAO,CAAC,UAAU;KACpC,EACD;QACE,aAAa,EAAE,OAAO,EAAE,cAAc,EAAE,eAAe;KACxD,CACF,CAAC;IACF,OAAO,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC;QAC7B,GAAG,mCAAmC,CAAC,OAAO,CAAC;QAC/C,WAAW,EAAE,kBAAkB;QAC/B,OAAO,EAAE;YACP,MAAM,EAAE,kBAAkB;YAC1B,GAAG,OAAO,CAAC,cAAc,EAAE,OAAO;SACnC;QACD,IAAI,EAAE,oCAAoC,CAAC,0BAA0B,CAAC;KACvE,CAAC,CAAC;AACL,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,gBAAgB,CACpC,MAA6B;IAE7B,MAAM,gBAAgB,GAAG,CAAC,KAAK,CAAC,CAAC;IACjC,IAAI,CAAC,gBAAgB,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC;QAC9C,MAAM,KAAK,GAAG,eAAe,CAAC,MAAM,CAAC,CAAC;QACtC,KAAK,CAAC,OAAO,GAAG,yBAAyB,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;QACvD,MAAM,KAAK,CAAC;IACd,CAAC;IAED,OAAO,uCAAuC,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;AAC9D,CAAC;AAED,4CAA4C;AAC5C,MAAM,CAAC,KAAK,UAAU,IAAI,CACxB,OAAe,EACf,0BAAsD,EACtD,UAAiD,EAAE,cAAc,EAAE,EAAE,EAAE;IAEvE,MAAM,MAAM,GAAG,MAAM,SAAS,CAAC,OAAO,EAAE,0BAA0B,EAAE,OAAO,CAAC,CAAC;IAC7E,OAAO,gBAAgB,CAAC,MAAM,CAAC,CAAC;AAClC,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { HybridConnectivityManagementAPIContext as Client } from \"../index.js\";\nimport {\n errorResponseDeserializer,\n GenerateAwsTemplateRequest,\n generateAwsTemplateRequestSerializer,\n GenerateAwsTemplateResponse,\n generateAwsTemplateResponseDeserializer,\n} from \"../../models/models.js\";\nimport { expandUrlTemplate } from \"../../static-helpers/urlTemplate.js\";\nimport { GenerateAwsTemplatePostOptionalParams } from \"./options.js\";\nimport {\n StreamableMethod,\n PathUncheckedResponse,\n createRestError,\n operationOptionsToRequestParameters,\n} from \"@azure-rest/core-client\";\n\nexport function _postSend(\n context: Client,\n generateAwsTemplateRequest: GenerateAwsTemplateRequest,\n options: GenerateAwsTemplatePostOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/providers/Microsoft.HybridConnectivity/generateAwsTemplate{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n \"api%2Dversion\": context.apiVersion,\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).post({\n ...operationOptionsToRequestParameters(options),\n contentType: \"application/json\",\n headers: {\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n body: generateAwsTemplateRequestSerializer(generateAwsTemplateRequest),\n });\n}\n\nexport async function _postDeserialize(\n result: PathUncheckedResponse,\n): Promise<GenerateAwsTemplateResponse> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n error.details = errorResponseDeserializer(result.body);\n throw error;\n }\n\n return generateAwsTemplateResponseDeserializer(result.body);\n}\n\n/** Retrieve AWS Cloud Formation template */\nexport async function post(\n context: Client,\n generateAwsTemplateRequest: GenerateAwsTemplateRequest,\n options: GenerateAwsTemplatePostOptionalParams = { requestOptions: {} },\n): Promise<GenerateAwsTemplateResponse> {\n const result = await _postSend(context, generateAwsTemplateRequest, options);\n return _postDeserialize(result);\n}\n"]}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { AzureSupportedClouds } from "../static-helpers/cloudSettingHelpers.js";
|
|
1
2
|
import { Client, ClientOptions } from "@azure-rest/core-client";
|
|
2
3
|
import { TokenCredential } from "@azure/core-auth";
|
|
3
4
|
/** REST API for public clouds. */
|
|
@@ -13,6 +14,8 @@ export interface HybridConnectivityManagementAPIOptionalParams extends ClientOpt
|
|
|
13
14
|
/** The API version to use for this operation. */
|
|
14
15
|
/** Known values of {@link KnownVersions} that the service accepts. */
|
|
15
16
|
apiVersion?: string;
|
|
17
|
+
/** Specifies the Azure cloud environment for the client. */
|
|
18
|
+
cloudSetting?: AzureSupportedClouds;
|
|
16
19
|
}
|
|
17
20
|
/** REST API for public clouds. */
|
|
18
21
|
export declare function createHybridConnectivityManagementAPI(credential: TokenCredential, subscriptionId: string, options?: HybridConnectivityManagementAPIOptionalParams): HybridConnectivityManagementAPIContext;
|
|
@@ -1,23 +1,27 @@
|
|
|
1
1
|
// Copyright (c) Microsoft Corporation.
|
|
2
2
|
// Licensed under the MIT License.
|
|
3
|
-
import { __rest } from "tslib";
|
|
4
3
|
import { logger } from "../logger.js";
|
|
4
|
+
import { getArmEndpoint } from "../static-helpers/cloudSettingHelpers.js";
|
|
5
5
|
import { getClient } from "@azure-rest/core-client";
|
|
6
6
|
/** REST API for public clouds. */
|
|
7
7
|
export function createHybridConnectivityManagementAPI(credential, subscriptionId, options = {}) {
|
|
8
|
-
|
|
9
|
-
const
|
|
10
|
-
const
|
|
11
|
-
const userAgentInfo = `azsdk-js-arm-hybridconnectivity/2.0.0-beta.1`;
|
|
8
|
+
const endpointUrl = options.endpoint ?? getArmEndpoint(options.cloudSetting) ?? "https://management.azure.com";
|
|
9
|
+
const prefixFromOptions = options?.userAgentOptions?.userAgentPrefix;
|
|
10
|
+
const userAgentInfo = `azsdk-js-arm-hybridconnectivity/2.0.0-beta.2`;
|
|
12
11
|
const userAgentPrefix = prefixFromOptions
|
|
13
12
|
? `${prefixFromOptions} azsdk-js-api ${userAgentInfo}`
|
|
14
13
|
: `azsdk-js-api ${userAgentInfo}`;
|
|
15
|
-
const
|
|
16
|
-
|
|
17
|
-
|
|
14
|
+
const { apiVersion: _, ...updatedOptions } = {
|
|
15
|
+
...options,
|
|
16
|
+
userAgentOptions: { userAgentPrefix },
|
|
17
|
+
loggingOptions: { logger: options.loggingOptions?.logger ?? logger.info },
|
|
18
|
+
credentials: {
|
|
19
|
+
scopes: options.credentials?.scopes ?? [`${endpointUrl}/.default`],
|
|
20
|
+
},
|
|
21
|
+
};
|
|
18
22
|
const clientContext = getClient(endpointUrl, credential, updatedOptions);
|
|
19
23
|
clientContext.pipeline.removePolicy({ name: "ApiVersionPolicy" });
|
|
20
|
-
const apiVersion =
|
|
24
|
+
const apiVersion = options.apiVersion ?? "2024-12-01";
|
|
21
25
|
clientContext.pipeline.addPolicy({
|
|
22
26
|
name: "ClientApiVersionPolicy",
|
|
23
27
|
sendRequest: (req, next) => {
|
|
@@ -30,7 +34,10 @@ export function createHybridConnectivityManagementAPI(credential, subscriptionId
|
|
|
30
34
|
return next(req);
|
|
31
35
|
},
|
|
32
36
|
});
|
|
33
|
-
return
|
|
34
|
-
|
|
37
|
+
return {
|
|
38
|
+
...clientContext,
|
|
39
|
+
apiVersion,
|
|
40
|
+
subscriptionId,
|
|
41
|
+
};
|
|
35
42
|
}
|
|
36
43
|
//# sourceMappingURL=hybridConnectivityManagementAPIContext.js.map
|