@azure/arm-servicenetworking 2.0.1-alpha.20250514.1 → 2.1.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +20 -9
- package/LICENSE +1 -1
- package/README.md +4 -3
- package/dist/browser/api/associationsInterface/index.d.ts +2 -25
- package/dist/browser/api/associationsInterface/index.d.ts.map +1 -1
- package/dist/browser/api/associationsInterface/index.js +1 -119
- package/dist/browser/api/associationsInterface/index.js.map +1 -1
- package/dist/browser/api/associationsInterface/operations.d.ts +32 -0
- package/dist/browser/api/associationsInterface/operations.d.ts.map +1 -0
- package/dist/browser/api/associationsInterface/operations.js +162 -0
- package/dist/browser/api/associationsInterface/operations.js.map +1 -0
- package/dist/browser/api/associationsInterface/options.d.ts +21 -0
- package/dist/browser/api/associationsInterface/options.d.ts.map +1 -0
- package/dist/browser/api/associationsInterface/options.js.map +1 -0
- package/dist/browser/api/frontendsInterface/index.d.ts +2 -25
- package/dist/browser/api/frontendsInterface/index.d.ts.map +1 -1
- package/dist/browser/api/frontendsInterface/index.js +1 -119
- package/dist/browser/api/frontendsInterface/index.js.map +1 -1
- package/dist/browser/api/frontendsInterface/operations.d.ts +32 -0
- package/dist/browser/api/frontendsInterface/operations.d.ts.map +1 -0
- package/dist/browser/api/frontendsInterface/operations.js +162 -0
- package/dist/browser/api/frontendsInterface/operations.js.map +1 -0
- package/dist/browser/api/frontendsInterface/options.d.ts +21 -0
- package/dist/browser/api/frontendsInterface/options.d.ts.map +1 -0
- package/dist/browser/api/frontendsInterface/options.js.map +1 -0
- package/dist/browser/api/index.d.ts +0 -6
- package/dist/browser/api/index.d.ts.map +1 -1
- package/dist/browser/api/index.js +0 -5
- package/dist/browser/api/index.js.map +1 -1
- package/dist/browser/api/operations/index.d.ts +2 -8
- package/dist/browser/api/operations/index.d.ts.map +1 -1
- package/dist/browser/api/operations/index.js +1 -20
- package/dist/browser/api/operations/index.js.map +1 -1
- package/dist/browser/api/operations/operations.d.ts +10 -0
- package/dist/browser/api/operations/operations.d.ts.map +1 -0
- package/dist/browser/api/operations/operations.js +29 -0
- package/dist/browser/api/operations/operations.js.map +1 -0
- package/dist/browser/api/operations/options.d.ts +5 -0
- package/dist/browser/api/operations/options.d.ts.map +1 -0
- package/dist/browser/api/operations/options.js.map +1 -0
- package/dist/browser/api/securityPoliciesInterface/index.d.ts +2 -25
- package/dist/browser/api/securityPoliciesInterface/index.d.ts.map +1 -1
- package/dist/browser/api/securityPoliciesInterface/index.js +1 -127
- package/dist/browser/api/securityPoliciesInterface/index.js.map +1 -1
- package/dist/browser/api/securityPoliciesInterface/operations.d.ts +32 -0
- package/dist/browser/api/securityPoliciesInterface/operations.d.ts.map +1 -0
- package/dist/browser/api/securityPoliciesInterface/operations.js +170 -0
- package/dist/browser/api/securityPoliciesInterface/operations.js.map +1 -0
- package/dist/browser/api/securityPoliciesInterface/options.d.ts +21 -0
- package/dist/browser/api/securityPoliciesInterface/options.d.ts.map +1 -0
- package/dist/browser/api/securityPoliciesInterface/options.js +4 -0
- package/dist/browser/api/securityPoliciesInterface/options.js.map +1 -0
- package/dist/browser/api/serviceNetworkingManagementContext.js +2 -2
- package/dist/browser/api/serviceNetworkingManagementContext.js.map +1 -1
- package/dist/browser/api/trafficControllerInterface/index.d.ts +2 -29
- package/dist/browser/api/trafficControllerInterface/index.d.ts.map +1 -1
- package/dist/browser/api/trafficControllerInterface/index.js +1 -150
- package/dist/browser/api/trafficControllerInterface/index.js.map +1 -1
- package/dist/browser/api/trafficControllerInterface/operations.d.ts +36 -0
- package/dist/browser/api/trafficControllerInterface/operations.d.ts.map +1 -0
- package/dist/browser/api/trafficControllerInterface/operations.js +192 -0
- package/dist/browser/api/trafficControllerInterface/operations.js.map +1 -0
- package/dist/browser/api/trafficControllerInterface/options.d.ts +24 -0
- package/dist/browser/api/trafficControllerInterface/options.d.ts.map +1 -0
- package/dist/browser/api/trafficControllerInterface/options.js +4 -0
- package/dist/browser/api/trafficControllerInterface/options.js.map +1 -0
- package/dist/browser/classic/associationsInterface/index.d.ts +6 -1
- package/dist/browser/classic/associationsInterface/index.d.ts.map +1 -1
- package/dist/browser/classic/associationsInterface/index.js +6 -6
- package/dist/browser/classic/associationsInterface/index.js.map +1 -1
- package/dist/browser/classic/frontendsInterface/index.d.ts +6 -1
- package/dist/browser/classic/frontendsInterface/index.d.ts.map +1 -1
- package/dist/browser/classic/frontendsInterface/index.js +6 -6
- package/dist/browser/classic/frontendsInterface/index.js.map +1 -1
- package/dist/browser/classic/operations/index.d.ts +1 -1
- package/dist/browser/classic/operations/index.d.ts.map +1 -1
- package/dist/browser/classic/operations/index.js +2 -2
- package/dist/browser/classic/operations/index.js.map +1 -1
- package/dist/browser/classic/securityPoliciesInterface/index.d.ts +6 -1
- package/dist/browser/classic/securityPoliciesInterface/index.d.ts.map +1 -1
- package/dist/browser/classic/securityPoliciesInterface/index.js +6 -6
- package/dist/browser/classic/securityPoliciesInterface/index.js.map +1 -1
- package/dist/browser/classic/trafficControllerInterface/index.d.ts +6 -1
- package/dist/browser/classic/trafficControllerInterface/index.d.ts.map +1 -1
- package/dist/browser/classic/trafficControllerInterface/index.js +7 -7
- package/dist/browser/classic/trafficControllerInterface/index.js.map +1 -1
- package/dist/browser/index.d.ts +7 -2
- package/dist/browser/index.d.ts.map +1 -1
- package/dist/browser/index.js +1 -1
- package/dist/browser/index.js.map +1 -1
- package/dist/browser/models/index.d.ts +1 -1
- package/dist/browser/models/index.d.ts.map +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 +309 -241
- package/dist/browser/models/models.d.ts.map +1 -1
- package/dist/browser/models/models.js +313 -217
- package/dist/browser/models/models.js.map +1 -1
- package/dist/browser/restorePollerHelpers.js +12 -12
- package/dist/browser/restorePollerHelpers.js.map +1 -1
- package/dist/browser/serviceNetworkingManagementClient.d.ts +1 -1
- package/dist/browser/serviceNetworkingManagementClient.d.ts.map +1 -1
- package/dist/browser/serviceNetworkingManagementClient.js +1 -1
- package/dist/browser/serviceNetworkingManagementClient.js.map +1 -1
- package/dist/browser/static-helpers/urlTemplate.d.ts +5 -0
- package/dist/browser/static-helpers/urlTemplate.d.ts.map +1 -0
- package/dist/browser/static-helpers/urlTemplate.js +169 -0
- package/dist/browser/static-helpers/urlTemplate.js.map +1 -0
- package/dist/commonjs/api/associationsInterface/index.d.ts +2 -25
- package/dist/commonjs/api/associationsInterface/index.d.ts.map +1 -1
- package/dist/commonjs/api/associationsInterface/index.js +7 -134
- package/dist/commonjs/api/associationsInterface/index.js.map +1 -1
- package/dist/commonjs/api/associationsInterface/operations.d.ts +32 -0
- package/dist/commonjs/api/associationsInterface/operations.d.ts.map +1 -0
- package/dist/commonjs/api/associationsInterface/operations.js +179 -0
- package/dist/commonjs/api/associationsInterface/operations.js.map +1 -0
- package/dist/commonjs/api/associationsInterface/options.d.ts +21 -0
- package/dist/commonjs/api/associationsInterface/options.d.ts.map +1 -0
- package/dist/commonjs/api/associationsInterface/options.js.map +1 -0
- package/dist/commonjs/api/frontendsInterface/index.d.ts +2 -25
- package/dist/commonjs/api/frontendsInterface/index.d.ts.map +1 -1
- package/dist/commonjs/api/frontendsInterface/index.js +7 -134
- package/dist/commonjs/api/frontendsInterface/index.js.map +1 -1
- package/dist/commonjs/api/frontendsInterface/operations.d.ts +32 -0
- package/dist/commonjs/api/frontendsInterface/operations.d.ts.map +1 -0
- package/dist/commonjs/api/frontendsInterface/operations.js +179 -0
- package/dist/commonjs/api/frontendsInterface/operations.js.map +1 -0
- package/dist/commonjs/api/frontendsInterface/options.d.ts +21 -0
- package/dist/commonjs/api/frontendsInterface/options.d.ts.map +1 -0
- package/dist/commonjs/api/frontendsInterface/options.js +5 -0
- package/dist/commonjs/api/frontendsInterface/options.js.map +1 -0
- package/dist/commonjs/api/index.d.ts +0 -6
- package/dist/commonjs/api/index.d.ts.map +1 -1
- package/dist/commonjs/api/index.js +1 -28
- package/dist/commonjs/api/index.js.map +1 -1
- package/dist/commonjs/api/operations/index.d.ts +2 -8
- package/dist/commonjs/api/operations/index.d.ts.map +1 -1
- package/dist/commonjs/api/operations/index.js +3 -23
- package/dist/commonjs/api/operations/index.js.map +1 -1
- package/dist/commonjs/api/operations/operations.d.ts +10 -0
- package/dist/commonjs/api/operations/operations.d.ts.map +1 -0
- package/dist/commonjs/api/operations/operations.js +34 -0
- package/dist/commonjs/api/operations/operations.js.map +1 -0
- package/dist/commonjs/api/operations/options.d.ts +5 -0
- package/dist/commonjs/api/operations/options.d.ts.map +1 -0
- package/dist/commonjs/api/operations/options.js +5 -0
- package/dist/commonjs/api/operations/options.js.map +1 -0
- package/dist/commonjs/api/securityPoliciesInterface/index.d.ts +2 -25
- package/dist/commonjs/api/securityPoliciesInterface/index.d.ts.map +1 -1
- package/dist/commonjs/api/securityPoliciesInterface/index.js +7 -142
- package/dist/commonjs/api/securityPoliciesInterface/index.js.map +1 -1
- package/dist/commonjs/api/securityPoliciesInterface/operations.d.ts +32 -0
- package/dist/commonjs/api/securityPoliciesInterface/operations.d.ts.map +1 -0
- package/dist/commonjs/api/securityPoliciesInterface/operations.js +187 -0
- package/dist/commonjs/api/securityPoliciesInterface/operations.js.map +1 -0
- package/dist/commonjs/api/securityPoliciesInterface/options.d.ts +21 -0
- package/dist/commonjs/api/securityPoliciesInterface/options.d.ts.map +1 -0
- package/dist/commonjs/api/securityPoliciesInterface/options.js +5 -0
- package/dist/commonjs/api/securityPoliciesInterface/options.js.map +1 -0
- package/dist/commonjs/api/serviceNetworkingManagementContext.js +2 -2
- package/dist/commonjs/api/serviceNetworkingManagementContext.js.map +1 -1
- package/dist/commonjs/api/trafficControllerInterface/index.d.ts +2 -29
- package/dist/commonjs/api/trafficControllerInterface/index.d.ts.map +1 -1
- package/dist/commonjs/api/trafficControllerInterface/index.js +8 -168
- package/dist/commonjs/api/trafficControllerInterface/index.js.map +1 -1
- package/dist/commonjs/api/trafficControllerInterface/operations.d.ts +36 -0
- package/dist/commonjs/api/trafficControllerInterface/operations.d.ts.map +1 -0
- package/dist/commonjs/api/trafficControllerInterface/operations.js +212 -0
- package/dist/commonjs/api/trafficControllerInterface/operations.js.map +1 -0
- package/dist/commonjs/api/trafficControllerInterface/options.d.ts +24 -0
- package/dist/commonjs/api/trafficControllerInterface/options.d.ts.map +1 -0
- package/dist/commonjs/api/trafficControllerInterface/options.js +5 -0
- package/dist/commonjs/api/trafficControllerInterface/options.js.map +1 -0
- package/dist/commonjs/classic/associationsInterface/index.d.ts +6 -1
- package/dist/commonjs/classic/associationsInterface/index.d.ts.map +1 -1
- package/dist/commonjs/classic/associationsInterface/index.js +6 -6
- package/dist/commonjs/classic/associationsInterface/index.js.map +1 -1
- package/dist/commonjs/classic/frontendsInterface/index.d.ts +6 -1
- package/dist/commonjs/classic/frontendsInterface/index.d.ts.map +1 -1
- package/dist/commonjs/classic/frontendsInterface/index.js +6 -6
- package/dist/commonjs/classic/frontendsInterface/index.js.map +1 -1
- package/dist/commonjs/classic/operations/index.d.ts +1 -1
- package/dist/commonjs/classic/operations/index.d.ts.map +1 -1
- package/dist/commonjs/classic/operations/index.js +2 -2
- package/dist/commonjs/classic/operations/index.js.map +1 -1
- package/dist/commonjs/classic/securityPoliciesInterface/index.d.ts +6 -1
- package/dist/commonjs/classic/securityPoliciesInterface/index.d.ts.map +1 -1
- package/dist/commonjs/classic/securityPoliciesInterface/index.js +6 -6
- package/dist/commonjs/classic/securityPoliciesInterface/index.js.map +1 -1
- package/dist/commonjs/classic/trafficControllerInterface/index.d.ts +6 -1
- package/dist/commonjs/classic/trafficControllerInterface/index.d.ts.map +1 -1
- package/dist/commonjs/classic/trafficControllerInterface/index.js +7 -7
- package/dist/commonjs/classic/trafficControllerInterface/index.js.map +1 -1
- package/dist/commonjs/index.d.ts +7 -2
- package/dist/commonjs/index.d.ts.map +1 -1
- package/dist/commonjs/index.js +5 -4
- package/dist/commonjs/index.js.map +1 -1
- package/dist/commonjs/models/index.d.ts +1 -1
- package/dist/commonjs/models/index.d.ts.map +1 -1
- package/dist/commonjs/models/index.js +5 -4
- package/dist/commonjs/models/index.js.map +1 -1
- package/dist/commonjs/models/models.d.ts +309 -241
- package/dist/commonjs/models/models.d.ts.map +1 -1
- package/dist/commonjs/models/models.js +384 -279
- package/dist/commonjs/models/models.js.map +1 -1
- package/dist/commonjs/restorePollerHelpers.js +12 -12
- package/dist/commonjs/restorePollerHelpers.js.map +1 -1
- package/dist/commonjs/serviceNetworkingManagementClient.d.ts +1 -1
- package/dist/commonjs/serviceNetworkingManagementClient.d.ts.map +1 -1
- package/dist/commonjs/serviceNetworkingManagementClient.js +12 -12
- package/dist/commonjs/serviceNetworkingManagementClient.js.map +1 -1
- package/dist/commonjs/static-helpers/urlTemplate.d.ts +5 -0
- package/dist/commonjs/static-helpers/urlTemplate.d.ts.map +1 -0
- package/dist/commonjs/static-helpers/urlTemplate.js +172 -0
- package/dist/commonjs/static-helpers/urlTemplate.js.map +1 -0
- package/dist/esm/api/associationsInterface/index.d.ts +2 -25
- package/dist/esm/api/associationsInterface/index.d.ts.map +1 -1
- package/dist/esm/api/associationsInterface/index.js +1 -119
- package/dist/esm/api/associationsInterface/index.js.map +1 -1
- package/dist/esm/api/associationsInterface/operations.d.ts +32 -0
- package/dist/esm/api/associationsInterface/operations.d.ts.map +1 -0
- package/dist/esm/api/associationsInterface/operations.js +162 -0
- package/dist/esm/api/associationsInterface/operations.js.map +1 -0
- package/dist/esm/api/associationsInterface/options.d.ts +21 -0
- package/dist/esm/api/associationsInterface/options.d.ts.map +1 -0
- package/dist/esm/api/associationsInterface/options.js +4 -0
- package/dist/esm/api/associationsInterface/options.js.map +1 -0
- package/dist/esm/api/frontendsInterface/index.d.ts +2 -25
- package/dist/esm/api/frontendsInterface/index.d.ts.map +1 -1
- package/dist/esm/api/frontendsInterface/index.js +1 -119
- package/dist/esm/api/frontendsInterface/index.js.map +1 -1
- package/dist/esm/api/frontendsInterface/operations.d.ts +32 -0
- package/dist/esm/api/frontendsInterface/operations.d.ts.map +1 -0
- package/dist/esm/api/frontendsInterface/operations.js +162 -0
- package/dist/esm/api/frontendsInterface/operations.js.map +1 -0
- package/dist/esm/api/frontendsInterface/options.d.ts +21 -0
- package/dist/esm/api/frontendsInterface/options.d.ts.map +1 -0
- package/dist/esm/api/frontendsInterface/options.js +4 -0
- package/dist/esm/api/frontendsInterface/options.js.map +1 -0
- package/dist/esm/api/index.d.ts +0 -6
- package/dist/esm/api/index.d.ts.map +1 -1
- package/dist/esm/api/index.js +0 -5
- package/dist/esm/api/index.js.map +1 -1
- package/dist/esm/api/operations/index.d.ts +2 -8
- package/dist/esm/api/operations/index.d.ts.map +1 -1
- package/dist/esm/api/operations/index.js +1 -20
- package/dist/esm/api/operations/index.js.map +1 -1
- package/dist/esm/api/operations/operations.d.ts +10 -0
- package/dist/esm/api/operations/operations.d.ts.map +1 -0
- package/dist/esm/api/operations/operations.js +29 -0
- package/dist/esm/api/operations/operations.js.map +1 -0
- package/dist/esm/api/operations/options.d.ts +5 -0
- package/dist/esm/api/operations/options.d.ts.map +1 -0
- package/dist/esm/api/operations/options.js +4 -0
- package/dist/esm/api/operations/options.js.map +1 -0
- package/dist/esm/api/securityPoliciesInterface/index.d.ts +2 -25
- package/dist/esm/api/securityPoliciesInterface/index.d.ts.map +1 -1
- package/dist/esm/api/securityPoliciesInterface/index.js +1 -127
- package/dist/esm/api/securityPoliciesInterface/index.js.map +1 -1
- package/dist/esm/api/securityPoliciesInterface/operations.d.ts +32 -0
- package/dist/esm/api/securityPoliciesInterface/operations.d.ts.map +1 -0
- package/dist/esm/api/securityPoliciesInterface/operations.js +170 -0
- package/dist/esm/api/securityPoliciesInterface/operations.js.map +1 -0
- package/dist/esm/api/securityPoliciesInterface/options.d.ts +21 -0
- package/dist/esm/api/securityPoliciesInterface/options.d.ts.map +1 -0
- package/dist/esm/api/securityPoliciesInterface/options.js +4 -0
- package/dist/esm/api/securityPoliciesInterface/options.js.map +1 -0
- package/dist/esm/api/serviceNetworkingManagementContext.js +2 -2
- package/dist/esm/api/serviceNetworkingManagementContext.js.map +1 -1
- package/dist/esm/api/trafficControllerInterface/index.d.ts +2 -29
- package/dist/esm/api/trafficControllerInterface/index.d.ts.map +1 -1
- package/dist/esm/api/trafficControllerInterface/index.js +1 -150
- package/dist/esm/api/trafficControllerInterface/index.js.map +1 -1
- package/dist/esm/api/trafficControllerInterface/operations.d.ts +36 -0
- package/dist/esm/api/trafficControllerInterface/operations.d.ts.map +1 -0
- package/dist/esm/api/trafficControllerInterface/operations.js +192 -0
- package/dist/esm/api/trafficControllerInterface/operations.js.map +1 -0
- package/dist/esm/api/trafficControllerInterface/options.d.ts +24 -0
- package/dist/esm/api/trafficControllerInterface/options.d.ts.map +1 -0
- package/dist/esm/api/trafficControllerInterface/options.js +4 -0
- package/dist/esm/api/trafficControllerInterface/options.js.map +1 -0
- package/dist/esm/classic/associationsInterface/index.d.ts +6 -1
- package/dist/esm/classic/associationsInterface/index.d.ts.map +1 -1
- package/dist/esm/classic/associationsInterface/index.js +6 -6
- package/dist/esm/classic/associationsInterface/index.js.map +1 -1
- package/dist/esm/classic/frontendsInterface/index.d.ts +6 -1
- package/dist/esm/classic/frontendsInterface/index.d.ts.map +1 -1
- package/dist/esm/classic/frontendsInterface/index.js +6 -6
- package/dist/esm/classic/frontendsInterface/index.js.map +1 -1
- package/dist/esm/classic/operations/index.d.ts +1 -1
- package/dist/esm/classic/operations/index.d.ts.map +1 -1
- package/dist/esm/classic/operations/index.js +2 -2
- package/dist/esm/classic/operations/index.js.map +1 -1
- package/dist/esm/classic/securityPoliciesInterface/index.d.ts +6 -1
- package/dist/esm/classic/securityPoliciesInterface/index.d.ts.map +1 -1
- package/dist/esm/classic/securityPoliciesInterface/index.js +6 -6
- package/dist/esm/classic/securityPoliciesInterface/index.js.map +1 -1
- package/dist/esm/classic/trafficControllerInterface/index.d.ts +6 -1
- package/dist/esm/classic/trafficControllerInterface/index.d.ts.map +1 -1
- package/dist/esm/classic/trafficControllerInterface/index.js +7 -7
- package/dist/esm/classic/trafficControllerInterface/index.js.map +1 -1
- package/dist/esm/index.d.ts +7 -2
- package/dist/esm/index.d.ts.map +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/models/index.d.ts +1 -1
- package/dist/esm/models/index.d.ts.map +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 +309 -241
- package/dist/esm/models/models.d.ts.map +1 -1
- package/dist/esm/models/models.js +313 -217
- package/dist/esm/models/models.js.map +1 -1
- package/dist/esm/restorePollerHelpers.js +12 -12
- package/dist/esm/restorePollerHelpers.js.map +1 -1
- package/dist/esm/serviceNetworkingManagementClient.d.ts +1 -1
- package/dist/esm/serviceNetworkingManagementClient.d.ts.map +1 -1
- package/dist/esm/serviceNetworkingManagementClient.js +1 -1
- package/dist/esm/serviceNetworkingManagementClient.js.map +1 -1
- package/dist/esm/static-helpers/urlTemplate.d.ts +5 -0
- package/dist/esm/static-helpers/urlTemplate.d.ts.map +1 -0
- package/dist/esm/static-helpers/urlTemplate.js +169 -0
- package/dist/esm/static-helpers/urlTemplate.js.map +1 -0
- package/dist/react-native/api/associationsInterface/index.d.ts +2 -25
- package/dist/react-native/api/associationsInterface/index.d.ts.map +1 -1
- package/dist/react-native/api/associationsInterface/index.js +1 -119
- package/dist/react-native/api/associationsInterface/index.js.map +1 -1
- package/dist/react-native/api/associationsInterface/operations.d.ts +32 -0
- package/dist/react-native/api/associationsInterface/operations.d.ts.map +1 -0
- package/dist/react-native/api/associationsInterface/operations.js +162 -0
- package/dist/react-native/api/associationsInterface/operations.js.map +1 -0
- package/dist/react-native/api/associationsInterface/options.d.ts +21 -0
- package/dist/react-native/api/associationsInterface/options.d.ts.map +1 -0
- package/dist/react-native/api/associationsInterface/options.js +4 -0
- package/dist/react-native/api/associationsInterface/options.js.map +1 -0
- package/dist/react-native/api/frontendsInterface/index.d.ts +2 -25
- package/dist/react-native/api/frontendsInterface/index.d.ts.map +1 -1
- package/dist/react-native/api/frontendsInterface/index.js +1 -119
- package/dist/react-native/api/frontendsInterface/index.js.map +1 -1
- package/dist/react-native/api/frontendsInterface/operations.d.ts +32 -0
- package/dist/react-native/api/frontendsInterface/operations.d.ts.map +1 -0
- package/dist/react-native/api/frontendsInterface/operations.js +162 -0
- package/dist/react-native/api/frontendsInterface/operations.js.map +1 -0
- package/dist/react-native/api/frontendsInterface/options.d.ts +21 -0
- package/dist/react-native/api/frontendsInterface/options.d.ts.map +1 -0
- package/dist/react-native/api/frontendsInterface/options.js +4 -0
- package/dist/react-native/api/frontendsInterface/options.js.map +1 -0
- package/dist/react-native/api/index.d.ts +0 -6
- package/dist/react-native/api/index.d.ts.map +1 -1
- package/dist/react-native/api/index.js +0 -5
- package/dist/react-native/api/index.js.map +1 -1
- package/dist/react-native/api/operations/index.d.ts +2 -8
- package/dist/react-native/api/operations/index.d.ts.map +1 -1
- package/dist/react-native/api/operations/index.js +1 -20
- package/dist/react-native/api/operations/index.js.map +1 -1
- package/dist/react-native/api/operations/operations.d.ts +10 -0
- package/dist/react-native/api/operations/operations.d.ts.map +1 -0
- package/dist/react-native/api/operations/operations.js +29 -0
- package/dist/react-native/api/operations/operations.js.map +1 -0
- package/dist/react-native/api/operations/options.d.ts +5 -0
- package/dist/react-native/api/operations/options.d.ts.map +1 -0
- package/dist/react-native/api/operations/options.js +4 -0
- package/dist/react-native/api/operations/options.js.map +1 -0
- package/dist/react-native/api/securityPoliciesInterface/index.d.ts +2 -25
- package/dist/react-native/api/securityPoliciesInterface/index.d.ts.map +1 -1
- package/dist/react-native/api/securityPoliciesInterface/index.js +1 -127
- package/dist/react-native/api/securityPoliciesInterface/index.js.map +1 -1
- package/dist/react-native/api/securityPoliciesInterface/operations.d.ts +32 -0
- package/dist/react-native/api/securityPoliciesInterface/operations.d.ts.map +1 -0
- package/dist/react-native/api/securityPoliciesInterface/operations.js +170 -0
- package/dist/react-native/api/securityPoliciesInterface/operations.js.map +1 -0
- package/dist/react-native/api/securityPoliciesInterface/options.d.ts +21 -0
- package/dist/react-native/api/securityPoliciesInterface/options.d.ts.map +1 -0
- package/dist/react-native/api/securityPoliciesInterface/options.js +4 -0
- package/dist/react-native/api/securityPoliciesInterface/options.js.map +1 -0
- package/dist/react-native/api/serviceNetworkingManagementContext.js +2 -2
- package/dist/react-native/api/serviceNetworkingManagementContext.js.map +1 -1
- package/dist/react-native/api/trafficControllerInterface/index.d.ts +2 -29
- package/dist/react-native/api/trafficControllerInterface/index.d.ts.map +1 -1
- package/dist/react-native/api/trafficControllerInterface/index.js +1 -150
- package/dist/react-native/api/trafficControllerInterface/index.js.map +1 -1
- package/dist/react-native/api/trafficControllerInterface/operations.d.ts +36 -0
- package/dist/react-native/api/trafficControllerInterface/operations.d.ts.map +1 -0
- package/dist/react-native/api/trafficControllerInterface/operations.js +192 -0
- package/dist/react-native/api/trafficControllerInterface/operations.js.map +1 -0
- package/dist/react-native/api/trafficControllerInterface/options.d.ts +24 -0
- package/dist/react-native/api/trafficControllerInterface/options.d.ts.map +1 -0
- package/dist/react-native/api/trafficControllerInterface/options.js +4 -0
- package/dist/react-native/api/trafficControllerInterface/options.js.map +1 -0
- package/dist/react-native/classic/associationsInterface/index.d.ts +6 -1
- package/dist/react-native/classic/associationsInterface/index.d.ts.map +1 -1
- package/dist/react-native/classic/associationsInterface/index.js +6 -6
- package/dist/react-native/classic/associationsInterface/index.js.map +1 -1
- package/dist/react-native/classic/frontendsInterface/index.d.ts +6 -1
- package/dist/react-native/classic/frontendsInterface/index.d.ts.map +1 -1
- package/dist/react-native/classic/frontendsInterface/index.js +6 -6
- package/dist/react-native/classic/frontendsInterface/index.js.map +1 -1
- package/dist/react-native/classic/operations/index.d.ts +1 -1
- package/dist/react-native/classic/operations/index.d.ts.map +1 -1
- package/dist/react-native/classic/operations/index.js +2 -2
- package/dist/react-native/classic/operations/index.js.map +1 -1
- package/dist/react-native/classic/securityPoliciesInterface/index.d.ts +6 -1
- package/dist/react-native/classic/securityPoliciesInterface/index.d.ts.map +1 -1
- package/dist/react-native/classic/securityPoliciesInterface/index.js +6 -6
- package/dist/react-native/classic/securityPoliciesInterface/index.js.map +1 -1
- package/dist/react-native/classic/trafficControllerInterface/index.d.ts +6 -1
- package/dist/react-native/classic/trafficControllerInterface/index.d.ts.map +1 -1
- package/dist/react-native/classic/trafficControllerInterface/index.js +7 -7
- package/dist/react-native/classic/trafficControllerInterface/index.js.map +1 -1
- package/dist/react-native/index.d.ts +7 -2
- package/dist/react-native/index.d.ts.map +1 -1
- package/dist/react-native/index.js +1 -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.d.ts.map +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 +309 -241
- package/dist/react-native/models/models.d.ts.map +1 -1
- package/dist/react-native/models/models.js +313 -217
- package/dist/react-native/models/models.js.map +1 -1
- package/dist/react-native/restorePollerHelpers.js +12 -12
- package/dist/react-native/restorePollerHelpers.js.map +1 -1
- package/dist/react-native/serviceNetworkingManagementClient.d.ts +1 -1
- package/dist/react-native/serviceNetworkingManagementClient.d.ts.map +1 -1
- package/dist/react-native/serviceNetworkingManagementClient.js +1 -1
- package/dist/react-native/serviceNetworkingManagementClient.js.map +1 -1
- package/dist/react-native/static-helpers/urlTemplate.d.ts +5 -0
- package/dist/react-native/static-helpers/urlTemplate.d.ts.map +1 -0
- package/dist/react-native/static-helpers/urlTemplate.js +169 -0
- package/dist/react-native/static-helpers/urlTemplate.js.map +1 -0
- package/package.json +125 -11
- package/review/arm-servicenetworking-api-associationsInterface.api.md +51 -0
- package/review/arm-servicenetworking-api-frontendsInterface.api.md +51 -0
- package/review/arm-servicenetworking-api-operations.api.md +19 -0
- package/review/arm-servicenetworking-api-securityPoliciesInterface.api.md +51 -0
- package/review/arm-servicenetworking-api-trafficControllerInterface.api.md +58 -0
- package/review/arm-servicenetworking-api.api.md +27 -0
- package/review/arm-servicenetworking-models.api.md +41 -1
- package/review/arm-servicenetworking.api.md +41 -1
- package/dist/browser/api/options.d.ts +0 -84
- package/dist/browser/api/options.d.ts.map +0 -1
- package/dist/browser/api/options.js.map +0 -1
- package/dist/commonjs/api/options.d.ts +0 -84
- package/dist/commonjs/api/options.d.ts.map +0 -1
- package/dist/commonjs/api/options.js.map +0 -1
- package/dist/esm/api/options.d.ts +0 -84
- package/dist/esm/api/options.d.ts.map +0 -1
- package/dist/esm/api/options.js.map +0 -1
- package/dist/react-native/api/options.d.ts +0 -84
- package/dist/react-native/api/options.d.ts.map +0 -1
- package/dist/react-native/api/options.js.map +0 -1
- /package/dist/browser/api/{options.js → associationsInterface/options.js} +0 -0
- /package/dist/{esm/api → browser/api/frontendsInterface}/options.js +0 -0
- /package/dist/{react-native/api → browser/api/operations}/options.js +0 -0
- /package/dist/commonjs/api/{options.js → associationsInterface/options.js} +0 -0
|
@@ -0,0 +1,169 @@
|
|
|
1
|
+
// Copyright (c) Microsoft Corporation.
|
|
2
|
+
// Licensed under the MIT License.
|
|
3
|
+
// ---------------------
|
|
4
|
+
// helpers
|
|
5
|
+
// ---------------------
|
|
6
|
+
function encodeComponent(val, reserved, op) {
|
|
7
|
+
return (reserved !== null && reserved !== void 0 ? reserved : op === "+") || op === "#"
|
|
8
|
+
? encodeReservedComponent(val)
|
|
9
|
+
: encodeRFC3986URIComponent(val);
|
|
10
|
+
}
|
|
11
|
+
function encodeReservedComponent(str) {
|
|
12
|
+
return str
|
|
13
|
+
.split(/(%[0-9A-Fa-f]{2})/g)
|
|
14
|
+
.map((part) => (!/%[0-9A-Fa-f]/.test(part) ? encodeURI(part) : part))
|
|
15
|
+
.join("");
|
|
16
|
+
}
|
|
17
|
+
function encodeRFC3986URIComponent(str) {
|
|
18
|
+
return encodeURIComponent(str).replace(/[!'()*]/g, (c) => `%${c.charCodeAt(0).toString(16).toUpperCase()}`);
|
|
19
|
+
}
|
|
20
|
+
function isDefined(val) {
|
|
21
|
+
return val !== undefined && val !== null;
|
|
22
|
+
}
|
|
23
|
+
function getNamedAndIfEmpty(op) {
|
|
24
|
+
return [!!op && [";", "?", "&"].includes(op), !!op && ["?", "&"].includes(op) ? "=" : ""];
|
|
25
|
+
}
|
|
26
|
+
function getFirstOrSep(op, isFirst = false) {
|
|
27
|
+
if (isFirst) {
|
|
28
|
+
return !op || op === "+" ? "" : op;
|
|
29
|
+
}
|
|
30
|
+
else if (!op || op === "+" || op === "#") {
|
|
31
|
+
return ",";
|
|
32
|
+
}
|
|
33
|
+
else if (op === "?") {
|
|
34
|
+
return "&";
|
|
35
|
+
}
|
|
36
|
+
else {
|
|
37
|
+
return op;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
function getExpandedValue(option) {
|
|
41
|
+
let isFirst = option.isFirst;
|
|
42
|
+
const { op, varName, varValue: value, reserved } = option;
|
|
43
|
+
const vals = [];
|
|
44
|
+
const [named, ifEmpty] = getNamedAndIfEmpty(op);
|
|
45
|
+
if (Array.isArray(value)) {
|
|
46
|
+
for (const val of value.filter(isDefined)) {
|
|
47
|
+
// prepare the following parts: separator, varName, value
|
|
48
|
+
vals.push(`${getFirstOrSep(op, isFirst)}`);
|
|
49
|
+
if (named && varName) {
|
|
50
|
+
vals.push(`${encodeURIComponent(varName)}`);
|
|
51
|
+
val === "" ? vals.push(ifEmpty) : vals.push("=");
|
|
52
|
+
}
|
|
53
|
+
vals.push(encodeComponent(val, reserved, op));
|
|
54
|
+
isFirst = false;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
else if (typeof value === "object") {
|
|
58
|
+
for (const key of Object.keys(value)) {
|
|
59
|
+
const val = value[key];
|
|
60
|
+
if (!isDefined(val)) {
|
|
61
|
+
continue;
|
|
62
|
+
}
|
|
63
|
+
// prepare the following parts: separator, key, value
|
|
64
|
+
vals.push(`${getFirstOrSep(op, isFirst)}`);
|
|
65
|
+
if (key) {
|
|
66
|
+
vals.push(`${encodeURIComponent(key)}`);
|
|
67
|
+
named && val === "" ? vals.push(ifEmpty) : vals.push("=");
|
|
68
|
+
}
|
|
69
|
+
vals.push(encodeComponent(val, reserved, op));
|
|
70
|
+
isFirst = false;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
return vals.join("");
|
|
74
|
+
}
|
|
75
|
+
function getNonExpandedValue(option) {
|
|
76
|
+
const { op, varName, varValue: value, isFirst, reserved } = option;
|
|
77
|
+
const vals = [];
|
|
78
|
+
const first = getFirstOrSep(op, isFirst);
|
|
79
|
+
const [named, ifEmpty] = getNamedAndIfEmpty(op);
|
|
80
|
+
if (named && varName) {
|
|
81
|
+
vals.push(encodeComponent(varName, reserved, op));
|
|
82
|
+
if (value === "") {
|
|
83
|
+
if (!ifEmpty) {
|
|
84
|
+
vals.push(ifEmpty);
|
|
85
|
+
}
|
|
86
|
+
return !vals.join("") ? undefined : `${first}${vals.join("")}`;
|
|
87
|
+
}
|
|
88
|
+
vals.push("=");
|
|
89
|
+
}
|
|
90
|
+
const items = [];
|
|
91
|
+
if (Array.isArray(value)) {
|
|
92
|
+
for (const val of value.filter(isDefined)) {
|
|
93
|
+
items.push(encodeComponent(val, reserved, op));
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
else if (typeof value === "object") {
|
|
97
|
+
for (const key of Object.keys(value)) {
|
|
98
|
+
if (!isDefined(value[key])) {
|
|
99
|
+
continue;
|
|
100
|
+
}
|
|
101
|
+
items.push(encodeRFC3986URIComponent(key));
|
|
102
|
+
items.push(encodeComponent(value[key], reserved, op));
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
vals.push(items.join(","));
|
|
106
|
+
return !vals.join(",") ? undefined : `${first}${vals.join("")}`;
|
|
107
|
+
}
|
|
108
|
+
function getVarValue(option) {
|
|
109
|
+
const { op, varName, modifier, isFirst, reserved, varValue: value } = option;
|
|
110
|
+
if (!isDefined(value)) {
|
|
111
|
+
return undefined;
|
|
112
|
+
}
|
|
113
|
+
else if (["string", "number", "boolean"].includes(typeof value)) {
|
|
114
|
+
let val = value.toString();
|
|
115
|
+
const [named, ifEmpty] = getNamedAndIfEmpty(op);
|
|
116
|
+
const vals = [getFirstOrSep(op, isFirst)];
|
|
117
|
+
if (named && varName) {
|
|
118
|
+
// No need to encode varName considering it is already encoded
|
|
119
|
+
vals.push(varName);
|
|
120
|
+
val === "" ? vals.push(ifEmpty) : vals.push("=");
|
|
121
|
+
}
|
|
122
|
+
if (modifier && modifier !== "*") {
|
|
123
|
+
val = val.substring(0, parseInt(modifier, 10));
|
|
124
|
+
}
|
|
125
|
+
vals.push(encodeComponent(val, reserved, op));
|
|
126
|
+
return vals.join("");
|
|
127
|
+
}
|
|
128
|
+
else if (modifier === "*") {
|
|
129
|
+
return getExpandedValue(option);
|
|
130
|
+
}
|
|
131
|
+
else {
|
|
132
|
+
return getNonExpandedValue(option);
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
// ---------------------------------------------------------------------------------------------------
|
|
136
|
+
// This is an implementation of RFC 6570 URI Template: https://datatracker.ietf.org/doc/html/rfc6570.
|
|
137
|
+
// ---------------------------------------------------------------------------------------------------
|
|
138
|
+
export function expandUrlTemplate(template, context, option) {
|
|
139
|
+
return template.replace(/\{([^\{\}]+)\}|([^\{\}]+)/g, (_, expr, text) => {
|
|
140
|
+
if (!expr) {
|
|
141
|
+
return encodeReservedComponent(text);
|
|
142
|
+
}
|
|
143
|
+
let op;
|
|
144
|
+
if (["+", "#", ".", "/", ";", "?", "&"].includes(expr[0])) {
|
|
145
|
+
(op = expr[0]), (expr = expr.slice(1));
|
|
146
|
+
}
|
|
147
|
+
const varList = expr.split(/,/g);
|
|
148
|
+
const result = [];
|
|
149
|
+
for (const varSpec of varList) {
|
|
150
|
+
const varMatch = /([^:\*]*)(?::(\d+)|(\*))?/.exec(varSpec);
|
|
151
|
+
if (!varMatch || !varMatch[1]) {
|
|
152
|
+
continue;
|
|
153
|
+
}
|
|
154
|
+
const varValue = getVarValue({
|
|
155
|
+
isFirst: result.length === 0,
|
|
156
|
+
op,
|
|
157
|
+
varValue: context[varMatch[1]],
|
|
158
|
+
varName: varMatch[1],
|
|
159
|
+
modifier: varMatch[2] || varMatch[3],
|
|
160
|
+
reserved: option === null || option === void 0 ? void 0 : option.allowReserved,
|
|
161
|
+
});
|
|
162
|
+
if (varValue) {
|
|
163
|
+
result.push(varValue);
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
return result.join("");
|
|
167
|
+
});
|
|
168
|
+
}
|
|
169
|
+
//# sourceMappingURL=urlTemplate.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"urlTemplate.js","sourceRoot":"","sources":["../../../src/static-helpers/urlTemplate.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAmBlC,wBAAwB;AACxB,UAAU;AACV,wBAAwB;AACxB,SAAS,eAAe,CAAC,GAAW,EAAE,QAAkB,EAAE,EAAW;IACnE,OAAO,CAAC,QAAQ,aAAR,QAAQ,cAAR,QAAQ,GAAI,EAAE,KAAK,GAAG,CAAC,IAAI,EAAE,KAAK,GAAG;QAC3C,CAAC,CAAC,uBAAuB,CAAC,GAAG,CAAC;QAC9B,CAAC,CAAC,yBAAyB,CAAC,GAAG,CAAC,CAAC;AACrC,CAAC;AAED,SAAS,uBAAuB,CAAC,GAAW;IAC1C,OAAO,GAAG;SACP,KAAK,CAAC,oBAAoB,CAAC;SAC3B,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,CAAC,cAAc,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;SACpE,IAAI,CAAC,EAAE,CAAC,CAAC;AACd,CAAC;AAED,SAAS,yBAAyB,CAAC,GAAW;IAC5C,OAAO,kBAAkB,CAAC,GAAG,CAAC,CAAC,OAAO,CACp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ACH,CAAC;QACD,OAAO,MAAM,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IACzB,CAAC,CAAC,CAAC;AACL,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\n//---------------------\n// interfaces\n//---------------------\ninterface ValueOptions {\n isFirst: boolean; // is first value in the expression\n op?: string; // operator\n varValue?: any; // variable value\n varName?: string; // variable name\n modifier?: string; // modifier e.g *\n reserved?: boolean; // if true we'll keep reserved words with not encoding\n}\n\nexport interface UrlTemplateOptions {\n // if set to true, reserved characters will not be encoded\n allowReserved?: boolean;\n}\n\n// ---------------------\n// helpers\n// ---------------------\nfunction encodeComponent(val: string, reserved?: boolean, op?: string) {\n return (reserved ?? op === \"+\") || op === \"#\"\n ? encodeReservedComponent(val)\n : encodeRFC3986URIComponent(val);\n}\n\nfunction encodeReservedComponent(str: string) {\n return str\n .split(/(%[0-9A-Fa-f]{2})/g)\n .map((part) => (!/%[0-9A-Fa-f]/.test(part) ? encodeURI(part) : part))\n .join(\"\");\n}\n\nfunction encodeRFC3986URIComponent(str: string) {\n return encodeURIComponent(str).replace(\n /[!'()*]/g,\n (c) => `%${c.charCodeAt(0).toString(16).toUpperCase()}`,\n );\n}\n\nfunction isDefined(val: any) {\n return val !== undefined && val !== null;\n}\n\nfunction getNamedAndIfEmpty(op?: string): [boolean, string] {\n return [!!op && [\";\", \"?\", \"&\"].includes(op), !!op && [\"?\", \"&\"].includes(op) ? \"=\" : \"\"];\n}\n\nfunction getFirstOrSep(op?: string, isFirst = false) {\n if (isFirst) {\n return !op || op === \"+\" ? \"\" : op;\n } else if (!op || op === \"+\" || op === \"#\") {\n return \",\";\n } else if (op === \"?\") {\n return \"&\";\n } else {\n return op;\n }\n}\n\nfunction getExpandedValue(option: ValueOptions) {\n let isFirst = option.isFirst;\n const { op, varName, varValue: value, reserved } = option;\n const vals: string[] = [];\n const [named, ifEmpty] = getNamedAndIfEmpty(op);\n\n if (Array.isArray(value)) {\n for (const val of value.filter(isDefined)) {\n // prepare the following parts: separator, varName, value\n vals.push(`${getFirstOrSep(op, isFirst)}`);\n if (named && varName) {\n vals.push(`${encodeURIComponent(varName)}`);\n val === \"\" ? vals.push(ifEmpty) : vals.push(\"=\");\n }\n vals.push(encodeComponent(val, reserved, op));\n isFirst = false;\n }\n } else if (typeof value === \"object\") {\n for (const key of Object.keys(value)) {\n const val = value[key];\n if (!isDefined(val)) {\n continue;\n }\n // prepare the following parts: separator, key, value\n vals.push(`${getFirstOrSep(op, isFirst)}`);\n if (key) {\n vals.push(`${encodeURIComponent(key)}`);\n named && val === \"\" ? vals.push(ifEmpty) : vals.push(\"=\");\n }\n vals.push(encodeComponent(val, reserved, op));\n isFirst = false;\n }\n }\n return vals.join(\"\");\n}\n\nfunction getNonExpandedValue(option: ValueOptions) {\n const { op, varName, varValue: value, isFirst, reserved } = option;\n const vals: string[] = [];\n const first = getFirstOrSep(op, isFirst);\n const [named, ifEmpty] = getNamedAndIfEmpty(op);\n if (named && varName) {\n vals.push(encodeComponent(varName, reserved, op));\n if (value === \"\") {\n if (!ifEmpty) {\n vals.push(ifEmpty);\n }\n return !vals.join(\"\") ? undefined : `${first}${vals.join(\"\")}`;\n }\n vals.push(\"=\");\n }\n\n const items = [];\n if (Array.isArray(value)) {\n for (const val of value.filter(isDefined)) {\n items.push(encodeComponent(val, reserved, op));\n }\n } else if (typeof value === \"object\") {\n for (const key of Object.keys(value)) {\n if (!isDefined(value[key])) {\n continue;\n }\n items.push(encodeRFC3986URIComponent(key));\n items.push(encodeComponent(value[key], reserved, op));\n }\n }\n vals.push(items.join(\",\"));\n return !vals.join(\",\") ? undefined : `${first}${vals.join(\"\")}`;\n}\n\nfunction getVarValue(option: ValueOptions): string | undefined {\n const { op, varName, modifier, isFirst, reserved, varValue: value } = option;\n\n if (!isDefined(value)) {\n return undefined;\n } else if ([\"string\", \"number\", \"boolean\"].includes(typeof value)) {\n let val = value.toString();\n const [named, ifEmpty] = getNamedAndIfEmpty(op);\n const vals: string[] = [getFirstOrSep(op, isFirst)];\n if (named && varName) {\n // No need to encode varName considering it is already encoded\n vals.push(varName);\n val === \"\" ? vals.push(ifEmpty) : vals.push(\"=\");\n }\n if (modifier && modifier !== \"*\") {\n val = val.substring(0, parseInt(modifier, 10));\n }\n vals.push(encodeComponent(val, reserved, op));\n return vals.join(\"\");\n } else if (modifier === \"*\") {\n return getExpandedValue(option);\n } else {\n return getNonExpandedValue(option);\n }\n}\n\n// ---------------------------------------------------------------------------------------------------\n// This is an implementation of RFC 6570 URI Template: https://datatracker.ietf.org/doc/html/rfc6570.\n// ---------------------------------------------------------------------------------------------------\nexport function expandUrlTemplate(\n template: string,\n context: Record<string, any>,\n option?: UrlTemplateOptions,\n): string {\n return template.replace(/\\{([^\\{\\}]+)\\}|([^\\{\\}]+)/g, (_, expr, text) => {\n if (!expr) {\n return encodeReservedComponent(text);\n }\n let op;\n if ([\"+\", \"#\", \".\", \"/\", \";\", \"?\", \"&\"].includes(expr[0])) {\n (op = expr[0]), (expr = expr.slice(1));\n }\n const varList = expr.split(/,/g);\n const result = [];\n for (const varSpec of varList) {\n const varMatch = /([^:\\*]*)(?::(\\d+)|(\\*))?/.exec(varSpec);\n if (!varMatch || !varMatch[1]) {\n continue;\n }\n const varValue = getVarValue({\n isFirst: result.length === 0,\n op,\n varValue: context[varMatch[1]],\n varName: varMatch[1],\n modifier: varMatch[2] || varMatch[3],\n reserved: option?.allowReserved,\n });\n if (varValue) {\n result.push(varValue);\n }\n }\n return result.join(\"\");\n });\n}\n"]}
|
|
@@ -1,26 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
import { PagedAsyncIterableIterator } from "../../static-helpers/pagingHelpers.js";
|
|
4
|
-
import { StreamableMethod, PathUncheckedResponse } from "@azure-rest/core-client";
|
|
5
|
-
import { PollerLike, OperationState } from "@azure/core-lro";
|
|
6
|
-
export declare function _associationsInterfaceListByTrafficControllerSend(context: Client, resourceGroupName: string, trafficControllerName: string, options?: AssociationsInterfaceListByTrafficControllerOptionalParams): StreamableMethod;
|
|
7
|
-
export declare function _associationsInterfaceListByTrafficControllerDeserialize(result: PathUncheckedResponse): Promise<_AssociationListResult>;
|
|
8
|
-
/** List Association resources by TrafficController */
|
|
9
|
-
export declare function associationsInterfaceListByTrafficController(context: Client, resourceGroupName: string, trafficControllerName: string, options?: AssociationsInterfaceListByTrafficControllerOptionalParams): PagedAsyncIterableIterator<Association>;
|
|
10
|
-
export declare function _associationsInterfaceDeleteSend(context: Client, resourceGroupName: string, trafficControllerName: string, associationName: string, options?: AssociationsInterfaceDeleteOptionalParams): StreamableMethod;
|
|
11
|
-
export declare function _associationsInterfaceDeleteDeserialize(result: PathUncheckedResponse): Promise<void>;
|
|
12
|
-
/** Delete a Association */
|
|
13
|
-
export declare function associationsInterfaceDelete(context: Client, resourceGroupName: string, trafficControllerName: string, associationName: string, options?: AssociationsInterfaceDeleteOptionalParams): PollerLike<OperationState<void>, void>;
|
|
14
|
-
export declare function _associationsInterfaceUpdateSend(context: Client, resourceGroupName: string, trafficControllerName: string, associationName: string, properties: AssociationUpdate, options?: AssociationsInterfaceUpdateOptionalParams): StreamableMethod;
|
|
15
|
-
export declare function _associationsInterfaceUpdateDeserialize(result: PathUncheckedResponse): Promise<Association>;
|
|
16
|
-
/** Update a Association */
|
|
17
|
-
export declare function associationsInterfaceUpdate(context: Client, resourceGroupName: string, trafficControllerName: string, associationName: string, properties: AssociationUpdate, options?: AssociationsInterfaceUpdateOptionalParams): Promise<Association>;
|
|
18
|
-
export declare function _associationsInterfaceCreateOrUpdateSend(context: Client, resourceGroupName: string, trafficControllerName: string, associationName: string, resource: Association, options?: AssociationsInterfaceCreateOrUpdateOptionalParams): StreamableMethod;
|
|
19
|
-
export declare function _associationsInterfaceCreateOrUpdateDeserialize(result: PathUncheckedResponse): Promise<Association>;
|
|
20
|
-
/** Create a Association */
|
|
21
|
-
export declare function associationsInterfaceCreateOrUpdate(context: Client, resourceGroupName: string, trafficControllerName: string, associationName: string, resource: Association, options?: AssociationsInterfaceCreateOrUpdateOptionalParams): PollerLike<OperationState<Association>, Association>;
|
|
22
|
-
export declare function _associationsInterfaceGetSend(context: Client, resourceGroupName: string, trafficControllerName: string, associationName: string, options?: AssociationsInterfaceGetOptionalParams): StreamableMethod;
|
|
23
|
-
export declare function _associationsInterfaceGetDeserialize(result: PathUncheckedResponse): Promise<Association>;
|
|
24
|
-
/** Get a Association */
|
|
25
|
-
export declare function associationsInterfaceGet(context: Client, resourceGroupName: string, trafficControllerName: string, associationName: string, options?: AssociationsInterfaceGetOptionalParams): Promise<Association>;
|
|
1
|
+
export { listByTrafficController, $delete, update, createOrUpdate, get } from "./operations.js";
|
|
2
|
+
export { AssociationsInterfaceListByTrafficControllerOptionalParams, AssociationsInterfaceDeleteOptionalParams, AssociationsInterfaceUpdateOptionalParams, AssociationsInterfaceCreateOrUpdateOptionalParams, AssociationsInterfaceGetOptionalParams, } from "./options.js";
|
|
26
3
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/api/associationsInterface/index.ts"],"names":[],"mappings":"AAGA,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/api/associationsInterface/index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,uBAAuB,EAAE,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,GAAG,EAAE,MAAM,iBAAiB,CAAC;AAChG,OAAO,EACL,0DAA0D,EAC1D,yCAAyC,EACzC,yCAAyC,EACzC,iDAAiD,EACjD,sCAAsC,GACvC,MAAM,cAAc,CAAC"}
|
|
@@ -1,122 +1,4 @@
|
|
|
1
1
|
// Copyright (c) Microsoft Corporation.
|
|
2
2
|
// Licensed under the MIT License.
|
|
3
|
-
|
|
4
|
-
import { buildPagedAsyncIterator, } from "../../static-helpers/pagingHelpers.js";
|
|
5
|
-
import { getLongRunningPoller } from "../../static-helpers/pollingHelpers.js";
|
|
6
|
-
import { createRestError, operationOptionsToRequestParameters, } from "@azure-rest/core-client";
|
|
7
|
-
export function _associationsInterfaceListByTrafficControllerSend(context, resourceGroupName, trafficControllerName, options = {
|
|
8
|
-
requestOptions: {},
|
|
9
|
-
}) {
|
|
10
|
-
var _a;
|
|
11
|
-
return context
|
|
12
|
-
.path("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceNetworking/trafficControllers/{trafficControllerName}/associations", context.subscriptionId, resourceGroupName, trafficControllerName)
|
|
13
|
-
.get(Object.assign(Object.assign({}, operationOptionsToRequestParameters(options)), { headers: Object.assign({ accept: "application/json" }, (_a = options.requestOptions) === null || _a === void 0 ? void 0 : _a.headers), queryParameters: { "api-version": context.apiVersion } }));
|
|
14
|
-
}
|
|
15
|
-
export async function _associationsInterfaceListByTrafficControllerDeserialize(result) {
|
|
16
|
-
const expectedStatuses = ["200"];
|
|
17
|
-
if (!expectedStatuses.includes(result.status)) {
|
|
18
|
-
const error = createRestError(result);
|
|
19
|
-
error.details = errorResponseDeserializer(result.body);
|
|
20
|
-
throw error;
|
|
21
|
-
}
|
|
22
|
-
return _associationListResultDeserializer(result.body);
|
|
23
|
-
}
|
|
24
|
-
/** List Association resources by TrafficController */
|
|
25
|
-
export function associationsInterfaceListByTrafficController(context, resourceGroupName, trafficControllerName, options = {
|
|
26
|
-
requestOptions: {},
|
|
27
|
-
}) {
|
|
28
|
-
return buildPagedAsyncIterator(context, () => _associationsInterfaceListByTrafficControllerSend(context, resourceGroupName, trafficControllerName, options), _associationsInterfaceListByTrafficControllerDeserialize, ["200"], { itemName: "value", nextLinkName: "nextLink" });
|
|
29
|
-
}
|
|
30
|
-
export function _associationsInterfaceDeleteSend(context, resourceGroupName, trafficControllerName, associationName, options = { requestOptions: {} }) {
|
|
31
|
-
var _a;
|
|
32
|
-
return context
|
|
33
|
-
.path("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceNetworking/trafficControllers/{trafficControllerName}/associations/{associationName}", context.subscriptionId, resourceGroupName, trafficControllerName, associationName)
|
|
34
|
-
.delete(Object.assign(Object.assign({}, operationOptionsToRequestParameters(options)), { headers: Object.assign({ accept: "application/json" }, (_a = options.requestOptions) === null || _a === void 0 ? void 0 : _a.headers), queryParameters: { "api-version": context.apiVersion } }));
|
|
35
|
-
}
|
|
36
|
-
export async function _associationsInterfaceDeleteDeserialize(result) {
|
|
37
|
-
const expectedStatuses = ["202", "204", "200"];
|
|
38
|
-
if (!expectedStatuses.includes(result.status)) {
|
|
39
|
-
const error = createRestError(result);
|
|
40
|
-
error.details = errorResponseDeserializer(result.body);
|
|
41
|
-
throw error;
|
|
42
|
-
}
|
|
43
|
-
return;
|
|
44
|
-
}
|
|
45
|
-
/** Delete a Association */
|
|
46
|
-
export function associationsInterfaceDelete(context, resourceGroupName, trafficControllerName, associationName, options = { requestOptions: {} }) {
|
|
47
|
-
return getLongRunningPoller(context, _associationsInterfaceDeleteDeserialize, ["202", "204", "200"], {
|
|
48
|
-
updateIntervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
49
|
-
abortSignal: options === null || options === void 0 ? void 0 : options.abortSignal,
|
|
50
|
-
getInitialResponse: () => _associationsInterfaceDeleteSend(context, resourceGroupName, trafficControllerName, associationName, options),
|
|
51
|
-
resourceLocationConfig: "location",
|
|
52
|
-
});
|
|
53
|
-
}
|
|
54
|
-
export function _associationsInterfaceUpdateSend(context, resourceGroupName, trafficControllerName, associationName, properties, options = { requestOptions: {} }) {
|
|
55
|
-
var _a;
|
|
56
|
-
return context
|
|
57
|
-
.path("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceNetworking/trafficControllers/{trafficControllerName}/associations/{associationName}", context.subscriptionId, resourceGroupName, trafficControllerName, associationName)
|
|
58
|
-
.patch(Object.assign(Object.assign({}, operationOptionsToRequestParameters(options)), { contentType: "application/json", headers: Object.assign({ accept: "application/json" }, (_a = options.requestOptions) === null || _a === void 0 ? void 0 : _a.headers), queryParameters: { "api-version": context.apiVersion }, body: associationUpdateSerializer(properties) }));
|
|
59
|
-
}
|
|
60
|
-
export async function _associationsInterfaceUpdateDeserialize(result) {
|
|
61
|
-
const expectedStatuses = ["200"];
|
|
62
|
-
if (!expectedStatuses.includes(result.status)) {
|
|
63
|
-
const error = createRestError(result);
|
|
64
|
-
error.details = errorResponseDeserializer(result.body);
|
|
65
|
-
throw error;
|
|
66
|
-
}
|
|
67
|
-
return associationDeserializer(result.body);
|
|
68
|
-
}
|
|
69
|
-
/** Update a Association */
|
|
70
|
-
export async function associationsInterfaceUpdate(context, resourceGroupName, trafficControllerName, associationName, properties, options = { requestOptions: {} }) {
|
|
71
|
-
const result = await _associationsInterfaceUpdateSend(context, resourceGroupName, trafficControllerName, associationName, properties, options);
|
|
72
|
-
return _associationsInterfaceUpdateDeserialize(result);
|
|
73
|
-
}
|
|
74
|
-
export function _associationsInterfaceCreateOrUpdateSend(context, resourceGroupName, trafficControllerName, associationName, resource, options = {
|
|
75
|
-
requestOptions: {},
|
|
76
|
-
}) {
|
|
77
|
-
var _a;
|
|
78
|
-
return context
|
|
79
|
-
.path("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceNetworking/trafficControllers/{trafficControllerName}/associations/{associationName}", context.subscriptionId, resourceGroupName, trafficControllerName, associationName)
|
|
80
|
-
.put(Object.assign(Object.assign({}, operationOptionsToRequestParameters(options)), { contentType: "application/json", headers: Object.assign({ accept: "application/json" }, (_a = options.requestOptions) === null || _a === void 0 ? void 0 : _a.headers), queryParameters: { "api-version": context.apiVersion }, body: associationSerializer(resource) }));
|
|
81
|
-
}
|
|
82
|
-
export async function _associationsInterfaceCreateOrUpdateDeserialize(result) {
|
|
83
|
-
const expectedStatuses = ["200", "201"];
|
|
84
|
-
if (!expectedStatuses.includes(result.status)) {
|
|
85
|
-
const error = createRestError(result);
|
|
86
|
-
error.details = errorResponseDeserializer(result.body);
|
|
87
|
-
throw error;
|
|
88
|
-
}
|
|
89
|
-
return associationDeserializer(result.body);
|
|
90
|
-
}
|
|
91
|
-
/** Create a Association */
|
|
92
|
-
export function associationsInterfaceCreateOrUpdate(context, resourceGroupName, trafficControllerName, associationName, resource, options = {
|
|
93
|
-
requestOptions: {},
|
|
94
|
-
}) {
|
|
95
|
-
return getLongRunningPoller(context, _associationsInterfaceCreateOrUpdateDeserialize, ["200", "201"], {
|
|
96
|
-
updateIntervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
97
|
-
abortSignal: options === null || options === void 0 ? void 0 : options.abortSignal,
|
|
98
|
-
getInitialResponse: () => _associationsInterfaceCreateOrUpdateSend(context, resourceGroupName, trafficControllerName, associationName, resource, options),
|
|
99
|
-
resourceLocationConfig: "azure-async-operation",
|
|
100
|
-
});
|
|
101
|
-
}
|
|
102
|
-
export function _associationsInterfaceGetSend(context, resourceGroupName, trafficControllerName, associationName, options = { requestOptions: {} }) {
|
|
103
|
-
var _a;
|
|
104
|
-
return context
|
|
105
|
-
.path("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceNetworking/trafficControllers/{trafficControllerName}/associations/{associationName}", context.subscriptionId, resourceGroupName, trafficControllerName, associationName)
|
|
106
|
-
.get(Object.assign(Object.assign({}, operationOptionsToRequestParameters(options)), { headers: Object.assign({ accept: "application/json" }, (_a = options.requestOptions) === null || _a === void 0 ? void 0 : _a.headers), queryParameters: { "api-version": context.apiVersion } }));
|
|
107
|
-
}
|
|
108
|
-
export async function _associationsInterfaceGetDeserialize(result) {
|
|
109
|
-
const expectedStatuses = ["200"];
|
|
110
|
-
if (!expectedStatuses.includes(result.status)) {
|
|
111
|
-
const error = createRestError(result);
|
|
112
|
-
error.details = errorResponseDeserializer(result.body);
|
|
113
|
-
throw error;
|
|
114
|
-
}
|
|
115
|
-
return associationDeserializer(result.body);
|
|
116
|
-
}
|
|
117
|
-
/** Get a Association */
|
|
118
|
-
export async function associationsInterfaceGet(context, resourceGroupName, trafficControllerName, associationName, options = { requestOptions: {} }) {
|
|
119
|
-
const result = await _associationsInterfaceGetSend(context, resourceGroupName, trafficControllerName, associationName, options);
|
|
120
|
-
return _associationsInterfaceGetDeserialize(result);
|
|
121
|
-
}
|
|
3
|
+
export { listByTrafficController, $delete, update, createOrUpdate, get } from "./operations.js";
|
|
122
4
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/api/associationsInterface/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAUlC,OAAO,EACL,yBAAyB,EAEzB,qBAAqB,EACrB,uBAAuB,EAEvB,2BAA2B,EAE3B,kCAAkC,GACnC,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAEL,uBAAuB,GACxB,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EAAE,oBAAoB,EAAE,MAAM,wCAAwC,CAAC;AAC9E,OAAO,EAGL,eAAe,EACf,mCAAmC,GACpC,MAAM,yBAAyB,CAAC;AAGjC,MAAM,UAAU,iDAAiD,CAC/D,OAAe,EACf,iBAAyB,EACzB,qBAA6B,EAC7B,UAAsE;IACpE,cAAc,EAAE,EAAE;CACnB;;IAED,OAAO,OAAO;SACX,IAAI,CACH,kKAAkK,EAClK,OAAO,CAAC,cAAc,EACtB,iBAAiB,EACjB,qBAAqB,CACtB;SACA,GAAG,iCACC,mCAAmC,CAAC,OAAO,CAAC,KAC/C,OAAO,kBACL,MAAM,EAAE,kBAAkB,IACvB,MAAA,OAAO,CAAC,cAAc,0CAAE,OAAO,GAEpC,eAAe,EAAE,EAAE,aAAa,EAAE,OAAO,CAAC,UAAU,EAAE,IACtD,CAAC;AACP,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,wDAAwD,CAC5E,MAA6B;IAE7B,MAAM,gBAAgB,GAAG,CAAC,KAAK,CAAC,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,EACf,iBAAyB,EACzB,qBAA6B,EAC7B,eAAuB,EACvB,UAAkD,EAAE,cAAc,EAAE,EAAE,EAAE;;IAExE,OAAO,OAAO;SACX,IAAI,CACH,oLAAoL,EACpL,OAAO,CAAC,cAAc,EACtB,iBAAiB,EACjB,qBAAqB,EACrB,eAAe,CAChB;SACA,GAAG,iCACC,mCAAmC,CAAC,OAAO,CAAC,KAC/C,OAAO,kBACL,MAAM,EAAE,kBAAkB,IACvB,MAAA,OAAO,CAAC,cAAc,0CAAE,OAAO,GAEpC,eAAe,EAAE,EAAE,aAAa,EAAE,OAAO,CAAC,UAAU,EAAE,IACtD,CAAC;AACP,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,oCAAoC,CACxD,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,uBAAuB,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;AAC9C,CAAC;AAED,wBAAwB;AACxB,MAAM,CAAC,KAAK,UAAU,wBAAwB,CAC5C,OAAe,EACf,iBAAyB,EACzB,qBAA6B,EAC7B,eAAuB,EACvB,UAAkD,EAAE,cAAc,EAAE,EAAE,EAAE;IAExE,MAAM,MAAM,GAAG,MAAM,6BAA6B,CAChD,OAAO,EACP,iBAAiB,EACjB,qBAAqB,EACrB,eAAe,EACf,OAAO,CACR,CAAC;IACF,OAAO,oCAAoC,CAAC,MAAM,CAAC,CAAC;AACtD,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport {\n AssociationsInterfaceCreateOrUpdateOptionalParams,\n AssociationsInterfaceDeleteOptionalParams,\n AssociationsInterfaceGetOptionalParams,\n AssociationsInterfaceListByTrafficControllerOptionalParams,\n AssociationsInterfaceUpdateOptionalParams,\n ServiceNetworkingManagementContext as Client,\n} from \"../index.js\";\nimport {\n errorResponseDeserializer,\n Association,\n associationSerializer,\n associationDeserializer,\n AssociationUpdate,\n associationUpdateSerializer,\n _AssociationListResult,\n _associationListResultDeserializer,\n} from \"../../models/models.js\";\nimport {\n PagedAsyncIterableIterator,\n buildPagedAsyncIterator,\n} from \"../../static-helpers/pagingHelpers.js\";\nimport { getLongRunningPoller } from \"../../static-helpers/pollingHelpers.js\";\nimport {\n StreamableMethod,\n PathUncheckedResponse,\n createRestError,\n operationOptionsToRequestParameters,\n} from \"@azure-rest/core-client\";\nimport { PollerLike, OperationState } from \"@azure/core-lro\";\n\nexport function _associationsInterfaceListByTrafficControllerSend(\n context: Client,\n resourceGroupName: string,\n trafficControllerName: string,\n options: AssociationsInterfaceListByTrafficControllerOptionalParams = {\n requestOptions: {},\n },\n): StreamableMethod {\n return context\n .path(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceNetworking/trafficControllers/{trafficControllerName}/associations\",\n context.subscriptionId,\n resourceGroupName,\n trafficControllerName,\n )\n .get({\n ...operationOptionsToRequestParameters(options),\n headers: {\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n queryParameters: { \"api-version\": context.apiVersion },\n });\n}\n\nexport async function _associationsInterfaceListByTrafficControllerDeserialize(\n result: PathUncheckedResponse,\n): Promise<_AssociationListResult> {\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 _associationListResultDeserializer(result.body);\n}\n\n/** List Association resources by TrafficController */\nexport function associationsInterfaceListByTrafficController(\n context: Client,\n resourceGroupName: string,\n trafficControllerName: string,\n options: AssociationsInterfaceListByTrafficControllerOptionalParams = {\n requestOptions: {},\n },\n): PagedAsyncIterableIterator<Association> {\n return buildPagedAsyncIterator(\n context,\n () =>\n _associationsInterfaceListByTrafficControllerSend(\n context,\n resourceGroupName,\n trafficControllerName,\n options,\n ),\n _associationsInterfaceListByTrafficControllerDeserialize,\n [\"200\"],\n { itemName: \"value\", nextLinkName: \"nextLink\" },\n );\n}\n\nexport function _associationsInterfaceDeleteSend(\n context: Client,\n resourceGroupName: string,\n trafficControllerName: string,\n associationName: string,\n options: AssociationsInterfaceDeleteOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n return context\n .path(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceNetworking/trafficControllers/{trafficControllerName}/associations/{associationName}\",\n context.subscriptionId,\n resourceGroupName,\n trafficControllerName,\n associationName,\n )\n .delete({\n ...operationOptionsToRequestParameters(options),\n headers: {\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n queryParameters: { \"api-version\": context.apiVersion },\n });\n}\n\nexport async function _associationsInterfaceDeleteDeserialize(\n result: PathUncheckedResponse,\n): Promise<void> {\n const expectedStatuses = [\"202\", \"204\", \"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;\n}\n\n/** Delete a Association */\nexport function associationsInterfaceDelete(\n context: Client,\n resourceGroupName: string,\n trafficControllerName: string,\n associationName: string,\n options: AssociationsInterfaceDeleteOptionalParams = { requestOptions: {} },\n): PollerLike<OperationState<void>, void> {\n return getLongRunningPoller(\n context,\n _associationsInterfaceDeleteDeserialize,\n [\"202\", \"204\", \"200\"],\n {\n updateIntervalInMs: options?.updateIntervalInMs,\n abortSignal: options?.abortSignal,\n getInitialResponse: () =>\n _associationsInterfaceDeleteSend(\n context,\n resourceGroupName,\n trafficControllerName,\n associationName,\n options,\n ),\n resourceLocationConfig: \"location\",\n },\n ) as PollerLike<OperationState<void>, void>;\n}\n\nexport function _associationsInterfaceUpdateSend(\n context: Client,\n resourceGroupName: string,\n trafficControllerName: string,\n associationName: string,\n properties: AssociationUpdate,\n options: AssociationsInterfaceUpdateOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n return context\n .path(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceNetworking/trafficControllers/{trafficControllerName}/associations/{associationName}\",\n context.subscriptionId,\n resourceGroupName,\n trafficControllerName,\n associationName,\n )\n .patch({\n ...operationOptionsToRequestParameters(options),\n contentType: \"application/json\",\n headers: {\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n queryParameters: { \"api-version\": context.apiVersion },\n body: associationUpdateSerializer(properties),\n });\n}\n\nexport async function _associationsInterfaceUpdateDeserialize(\n result: PathUncheckedResponse,\n): Promise<Association> {\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 associationDeserializer(result.body);\n}\n\n/** Update a Association */\nexport async function associationsInterfaceUpdate(\n context: Client,\n resourceGroupName: string,\n trafficControllerName: string,\n associationName: string,\n properties: AssociationUpdate,\n options: AssociationsInterfaceUpdateOptionalParams = { requestOptions: {} },\n): Promise<Association> {\n const result = await _associationsInterfaceUpdateSend(\n context,\n resourceGroupName,\n trafficControllerName,\n associationName,\n properties,\n options,\n );\n return _associationsInterfaceUpdateDeserialize(result);\n}\n\nexport function _associationsInterfaceCreateOrUpdateSend(\n context: Client,\n resourceGroupName: string,\n trafficControllerName: string,\n associationName: string,\n resource: Association,\n options: AssociationsInterfaceCreateOrUpdateOptionalParams = {\n requestOptions: {},\n },\n): StreamableMethod {\n return context\n .path(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceNetworking/trafficControllers/{trafficControllerName}/associations/{associationName}\",\n context.subscriptionId,\n resourceGroupName,\n trafficControllerName,\n associationName,\n )\n .put({\n ...operationOptionsToRequestParameters(options),\n contentType: \"application/json\",\n headers: {\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n queryParameters: { \"api-version\": context.apiVersion },\n body: associationSerializer(resource),\n });\n}\n\nexport async function _associationsInterfaceCreateOrUpdateDeserialize(\n result: PathUncheckedResponse,\n): Promise<Association> {\n const expectedStatuses = [\"200\", \"201\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n error.details = errorResponseDeserializer(result.body);\n throw error;\n }\n\n return associationDeserializer(result.body);\n}\n\n/** Create a Association */\nexport function associationsInterfaceCreateOrUpdate(\n context: Client,\n resourceGroupName: string,\n trafficControllerName: string,\n associationName: string,\n resource: Association,\n options: AssociationsInterfaceCreateOrUpdateOptionalParams = {\n requestOptions: {},\n },\n): PollerLike<OperationState<Association>, Association> {\n return getLongRunningPoller(\n context,\n _associationsInterfaceCreateOrUpdateDeserialize,\n [\"200\", \"201\"],\n {\n updateIntervalInMs: options?.updateIntervalInMs,\n abortSignal: options?.abortSignal,\n getInitialResponse: () =>\n _associationsInterfaceCreateOrUpdateSend(\n context,\n resourceGroupName,\n trafficControllerName,\n associationName,\n resource,\n options,\n ),\n resourceLocationConfig: \"azure-async-operation\",\n },\n ) as PollerLike<OperationState<Association>, Association>;\n}\n\nexport function _associationsInterfaceGetSend(\n context: Client,\n resourceGroupName: string,\n trafficControllerName: string,\n associationName: string,\n options: AssociationsInterfaceGetOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n return context\n .path(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceNetworking/trafficControllers/{trafficControllerName}/associations/{associationName}\",\n context.subscriptionId,\n resourceGroupName,\n trafficControllerName,\n associationName,\n )\n .get({\n ...operationOptionsToRequestParameters(options),\n headers: {\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n queryParameters: { \"api-version\": context.apiVersion },\n });\n}\n\nexport async function _associationsInterfaceGetDeserialize(\n result: PathUncheckedResponse,\n): Promise<Association> {\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 associationDeserializer(result.body);\n}\n\n/** Get a Association */\nexport async function associationsInterfaceGet(\n context: Client,\n resourceGroupName: string,\n trafficControllerName: string,\n associationName: string,\n options: AssociationsInterfaceGetOptionalParams = { requestOptions: {} },\n): Promise<Association> {\n const result = await _associationsInterfaceGetSend(\n context,\n resourceGroupName,\n trafficControllerName,\n associationName,\n options,\n );\n return _associationsInterfaceGetDeserialize(result);\n}\n"]}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/api/associationsInterface/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAAE,uBAAuB,EAAE,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,GAAG,EAAE,MAAM,iBAAiB,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nexport { listByTrafficController, $delete, update, createOrUpdate, get } from \"./operations.js\";\nexport {\n AssociationsInterfaceListByTrafficControllerOptionalParams,\n AssociationsInterfaceDeleteOptionalParams,\n AssociationsInterfaceUpdateOptionalParams,\n AssociationsInterfaceCreateOrUpdateOptionalParams,\n AssociationsInterfaceGetOptionalParams,\n} from \"./options.js\";\n"]}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { ServiceNetworkingManagementContext as Client } from "../index.js";
|
|
2
|
+
import { Association, AssociationUpdate, _AssociationListResult } from "../../models/models.js";
|
|
3
|
+
import { AssociationsInterfaceListByTrafficControllerOptionalParams, AssociationsInterfaceDeleteOptionalParams, AssociationsInterfaceUpdateOptionalParams, AssociationsInterfaceCreateOrUpdateOptionalParams, AssociationsInterfaceGetOptionalParams } from "./options.js";
|
|
4
|
+
import { PagedAsyncIterableIterator } from "../../static-helpers/pagingHelpers.js";
|
|
5
|
+
import { StreamableMethod, PathUncheckedResponse } from "@azure-rest/core-client";
|
|
6
|
+
import { PollerLike, OperationState } from "@azure/core-lro";
|
|
7
|
+
export declare function _listByTrafficControllerSend(context: Client, resourceGroupName: string, trafficControllerName: string, options?: AssociationsInterfaceListByTrafficControllerOptionalParams): StreamableMethod;
|
|
8
|
+
export declare function _listByTrafficControllerDeserialize(result: PathUncheckedResponse): Promise<_AssociationListResult>;
|
|
9
|
+
/** List Association resources by TrafficController */
|
|
10
|
+
export declare function listByTrafficController(context: Client, resourceGroupName: string, trafficControllerName: string, options?: AssociationsInterfaceListByTrafficControllerOptionalParams): PagedAsyncIterableIterator<Association>;
|
|
11
|
+
export declare function _$deleteSend(context: Client, resourceGroupName: string, trafficControllerName: string, associationName: string, options?: AssociationsInterfaceDeleteOptionalParams): StreamableMethod;
|
|
12
|
+
export declare function _$deleteDeserialize(result: PathUncheckedResponse): Promise<void>;
|
|
13
|
+
/** Delete a Association */
|
|
14
|
+
/**
|
|
15
|
+
* @fixme delete is a reserved word that cannot be used as an operation name.
|
|
16
|
+
* Please add @clientName("clientName") or @clientName("<JS-Specific-Name>", "javascript")
|
|
17
|
+
* to the operation to override the generated name.
|
|
18
|
+
*/
|
|
19
|
+
export declare function $delete(context: Client, resourceGroupName: string, trafficControllerName: string, associationName: string, options?: AssociationsInterfaceDeleteOptionalParams): PollerLike<OperationState<void>, void>;
|
|
20
|
+
export declare function _updateSend(context: Client, resourceGroupName: string, trafficControllerName: string, associationName: string, properties: AssociationUpdate, options?: AssociationsInterfaceUpdateOptionalParams): StreamableMethod;
|
|
21
|
+
export declare function _updateDeserialize(result: PathUncheckedResponse): Promise<Association>;
|
|
22
|
+
/** Update a Association */
|
|
23
|
+
export declare function update(context: Client, resourceGroupName: string, trafficControllerName: string, associationName: string, properties: AssociationUpdate, options?: AssociationsInterfaceUpdateOptionalParams): Promise<Association>;
|
|
24
|
+
export declare function _createOrUpdateSend(context: Client, resourceGroupName: string, trafficControllerName: string, associationName: string, resource: Association, options?: AssociationsInterfaceCreateOrUpdateOptionalParams): StreamableMethod;
|
|
25
|
+
export declare function _createOrUpdateDeserialize(result: PathUncheckedResponse): Promise<Association>;
|
|
26
|
+
/** Create a Association */
|
|
27
|
+
export declare function createOrUpdate(context: Client, resourceGroupName: string, trafficControllerName: string, associationName: string, resource: Association, options?: AssociationsInterfaceCreateOrUpdateOptionalParams): PollerLike<OperationState<Association>, Association>;
|
|
28
|
+
export declare function _getSend(context: Client, resourceGroupName: string, trafficControllerName: string, associationName: string, options?: AssociationsInterfaceGetOptionalParams): StreamableMethod;
|
|
29
|
+
export declare function _getDeserialize(result: PathUncheckedResponse): Promise<Association>;
|
|
30
|
+
/** Get a Association */
|
|
31
|
+
export declare function get(context: Client, resourceGroupName: string, trafficControllerName: string, associationName: string, options?: AssociationsInterfaceGetOptionalParams): Promise<Association>;
|
|
32
|
+
//# sourceMappingURL=operations.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"operations.d.ts","sourceRoot":"","sources":["../../../../src/api/associationsInterface/operations.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,kCAAkC,IAAI,MAAM,EAAE,MAAM,aAAa,CAAC;AAC3E,OAAO,EACL,WAAW,EAIX,iBAAiB,EAEjB,sBAAsB,EAEvB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EACL,0DAA0D,EAC1D,yCAAyC,EACzC,yCAAyC,EACzC,iDAAiD,EACjD,sCAAsC,EACvC,MAAM,cAAc,CAAC;AAEtB,OAAO,EACL,0BAA0B,EAE3B,MAAM,uCAAuC,CAAC;AAE/C,OAAO,EACL,gBAAgB,EAChB,qBAAqB,EAGtB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAE7D,wBAAgB,4BAA4B,CAC1C,OAAO,EAAE,MAAM,EACf,iBAAiB,EAAE,MAAM,EACzB,qBAAqB,EAAE,MAAM,EAC7B,OAAO,GAAE,0DAER,GACA,gBAAgB,CAoB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AE,yCAAkE,GAC1E,OAAO,CAAC,WAAW,CAAC,CAUtB;AAED,wBAAgB,mBAAmB,CACjC,OAAO,EAAE,MAAM,EACf,iBAAiB,EAAE,MAAM,EACzB,qBAAqB,EAAE,MAAM,EAC7B,eAAe,EAAE,MAAM,EACvB,QAAQ,EAAE,WAAW,EACrB,OAAO,GAAE,iDAER,GACA,gBAAgB,CAuBlB;AAED,wBAAsB,0BAA0B,CAC9C,MAAM,EAAE,qBAAqB,GAC5B,OAAO,CAAC,WAAW,CAAC,CAStB;AAED,2BAA2B;AAC3B,wBAAgB,cAAc,CAC5B,OAAO,EAAE,MAAM,EACf,iBAAiB,EAAE,MAAM,EACzB,qBAAqB,EAAE,MAAM,EAC7B,eAAe,EAAE,MAAM,EACvB,QAAQ,EAAE,WAAW,EACrB,OAAO,GAAE,iDAER,GACA,UAAU,CAAC,cAAc,CAAC,WAAW,CAAC,EAAE,WAAW,CAAC,CAetD;AAED,wBAAgB,QAAQ,CACtB,OAAO,EAAE,MAAM,EACf,iBAAiB,EAAE,MAAM,EACzB,qBAAqB,EAAE,MAAM,EAC7B,eAAe,EAAE,MAAM,EACvB,OAAO,GAAE,sCAA+D,GACvE,gBAAgB,CAqBlB;AAED,wBAAsB,eAAe,CAAC,MAAM,EAAE,qBAAqB,GAAG,OAAO,CAAC,WAAW,CAAC,CASzF;AAED,wBAAwB;AACxB,wBAAsB,GAAG,CACvB,OAAO,EAAE,MAAM,EACf,iBAAiB,EAAE,MAAM,EACzB,qBAAqB,EAAE,MAAM,EAC7B,eAAe,EAAE,MAAM,EACvB,OAAO,GAAE,sCAA+D,GACvE,OAAO,CAAC,WAAW,CAAC,CAStB"}
|
|
@@ -0,0 +1,162 @@
|
|
|
1
|
+
// Copyright (c) Microsoft Corporation.
|
|
2
|
+
// Licensed under the MIT License.
|
|
3
|
+
import { associationSerializer, associationDeserializer, errorResponseDeserializer, associationUpdateSerializer, _associationListResultDeserializer, } from "../../models/models.js";
|
|
4
|
+
import { getLongRunningPoller } from "../../static-helpers/pollingHelpers.js";
|
|
5
|
+
import { buildPagedAsyncIterator, } from "../../static-helpers/pagingHelpers.js";
|
|
6
|
+
import { expandUrlTemplate } from "../../static-helpers/urlTemplate.js";
|
|
7
|
+
import { createRestError, operationOptionsToRequestParameters, } from "@azure-rest/core-client";
|
|
8
|
+
export function _listByTrafficControllerSend(context, resourceGroupName, trafficControllerName, options = {
|
|
9
|
+
requestOptions: {},
|
|
10
|
+
}) {
|
|
11
|
+
var _a, _b;
|
|
12
|
+
const path = expandUrlTemplate("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceNetworking/trafficControllers/{trafficControllerName}/associations{?api%2Dversion}", {
|
|
13
|
+
subscriptionId: context.subscriptionId,
|
|
14
|
+
resourceGroupName: resourceGroupName,
|
|
15
|
+
trafficControllerName: trafficControllerName,
|
|
16
|
+
"api%2Dversion": context.apiVersion,
|
|
17
|
+
}, {
|
|
18
|
+
allowReserved: (_a = options === null || options === void 0 ? void 0 : options.requestOptions) === null || _a === void 0 ? void 0 : _a.skipUrlEncoding,
|
|
19
|
+
});
|
|
20
|
+
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) }));
|
|
21
|
+
}
|
|
22
|
+
export async function _listByTrafficControllerDeserialize(result) {
|
|
23
|
+
const expectedStatuses = ["200"];
|
|
24
|
+
if (!expectedStatuses.includes(result.status)) {
|
|
25
|
+
const error = createRestError(result);
|
|
26
|
+
error.details = errorResponseDeserializer(result.body);
|
|
27
|
+
throw error;
|
|
28
|
+
}
|
|
29
|
+
return _associationListResultDeserializer(result.body);
|
|
30
|
+
}
|
|
31
|
+
/** List Association resources by TrafficController */
|
|
32
|
+
export function listByTrafficController(context, resourceGroupName, trafficControllerName, options = {
|
|
33
|
+
requestOptions: {},
|
|
34
|
+
}) {
|
|
35
|
+
return buildPagedAsyncIterator(context, () => _listByTrafficControllerSend(context, resourceGroupName, trafficControllerName, options), _listByTrafficControllerDeserialize, ["200"], { itemName: "value", nextLinkName: "nextLink" });
|
|
36
|
+
}
|
|
37
|
+
export function _$deleteSend(context, resourceGroupName, trafficControllerName, associationName, options = { requestOptions: {} }) {
|
|
38
|
+
var _a, _b;
|
|
39
|
+
const path = expandUrlTemplate("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceNetworking/trafficControllers/{trafficControllerName}/associations/{associationName}{?api%2Dversion}", {
|
|
40
|
+
subscriptionId: context.subscriptionId,
|
|
41
|
+
resourceGroupName: resourceGroupName,
|
|
42
|
+
trafficControllerName: trafficControllerName,
|
|
43
|
+
associationName: associationName,
|
|
44
|
+
"api%2Dversion": context.apiVersion,
|
|
45
|
+
}, {
|
|
46
|
+
allowReserved: (_a = options === null || options === void 0 ? void 0 : options.requestOptions) === null || _a === void 0 ? void 0 : _a.skipUrlEncoding,
|
|
47
|
+
});
|
|
48
|
+
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) }));
|
|
49
|
+
}
|
|
50
|
+
export async function _$deleteDeserialize(result) {
|
|
51
|
+
const expectedStatuses = ["202", "204", "200"];
|
|
52
|
+
if (!expectedStatuses.includes(result.status)) {
|
|
53
|
+
const error = createRestError(result);
|
|
54
|
+
error.details = errorResponseDeserializer(result.body);
|
|
55
|
+
throw error;
|
|
56
|
+
}
|
|
57
|
+
return;
|
|
58
|
+
}
|
|
59
|
+
/** Delete a Association */
|
|
60
|
+
/**
|
|
61
|
+
* @fixme delete is a reserved word that cannot be used as an operation name.
|
|
62
|
+
* Please add @clientName("clientName") or @clientName("<JS-Specific-Name>", "javascript")
|
|
63
|
+
* to the operation to override the generated name.
|
|
64
|
+
*/
|
|
65
|
+
export function $delete(context, resourceGroupName, trafficControllerName, associationName, options = { requestOptions: {} }) {
|
|
66
|
+
return getLongRunningPoller(context, _$deleteDeserialize, ["202", "204", "200"], {
|
|
67
|
+
updateIntervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
68
|
+
abortSignal: options === null || options === void 0 ? void 0 : options.abortSignal,
|
|
69
|
+
getInitialResponse: () => _$deleteSend(context, resourceGroupName, trafficControllerName, associationName, options),
|
|
70
|
+
resourceLocationConfig: "location",
|
|
71
|
+
});
|
|
72
|
+
}
|
|
73
|
+
export function _updateSend(context, resourceGroupName, trafficControllerName, associationName, properties, options = { requestOptions: {} }) {
|
|
74
|
+
var _a, _b;
|
|
75
|
+
const path = expandUrlTemplate("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceNetworking/trafficControllers/{trafficControllerName}/associations/{associationName}{?api%2Dversion}", {
|
|
76
|
+
subscriptionId: context.subscriptionId,
|
|
77
|
+
resourceGroupName: resourceGroupName,
|
|
78
|
+
trafficControllerName: trafficControllerName,
|
|
79
|
+
associationName: associationName,
|
|
80
|
+
"api%2Dversion": context.apiVersion,
|
|
81
|
+
}, {
|
|
82
|
+
allowReserved: (_a = options === null || options === void 0 ? void 0 : options.requestOptions) === null || _a === void 0 ? void 0 : _a.skipUrlEncoding,
|
|
83
|
+
});
|
|
84
|
+
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: associationUpdateSerializer(properties) }));
|
|
85
|
+
}
|
|
86
|
+
export async function _updateDeserialize(result) {
|
|
87
|
+
const expectedStatuses = ["200"];
|
|
88
|
+
if (!expectedStatuses.includes(result.status)) {
|
|
89
|
+
const error = createRestError(result);
|
|
90
|
+
error.details = errorResponseDeserializer(result.body);
|
|
91
|
+
throw error;
|
|
92
|
+
}
|
|
93
|
+
return associationDeserializer(result.body);
|
|
94
|
+
}
|
|
95
|
+
/** Update a Association */
|
|
96
|
+
export async function update(context, resourceGroupName, trafficControllerName, associationName, properties, options = { requestOptions: {} }) {
|
|
97
|
+
const result = await _updateSend(context, resourceGroupName, trafficControllerName, associationName, properties, options);
|
|
98
|
+
return _updateDeserialize(result);
|
|
99
|
+
}
|
|
100
|
+
export function _createOrUpdateSend(context, resourceGroupName, trafficControllerName, associationName, resource, options = {
|
|
101
|
+
requestOptions: {},
|
|
102
|
+
}) {
|
|
103
|
+
var _a, _b;
|
|
104
|
+
const path = expandUrlTemplate("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceNetworking/trafficControllers/{trafficControllerName}/associations/{associationName}{?api%2Dversion}", {
|
|
105
|
+
subscriptionId: context.subscriptionId,
|
|
106
|
+
resourceGroupName: resourceGroupName,
|
|
107
|
+
trafficControllerName: trafficControllerName,
|
|
108
|
+
associationName: associationName,
|
|
109
|
+
"api%2Dversion": context.apiVersion,
|
|
110
|
+
}, {
|
|
111
|
+
allowReserved: (_a = options === null || options === void 0 ? void 0 : options.requestOptions) === null || _a === void 0 ? void 0 : _a.skipUrlEncoding,
|
|
112
|
+
});
|
|
113
|
+
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: associationSerializer(resource) }));
|
|
114
|
+
}
|
|
115
|
+
export async function _createOrUpdateDeserialize(result) {
|
|
116
|
+
const expectedStatuses = ["200", "201"];
|
|
117
|
+
if (!expectedStatuses.includes(result.status)) {
|
|
118
|
+
const error = createRestError(result);
|
|
119
|
+
error.details = errorResponseDeserializer(result.body);
|
|
120
|
+
throw error;
|
|
121
|
+
}
|
|
122
|
+
return associationDeserializer(result.body);
|
|
123
|
+
}
|
|
124
|
+
/** Create a Association */
|
|
125
|
+
export function createOrUpdate(context, resourceGroupName, trafficControllerName, associationName, resource, options = {
|
|
126
|
+
requestOptions: {},
|
|
127
|
+
}) {
|
|
128
|
+
return getLongRunningPoller(context, _createOrUpdateDeserialize, ["200", "201"], {
|
|
129
|
+
updateIntervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
130
|
+
abortSignal: options === null || options === void 0 ? void 0 : options.abortSignal,
|
|
131
|
+
getInitialResponse: () => _createOrUpdateSend(context, resourceGroupName, trafficControllerName, associationName, resource, options),
|
|
132
|
+
resourceLocationConfig: "azure-async-operation",
|
|
133
|
+
});
|
|
134
|
+
}
|
|
135
|
+
export function _getSend(context, resourceGroupName, trafficControllerName, associationName, options = { requestOptions: {} }) {
|
|
136
|
+
var _a, _b;
|
|
137
|
+
const path = expandUrlTemplate("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceNetworking/trafficControllers/{trafficControllerName}/associations/{associationName}{?api%2Dversion}", {
|
|
138
|
+
subscriptionId: context.subscriptionId,
|
|
139
|
+
resourceGroupName: resourceGroupName,
|
|
140
|
+
trafficControllerName: trafficControllerName,
|
|
141
|
+
associationName: associationName,
|
|
142
|
+
"api%2Dversion": context.apiVersion,
|
|
143
|
+
}, {
|
|
144
|
+
allowReserved: (_a = options === null || options === void 0 ? void 0 : options.requestOptions) === null || _a === void 0 ? void 0 : _a.skipUrlEncoding,
|
|
145
|
+
});
|
|
146
|
+
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) }));
|
|
147
|
+
}
|
|
148
|
+
export async function _getDeserialize(result) {
|
|
149
|
+
const expectedStatuses = ["200"];
|
|
150
|
+
if (!expectedStatuses.includes(result.status)) {
|
|
151
|
+
const error = createRestError(result);
|
|
152
|
+
error.details = errorResponseDeserializer(result.body);
|
|
153
|
+
throw error;
|
|
154
|
+
}
|
|
155
|
+
return associationDeserializer(result.body);
|
|
156
|
+
}
|
|
157
|
+
/** Get a Association */
|
|
158
|
+
export async function get(context, resourceGroupName, trafficControllerName, associationName, options = { requestOptions: {} }) {
|
|
159
|
+
const result = await _getSend(context, resourceGroupName, trafficControllerName, associationName, options);
|
|
160
|
+
return _getDeserialize(result);
|
|
161
|
+
}
|
|
162
|
+
//# sourceMappingURL=operations.js.map
|