@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
package/CHANGELOG.md
CHANGED
|
@@ -1,15 +1,26 @@
|
|
|
1
1
|
# Release History
|
|
2
|
-
|
|
3
|
-
## 2.0.1 (
|
|
4
|
-
|
|
2
|
+
|
|
3
|
+
## 2.1.0-beta.1 (2025-04-23)
|
|
4
|
+
Compared with version 2.0.0
|
|
5
|
+
|
|
5
6
|
### Features Added
|
|
6
7
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
8
|
+
- Added Interface FrontendUpdateProperties
|
|
9
|
+
- Added Interface IpAccessRule
|
|
10
|
+
- Added Interface IpAccessRulesPolicy
|
|
11
|
+
- Added Interface IpAccessRulesSecurityPolicy
|
|
12
|
+
- Added Type Alias IpAccessRuleAction
|
|
13
|
+
- Interface FrontendProperties has a new optional parameter securityPolicyConfigurations
|
|
14
|
+
- Interface FrontendUpdate has a new optional parameter properties
|
|
15
|
+
- Interface SecurityPolicyConfigurations has a new optional parameter ipAccessRulesSecurityPolicy
|
|
16
|
+
- Interface SecurityPolicyProperties has a new optional parameter ipAccessRulesPolicy
|
|
17
|
+
- Interface SecurityPolicyUpdateProperties has a new optional parameter ipAccessRulesPolicy
|
|
18
|
+
- Added Enum KnownIpAccessRuleAction
|
|
19
|
+
- Enum KnownPolicyType has a new value IpAccessRules
|
|
20
|
+
- Enum KnownVersions has a new value V20240501Preview
|
|
21
|
+
- Enum KnownVersions has a new value V20250301Preview
|
|
22
|
+
|
|
23
|
+
|
|
13
24
|
## 2.0.0 (2025-02-07)
|
|
14
25
|
|
|
15
26
|
### Features Added
|
package/LICENSE
CHANGED
|
@@ -18,4 +18,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
|
18
18
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
19
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
20
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -68,11 +68,12 @@ import { ServiceNetworkingManagementClient } from "@azure/arm-servicenetworking"
|
|
|
68
68
|
const subscriptionId = "00000000-0000-0000-0000-000000000000";
|
|
69
69
|
const credential = new InteractiveBrowserCredential({
|
|
70
70
|
tenantId: "<YOUR_TENANT_ID>",
|
|
71
|
-
clientId: "<YOUR_CLIENT_ID>"
|
|
72
|
-
});
|
|
71
|
+
clientId: "<YOUR_CLIENT_ID>"
|
|
72
|
+
});
|
|
73
73
|
const client = new ServiceNetworkingManagementClient(credential, subscriptionId);
|
|
74
74
|
```
|
|
75
75
|
|
|
76
|
+
|
|
76
77
|
### JavaScript Bundle
|
|
77
78
|
To use this client library in the browser, first you need to use a bundler. For details on how to do this, please refer to our [bundling documentation](https://aka.ms/AzureSDKBundling).
|
|
78
79
|
|
|
@@ -80,7 +81,7 @@ To use this client library in the browser, first you need to use a bundler. For
|
|
|
80
81
|
|
|
81
82
|
### ServiceNetworkingManagementClient
|
|
82
83
|
|
|
83
|
-
`ServiceNetworkingManagementClient` is the primary interface for developers using the Azure
|
|
84
|
+
`ServiceNetworkingManagementClient` is the primary interface for developers using the Azure ServiceNetworkingManagement client library. Explore the methods on this client object to understand the different features of the Azure ServiceNetworkingManagement service that you can access.
|
|
84
85
|
|
|
85
86
|
## Troubleshooting
|
|
86
87
|
|
|
@@ -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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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":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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
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"operations.js","sourceRoot":"","sources":["../../../../src/api/associationsInterface/operations.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAGlC,OAAO,EAEL,qBAAqB,EACrB,uBAAuB,EACvB,yBAAyB,EAEzB,2BAA2B,EAE3B,kCAAkC,GACnC,MAAM,wBAAwB,CAAC;AAQhC,OAAO,EAAE,oBAAoB,EAAE,MAAM,wCAAwC,CAAC;AAC9E,OAAO,EAEL,uBAAuB,GACxB,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EAAE,iBAAiB,EAAE,MAAM,qCAAqC,CAAC;AACxE,OAAO,EAGL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kD,EAAE,cAAc,EAAE,EAAE,EAAE;IAExE,MAAM,MAAM,GAAG,MAAM,QAAQ,CAC3B,OAAO,EACP,iBAAiB,EACjB,qBAAqB,EACrB,eAAe,EACf,OAAO,CACR,CAAC;IACF,OAAO,eAAe,CAAC,MAAM,CAAC,CAAC;AACjC,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { ServiceNetworkingManagementContext as Client } from \"../index.js\";\nimport {\n Association,\n associationSerializer,\n associationDeserializer,\n errorResponseDeserializer,\n AssociationUpdate,\n associationUpdateSerializer,\n _AssociationListResult,\n _associationListResultDeserializer,\n} from \"../../models/models.js\";\nimport {\n AssociationsInterfaceListByTrafficControllerOptionalParams,\n AssociationsInterfaceDeleteOptionalParams,\n AssociationsInterfaceUpdateOptionalParams,\n AssociationsInterfaceCreateOrUpdateOptionalParams,\n AssociationsInterfaceGetOptionalParams,\n} from \"./options.js\";\nimport { getLongRunningPoller } from \"../../static-helpers/pollingHelpers.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\";\nimport { PollerLike, OperationState } from \"@azure/core-lro\";\n\nexport function _listByTrafficControllerSend(\n context: Client,\n resourceGroupName: string,\n trafficControllerName: string,\n options: AssociationsInterfaceListByTrafficControllerOptionalParams = {\n requestOptions: {},\n },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceNetworking/trafficControllers/{trafficControllerName}/associations{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n resourceGroupName: resourceGroupName,\n trafficControllerName: trafficControllerName,\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 _listByTrafficControllerDeserialize(\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 listByTrafficController(\n context: Client,\n resourceGroupName: string,\n trafficControllerName: string,\n options: AssociationsInterfaceListByTrafficControllerOptionalParams = {\n requestOptions: {},\n },\n): PagedAsyncIterableIterator<Association> {\n return buildPagedAsyncIterator(\n context,\n () => _listByTrafficControllerSend(context, resourceGroupName, trafficControllerName, options),\n _listByTrafficControllerDeserialize,\n [\"200\"],\n { itemName: \"value\", nextLinkName: \"nextLink\" },\n );\n}\n\nexport function _$deleteSend(\n context: Client,\n resourceGroupName: string,\n trafficControllerName: string,\n associationName: string,\n options: AssociationsInterfaceDeleteOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceNetworking/trafficControllers/{trafficControllerName}/associations/{associationName}{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n resourceGroupName: resourceGroupName,\n trafficControllerName: trafficControllerName,\n associationName: associationName,\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 = [\"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 */\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 function $delete(\n context: Client,\n resourceGroupName: string,\n trafficControllerName: string,\n associationName: string,\n options: AssociationsInterfaceDeleteOptionalParams = { requestOptions: {} },\n): PollerLike<OperationState<void>, void> {\n return getLongRunningPoller(context, _$deleteDeserialize, [\"202\", \"204\", \"200\"], {\n updateIntervalInMs: options?.updateIntervalInMs,\n abortSignal: options?.abortSignal,\n getInitialResponse: () =>\n _$deleteSend(context, resourceGroupName, trafficControllerName, associationName, options),\n resourceLocationConfig: \"location\",\n }) as PollerLike<OperationState<void>, void>;\n}\n\nexport function _updateSend(\n context: Client,\n resourceGroupName: string,\n trafficControllerName: string,\n associationName: string,\n properties: AssociationUpdate,\n options: AssociationsInterfaceUpdateOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceNetworking/trafficControllers/{trafficControllerName}/associations/{associationName}{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n resourceGroupName: resourceGroupName,\n trafficControllerName: trafficControllerName,\n associationName: associationName,\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: associationUpdateSerializer(properties),\n });\n}\n\nexport async function _updateDeserialize(result: PathUncheckedResponse): 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 update(\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 _updateSend(\n context,\n resourceGroupName,\n trafficControllerName,\n associationName,\n properties,\n options,\n );\n return _updateDeserialize(result);\n}\n\nexport function _createOrUpdateSend(\n context: Client,\n resourceGroupName: string,\n trafficControllerName: string,\n associationName: string,\n resource: Association,\n options: AssociationsInterfaceCreateOrUpdateOptionalParams = {\n requestOptions: {},\n },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceNetworking/trafficControllers/{trafficControllerName}/associations/{associationName}{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n resourceGroupName: resourceGroupName,\n trafficControllerName: trafficControllerName,\n associationName: associationName,\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: associationSerializer(resource),\n });\n}\n\nexport async function _createOrUpdateDeserialize(\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 createOrUpdate(\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(context, _createOrUpdateDeserialize, [\"200\", \"201\"], {\n updateIntervalInMs: options?.updateIntervalInMs,\n abortSignal: options?.abortSignal,\n getInitialResponse: () =>\n _createOrUpdateSend(\n context,\n resourceGroupName,\n trafficControllerName,\n associationName,\n resource,\n options,\n ),\n resourceLocationConfig: \"azure-async-operation\",\n }) as PollerLike<OperationState<Association>, Association>;\n}\n\nexport function _getSend(\n context: Client,\n resourceGroupName: string,\n trafficControllerName: string,\n associationName: string,\n options: AssociationsInterfaceGetOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceNetworking/trafficControllers/{trafficControllerName}/associations/{associationName}{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n resourceGroupName: resourceGroupName,\n trafficControllerName: trafficControllerName,\n associationName: associationName,\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<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 get(\n context: Client,\n resourceGroupName: string,\n trafficControllerName: string,\n associationName: string,\n options: AssociationsInterfaceGetOptionalParams = { requestOptions: {} },\n): Promise<Association> {\n const result = await _getSend(\n context,\n resourceGroupName,\n trafficControllerName,\n associationName,\n options,\n );\n return _getDeserialize(result);\n}\n"]}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { OperationOptions } from "@azure-rest/core-client";
|
|
2
|
+
/** Optional parameters. */
|
|
3
|
+
export interface AssociationsInterfaceListByTrafficControllerOptionalParams extends OperationOptions {
|
|
4
|
+
}
|
|
5
|
+
/** Optional parameters. */
|
|
6
|
+
export interface AssociationsInterfaceDeleteOptionalParams extends OperationOptions {
|
|
7
|
+
/** Delay to wait until next poll, in milliseconds. */
|
|
8
|
+
updateIntervalInMs?: number;
|
|
9
|
+
}
|
|
10
|
+
/** Optional parameters. */
|
|
11
|
+
export interface AssociationsInterfaceUpdateOptionalParams extends OperationOptions {
|
|
12
|
+
}
|
|
13
|
+
/** Optional parameters. */
|
|
14
|
+
export interface AssociationsInterfaceCreateOrUpdateOptionalParams extends OperationOptions {
|
|
15
|
+
/** Delay to wait until next poll, in milliseconds. */
|
|
16
|
+
updateIntervalInMs?: number;
|
|
17
|
+
}
|
|
18
|
+
/** Optional parameters. */
|
|
19
|
+
export interface AssociationsInterfaceGetOptionalParams extends OperationOptions {
|
|
20
|
+
}
|
|
21
|
+
//# sourceMappingURL=options.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"options.d.ts","sourceRoot":"","sources":["../../../../src/api/associationsInterface/options.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAE3D,2BAA2B;AAC3B,MAAM,WAAW,0DACf,SAAQ,gBAAgB;CAAG;AAE7B,2BAA2B;AAC3B,MAAM,WAAW,yCAA0C,SAAQ,gBAAgB;IACjF,sDAAsD;IACtD,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC7B;AAED,2BAA2B;AAC3B,MAAM,WAAW,yCAA0C,SAAQ,gBAAgB;CAAG;AAEtF,2BAA2B;AAC3B,MAAM,WAAW,iDAAkD,SAAQ,gBAAgB;IACzF,sDAAsD;IACtD,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC7B;AAED,2BAA2B;AAC3B,MAAM,WAAW,sCAAuC,SAAQ,gBAAgB;CAAG"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"options.js","sourceRoot":"","sources":["../../../../src/api/associationsInterface/options.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { OperationOptions } from \"@azure-rest/core-client\";\n\n/** Optional parameters. */\nexport interface AssociationsInterfaceListByTrafficControllerOptionalParams\n extends OperationOptions {}\n\n/** Optional parameters. */\nexport interface AssociationsInterfaceDeleteOptionalParams extends OperationOptions {\n /** Delay to wait until next poll, in milliseconds. */\n updateIntervalInMs?: number;\n}\n\n/** Optional parameters. */\nexport interface AssociationsInterfaceUpdateOptionalParams extends OperationOptions {}\n\n/** Optional parameters. */\nexport interface AssociationsInterfaceCreateOrUpdateOptionalParams extends OperationOptions {\n /** Delay to wait until next poll, in milliseconds. */\n updateIntervalInMs?: number;\n}\n\n/** Optional parameters. */\nexport interface AssociationsInterfaceGetOptionalParams extends OperationOptions {}\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 _frontendsInterfaceListByTrafficControllerSend(context: Client, resourceGroupName: string, trafficControllerName: string, options?: FrontendsInterfaceListByTrafficControllerOptionalParams): StreamableMethod;
|
|
7
|
-
export declare function _frontendsInterfaceListByTrafficControllerDeserialize(result: PathUncheckedResponse): Promise<_FrontendListResult>;
|
|
8
|
-
/** List Frontend resources by TrafficController */
|
|
9
|
-
export declare function frontendsInterfaceListByTrafficController(context: Client, resourceGroupName: string, trafficControllerName: string, options?: FrontendsInterfaceListByTrafficControllerOptionalParams): PagedAsyncIterableIterator<Frontend>;
|
|
10
|
-
export declare function _frontendsInterfaceDeleteSend(context: Client, resourceGroupName: string, trafficControllerName: string, frontendName: string, options?: FrontendsInterfaceDeleteOptionalParams): StreamableMethod;
|
|
11
|
-
export declare function _frontendsInterfaceDeleteDeserialize(result: PathUncheckedResponse): Promise<void>;
|
|
12
|
-
/** Delete a Frontend */
|
|
13
|
-
export declare function frontendsInterfaceDelete(context: Client, resourceGroupName: string, trafficControllerName: string, frontendName: string, options?: FrontendsInterfaceDeleteOptionalParams): PollerLike<OperationState<void>, void>;
|
|
14
|
-
export declare function _frontendsInterfaceUpdateSend(context: Client, resourceGroupName: string, trafficControllerName: string, frontendName: string, properties: FrontendUpdate, options?: FrontendsInterfaceUpdateOptionalParams): StreamableMethod;
|
|
15
|
-
export declare function _frontendsInterfaceUpdateDeserialize(result: PathUncheckedResponse): Promise<Frontend>;
|
|
16
|
-
/** Update a Frontend */
|
|
17
|
-
export declare function frontendsInterfaceUpdate(context: Client, resourceGroupName: string, trafficControllerName: string, frontendName: string, properties: FrontendUpdate, options?: FrontendsInterfaceUpdateOptionalParams): Promise<Frontend>;
|
|
18
|
-
export declare function _frontendsInterfaceCreateOrUpdateSend(context: Client, resourceGroupName: string, trafficControllerName: string, frontendName: string, resource: Frontend, options?: FrontendsInterfaceCreateOrUpdateOptionalParams): StreamableMethod;
|
|
19
|
-
export declare function _frontendsInterfaceCreateOrUpdateDeserialize(result: PathUncheckedResponse): Promise<Frontend>;
|
|
20
|
-
/** Create a Frontend */
|
|
21
|
-
export declare function frontendsInterfaceCreateOrUpdate(context: Client, resourceGroupName: string, trafficControllerName: string, frontendName: string, resource: Frontend, options?: FrontendsInterfaceCreateOrUpdateOptionalParams): PollerLike<OperationState<Frontend>, Frontend>;
|
|
22
|
-
export declare function _frontendsInterfaceGetSend(context: Client, resourceGroupName: string, trafficControllerName: string, frontendName: string, options?: FrontendsInterfaceGetOptionalParams): StreamableMethod;
|
|
23
|
-
export declare function _frontendsInterfaceGetDeserialize(result: PathUncheckedResponse): Promise<Frontend>;
|
|
24
|
-
/** Get a Frontend */
|
|
25
|
-
export declare function frontendsInterfaceGet(context: Client, resourceGroupName: string, trafficControllerName: string, frontendName: string, options?: FrontendsInterfaceGetOptionalParams): Promise<Frontend>;
|
|
1
|
+
export { listByTrafficController, $delete, update, createOrUpdate, get } from "./operations.js";
|
|
2
|
+
export { FrontendsInterfaceListByTrafficControllerOptionalParams, FrontendsInterfaceDeleteOptionalParams, FrontendsInterfaceUpdateOptionalParams, FrontendsInterfaceCreateOrUpdateOptionalParams, FrontendsInterfaceGetOptionalParams, } from "./options.js";
|
|
26
3
|
//# sourceMappingURL=index.d.ts.map
|