@azure/arm-computelimit 1.0.0 → 1.2.0
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/dist/browser/api/computeLimitContext.js +4 -2
- package/dist/browser/api/computeLimitContext.js.map +1 -1
- package/dist/browser/api/features/index.d.ts +2 -2
- package/dist/browser/api/features/index.js +1 -1
- package/dist/browser/api/features/index.js.map +1 -1
- package/dist/browser/api/features/operations.d.ts +5 -1
- package/dist/browser/api/features/operations.js +54 -11
- package/dist/browser/api/features/operations.js.map +1 -1
- package/dist/browser/api/features/options.d.ts +8 -0
- package/dist/browser/api/features/options.js.map +1 -1
- package/dist/browser/api/guestSubscriptions/operations.d.ts +0 -5
- package/dist/browser/api/guestSubscriptions/operations.js +17 -14
- package/dist/browser/api/guestSubscriptions/operations.js.map +1 -1
- package/dist/browser/api/memberCapOverrides/index.d.ts +3 -0
- package/dist/browser/api/memberCapOverrides/index.js +4 -0
- package/dist/browser/api/memberCapOverrides/index.js.map +1 -0
- package/dist/browser/api/memberCapOverrides/operations.d.ts +22 -0
- package/dist/browser/api/memberCapOverrides/operations.js +128 -0
- package/dist/browser/api/memberCapOverrides/operations.js.map +1 -0
- package/dist/browser/api/memberCapOverrides/options.d.ts +14 -0
- package/dist/browser/api/memberCapOverrides/options.js.map +1 -0
- package/dist/browser/api/operations/operations.js +5 -3
- package/dist/browser/api/operations/operations.js.map +1 -1
- package/dist/browser/api/sharedLimitCaps/index.d.ts +3 -0
- package/dist/browser/api/sharedLimitCaps/index.js +4 -0
- package/dist/browser/api/sharedLimitCaps/index.js.map +1 -0
- package/dist/browser/api/sharedLimitCaps/operations.d.ts +30 -0
- package/dist/browser/api/sharedLimitCaps/operations.js +160 -0
- package/dist/browser/api/sharedLimitCaps/operations.js.map +1 -0
- package/dist/browser/api/sharedLimitCaps/options.d.ts +17 -0
- package/dist/browser/api/sharedLimitCaps/options.js.map +1 -0
- package/dist/browser/api/sharedLimits/operations.d.ts +0 -5
- package/dist/browser/api/sharedLimits/operations.js +17 -14
- package/dist/browser/api/sharedLimits/operations.js.map +1 -1
- package/dist/browser/api/vmFamilies/index.d.ts +3 -0
- package/dist/browser/api/vmFamilies/index.js +4 -0
- package/dist/browser/api/vmFamilies/index.js.map +1 -0
- package/dist/browser/api/vmFamilies/operations.d.ts +14 -0
- package/dist/browser/api/vmFamilies/operations.js +66 -0
- package/dist/browser/api/vmFamilies/operations.js.map +1 -0
- package/dist/browser/api/vmFamilies/options.d.ts +10 -0
- package/dist/browser/api/vmFamilies/options.js.map +1 -0
- package/dist/browser/classic/features/index.d.ts +3 -1
- package/dist/browser/classic/features/index.js +2 -1
- package/dist/browser/classic/features/index.js.map +1 -1
- package/dist/browser/classic/guestSubscriptions/index.d.ts +0 -5
- package/dist/browser/classic/guestSubscriptions/index.js.map +1 -1
- package/dist/browser/classic/index.d.ts +3 -0
- package/dist/browser/classic/index.js.map +1 -1
- package/dist/browser/classic/memberCapOverrides/index.d.ts +17 -0
- package/dist/browser/classic/memberCapOverrides/index.js +17 -0
- package/dist/browser/classic/memberCapOverrides/index.js.map +1 -0
- package/dist/browser/classic/sharedLimitCaps/index.d.ts +23 -0
- package/dist/browser/classic/sharedLimitCaps/index.js +18 -0
- package/dist/browser/classic/sharedLimitCaps/index.js.map +1 -0
- package/dist/browser/classic/sharedLimits/index.d.ts +0 -5
- package/dist/browser/classic/sharedLimits/index.js.map +1 -1
- package/dist/browser/classic/vmFamilies/index.d.ts +13 -0
- package/dist/browser/classic/vmFamilies/index.js +15 -0
- package/dist/browser/classic/vmFamilies/index.js.map +1 -0
- package/dist/browser/computeLimitClient.d.ts +9 -0
- package/dist/browser/computeLimitClient.js +12 -0
- package/dist/browser/computeLimitClient.js.map +1 -1
- package/dist/browser/index.d.ts +7 -3
- package/dist/browser/index.js +1 -0
- package/dist/browser/index.js.map +1 -1
- package/dist/browser/models/index.d.ts +1 -1
- package/dist/browser/models/index.js.map +1 -1
- package/dist/browser/models/models.d.ts +144 -1
- package/dist/browser/models/models.js +157 -0
- package/dist/browser/models/models.js.map +1 -1
- package/dist/browser/restorePollerHelpers.js +3 -2
- package/dist/browser/restorePollerHelpers.js.map +1 -1
- package/dist/browser/static-helpers/pagingHelpers.js +1 -1
- package/dist/browser/static-helpers/pagingHelpers.js.map +1 -1
- package/dist/browser/static-helpers/pollingHelpers.d.ts +1 -1
- package/dist/browser/static-helpers/pollingHelpers.js +1 -1
- package/dist/browser/static-helpers/pollingHelpers.js.map +1 -1
- package/dist/commonjs/api/computeLimitContext.js +4 -2
- package/dist/commonjs/api/computeLimitContext.js.map +2 -2
- package/dist/commonjs/api/features/index.d.ts +2 -2
- package/dist/commonjs/api/features/index.js +2 -0
- package/dist/commonjs/api/features/index.js.map +2 -2
- package/dist/commonjs/api/features/operations.d.ts +5 -1
- package/dist/commonjs/api/features/operations.js +63 -11
- package/dist/commonjs/api/features/operations.js.map +2 -2
- package/dist/commonjs/api/features/options.d.ts +8 -0
- package/dist/commonjs/api/features/options.js.map +1 -1
- package/dist/commonjs/api/guestSubscriptions/operations.d.ts +0 -5
- package/dist/commonjs/api/guestSubscriptions/operations.js +17 -9
- package/dist/commonjs/api/guestSubscriptions/operations.js.map +2 -2
- package/dist/commonjs/api/memberCapOverrides/index.d.ts +3 -0
- package/dist/commonjs/api/memberCapOverrides/index.js +34 -0
- package/dist/commonjs/api/memberCapOverrides/index.js.map +7 -0
- package/dist/commonjs/api/memberCapOverrides/operations.d.ts +22 -0
- package/dist/commonjs/api/memberCapOverrides/operations.js +199 -0
- package/dist/commonjs/api/memberCapOverrides/operations.js.map +7 -0
- package/dist/commonjs/api/memberCapOverrides/options.d.ts +14 -0
- package/dist/commonjs/api/memberCapOverrides/options.js +16 -0
- package/dist/commonjs/api/memberCapOverrides/options.js.map +7 -0
- package/dist/commonjs/api/operations/operations.js +5 -3
- package/dist/commonjs/api/operations/operations.js.map +2 -2
- package/dist/commonjs/api/sharedLimitCaps/index.d.ts +3 -0
- package/dist/commonjs/api/sharedLimitCaps/index.js +36 -0
- package/dist/commonjs/api/sharedLimitCaps/index.js.map +7 -0
- package/dist/commonjs/api/sharedLimitCaps/operations.d.ts +30 -0
- package/dist/commonjs/api/sharedLimitCaps/operations.js +229 -0
- package/dist/commonjs/api/sharedLimitCaps/operations.js.map +7 -0
- package/dist/commonjs/api/sharedLimitCaps/options.d.ts +17 -0
- package/dist/commonjs/api/sharedLimitCaps/options.js +16 -0
- package/dist/commonjs/api/sharedLimitCaps/options.js.map +7 -0
- package/dist/commonjs/api/sharedLimits/operations.d.ts +0 -5
- package/dist/commonjs/api/sharedLimits/operations.js +17 -9
- package/dist/commonjs/api/sharedLimits/operations.js.map +2 -2
- package/dist/commonjs/api/vmFamilies/index.d.ts +3 -0
- package/dist/commonjs/api/vmFamilies/index.js +30 -0
- package/dist/commonjs/api/vmFamilies/index.js.map +7 -0
- package/dist/commonjs/api/vmFamilies/operations.d.ts +14 -0
- package/dist/commonjs/api/vmFamilies/operations.js +112 -0
- package/dist/commonjs/api/vmFamilies/operations.js.map +7 -0
- package/dist/commonjs/api/vmFamilies/options.d.ts +10 -0
- package/dist/commonjs/api/vmFamilies/options.js +16 -0
- package/dist/commonjs/api/vmFamilies/options.js.map +7 -0
- package/dist/commonjs/classic/features/index.d.ts +3 -1
- package/dist/commonjs/classic/features/index.js +1 -0
- package/dist/commonjs/classic/features/index.js.map +2 -2
- package/dist/commonjs/classic/guestSubscriptions/index.d.ts +0 -5
- package/dist/commonjs/classic/guestSubscriptions/index.js.map +2 -2
- package/dist/commonjs/classic/index.d.ts +3 -0
- package/dist/commonjs/classic/index.js.map +1 -1
- package/dist/commonjs/classic/memberCapOverrides/index.d.ts +17 -0
- package/dist/commonjs/classic/memberCapOverrides/index.js +41 -0
- package/dist/commonjs/classic/memberCapOverrides/index.js.map +7 -0
- package/dist/commonjs/classic/sharedLimitCaps/index.d.ts +23 -0
- package/dist/commonjs/classic/sharedLimitCaps/index.js +42 -0
- package/dist/commonjs/classic/sharedLimitCaps/index.js.map +7 -0
- package/dist/commonjs/classic/sharedLimits/index.d.ts +0 -5
- package/dist/commonjs/classic/sharedLimits/index.js.map +2 -2
- package/dist/commonjs/classic/vmFamilies/index.d.ts +13 -0
- package/dist/commonjs/classic/vmFamilies/index.js +39 -0
- package/dist/commonjs/classic/vmFamilies/index.js.map +7 -0
- package/dist/commonjs/computeLimitClient.d.ts +9 -0
- package/dist/commonjs/computeLimitClient.js +12 -0
- package/dist/commonjs/computeLimitClient.js.map +2 -2
- package/dist/commonjs/index.d.ts +7 -3
- package/dist/commonjs/index.js +5 -0
- package/dist/commonjs/index.js.map +2 -2
- package/dist/commonjs/models/index.d.ts +1 -1
- package/dist/commonjs/models/index.js.map +2 -2
- package/dist/commonjs/models/models.d.ts +144 -1
- package/dist/commonjs/models/models.js +190 -2
- package/dist/commonjs/models/models.js.map +2 -2
- package/dist/commonjs/restorePollerHelpers.js +2 -1
- package/dist/commonjs/restorePollerHelpers.js.map +2 -2
- package/dist/commonjs/static-helpers/pagingHelpers.js +1 -1
- package/dist/commonjs/static-helpers/pagingHelpers.js.map +2 -2
- package/dist/commonjs/static-helpers/pollingHelpers.d.ts +1 -1
- package/dist/commonjs/static-helpers/pollingHelpers.js +1 -1
- package/dist/commonjs/static-helpers/pollingHelpers.js.map +2 -2
- package/dist/commonjs/tsdoc-metadata.json +1 -1
- package/dist/esm/api/computeLimitContext.js +4 -2
- package/dist/esm/api/computeLimitContext.js.map +1 -1
- package/dist/esm/api/features/index.d.ts +2 -2
- package/dist/esm/api/features/index.js +1 -1
- package/dist/esm/api/features/index.js.map +1 -1
- package/dist/esm/api/features/operations.d.ts +5 -1
- package/dist/esm/api/features/operations.js +54 -11
- package/dist/esm/api/features/operations.js.map +1 -1
- package/dist/esm/api/features/options.d.ts +8 -0
- package/dist/esm/api/features/options.js.map +1 -1
- package/dist/esm/api/guestSubscriptions/operations.d.ts +0 -5
- package/dist/esm/api/guestSubscriptions/operations.js +17 -14
- package/dist/esm/api/guestSubscriptions/operations.js.map +1 -1
- package/dist/esm/api/memberCapOverrides/index.d.ts +3 -0
- package/dist/esm/api/memberCapOverrides/index.js +4 -0
- package/dist/esm/api/memberCapOverrides/index.js.map +1 -0
- package/dist/esm/api/memberCapOverrides/operations.d.ts +22 -0
- package/dist/esm/api/memberCapOverrides/operations.js +128 -0
- package/dist/esm/api/memberCapOverrides/operations.js.map +1 -0
- package/dist/esm/api/memberCapOverrides/options.d.ts +14 -0
- package/dist/esm/api/memberCapOverrides/options.js.map +1 -0
- package/dist/esm/api/operations/operations.js +5 -3
- package/dist/esm/api/operations/operations.js.map +1 -1
- package/dist/esm/api/sharedLimitCaps/index.d.ts +3 -0
- package/dist/esm/api/sharedLimitCaps/index.js +4 -0
- package/dist/esm/api/sharedLimitCaps/index.js.map +1 -0
- package/dist/esm/api/sharedLimitCaps/operations.d.ts +30 -0
- package/dist/esm/api/sharedLimitCaps/operations.js +160 -0
- package/dist/esm/api/sharedLimitCaps/operations.js.map +1 -0
- package/dist/esm/api/sharedLimitCaps/options.d.ts +17 -0
- package/dist/esm/api/sharedLimitCaps/options.js +4 -0
- package/dist/esm/api/sharedLimitCaps/options.js.map +1 -0
- package/dist/esm/api/sharedLimits/operations.d.ts +0 -5
- package/dist/esm/api/sharedLimits/operations.js +17 -14
- package/dist/esm/api/sharedLimits/operations.js.map +1 -1
- package/dist/esm/api/vmFamilies/index.d.ts +3 -0
- package/dist/esm/api/vmFamilies/index.js +4 -0
- package/dist/esm/api/vmFamilies/index.js.map +1 -0
- package/dist/esm/api/vmFamilies/operations.d.ts +14 -0
- package/dist/esm/api/vmFamilies/operations.js +66 -0
- package/dist/esm/api/vmFamilies/operations.js.map +1 -0
- package/dist/esm/api/vmFamilies/options.d.ts +10 -0
- package/dist/esm/api/vmFamilies/options.js +4 -0
- package/dist/esm/api/vmFamilies/options.js.map +1 -0
- package/dist/esm/classic/features/index.d.ts +3 -1
- package/dist/esm/classic/features/index.js +2 -1
- package/dist/esm/classic/features/index.js.map +1 -1
- package/dist/esm/classic/guestSubscriptions/index.d.ts +0 -5
- package/dist/esm/classic/guestSubscriptions/index.js.map +1 -1
- package/dist/esm/classic/index.d.ts +3 -0
- package/dist/esm/classic/index.js.map +1 -1
- package/dist/esm/classic/memberCapOverrides/index.d.ts +17 -0
- package/dist/esm/classic/memberCapOverrides/index.js +17 -0
- package/dist/esm/classic/memberCapOverrides/index.js.map +1 -0
- package/dist/esm/classic/sharedLimitCaps/index.d.ts +23 -0
- package/dist/esm/classic/sharedLimitCaps/index.js +18 -0
- package/dist/esm/classic/sharedLimitCaps/index.js.map +1 -0
- package/dist/esm/classic/sharedLimits/index.d.ts +0 -5
- package/dist/esm/classic/sharedLimits/index.js.map +1 -1
- package/dist/esm/classic/vmFamilies/index.d.ts +13 -0
- package/dist/esm/classic/vmFamilies/index.js +15 -0
- package/dist/esm/classic/vmFamilies/index.js.map +1 -0
- package/dist/esm/computeLimitClient.d.ts +9 -0
- package/dist/esm/computeLimitClient.js +12 -0
- package/dist/esm/computeLimitClient.js.map +1 -1
- package/dist/esm/index.d.ts +7 -3
- package/dist/esm/index.js +1 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/models/index.d.ts +1 -1
- package/dist/esm/models/index.js.map +1 -1
- package/dist/esm/models/models.d.ts +144 -1
- package/dist/esm/models/models.js +157 -0
- package/dist/esm/models/models.js.map +1 -1
- package/dist/esm/restorePollerHelpers.js +3 -2
- package/dist/esm/restorePollerHelpers.js.map +1 -1
- package/dist/esm/static-helpers/pagingHelpers.js +1 -1
- package/dist/esm/static-helpers/pagingHelpers.js.map +1 -1
- package/dist/esm/static-helpers/pollingHelpers.d.ts +1 -1
- package/dist/esm/static-helpers/pollingHelpers.js +1 -1
- package/dist/esm/static-helpers/pollingHelpers.js.map +1 -1
- package/package.json +60 -38
- package/dist/react-native/api/computeLimitContext.d.ts +0 -22
- package/dist/react-native/api/computeLimitContext.js +0 -24
- package/dist/react-native/api/computeLimitContext.js.map +0 -1
- package/dist/react-native/api/features/index.d.ts +0 -3
- package/dist/react-native/api/features/index.js +0 -4
- package/dist/react-native/api/features/index.js.map +0 -1
- package/dist/react-native/api/features/operations.d.ts +0 -19
- package/dist/react-native/api/features/operations.js +0 -95
- package/dist/react-native/api/features/operations.js.map +0 -1
- package/dist/react-native/api/features/options.d.ts +0 -13
- package/dist/react-native/api/features/options.js.map +0 -1
- package/dist/react-native/api/guestSubscriptions/index.d.ts +0 -3
- package/dist/react-native/api/guestSubscriptions/index.js +0 -4
- package/dist/react-native/api/guestSubscriptions/index.js.map +0 -1
- package/dist/react-native/api/guestSubscriptions/operations.d.ts +0 -27
- package/dist/react-native/api/guestSubscriptions/operations.js +0 -125
- package/dist/react-native/api/guestSubscriptions/operations.js.map +0 -1
- package/dist/react-native/api/guestSubscriptions/options.d.ts +0 -14
- package/dist/react-native/api/guestSubscriptions/options.js.map +0 -1
- package/dist/react-native/api/index.d.ts +0 -3
- package/dist/react-native/api/index.js +0 -4
- package/dist/react-native/api/index.js.map +0 -1
- package/dist/react-native/api/operations/index.d.ts +0 -3
- package/dist/react-native/api/operations/index.js +0 -4
- package/dist/react-native/api/operations/index.js.map +0 -1
- package/dist/react-native/api/operations/operations.d.ts +0 -10
- package/dist/react-native/api/operations/operations.js +0 -31
- package/dist/react-native/api/operations/operations.js.map +0 -1
- package/dist/react-native/api/operations/options.d.ts +0 -5
- package/dist/react-native/api/operations/options.js.map +0 -1
- package/dist/react-native/api/sharedLimits/index.d.ts +0 -3
- package/dist/react-native/api/sharedLimits/index.js +0 -4
- package/dist/react-native/api/sharedLimits/index.js.map +0 -1
- package/dist/react-native/api/sharedLimits/operations.d.ts +0 -27
- package/dist/react-native/api/sharedLimits/operations.js +0 -121
- package/dist/react-native/api/sharedLimits/operations.js.map +0 -1
- package/dist/react-native/api/sharedLimits/options.d.ts +0 -14
- package/dist/react-native/api/sharedLimits/options.js.map +0 -1
- package/dist/react-native/classic/features/index.d.ts +0 -16
- package/dist/react-native/classic/features/index.js +0 -16
- package/dist/react-native/classic/features/index.js.map +0 -1
- package/dist/react-native/classic/guestSubscriptions/index.d.ts +0 -22
- package/dist/react-native/classic/guestSubscriptions/index.js +0 -17
- package/dist/react-native/classic/guestSubscriptions/index.js.map +0 -1
- package/dist/react-native/classic/index.d.ts +0 -5
- package/dist/react-native/classic/index.js +0 -4
- package/dist/react-native/classic/index.js.map +0 -1
- package/dist/react-native/classic/operations/index.d.ts +0 -11
- package/dist/react-native/classic/operations/index.js +0 -14
- package/dist/react-native/classic/operations/index.js.map +0 -1
- package/dist/react-native/classic/sharedLimits/index.d.ts +0 -22
- package/dist/react-native/classic/sharedLimits/index.js +0 -17
- package/dist/react-native/classic/sharedLimits/index.js.map +0 -1
- package/dist/react-native/computeLimitClient.d.ts +0 -24
- package/dist/react-native/computeLimitClient.js +0 -37
- package/dist/react-native/computeLimitClient.js.map +0 -1
- package/dist/react-native/index.d.ts +0 -18
- package/dist/react-native/index.js +0 -8
- package/dist/react-native/index.js.map +0 -1
- package/dist/react-native/logger.d.ts +0 -2
- package/dist/react-native/logger.js +0 -5
- package/dist/react-native/logger.js.map +0 -1
- package/dist/react-native/models/index.d.ts +0 -3
- package/dist/react-native/models/index.js +0 -4
- package/dist/react-native/models/index.js.map +0 -1
- package/dist/react-native/models/models.d.ts +0 -308
- package/dist/react-native/models/models.js +0 -304
- package/dist/react-native/models/models.js.map +0 -1
- package/dist/react-native/package.json +0 -3
- package/dist/react-native/restorePollerHelpers.d.ts +0 -21
- package/dist/react-native/restorePollerHelpers.js +0 -94
- package/dist/react-native/restorePollerHelpers.js.map +0 -1
- package/dist/react-native/static-helpers/cloudSettingHelpers.d.ts +0 -22
- package/dist/react-native/static-helpers/cloudSettingHelpers.js +0 -38
- package/dist/react-native/static-helpers/cloudSettingHelpers.js.map +0 -1
- package/dist/react-native/static-helpers/pagingHelpers.d.ts +0 -74
- package/dist/react-native/static-helpers/pagingHelpers.js +0 -143
- package/dist/react-native/static-helpers/pagingHelpers.js.map +0 -1
- package/dist/react-native/static-helpers/pollingHelpers.d.ts +0 -34
- package/dist/react-native/static-helpers/pollingHelpers.js +0 -95
- package/dist/react-native/static-helpers/pollingHelpers.js.map +0 -1
- package/dist/react-native/static-helpers/urlTemplate.d.ts +0 -5
- package/dist/react-native/static-helpers/urlTemplate.js +0 -200
- package/dist/react-native/static-helpers/urlTemplate.js.map +0 -1
- /package/dist/{react-native/api/features → browser/api/memberCapOverrides}/options.js +0 -0
- /package/dist/{react-native/api/guestSubscriptions → browser/api/sharedLimitCaps}/options.js +0 -0
- /package/dist/{react-native/api/operations → browser/api/vmFamilies}/options.js +0 -0
- /package/dist/{react-native/api/sharedLimits → esm/api/memberCapOverrides}/options.js +0 -0
|
@@ -1,304 +0,0 @@
|
|
|
1
|
-
// Copyright (c) Microsoft Corporation.
|
|
2
|
-
// Licensed under the MIT License.
|
|
3
|
-
export function _operationListResultDeserializer(item) {
|
|
4
|
-
return {
|
|
5
|
-
value: operationArrayDeserializer(item["value"]),
|
|
6
|
-
nextLink: item["nextLink"],
|
|
7
|
-
};
|
|
8
|
-
}
|
|
9
|
-
export function operationArrayDeserializer(result) {
|
|
10
|
-
return result.map((item) => {
|
|
11
|
-
return operationDeserializer(item);
|
|
12
|
-
});
|
|
13
|
-
}
|
|
14
|
-
export function operationDeserializer(item) {
|
|
15
|
-
return {
|
|
16
|
-
name: item["name"],
|
|
17
|
-
isDataAction: item["isDataAction"],
|
|
18
|
-
display: !item["display"] ? item["display"] : operationDisplayDeserializer(item["display"]),
|
|
19
|
-
origin: item["origin"],
|
|
20
|
-
actionType: item["actionType"],
|
|
21
|
-
};
|
|
22
|
-
}
|
|
23
|
-
export function operationDisplayDeserializer(item) {
|
|
24
|
-
return {
|
|
25
|
-
provider: item["provider"],
|
|
26
|
-
resource: item["resource"],
|
|
27
|
-
operation: item["operation"],
|
|
28
|
-
description: item["description"],
|
|
29
|
-
};
|
|
30
|
-
}
|
|
31
|
-
/** The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default value is "user,system" */
|
|
32
|
-
export var KnownOrigin;
|
|
33
|
-
(function (KnownOrigin) {
|
|
34
|
-
/** Indicates the operation is initiated by a user. */
|
|
35
|
-
KnownOrigin["User"] = "user";
|
|
36
|
-
/** Indicates the operation is initiated by a system. */
|
|
37
|
-
KnownOrigin["System"] = "system";
|
|
38
|
-
/** Indicates the operation is initiated by a user or system. */
|
|
39
|
-
KnownOrigin["UserSystem"] = "user,system";
|
|
40
|
-
})(KnownOrigin || (KnownOrigin = {}));
|
|
41
|
-
/** Extensible enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs. */
|
|
42
|
-
export var KnownActionType;
|
|
43
|
-
(function (KnownActionType) {
|
|
44
|
-
/** Actions are for internal-only APIs. */
|
|
45
|
-
KnownActionType["Internal"] = "Internal";
|
|
46
|
-
})(KnownActionType || (KnownActionType = {}));
|
|
47
|
-
export function errorResponseDeserializer(item) {
|
|
48
|
-
return {
|
|
49
|
-
error: !item["error"] ? item["error"] : errorDetailDeserializer(item["error"]),
|
|
50
|
-
};
|
|
51
|
-
}
|
|
52
|
-
export function errorDetailDeserializer(item) {
|
|
53
|
-
return {
|
|
54
|
-
code: item["code"],
|
|
55
|
-
message: item["message"],
|
|
56
|
-
target: item["target"],
|
|
57
|
-
details: !item["details"] ? item["details"] : errorDetailArrayDeserializer(item["details"]),
|
|
58
|
-
additionalInfo: !item["additionalInfo"]
|
|
59
|
-
? item["additionalInfo"]
|
|
60
|
-
: errorAdditionalInfoArrayDeserializer(item["additionalInfo"]),
|
|
61
|
-
};
|
|
62
|
-
}
|
|
63
|
-
export function errorDetailArrayDeserializer(result) {
|
|
64
|
-
return result.map((item) => {
|
|
65
|
-
return errorDetailDeserializer(item);
|
|
66
|
-
});
|
|
67
|
-
}
|
|
68
|
-
export function errorAdditionalInfoArrayDeserializer(result) {
|
|
69
|
-
return result.map((item) => {
|
|
70
|
-
return errorAdditionalInfoDeserializer(item);
|
|
71
|
-
});
|
|
72
|
-
}
|
|
73
|
-
export function errorAdditionalInfoDeserializer(item) {
|
|
74
|
-
return {
|
|
75
|
-
type: item["type"],
|
|
76
|
-
info: item["info"],
|
|
77
|
-
};
|
|
78
|
-
}
|
|
79
|
-
export function guestSubscriptionSerializer(item) {
|
|
80
|
-
return {
|
|
81
|
-
properties: !item["properties"]
|
|
82
|
-
? item["properties"]
|
|
83
|
-
: guestSubscriptionPropertiesSerializer(item["properties"]),
|
|
84
|
-
};
|
|
85
|
-
}
|
|
86
|
-
export function guestSubscriptionDeserializer(item) {
|
|
87
|
-
return {
|
|
88
|
-
id: item["id"],
|
|
89
|
-
name: item["name"],
|
|
90
|
-
type: item["type"],
|
|
91
|
-
systemData: !item["systemData"]
|
|
92
|
-
? item["systemData"]
|
|
93
|
-
: systemDataDeserializer(item["systemData"]),
|
|
94
|
-
properties: !item["properties"]
|
|
95
|
-
? item["properties"]
|
|
96
|
-
: guestSubscriptionPropertiesDeserializer(item["properties"]),
|
|
97
|
-
};
|
|
98
|
-
}
|
|
99
|
-
export function guestSubscriptionPropertiesSerializer(_item) {
|
|
100
|
-
return {};
|
|
101
|
-
}
|
|
102
|
-
export function guestSubscriptionPropertiesDeserializer(item) {
|
|
103
|
-
return {
|
|
104
|
-
provisioningState: item["provisioningState"],
|
|
105
|
-
};
|
|
106
|
-
}
|
|
107
|
-
/** The provisioning state of a resource type. */
|
|
108
|
-
export var KnownResourceProvisioningState;
|
|
109
|
-
(function (KnownResourceProvisioningState) {
|
|
110
|
-
/** Resource has been created. */
|
|
111
|
-
KnownResourceProvisioningState["Succeeded"] = "Succeeded";
|
|
112
|
-
/** Resource creation failed. */
|
|
113
|
-
KnownResourceProvisioningState["Failed"] = "Failed";
|
|
114
|
-
/** Resource creation was canceled. */
|
|
115
|
-
KnownResourceProvisioningState["Canceled"] = "Canceled";
|
|
116
|
-
})(KnownResourceProvisioningState || (KnownResourceProvisioningState = {}));
|
|
117
|
-
export function proxyResourceSerializer(_item) {
|
|
118
|
-
return {};
|
|
119
|
-
}
|
|
120
|
-
export function proxyResourceDeserializer(item) {
|
|
121
|
-
return {
|
|
122
|
-
id: item["id"],
|
|
123
|
-
name: item["name"],
|
|
124
|
-
type: item["type"],
|
|
125
|
-
systemData: !item["systemData"]
|
|
126
|
-
? item["systemData"]
|
|
127
|
-
: systemDataDeserializer(item["systemData"]),
|
|
128
|
-
};
|
|
129
|
-
}
|
|
130
|
-
export function resourceSerializer(_item) {
|
|
131
|
-
return {};
|
|
132
|
-
}
|
|
133
|
-
export function resourceDeserializer(item) {
|
|
134
|
-
return {
|
|
135
|
-
id: item["id"],
|
|
136
|
-
name: item["name"],
|
|
137
|
-
type: item["type"],
|
|
138
|
-
systemData: !item["systemData"]
|
|
139
|
-
? item["systemData"]
|
|
140
|
-
: systemDataDeserializer(item["systemData"]),
|
|
141
|
-
};
|
|
142
|
-
}
|
|
143
|
-
export function systemDataDeserializer(item) {
|
|
144
|
-
return {
|
|
145
|
-
createdBy: item["createdBy"],
|
|
146
|
-
createdByType: item["createdByType"],
|
|
147
|
-
createdAt: !item["createdAt"] ? item["createdAt"] : new Date(item["createdAt"]),
|
|
148
|
-
lastModifiedBy: item["lastModifiedBy"],
|
|
149
|
-
lastModifiedByType: item["lastModifiedByType"],
|
|
150
|
-
lastModifiedAt: !item["lastModifiedAt"]
|
|
151
|
-
? item["lastModifiedAt"]
|
|
152
|
-
: new Date(item["lastModifiedAt"]),
|
|
153
|
-
};
|
|
154
|
-
}
|
|
155
|
-
/** The kind of entity that created the resource. */
|
|
156
|
-
export var KnownCreatedByType;
|
|
157
|
-
(function (KnownCreatedByType) {
|
|
158
|
-
/** The entity was created by a user. */
|
|
159
|
-
KnownCreatedByType["User"] = "User";
|
|
160
|
-
/** The entity was created by an application. */
|
|
161
|
-
KnownCreatedByType["Application"] = "Application";
|
|
162
|
-
/** The entity was created by a managed identity. */
|
|
163
|
-
KnownCreatedByType["ManagedIdentity"] = "ManagedIdentity";
|
|
164
|
-
/** The entity was created by a key. */
|
|
165
|
-
KnownCreatedByType["Key"] = "Key";
|
|
166
|
-
})(KnownCreatedByType || (KnownCreatedByType = {}));
|
|
167
|
-
export function _guestSubscriptionListResultDeserializer(item) {
|
|
168
|
-
return {
|
|
169
|
-
value: guestSubscriptionArrayDeserializer(item["value"]),
|
|
170
|
-
nextLink: item["nextLink"],
|
|
171
|
-
};
|
|
172
|
-
}
|
|
173
|
-
export function guestSubscriptionArraySerializer(result) {
|
|
174
|
-
return result.map((item) => {
|
|
175
|
-
return guestSubscriptionSerializer(item);
|
|
176
|
-
});
|
|
177
|
-
}
|
|
178
|
-
export function guestSubscriptionArrayDeserializer(result) {
|
|
179
|
-
return result.map((item) => {
|
|
180
|
-
return guestSubscriptionDeserializer(item);
|
|
181
|
-
});
|
|
182
|
-
}
|
|
183
|
-
export function sharedLimitSerializer(item) {
|
|
184
|
-
return {
|
|
185
|
-
properties: !item["properties"]
|
|
186
|
-
? item["properties"]
|
|
187
|
-
: sharedLimitPropertiesSerializer(item["properties"]),
|
|
188
|
-
};
|
|
189
|
-
}
|
|
190
|
-
export function sharedLimitDeserializer(item) {
|
|
191
|
-
return {
|
|
192
|
-
id: item["id"],
|
|
193
|
-
name: item["name"],
|
|
194
|
-
type: item["type"],
|
|
195
|
-
systemData: !item["systemData"]
|
|
196
|
-
? item["systemData"]
|
|
197
|
-
: systemDataDeserializer(item["systemData"]),
|
|
198
|
-
properties: !item["properties"]
|
|
199
|
-
? item["properties"]
|
|
200
|
-
: sharedLimitPropertiesDeserializer(item["properties"]),
|
|
201
|
-
};
|
|
202
|
-
}
|
|
203
|
-
export function sharedLimitPropertiesSerializer(_item) {
|
|
204
|
-
return {};
|
|
205
|
-
}
|
|
206
|
-
export function sharedLimitPropertiesDeserializer(item) {
|
|
207
|
-
return {
|
|
208
|
-
resourceName: !item["resourceName"]
|
|
209
|
-
? item["resourceName"]
|
|
210
|
-
: limitNameDeserializer(item["resourceName"]),
|
|
211
|
-
limit: item["limit"],
|
|
212
|
-
unit: item["unit"],
|
|
213
|
-
provisioningState: item["provisioningState"],
|
|
214
|
-
};
|
|
215
|
-
}
|
|
216
|
-
export function limitNameDeserializer(item) {
|
|
217
|
-
return {
|
|
218
|
-
value: item["value"],
|
|
219
|
-
localizedValue: item["localizedValue"],
|
|
220
|
-
};
|
|
221
|
-
}
|
|
222
|
-
export function _sharedLimitListResultDeserializer(item) {
|
|
223
|
-
return {
|
|
224
|
-
value: sharedLimitArrayDeserializer(item["value"]),
|
|
225
|
-
nextLink: item["nextLink"],
|
|
226
|
-
};
|
|
227
|
-
}
|
|
228
|
-
export function sharedLimitArraySerializer(result) {
|
|
229
|
-
return result.map((item) => {
|
|
230
|
-
return sharedLimitSerializer(item);
|
|
231
|
-
});
|
|
232
|
-
}
|
|
233
|
-
export function sharedLimitArrayDeserializer(result) {
|
|
234
|
-
return result.map((item) => {
|
|
235
|
-
return sharedLimitDeserializer(item);
|
|
236
|
-
});
|
|
237
|
-
}
|
|
238
|
-
export function featureDeserializer(item) {
|
|
239
|
-
return {
|
|
240
|
-
id: item["id"],
|
|
241
|
-
name: item["name"],
|
|
242
|
-
type: item["type"],
|
|
243
|
-
systemData: !item["systemData"]
|
|
244
|
-
? item["systemData"]
|
|
245
|
-
: systemDataDeserializer(item["systemData"]),
|
|
246
|
-
properties: !item["properties"]
|
|
247
|
-
? item["properties"]
|
|
248
|
-
: featurePropertiesDeserializer(item["properties"]),
|
|
249
|
-
};
|
|
250
|
-
}
|
|
251
|
-
export function featurePropertiesDeserializer(item) {
|
|
252
|
-
return {
|
|
253
|
-
state: item["state"],
|
|
254
|
-
provisioningState: item["provisioningState"],
|
|
255
|
-
};
|
|
256
|
-
}
|
|
257
|
-
/** The allowed states for a compute limit feature. */
|
|
258
|
-
export var KnownFeatureState;
|
|
259
|
-
(function (KnownFeatureState) {
|
|
260
|
-
/** The feature is enabled. */
|
|
261
|
-
KnownFeatureState["Enabled"] = "Enabled";
|
|
262
|
-
/** The feature is disabled. */
|
|
263
|
-
KnownFeatureState["Disabled"] = "Disabled";
|
|
264
|
-
})(KnownFeatureState || (KnownFeatureState = {}));
|
|
265
|
-
export function _featureListResultDeserializer(item) {
|
|
266
|
-
return {
|
|
267
|
-
value: featureArrayDeserializer(item["value"]),
|
|
268
|
-
nextLink: item["nextLink"],
|
|
269
|
-
};
|
|
270
|
-
}
|
|
271
|
-
export function featureArrayDeserializer(result) {
|
|
272
|
-
return result.map((item) => {
|
|
273
|
-
return featureDeserializer(item);
|
|
274
|
-
});
|
|
275
|
-
}
|
|
276
|
-
export function operationStatusResultDeserializer(item) {
|
|
277
|
-
return {
|
|
278
|
-
id: item["id"],
|
|
279
|
-
name: item["name"],
|
|
280
|
-
status: item["status"],
|
|
281
|
-
percentComplete: item["percentComplete"],
|
|
282
|
-
startTime: !item["startTime"] ? item["startTime"] : new Date(item["startTime"]),
|
|
283
|
-
endTime: !item["endTime"] ? item["endTime"] : new Date(item["endTime"]),
|
|
284
|
-
operations: !item["operations"]
|
|
285
|
-
? item["operations"]
|
|
286
|
-
: operationStatusResultArrayDeserializer(item["operations"]),
|
|
287
|
-
error: !item["error"] ? item["error"] : errorDetailDeserializer(item["error"]),
|
|
288
|
-
resourceId: item["resourceId"],
|
|
289
|
-
};
|
|
290
|
-
}
|
|
291
|
-
export function operationStatusResultArrayDeserializer(result) {
|
|
292
|
-
return result.map((item) => {
|
|
293
|
-
return operationStatusResultDeserializer(item);
|
|
294
|
-
});
|
|
295
|
-
}
|
|
296
|
-
/** The available API versions. */
|
|
297
|
-
export var KnownVersions;
|
|
298
|
-
(function (KnownVersions) {
|
|
299
|
-
/** The 2025-08-15 API version. */
|
|
300
|
-
KnownVersions["V20250815"] = "2025-08-15";
|
|
301
|
-
/** The 2026-03-20 API version. */
|
|
302
|
-
KnownVersions["V20260320"] = "2026-03-20";
|
|
303
|
-
})(KnownVersions || (KnownVersions = {}));
|
|
304
|
-
//# sourceMappingURL=models.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"models.js","sourceRoot":"","sources":["../../../src/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IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,uBAAuB,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC9E,UAAU,EAAE,IAAI,CAAC,YAAY,CAAC;KAC/B,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,sCAAsC,CACpD,MAAoC;IAEpC,OAAO,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE;QACzB,OAAO,iCAAiC,CAAC,IAAI,CAAC,CAAC;IACjD,CAAC,CAAC,CAAC;AACL,CAAC;AAED,kCAAkC;AAClC,MAAM,CAAN,IAAY,aAKX;AALD,WAAY,aAAa;IACvB,kCAAkC;IAClC,yCAAwB,CAAA;IACxB,kCAAkC;IAClC,yCAAwB,CAAA;AAC1B,CAAC,EALW,aAAa,KAAb,aAAa,QAKxB","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\n/**\n * This file contains only generated model types and their (de)serializers.\n * Disable the following rules for internal models with '_' prefix and deserializers which require 'any' for raw JSON input.\n */\n/* eslint-disable @typescript-eslint/naming-convention */\n/* eslint-disable @typescript-eslint/explicit-module-boundary-types */\n/** A list of REST API operations supported by an Azure Resource Provider. It contains an URL link to get the next set of results. */\nexport interface _OperationListResult {\n /** The Operation items on this page */\n value: Operation[];\n /** The link to the next page of items */\n nextLink?: string;\n}\n\nexport function _operationListResultDeserializer(item: any): _OperationListResult {\n return {\n value: operationArrayDeserializer(item[\"value\"]),\n nextLink: item[\"nextLink\"],\n };\n}\n\nexport function operationArrayDeserializer(result: Array<Operation>): any[] {\n return result.map((item) => {\n return operationDeserializer(item);\n });\n}\n\n/** Details of a REST API operation, returned from the Resource Provider Operations API */\nexport interface Operation {\n /** The name of the operation, as per Resource-Based Access Control (RBAC). Examples: \"Microsoft.Compute/virtualMachines/write\", \"Microsoft.Compute/virtualMachines/capture/action\" */\n readonly name?: string;\n /** Whether the operation applies to data-plane. This is \"true\" for data-plane operations and \"false\" for Azure Resource Manager/control-plane operations. */\n readonly isDataAction?: boolean;\n /** Localized display information for this particular operation. */\n display?: OperationDisplay;\n /** The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default value is \"user,system\" */\n readonly origin?: Origin;\n /** Extensible enum. Indicates the action type. \"Internal\" refers to actions that are for internal only APIs. */\n readonly actionType?: ActionType;\n}\n\nexport function operationDeserializer(item: any): Operation {\n return {\n name: item[\"name\"],\n isDataAction: item[\"isDataAction\"],\n display: !item[\"display\"] ? item[\"display\"] : operationDisplayDeserializer(item[\"display\"]),\n origin: item[\"origin\"],\n actionType: item[\"actionType\"],\n };\n}\n\n/** Localized display information for an operation. */\nexport interface OperationDisplay {\n /** The localized friendly form of the resource provider name, e.g. \"Microsoft Monitoring Insights\" or \"Microsoft Compute\". */\n readonly provider?: string;\n /** The localized friendly name of the resource type related to this operation. E.g. \"Virtual Machines\" or \"Job Schedule Collections\". */\n readonly resource?: string;\n /** The concise, localized friendly name for the operation; suitable for dropdowns. E.g. \"Create or Update Virtual Machine\", \"Restart Virtual Machine\". */\n readonly operation?: string;\n /** The short, localized friendly description of the operation; suitable for tool tips and detailed views. */\n readonly description?: string;\n}\n\nexport function operationDisplayDeserializer(item: any): OperationDisplay {\n return {\n provider: item[\"provider\"],\n resource: item[\"resource\"],\n operation: item[\"operation\"],\n description: item[\"description\"],\n };\n}\n\n/** The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default value is \"user,system\" */\nexport enum KnownOrigin {\n /** Indicates the operation is initiated by a user. */\n User = \"user\",\n /** Indicates the operation is initiated by a system. */\n System = \"system\",\n /** Indicates the operation is initiated by a user or system. */\n UserSystem = \"user,system\",\n}\n\n/**\n * The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default value is \"user,system\" \\\n * {@link KnownOrigin} can be used interchangeably with Origin,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **user**: Indicates the operation is initiated by a user. \\\n * **system**: Indicates the operation is initiated by a system. \\\n * **user,system**: Indicates the operation is initiated by a user or system.\n */\nexport type Origin = string;\n\n/** Extensible enum. Indicates the action type. \"Internal\" refers to actions that are for internal only APIs. */\nexport enum KnownActionType {\n /** Actions are for internal-only APIs. */\n Internal = \"Internal\",\n}\n\n/**\n * Extensible enum. Indicates the action type. \"Internal\" refers to actions that are for internal only APIs. \\\n * {@link KnownActionType} can be used interchangeably with ActionType,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **Internal**: Actions are for internal-only APIs.\n */\nexport type ActionType = string;\n\n/** Common error response for all Azure Resource Manager APIs to return error details for failed operations. */\nexport interface ErrorResponse {\n /** The error object. */\n error?: ErrorDetail;\n}\n\nexport function errorResponseDeserializer(item: any): ErrorResponse {\n return {\n error: !item[\"error\"] ? item[\"error\"] : errorDetailDeserializer(item[\"error\"]),\n };\n}\n\n/** The error detail. */\nexport interface ErrorDetail {\n /** The error code. */\n readonly code?: string;\n /** The error message. */\n readonly message?: string;\n /** The error target. */\n readonly target?: string;\n /** The error details. */\n readonly details?: ErrorDetail[];\n /** The error additional info. */\n readonly additionalInfo?: ErrorAdditionalInfo[];\n}\n\nexport function errorDetailDeserializer(item: any): ErrorDetail {\n return {\n code: item[\"code\"],\n message: item[\"message\"],\n target: item[\"target\"],\n details: !item[\"details\"] ? item[\"details\"] : errorDetailArrayDeserializer(item[\"details\"]),\n additionalInfo: !item[\"additionalInfo\"]\n ? item[\"additionalInfo\"]\n : errorAdditionalInfoArrayDeserializer(item[\"additionalInfo\"]),\n };\n}\n\nexport function errorDetailArrayDeserializer(result: Array<ErrorDetail>): any[] {\n return result.map((item) => {\n return errorDetailDeserializer(item);\n });\n}\n\nexport function errorAdditionalInfoArrayDeserializer(result: Array<ErrorAdditionalInfo>): any[] {\n return result.map((item) => {\n return errorAdditionalInfoDeserializer(item);\n });\n}\n\n/** The resource management error additional info. */\nexport interface ErrorAdditionalInfo {\n /** The additional info type. */\n readonly type?: string;\n /** The additional info. */\n readonly info?: any;\n}\n\nexport function errorAdditionalInfoDeserializer(item: any): ErrorAdditionalInfo {\n return {\n type: item[\"type\"],\n info: item[\"info\"],\n };\n}\n\n/** Guest subscription that consumes shared compute limits. */\nexport interface GuestSubscription extends ProxyResource {\n /** The resource-specific properties for this resource. */\n properties?: GuestSubscriptionProperties;\n}\n\nexport function guestSubscriptionSerializer(item: GuestSubscription): any {\n return {\n properties: !item[\"properties\"]\n ? item[\"properties\"]\n : guestSubscriptionPropertiesSerializer(item[\"properties\"]),\n };\n}\n\nexport function guestSubscriptionDeserializer(item: any): GuestSubscription {\n return {\n id: item[\"id\"],\n name: item[\"name\"],\n type: item[\"type\"],\n systemData: !item[\"systemData\"]\n ? item[\"systemData\"]\n : systemDataDeserializer(item[\"systemData\"]),\n properties: !item[\"properties\"]\n ? item[\"properties\"]\n : guestSubscriptionPropertiesDeserializer(item[\"properties\"]),\n };\n}\n\n/** Properties for guest subscription. */\nexport interface GuestSubscriptionProperties {\n /** The provisioning state of the resource. */\n readonly provisioningState?: ResourceProvisioningState;\n}\n\nexport function guestSubscriptionPropertiesSerializer(_item: GuestSubscriptionProperties): any {\n return {};\n}\n\nexport function guestSubscriptionPropertiesDeserializer(item: any): GuestSubscriptionProperties {\n return {\n provisioningState: item[\"provisioningState\"],\n };\n}\n\n/** The provisioning state of a resource type. */\nexport enum KnownResourceProvisioningState {\n /** Resource has been created. */\n Succeeded = \"Succeeded\",\n /** Resource creation failed. */\n Failed = \"Failed\",\n /** Resource creation was canceled. */\n Canceled = \"Canceled\",\n}\n\n/**\n * The provisioning state of a resource type. \\\n * {@link KnownResourceProvisioningState} can be used interchangeably with ResourceProvisioningState,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **Succeeded**: Resource has been created. \\\n * **Failed**: Resource creation failed. \\\n * **Canceled**: Resource creation was canceled.\n */\nexport type ResourceProvisioningState = string;\n\n/** The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location */\nexport interface ProxyResource extends Resource {}\n\nexport function proxyResourceSerializer(_item: ProxyResource): any {\n return {};\n}\n\nexport function proxyResourceDeserializer(item: any): ProxyResource {\n return {\n id: item[\"id\"],\n name: item[\"name\"],\n type: item[\"type\"],\n systemData: !item[\"systemData\"]\n ? item[\"systemData\"]\n : systemDataDeserializer(item[\"systemData\"]),\n };\n}\n\n/** Common fields that are returned in the response for all Azure Resource Manager resources */\nexport interface Resource {\n /** Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} */\n readonly id?: string;\n /** The name of the resource */\n readonly name?: string;\n /** The type of the resource. E.g. \"Microsoft.Compute/virtualMachines\" or \"Microsoft.Storage/storageAccounts\" */\n readonly type?: string;\n /** Azure Resource Manager metadata containing createdBy and modifiedBy information. */\n readonly systemData?: SystemData;\n}\n\nexport function resourceSerializer(_item: Resource): any {\n return {};\n}\n\nexport function resourceDeserializer(item: any): Resource {\n return {\n id: item[\"id\"],\n name: item[\"name\"],\n type: item[\"type\"],\n systemData: !item[\"systemData\"]\n ? item[\"systemData\"]\n : systemDataDeserializer(item[\"systemData\"]),\n };\n}\n\n/** Metadata pertaining to creation and last modification of the resource. */\nexport interface SystemData {\n /** The identity that created the resource. */\n createdBy?: string;\n /** The type of identity that created the resource. */\n createdByType?: CreatedByType;\n /** The timestamp of resource creation (UTC). */\n createdAt?: Date;\n /** The identity that last modified the resource. */\n lastModifiedBy?: string;\n /** The type of identity that last modified the resource. */\n lastModifiedByType?: CreatedByType;\n /** The timestamp of resource last modification (UTC) */\n lastModifiedAt?: Date;\n}\n\nexport function systemDataDeserializer(item: any): SystemData {\n return {\n createdBy: item[\"createdBy\"],\n createdByType: item[\"createdByType\"],\n createdAt: !item[\"createdAt\"] ? item[\"createdAt\"] : new Date(item[\"createdAt\"]),\n lastModifiedBy: item[\"lastModifiedBy\"],\n lastModifiedByType: item[\"lastModifiedByType\"],\n lastModifiedAt: !item[\"lastModifiedAt\"]\n ? item[\"lastModifiedAt\"]\n : new Date(item[\"lastModifiedAt\"]),\n };\n}\n\n/** The kind of entity that created the resource. */\nexport enum KnownCreatedByType {\n /** The entity was created by a user. */\n User = \"User\",\n /** The entity was created by an application. */\n Application = \"Application\",\n /** The entity was created by a managed identity. */\n ManagedIdentity = \"ManagedIdentity\",\n /** The entity was created by a key. */\n Key = \"Key\",\n}\n\n/**\n * The kind of entity that created the resource. \\\n * {@link KnownCreatedByType} can be used interchangeably with CreatedByType,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **User**: The entity was created by a user. \\\n * **Application**: The entity was created by an application. \\\n * **ManagedIdentity**: The entity was created by a managed identity. \\\n * **Key**: The entity was created by a key.\n */\nexport type CreatedByType = string;\n\n/** The response of a GuestSubscription list operation. */\nexport interface _GuestSubscriptionListResult {\n /** The GuestSubscription items on this page */\n value: GuestSubscription[];\n /** The link to the next page of items */\n nextLink?: string;\n}\n\nexport function _guestSubscriptionListResultDeserializer(item: any): _GuestSubscriptionListResult {\n return {\n value: guestSubscriptionArrayDeserializer(item[\"value\"]),\n nextLink: item[\"nextLink\"],\n };\n}\n\nexport function guestSubscriptionArraySerializer(result: Array<GuestSubscription>): any[] {\n return result.map((item) => {\n return guestSubscriptionSerializer(item);\n });\n}\n\nexport function guestSubscriptionArrayDeserializer(result: Array<GuestSubscription>): any[] {\n return result.map((item) => {\n return guestSubscriptionDeserializer(item);\n });\n}\n\n/** Compute limits shared by the subscription. */\nexport interface SharedLimit extends ProxyResource {\n /** The resource-specific properties for this resource. */\n properties?: SharedLimitProperties;\n}\n\nexport function sharedLimitSerializer(item: SharedLimit): any {\n return {\n properties: !item[\"properties\"]\n ? item[\"properties\"]\n : sharedLimitPropertiesSerializer(item[\"properties\"]),\n };\n}\n\nexport function sharedLimitDeserializer(item: any): SharedLimit {\n return {\n id: item[\"id\"],\n name: item[\"name\"],\n type: item[\"type\"],\n systemData: !item[\"systemData\"]\n ? item[\"systemData\"]\n : systemDataDeserializer(item[\"systemData\"]),\n properties: !item[\"properties\"]\n ? item[\"properties\"]\n : sharedLimitPropertiesDeserializer(item[\"properties\"]),\n };\n}\n\n/** Properties of the compute shared limit. */\nexport interface SharedLimitProperties {\n /** The limit name properties. */\n readonly resourceName?: LimitName;\n /** The maximum permitted usage of the resource. */\n readonly limit?: number;\n /** The quota units, such as Count. */\n readonly unit?: string;\n /** The provisioning state of the resource. */\n readonly provisioningState?: ResourceProvisioningState;\n}\n\nexport function sharedLimitPropertiesSerializer(_item: SharedLimitProperties): any {\n return {};\n}\n\nexport function sharedLimitPropertiesDeserializer(item: any): SharedLimitProperties {\n return {\n resourceName: !item[\"resourceName\"]\n ? item[\"resourceName\"]\n : limitNameDeserializer(item[\"resourceName\"]),\n limit: item[\"limit\"],\n unit: item[\"unit\"],\n provisioningState: item[\"provisioningState\"],\n };\n}\n\n/** Properties of the limit name. */\nexport interface LimitName {\n /** The limit name. */\n value: string;\n /** The localized limit name. */\n readonly localizedValue?: string;\n}\n\nexport function limitNameDeserializer(item: any): LimitName {\n return {\n value: item[\"value\"],\n localizedValue: item[\"localizedValue\"],\n };\n}\n\n/** The response of a SharedLimit list operation. */\nexport interface _SharedLimitListResult {\n /** The SharedLimit items on this page */\n value: SharedLimit[];\n /** The link to the next page of items */\n nextLink?: string;\n}\n\nexport function _sharedLimitListResultDeserializer(item: any): _SharedLimitListResult {\n return {\n value: sharedLimitArrayDeserializer(item[\"value\"]),\n nextLink: item[\"nextLink\"],\n };\n}\n\nexport function sharedLimitArraySerializer(result: Array<SharedLimit>): any[] {\n return result.map((item) => {\n return sharedLimitSerializer(item);\n });\n}\n\nexport function sharedLimitArrayDeserializer(result: Array<SharedLimit>): any[] {\n return result.map((item) => {\n return sharedLimitDeserializer(item);\n });\n}\n\n/** Compute limit feature. */\nexport interface Feature extends ProxyResource {\n /** The resource-specific properties for this resource. */\n properties?: FeatureProperties;\n}\n\nexport function featureDeserializer(item: any): Feature {\n return {\n id: item[\"id\"],\n name: item[\"name\"],\n type: item[\"type\"],\n systemData: !item[\"systemData\"]\n ? item[\"systemData\"]\n : systemDataDeserializer(item[\"systemData\"]),\n properties: !item[\"properties\"]\n ? item[\"properties\"]\n : featurePropertiesDeserializer(item[\"properties\"]),\n };\n}\n\n/** Properties of the compute limit feature. */\nexport interface FeatureProperties {\n /** The current state of the feature (for example, Enabled, Disabled). */\n state?: FeatureState;\n /** The provisioning state of the resource. */\n readonly provisioningState?: ResourceProvisioningState;\n}\n\nexport function featurePropertiesDeserializer(item: any): FeatureProperties {\n return {\n state: item[\"state\"],\n provisioningState: item[\"provisioningState\"],\n };\n}\n\n/** The allowed states for a compute limit feature. */\nexport enum KnownFeatureState {\n /** The feature is enabled. */\n Enabled = \"Enabled\",\n /** The feature is disabled. */\n Disabled = \"Disabled\",\n}\n\n/**\n * The allowed states for a compute limit feature. \\\n * {@link KnownFeatureState} can be used interchangeably with FeatureState,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **Enabled**: The feature is enabled. \\\n * **Disabled**: The feature is disabled.\n */\nexport type FeatureState = string;\n\n/** The response of a Feature list operation. */\nexport interface _FeatureListResult {\n /** The Feature items on this page */\n value: Feature[];\n /** The link to the next page of items */\n nextLink?: string;\n}\n\nexport function _featureListResultDeserializer(item: any): _FeatureListResult {\n return {\n value: featureArrayDeserializer(item[\"value\"]),\n nextLink: item[\"nextLink\"],\n };\n}\n\nexport function featureArrayDeserializer(result: Array<Feature>): any[] {\n return result.map((item) => {\n return featureDeserializer(item);\n });\n}\n\n/** The current status of an async operation. */\nexport interface OperationStatusResult {\n /** Fully qualified ID for the async operation. */\n id?: string;\n /** Name of the async operation. */\n name?: string;\n /** Operation status. */\n status: string;\n /** Percent of the operation that is complete. */\n percentComplete?: number;\n /** The start time of the operation. */\n startTime?: Date;\n /** The end time of the operation. */\n endTime?: Date;\n /** The operations list. */\n operations?: OperationStatusResult[];\n /** If present, details of the operation error. */\n error?: ErrorDetail;\n /** Fully qualified ID of the resource against which the original async operation was started. */\n readonly resourceId?: string;\n}\n\nexport function operationStatusResultDeserializer(item: any): OperationStatusResult {\n return {\n id: item[\"id\"],\n name: item[\"name\"],\n status: item[\"status\"],\n percentComplete: item[\"percentComplete\"],\n startTime: !item[\"startTime\"] ? item[\"startTime\"] : new Date(item[\"startTime\"]),\n endTime: !item[\"endTime\"] ? item[\"endTime\"] : new Date(item[\"endTime\"]),\n operations: !item[\"operations\"]\n ? item[\"operations\"]\n : operationStatusResultArrayDeserializer(item[\"operations\"]),\n error: !item[\"error\"] ? item[\"error\"] : errorDetailDeserializer(item[\"error\"]),\n resourceId: item[\"resourceId\"],\n };\n}\n\nexport function operationStatusResultArrayDeserializer(\n result: Array<OperationStatusResult>,\n): any[] {\n return result.map((item) => {\n return operationStatusResultDeserializer(item);\n });\n}\n\n/** The available API versions. */\nexport enum KnownVersions {\n /** The 2025-08-15 API version. */\n V20250815 = \"2025-08-15\",\n /** The 2026-03-20 API version. */\n V20260320 = \"2026-03-20\",\n}\n"]}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import type { ComputeLimitClient } from "./computeLimitClient.js";
|
|
2
|
-
import type { OperationOptions, PathUncheckedResponse } from "@azure-rest/core-client";
|
|
3
|
-
import type { AbortSignalLike } from "@azure/abort-controller";
|
|
4
|
-
import type { PollerLike, OperationState } from "@azure/core-lro";
|
|
5
|
-
export interface RestorePollerOptions<TResult, TResponse extends PathUncheckedResponse = PathUncheckedResponse> extends OperationOptions {
|
|
6
|
-
/** Delay to wait until next poll, in milliseconds. */
|
|
7
|
-
updateIntervalInMs?: number;
|
|
8
|
-
/**
|
|
9
|
-
* The signal which can be used to abort requests.
|
|
10
|
-
*/
|
|
11
|
-
abortSignal?: AbortSignalLike;
|
|
12
|
-
/** Deserialization function for raw response body */
|
|
13
|
-
processResponseBody?: (result: TResponse) => Promise<TResult>;
|
|
14
|
-
}
|
|
15
|
-
/**
|
|
16
|
-
* Creates a poller from the serialized state of another poller. This can be
|
|
17
|
-
* useful when you want to create pollers on a different host or a poller
|
|
18
|
-
* needs to be constructed after the original one is not in scope.
|
|
19
|
-
*/
|
|
20
|
-
export declare function restorePoller<TResponse extends PathUncheckedResponse, TResult>(client: ComputeLimitClient, serializedState: string, sourceOperation: (...args: any[]) => PollerLike<OperationState<TResult>, TResult>, options?: RestorePollerOptions<TResult>): PollerLike<OperationState<TResult>, TResult>;
|
|
21
|
-
//# sourceMappingURL=restorePollerHelpers.d.ts.map
|
|
@@ -1,94 +0,0 @@
|
|
|
1
|
-
// Copyright (c) Microsoft Corporation.
|
|
2
|
-
// Licensed under the MIT License.
|
|
3
|
-
import { _enableDeserialize } from "./api/features/operations.js";
|
|
4
|
-
import { getLongRunningPoller } from "./static-helpers/pollingHelpers.js";
|
|
5
|
-
import { deserializeState } from "@azure/core-lro";
|
|
6
|
-
/**
|
|
7
|
-
* Creates a poller from the serialized state of another poller. This can be
|
|
8
|
-
* useful when you want to create pollers on a different host or a poller
|
|
9
|
-
* needs to be constructed after the original one is not in scope.
|
|
10
|
-
*/
|
|
11
|
-
export function restorePoller(client, serializedState, sourceOperation, options) {
|
|
12
|
-
const pollerConfig = deserializeState(serializedState).config;
|
|
13
|
-
const { initialRequestUrl, requestMethod, metadata } = pollerConfig;
|
|
14
|
-
if (!initialRequestUrl || !requestMethod) {
|
|
15
|
-
throw new Error(`Invalid serialized state: ${serializedState} for sourceOperation ${sourceOperation?.name}`);
|
|
16
|
-
}
|
|
17
|
-
const resourceLocationConfig = metadata?.["resourceLocationConfig"];
|
|
18
|
-
const { deserializer, expectedStatuses = [] } = getDeserializationHelper(initialRequestUrl, requestMethod) ?? {};
|
|
19
|
-
const deserializeHelper = options?.processResponseBody ?? deserializer;
|
|
20
|
-
if (!deserializeHelper) {
|
|
21
|
-
throw new Error(`Please ensure the operation is in this client! We can't find its deserializeHelper for ${sourceOperation?.name}.`);
|
|
22
|
-
}
|
|
23
|
-
const apiVersion = getApiVersionFromUrl(initialRequestUrl);
|
|
24
|
-
return getLongRunningPoller(client["_client"] ?? client, deserializeHelper, expectedStatuses, {
|
|
25
|
-
updateIntervalInMs: options?.updateIntervalInMs,
|
|
26
|
-
abortSignal: options?.abortSignal,
|
|
27
|
-
resourceLocationConfig,
|
|
28
|
-
restoreFrom: serializedState,
|
|
29
|
-
initialRequestUrl,
|
|
30
|
-
apiVersion,
|
|
31
|
-
});
|
|
32
|
-
}
|
|
33
|
-
const deserializeMap = {
|
|
34
|
-
"POST /subscriptions/{subscriptionId}/providers/Microsoft.ComputeLimit/locations/{location}/features/{featureName}/enable": { deserializer: _enableDeserialize, expectedStatuses: ["202", "200", "201"] },
|
|
35
|
-
};
|
|
36
|
-
function getDeserializationHelper(urlStr, method) {
|
|
37
|
-
const path = new URL(urlStr).pathname;
|
|
38
|
-
const pathParts = path.split("/");
|
|
39
|
-
// Traverse list to match the longest candidate
|
|
40
|
-
// matchedLen: the length of candidate path
|
|
41
|
-
// matchedValue: the matched status code array
|
|
42
|
-
let matchedLen = -1, matchedValue;
|
|
43
|
-
// Iterate the responseMap to find a match
|
|
44
|
-
for (const [key, value] of Object.entries(deserializeMap)) {
|
|
45
|
-
// Extracting the path from the map key which is in format
|
|
46
|
-
// GET /path/foo
|
|
47
|
-
if (!key.startsWith(method)) {
|
|
48
|
-
continue;
|
|
49
|
-
}
|
|
50
|
-
const candidatePath = getPathFromMapKey(key);
|
|
51
|
-
// Get each part of the url path
|
|
52
|
-
const candidateParts = candidatePath.split("/");
|
|
53
|
-
// track if we have found a match to return the values found.
|
|
54
|
-
let found = true;
|
|
55
|
-
for (let i = candidateParts.length - 1, j = pathParts.length - 1; i >= 1 && j >= 1; i--, j--) {
|
|
56
|
-
if (candidateParts[i]?.startsWith("{") && candidateParts[i]?.indexOf("}") !== -1) {
|
|
57
|
-
const start = candidateParts[i].indexOf("}") + 1, end = candidateParts[i]?.length;
|
|
58
|
-
// If the current part of the candidate is a "template" part
|
|
59
|
-
// Try to use the suffix of pattern to match the path
|
|
60
|
-
// {guid} ==> $
|
|
61
|
-
// {guid}:export ==> :export$
|
|
62
|
-
const isMatched = new RegExp(`${candidateParts[i]?.slice(start, end)}`).test(pathParts[j] || "");
|
|
63
|
-
if (!isMatched) {
|
|
64
|
-
found = false;
|
|
65
|
-
break;
|
|
66
|
-
}
|
|
67
|
-
continue;
|
|
68
|
-
}
|
|
69
|
-
// If the candidate part is not a template and
|
|
70
|
-
// the parts don't match mark the candidate as not found
|
|
71
|
-
// to move on with the next candidate path.
|
|
72
|
-
if (candidateParts[i] !== pathParts[j]) {
|
|
73
|
-
found = false;
|
|
74
|
-
break;
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
// We finished evaluating the current candidate parts
|
|
78
|
-
// Update the matched value if and only if we found the longer pattern
|
|
79
|
-
if (found && candidatePath.length > matchedLen) {
|
|
80
|
-
matchedLen = candidatePath.length;
|
|
81
|
-
matchedValue = value;
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
return matchedValue;
|
|
85
|
-
}
|
|
86
|
-
function getPathFromMapKey(mapKey) {
|
|
87
|
-
const pathStart = mapKey.indexOf("/");
|
|
88
|
-
return mapKey.slice(pathStart);
|
|
89
|
-
}
|
|
90
|
-
function getApiVersionFromUrl(urlStr) {
|
|
91
|
-
const url = new URL(urlStr);
|
|
92
|
-
return url.searchParams.get("api-version") ?? undefined;
|
|
93
|
-
}
|
|
94
|
-
//# sourceMappingURL=restorePollerHelpers.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"restorePollerHelpers.js","sourceRoot":"","sources":["../../src/restorePollerHelpers.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAGlC,OAAO,EAAE,kBAAkB,EAAE,MAAM,8BAA8B,CAAC;AAClE,OAAO,EAAE,oBAAoB,EAAE,MAAM,oCAAoC,CAAC;AAI1E,OAAO,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AAgBnD;;;;GAIG;AACH,MAAM,UAAU,aAAa,CAC3B,M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qDAAqD;gBACrD,eAAe;gBACf,6BAA6B;gBAC7B,MAAM,SAAS,GAAG,IAAI,MAAM,CAAC,GAAG,cAAc,CAAC,CAAC,CAAC,EAAE,KAAK,CAAC,KAAK,EAAE,GAAG,CAAC,EAAE,CAAC,CAAC,IAAI,CAC1E,SAAS,CAAC,CAAC,CAAC,IAAI,EAAE,CACnB,CAAC;gBAEF,IAAI,CAAC,SAAS,EAAE,CAAC;oBACf,KAAK,GAAG,KAAK,CAAC;oBACd,MAAM;gBACR,CAAC;gBACD,SAAS;YACX,CAAC;YAED,8CAA8C;YAC9C,wDAAwD;YACxD,2CAA2C;YAC3C,IAAI,cAAc,CAAC,CAAC,CAAC,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC;gBACvC,KAAK,GAAG,KAAK,CAAC;gBACd,MAAM;YACR,CAAC;QACH,CAAC;QAED,qDAAqD;QACrD,sEAAsE;QACtE,IAAI,KAAK,IAAI,aAAa,CAAC,MAAM,GAAG,UAAU,EAAE,CAAC;YAC/C,UAAU,GAAG,aAAa,CAAC,MAAM,CAAC;YAClC,YAAY,GAAG,KAAK,CAAC;QACvB,CAAC;IACH,CAAC;IAED,OAAO,YAAY,CAAC;AACtB,CAAC;AAED,SAAS,iBAAiB,CAAC,MAAc;IACvC,MAAM,SAAS,GAAG,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;IACtC,OAAO,MAAM,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC;AACjC,CAAC;AAED,SAAS,oBAAoB,CAAC,MAAc;IAC1C,MAAM,GAAG,GAAG,IAAI,GAAG,CAAC,MAAM,CAAC,CAAC;IAC5B,OAAO,GAAG,CAAC,YAAY,CAAC,GAAG,CAAC,aAAa,CAAC,IAAI,SAAS,CAAC;AAC1D,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { ComputeLimitClient } from \"./computeLimitClient.js\";\nimport { _enableDeserialize } from \"./api/features/operations.js\";\nimport { getLongRunningPoller } from \"./static-helpers/pollingHelpers.js\";\nimport type { OperationOptions, PathUncheckedResponse } from \"@azure-rest/core-client\";\nimport type { AbortSignalLike } from \"@azure/abort-controller\";\nimport type { PollerLike, OperationState, ResourceLocationConfig } from \"@azure/core-lro\";\nimport { deserializeState } from \"@azure/core-lro\";\n\nexport interface RestorePollerOptions<\n TResult,\n TResponse extends PathUncheckedResponse = PathUncheckedResponse,\n> extends OperationOptions {\n /** Delay to wait until next poll, in milliseconds. */\n updateIntervalInMs?: number;\n /**\n * The signal which can be used to abort requests.\n */\n abortSignal?: AbortSignalLike;\n /** Deserialization function for raw response body */\n processResponseBody?: (result: TResponse) => Promise<TResult>;\n}\n\n/**\n * Creates a poller from the serialized state of another poller. This can be\n * useful when you want to create pollers on a different host or a poller\n * needs to be constructed after the original one is not in scope.\n */\nexport function restorePoller<TResponse extends PathUncheckedResponse, TResult>(\n client: ComputeLimitClient,\n serializedState: string,\n sourceOperation: (...args: any[]) => PollerLike<OperationState<TResult>, TResult>,\n options?: RestorePollerOptions<TResult>,\n): PollerLike<OperationState<TResult>, TResult> {\n const pollerConfig = deserializeState(serializedState).config;\n const { initialRequestUrl, requestMethod, metadata } = pollerConfig;\n if (!initialRequestUrl || !requestMethod) {\n throw new Error(\n `Invalid serialized state: ${serializedState} for sourceOperation ${sourceOperation?.name}`,\n );\n }\n const resourceLocationConfig = metadata?.[\"resourceLocationConfig\"] as\n | ResourceLocationConfig\n | undefined;\n const { deserializer, expectedStatuses = [] } =\n getDeserializationHelper(initialRequestUrl, requestMethod) ?? {};\n const deserializeHelper = options?.processResponseBody ?? deserializer;\n if (!deserializeHelper) {\n throw new Error(\n `Please ensure the operation is in this client! We can't find its deserializeHelper for ${sourceOperation?.name}.`,\n );\n }\n const apiVersion = getApiVersionFromUrl(initialRequestUrl);\n return getLongRunningPoller(\n (client as any)[\"_client\"] ?? client,\n deserializeHelper as (result: TResponse) => Promise<TResult>,\n expectedStatuses,\n {\n updateIntervalInMs: options?.updateIntervalInMs,\n abortSignal: options?.abortSignal,\n resourceLocationConfig,\n restoreFrom: serializedState,\n initialRequestUrl,\n apiVersion,\n },\n );\n}\n\ninterface DeserializationHelper {\n deserializer: (result: PathUncheckedResponse) => Promise<any>;\n expectedStatuses: string[];\n}\n\nconst deserializeMap: Record<string, DeserializationHelper> = {\n \"POST /subscriptions/{subscriptionId}/providers/Microsoft.ComputeLimit/locations/{location}/features/{featureName}/enable\":\n { deserializer: _enableDeserialize, expectedStatuses: [\"202\", \"200\", \"201\"] },\n};\n\nfunction getDeserializationHelper(\n urlStr: string,\n method: string,\n): DeserializationHelper | undefined {\n const path = new URL(urlStr).pathname;\n const pathParts = path.split(\"/\");\n\n // Traverse list to match the longest candidate\n // matchedLen: the length of candidate path\n // matchedValue: the matched status code array\n let matchedLen = -1,\n matchedValue: DeserializationHelper | undefined;\n\n // Iterate the responseMap to find a match\n for (const [key, value] of Object.entries(deserializeMap)) {\n // Extracting the path from the map key which is in format\n // GET /path/foo\n if (!key.startsWith(method)) {\n continue;\n }\n const candidatePath = getPathFromMapKey(key);\n // Get each part of the url path\n const candidateParts = candidatePath.split(\"/\");\n\n // track if we have found a match to return the values found.\n let found = true;\n for (let i = candidateParts.length - 1, j = pathParts.length - 1; i >= 1 && j >= 1; i--, j--) {\n if (candidateParts[i]?.startsWith(\"{\") && candidateParts[i]?.indexOf(\"}\") !== -1) {\n const start = candidateParts[i]!.indexOf(\"}\") + 1,\n end = candidateParts[i]?.length;\n // If the current part of the candidate is a \"template\" part\n // Try to use the suffix of pattern to match the path\n // {guid} ==> $\n // {guid}:export ==> :export$\n const isMatched = new RegExp(`${candidateParts[i]?.slice(start, end)}`).test(\n pathParts[j] || \"\",\n );\n\n if (!isMatched) {\n found = false;\n break;\n }\n continue;\n }\n\n // If the candidate part is not a template and\n // the parts don't match mark the candidate as not found\n // to move on with the next candidate path.\n if (candidateParts[i] !== pathParts[j]) {\n found = false;\n break;\n }\n }\n\n // We finished evaluating the current candidate parts\n // Update the matched value if and only if we found the longer pattern\n if (found && candidatePath.length > matchedLen) {\n matchedLen = candidatePath.length;\n matchedValue = value;\n }\n }\n\n return matchedValue;\n}\n\nfunction getPathFromMapKey(mapKey: string): string {\n const pathStart = mapKey.indexOf(\"/\");\n return mapKey.slice(pathStart);\n}\n\nfunction getApiVersionFromUrl(urlStr: string): string | undefined {\n const url = new URL(urlStr);\n return url.searchParams.get(\"api-version\") ?? undefined;\n}\n"]}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* An enum to describe Azure Cloud environments.
|
|
3
|
-
* @enum {string}
|
|
4
|
-
*/
|
|
5
|
-
export declare enum AzureClouds {
|
|
6
|
-
/** Azure public cloud, which is the default cloud for Azure SDKs. */
|
|
7
|
-
AZURE_PUBLIC_CLOUD = "AZURE_PUBLIC_CLOUD",
|
|
8
|
-
/** Azure China cloud */
|
|
9
|
-
AZURE_CHINA_CLOUD = "AZURE_CHINA_CLOUD",
|
|
10
|
-
/** Azure US government cloud */
|
|
11
|
-
AZURE_US_GOVERNMENT = "AZURE_US_GOVERNMENT"
|
|
12
|
-
}
|
|
13
|
-
/** The supported values for cloud setting as a string literal type */
|
|
14
|
-
export type AzureSupportedClouds = `${AzureClouds}`;
|
|
15
|
-
/**
|
|
16
|
-
* Gets the Azure Resource Manager endpoint URL for the specified cloud setting.
|
|
17
|
-
* @param cloudSetting - The Azure cloud environment setting. Use one of the AzureClouds enum values.
|
|
18
|
-
* @returns The ARM endpoint URL for the specified cloud, or undefined if cloudSetting is undefined.
|
|
19
|
-
* @throws {Error} Throws an error if an unknown cloud setting is provided.
|
|
20
|
-
*/
|
|
21
|
-
export declare function getArmEndpoint(cloudSetting?: AzureSupportedClouds): string | undefined;
|
|
22
|
-
//# sourceMappingURL=cloudSettingHelpers.d.ts.map
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
// Copyright (c) Microsoft Corporation.
|
|
2
|
-
// Licensed under the MIT License.
|
|
3
|
-
/**
|
|
4
|
-
* An enum to describe Azure Cloud environments.
|
|
5
|
-
* @enum {string}
|
|
6
|
-
*/
|
|
7
|
-
export var AzureClouds;
|
|
8
|
-
(function (AzureClouds) {
|
|
9
|
-
/** Azure public cloud, which is the default cloud for Azure SDKs. */
|
|
10
|
-
AzureClouds["AZURE_PUBLIC_CLOUD"] = "AZURE_PUBLIC_CLOUD";
|
|
11
|
-
/** Azure China cloud */
|
|
12
|
-
AzureClouds["AZURE_CHINA_CLOUD"] = "AZURE_CHINA_CLOUD";
|
|
13
|
-
/** Azure US government cloud */
|
|
14
|
-
AzureClouds["AZURE_US_GOVERNMENT"] = "AZURE_US_GOVERNMENT";
|
|
15
|
-
})(AzureClouds || (AzureClouds = {}));
|
|
16
|
-
/**
|
|
17
|
-
* Gets the Azure Resource Manager endpoint URL for the specified cloud setting.
|
|
18
|
-
* @param cloudSetting - The Azure cloud environment setting. Use one of the AzureClouds enum values.
|
|
19
|
-
* @returns The ARM endpoint URL for the specified cloud, or undefined if cloudSetting is undefined.
|
|
20
|
-
* @throws {Error} Throws an error if an unknown cloud setting is provided.
|
|
21
|
-
*/
|
|
22
|
-
export function getArmEndpoint(cloudSetting) {
|
|
23
|
-
if (cloudSetting === undefined) {
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
26
|
-
const cloudEndpoints = {
|
|
27
|
-
AZURE_CHINA_CLOUD: "https://management.chinacloudapi.cn/",
|
|
28
|
-
AZURE_US_GOVERNMENT: "https://management.usgovcloudapi.net/",
|
|
29
|
-
AZURE_PUBLIC_CLOUD: "https://management.azure.com/",
|
|
30
|
-
};
|
|
31
|
-
if (cloudSetting in cloudEndpoints) {
|
|
32
|
-
return cloudEndpoints[cloudSetting];
|
|
33
|
-
}
|
|
34
|
-
else {
|
|
35
|
-
throw new Error(`Unknown cloud setting: ${cloudSetting}. Please refer to the enum AzureClouds for possible values.`);
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
//# sourceMappingURL=cloudSettingHelpers.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"cloudSettingHelpers.js","sourceRoot":"","sources":["../../../src/static-helpers/cloudSettingHelpers.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC;;;GAGG;AACH,MAAM,CAAN,IAAY,WAOX;AAPD,WAAY,WAAW;IACrB,qEAAqE;IACrE,wDAAyC,CAAA;IACzC,wBAAwB;IACxB,sDAAuC,CAAA;IACvC,gCAAgC;IAChC,0DAA2C,CAAA;AAC7C,CAAC,EAPW,WAAW,KAAX,WAAW,QAOtB;AAKD;;;;;GAKG;AACH,MAAM,UAAU,cAAc,CAAC,YAAmC;IAChE,IAAI,YAAY,KAAK,SAAS,EAAE,CAAC;QAC/B,OAAO,SAAS,CAAC;IACnB,CAAC;IACD,MAAM,cAAc,GAA6C;QAC/D,iBAAiB,EAAE,sCAAsC;QACzD,mBAAmB,EAAE,uCAAuC;QAC5D,kBAAkB,EAAE,+BAA+B;KACpD,CAAC;IACF,IAAI,YAAY,IAAI,cAAc,EAAE,CAAC;QACnC,OAAO,cAAc,CAAC,YAAY,CAAC,CAAC;IACtC,CAAC;SAAM,CAAC;QACN,MAAM,IAAI,KAAK,CACb,0BAA0B,YAAY,6DAA6D,CACpG,CAAC;IACJ,CAAC;AACH,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\n/**\n * An enum to describe Azure Cloud environments.\n * @enum {string}\n */\nexport enum AzureClouds {\n /** Azure public cloud, which is the default cloud for Azure SDKs. */\n AZURE_PUBLIC_CLOUD = \"AZURE_PUBLIC_CLOUD\",\n /** Azure China cloud */\n AZURE_CHINA_CLOUD = \"AZURE_CHINA_CLOUD\",\n /** Azure US government cloud */\n AZURE_US_GOVERNMENT = \"AZURE_US_GOVERNMENT\",\n}\n\n/** The supported values for cloud setting as a string literal type */\nexport type AzureSupportedClouds = `${AzureClouds}`;\n\n/**\n * Gets the Azure Resource Manager endpoint URL for the specified cloud setting.\n * @param cloudSetting - The Azure cloud environment setting. Use one of the AzureClouds enum values.\n * @returns The ARM endpoint URL for the specified cloud, or undefined if cloudSetting is undefined.\n * @throws {Error} Throws an error if an unknown cloud setting is provided.\n */\nexport function getArmEndpoint(cloudSetting?: AzureSupportedClouds): string | undefined {\n if (cloudSetting === undefined) {\n return undefined;\n }\n const cloudEndpoints: Record<keyof typeof AzureClouds, string> = {\n AZURE_CHINA_CLOUD: \"https://management.chinacloudapi.cn/\",\n AZURE_US_GOVERNMENT: \"https://management.usgovcloudapi.net/\",\n AZURE_PUBLIC_CLOUD: \"https://management.azure.com/\",\n };\n if (cloudSetting in cloudEndpoints) {\n return cloudEndpoints[cloudSetting];\n } else {\n throw new Error(\n `Unknown cloud setting: ${cloudSetting}. Please refer to the enum AzureClouds for possible values.`,\n );\n }\n}\n"]}
|