@azure/arm-computelimit 1.0.0 → 1.1.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 +43 -8
- 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 +5 -10
- package/dist/browser/api/guestSubscriptions/operations.js.map +1 -1
- package/dist/browser/api/operations/operations.js +2 -2
- package/dist/browser/api/operations/operations.js.map +1 -1
- package/dist/browser/api/sharedLimits/operations.d.ts +0 -5
- package/dist/browser/api/sharedLimits/operations.js +5 -10
- 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 +62 -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 +1 -0
- package/dist/browser/classic/index.js.map +1 -1
- 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 +3 -0
- package/dist/browser/computeLimitClient.js +4 -0
- package/dist/browser/computeLimitClient.js.map +1 -1
- package/dist/browser/index.d.ts +5 -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 +34 -1
- package/dist/browser/models/models.js +37 -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.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 +52 -8
- 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 +5 -5
- package/dist/commonjs/api/guestSubscriptions/operations.js.map +2 -2
- package/dist/commonjs/api/operations/operations.js +2 -2
- package/dist/commonjs/api/operations/operations.js.map +1 -1
- package/dist/commonjs/api/sharedLimits/operations.d.ts +0 -5
- package/dist/commonjs/api/sharedLimits/operations.js +5 -5
- 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 +108 -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 +1 -0
- package/dist/commonjs/classic/index.js.map +1 -1
- 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 +3 -0
- package/dist/commonjs/computeLimitClient.js +4 -0
- package/dist/commonjs/computeLimitClient.js.map +2 -2
- package/dist/commonjs/index.d.ts +5 -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 +34 -1
- package/dist/commonjs/models/models.js +43 -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.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 +43 -8
- 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 +5 -10
- package/dist/esm/api/guestSubscriptions/operations.js.map +1 -1
- package/dist/esm/api/operations/operations.js +2 -2
- package/dist/esm/api/operations/operations.js.map +1 -1
- package/dist/esm/api/sharedLimits/operations.d.ts +0 -5
- package/dist/esm/api/sharedLimits/operations.js +5 -10
- 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 +62 -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.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 +1 -0
- package/dist/esm/classic/index.js.map +1 -1
- 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 +3 -0
- package/dist/esm/computeLimitClient.js +4 -0
- package/dist/esm/computeLimitClient.js.map +1 -1
- package/dist/esm/index.d.ts +5 -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 +34 -1
- package/dist/esm/models/models.js +37 -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.js +1 -1
- package/dist/esm/static-helpers/pollingHelpers.js.map +1 -1
- package/package.json +32 -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 +0 -4
- 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 +0 -4
- 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/vmFamilies}/options.js +0 -0
- /package/dist/{react-native/api/guestSubscriptions → esm/api/vmFamilies}/options.js +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/classic/guestSubscriptions/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAGlC,OAAO,EACL,kCAAkC,EAClC,OAAO,EACP,MAAM,EACN,GAAG,GACJ,MAAM,4CAA4C,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/classic/guestSubscriptions/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAGlC,OAAO,EACL,kCAAkC,EAClC,OAAO,EACP,MAAM,EACN,GAAG,GACJ,MAAM,4CAA4C,CAAC;AAsCpD,SAAS,sBAAsB,CAAC,OAA4B;IAC1D,OAAO;QACL,kCAAkC,EAAE,CAClC,QAAgB,EAChB,OAA4E,EAC5E,EAAE,CAAC,kCAAkC,CAAC,OAAO,EAAE,QAAQ,EAAE,OAAO,CAAC;QACnE,MAAM,EAAE,CACN,QAAgB,EAChB,mBAA2B,EAC3B,OAAgD,EAChD,EAAE,CAAC,OAAO,CAAC,OAAO,EAAE,QAAQ,EAAE,mBAAmB,EAAE,OAAO,CAAC;QAC7D,MAAM,EAAE,CACN,QAAgB,EAChB,mBAA2B,EAC3B,QAA2B,EAC3B,OAAgD,EAChD,EAAE,CAAC,MAAM,CAAC,OAAO,EAAE,QAAQ,EAAE,mBAAmB,EAAE,QAAQ,EAAE,OAAO,CAAC;QACtE,GAAG,EAAE,CACH,QAAgB,EAChB,mBAA2B,EAC3B,OAA6C,EAC7C,EAAE,CAAC,GAAG,CAAC,OAAO,EAAE,QAAQ,EAAE,mBAAmB,EAAE,OAAO,CAAC;KAC1D,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,gCAAgC,CAC9C,OAA4B;IAE5B,OAAO;QACL,GAAG,sBAAsB,CAAC,OAAO,CAAC;KACnC,CAAC;AACJ,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { ComputeLimitContext } from \"../../api/computeLimitContext.js\";\nimport {\n listBySubscriptionLocationResource,\n $delete,\n create,\n get,\n} from \"../../api/guestSubscriptions/operations.js\";\nimport type {\n GuestSubscriptionsListBySubscriptionLocationResourceOptionalParams,\n GuestSubscriptionsDeleteOptionalParams,\n GuestSubscriptionsCreateOptionalParams,\n GuestSubscriptionsGetOptionalParams,\n} from \"../../api/guestSubscriptions/options.js\";\nimport type { GuestSubscription } from \"../../models/models.js\";\nimport type { PagedAsyncIterableIterator } from \"../../static-helpers/pagingHelpers.js\";\n\n/** Interface representing a GuestSubscriptions operations. */\nexport interface GuestSubscriptionsOperations {\n /** Lists all guest subscriptions in a location. */\n listBySubscriptionLocationResource: (\n location: string,\n options?: GuestSubscriptionsListBySubscriptionLocationResourceOptionalParams,\n ) => PagedAsyncIterableIterator<GuestSubscription>;\n /** Deletes a subscription as a guest to stop consuming the compute limits shared by the host subscription. */\n delete: (\n location: string,\n guestSubscriptionId: string,\n options?: GuestSubscriptionsDeleteOptionalParams,\n ) => Promise<void>;\n /** Adds a subscription as a guest to consume the compute limits shared by the host subscription. */\n create: (\n location: string,\n guestSubscriptionId: string,\n resource: GuestSubscription,\n options?: GuestSubscriptionsCreateOptionalParams,\n ) => Promise<GuestSubscription>;\n /** Gets the properties of a guest subscription. */\n get: (\n location: string,\n guestSubscriptionId: string,\n options?: GuestSubscriptionsGetOptionalParams,\n ) => Promise<GuestSubscription>;\n}\n\nfunction _getGuestSubscriptions(context: ComputeLimitContext) {\n return {\n listBySubscriptionLocationResource: (\n location: string,\n options?: GuestSubscriptionsListBySubscriptionLocationResourceOptionalParams,\n ) => listBySubscriptionLocationResource(context, location, options),\n delete: (\n location: string,\n guestSubscriptionId: string,\n options?: GuestSubscriptionsDeleteOptionalParams,\n ) => $delete(context, location, guestSubscriptionId, options),\n create: (\n location: string,\n guestSubscriptionId: string,\n resource: GuestSubscription,\n options?: GuestSubscriptionsCreateOptionalParams,\n ) => create(context, location, guestSubscriptionId, resource, options),\n get: (\n location: string,\n guestSubscriptionId: string,\n options?: GuestSubscriptionsGetOptionalParams,\n ) => get(context, location, guestSubscriptionId, options),\n };\n}\n\nexport function _getGuestSubscriptionsOperations(\n context: ComputeLimitContext,\n): GuestSubscriptionsOperations {\n return {\n ..._getGuestSubscriptions(context),\n };\n}\n"]}
|
|
@@ -2,4 +2,5 @@ export type { FeaturesOperations } from "./features/index.js";
|
|
|
2
2
|
export type { GuestSubscriptionsOperations } from "./guestSubscriptions/index.js";
|
|
3
3
|
export type { OperationsOperations } from "./operations/index.js";
|
|
4
4
|
export type { SharedLimitsOperations } from "./sharedLimits/index.js";
|
|
5
|
+
export type { VmFamiliesOperations } from "./vmFamilies/index.js";
|
|
5
6
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/classic/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nexport type { FeaturesOperations } from \"./features/index.js\";\nexport type { GuestSubscriptionsOperations } from \"./guestSubscriptions/index.js\";\nexport type { OperationsOperations } from \"./operations/index.js\";\nexport type { SharedLimitsOperations } from \"./sharedLimits/index.js\";\n"]}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/classic/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nexport type { FeaturesOperations } from \"./features/index.js\";\nexport type { GuestSubscriptionsOperations } from \"./guestSubscriptions/index.js\";\nexport type { OperationsOperations } from \"./operations/index.js\";\nexport type { SharedLimitsOperations } from \"./sharedLimits/index.js\";\nexport type { VmFamiliesOperations } from \"./vmFamilies/index.js\";\n"]}
|
|
@@ -7,11 +7,6 @@ export interface SharedLimitsOperations {
|
|
|
7
7
|
/** Lists all compute limits shared by the host subscription with its guest subscriptions. */
|
|
8
8
|
listBySubscriptionLocationResource: (location: string, options?: SharedLimitsListBySubscriptionLocationResourceOptionalParams) => PagedAsyncIterableIterator<SharedLimit>;
|
|
9
9
|
/** Disables sharing of a compute limit by the host subscription with its guest subscriptions. */
|
|
10
|
-
/**
|
|
11
|
-
* @fixme delete is a reserved word that cannot be used as an operation name.
|
|
12
|
-
* Please add @clientName("clientName") or @clientName("<JS-Specific-Name>", "javascript")
|
|
13
|
-
* to the operation to override the generated name.
|
|
14
|
-
*/
|
|
15
10
|
delete: (location: string, name: string, options?: SharedLimitsDeleteOptionalParams) => Promise<void>;
|
|
16
11
|
/** Enables sharing of a compute limit by the host subscription with its guest subscriptions. */
|
|
17
12
|
create: (location: string, name: string, resource: SharedLimit, options?: SharedLimitsCreateOptionalParams) => Promise<SharedLimit>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/classic/sharedLimits/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAGlC,OAAO,EACL,kCAAkC,EAClC,OAAO,EACP,MAAM,EACN,GAAG,GACJ,MAAM,sCAAsC,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/classic/sharedLimits/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAGlC,OAAO,EACL,kCAAkC,EAClC,OAAO,EACP,MAAM,EACN,GAAG,GACJ,MAAM,sCAAsC,CAAC;AAsC9C,SAAS,gBAAgB,CAAC,OAA4B;IACpD,OAAO;QACL,kCAAkC,EAAE,CAClC,QAAgB,EAChB,OAAsE,EACtE,EAAE,CAAC,kCAAkC,CAAC,OAAO,EAAE,QAAQ,EAAE,OAAO,CAAC;QACnE,MAAM,EAAE,CAAC,QAAgB,EAAE,IAAY,EAAE,OAA0C,EAAE,EAAE,CACrF,OAAO,CAAC,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,CAAC;QAC3C,MAAM,EAAE,CACN,QAAgB,EAChB,IAAY,EACZ,QAAqB,EACrB,OAA0C,EAC1C,EAAE,CAAC,MAAM,CAAC,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,QAAQ,EAAE,OAAO,CAAC;QACvD,GAAG,EAAE,CAAC,QAAgB,EAAE,IAAY,EAAE,OAAuC,EAAE,EAAE,CAC/E,GAAG,CAAC,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,CAAC;KACxC,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,0BAA0B,CAAC,OAA4B;IACrE,OAAO;QACL,GAAG,gBAAgB,CAAC,OAAO,CAAC;KAC7B,CAAC;AACJ,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { ComputeLimitContext } from \"../../api/computeLimitContext.js\";\nimport {\n listBySubscriptionLocationResource,\n $delete,\n create,\n get,\n} from \"../../api/sharedLimits/operations.js\";\nimport type {\n SharedLimitsListBySubscriptionLocationResourceOptionalParams,\n SharedLimitsDeleteOptionalParams,\n SharedLimitsCreateOptionalParams,\n SharedLimitsGetOptionalParams,\n} from \"../../api/sharedLimits/options.js\";\nimport type { SharedLimit } from \"../../models/models.js\";\nimport type { PagedAsyncIterableIterator } from \"../../static-helpers/pagingHelpers.js\";\n\n/** Interface representing a SharedLimits operations. */\nexport interface SharedLimitsOperations {\n /** Lists all compute limits shared by the host subscription with its guest subscriptions. */\n listBySubscriptionLocationResource: (\n location: string,\n options?: SharedLimitsListBySubscriptionLocationResourceOptionalParams,\n ) => PagedAsyncIterableIterator<SharedLimit>;\n /** Disables sharing of a compute limit by the host subscription with its guest subscriptions. */\n delete: (\n location: string,\n name: string,\n options?: SharedLimitsDeleteOptionalParams,\n ) => Promise<void>;\n /** Enables sharing of a compute limit by the host subscription with its guest subscriptions. */\n create: (\n location: string,\n name: string,\n resource: SharedLimit,\n options?: SharedLimitsCreateOptionalParams,\n ) => Promise<SharedLimit>;\n /** Gets the properties of a compute limit shared by the host subscription with its guest subscriptions. */\n get: (\n location: string,\n name: string,\n options?: SharedLimitsGetOptionalParams,\n ) => Promise<SharedLimit>;\n}\n\nfunction _getSharedLimits(context: ComputeLimitContext) {\n return {\n listBySubscriptionLocationResource: (\n location: string,\n options?: SharedLimitsListBySubscriptionLocationResourceOptionalParams,\n ) => listBySubscriptionLocationResource(context, location, options),\n delete: (location: string, name: string, options?: SharedLimitsDeleteOptionalParams) =>\n $delete(context, location, name, options),\n create: (\n location: string,\n name: string,\n resource: SharedLimit,\n options?: SharedLimitsCreateOptionalParams,\n ) => create(context, location, name, resource, options),\n get: (location: string, name: string, options?: SharedLimitsGetOptionalParams) =>\n get(context, location, name, options),\n };\n}\n\nexport function _getSharedLimitsOperations(context: ComputeLimitContext): SharedLimitsOperations {\n return {\n ..._getSharedLimits(context),\n };\n}\n"]}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { ComputeLimitContext } from "../../api/computeLimitContext.js";
|
|
2
|
+
import type { VmFamiliesListBySubscriptionLocationResourceOptionalParams, VmFamiliesGetOptionalParams } from "../../api/vmFamilies/options.js";
|
|
3
|
+
import type { VmFamily } from "../../models/models.js";
|
|
4
|
+
import type { PagedAsyncIterableIterator } from "../../static-helpers/pagingHelpers.js";
|
|
5
|
+
/** Interface representing a VmFamilies operations. */
|
|
6
|
+
export interface VmFamiliesOperations {
|
|
7
|
+
/** Lists all VM families for the subscription at the specified location. */
|
|
8
|
+
listBySubscriptionLocationResource: (location: string, options?: VmFamiliesListBySubscriptionLocationResourceOptionalParams) => PagedAsyncIterableIterator<VmFamily>;
|
|
9
|
+
/** Gets the properties of a VM family. */
|
|
10
|
+
get: (location: string, vmFamilyName: string, options?: VmFamiliesGetOptionalParams) => Promise<VmFamily>;
|
|
11
|
+
}
|
|
12
|
+
export declare function _getVmFamiliesOperations(context: ComputeLimitContext): VmFamiliesOperations;
|
|
13
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
// Copyright (c) Microsoft Corporation.
|
|
2
|
+
// Licensed under the MIT License.
|
|
3
|
+
import { listBySubscriptionLocationResource, get } from "../../api/vmFamilies/operations.js";
|
|
4
|
+
function _getVmFamilies(context) {
|
|
5
|
+
return {
|
|
6
|
+
listBySubscriptionLocationResource: (location, options) => listBySubscriptionLocationResource(context, location, options),
|
|
7
|
+
get: (location, vmFamilyName, options) => get(context, location, vmFamilyName, options),
|
|
8
|
+
};
|
|
9
|
+
}
|
|
10
|
+
export function _getVmFamiliesOperations(context) {
|
|
11
|
+
return {
|
|
12
|
+
..._getVmFamilies(context),
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/classic/vmFamilies/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAGlC,OAAO,EAAE,kCAAkC,EAAE,GAAG,EAAE,MAAM,oCAAoC,CAAC;AAuB7F,SAAS,cAAc,CAAC,OAA4B;IAClD,OAAO;QACL,kCAAkC,EAAE,CAClC,QAAgB,EAChB,OAAoE,EACpE,EAAE,CAAC,kCAAkC,CAAC,OAAO,EAAE,QAAQ,EAAE,OAAO,CAAC;QACnE,GAAG,EAAE,CAAC,QAAgB,EAAE,YAAoB,EAAE,OAAqC,EAAE,EAAE,CACrF,GAAG,CAAC,OAAO,EAAE,QAAQ,EAAE,YAAY,EAAE,OAAO,CAAC;KAChD,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,wBAAwB,CAAC,OAA4B;IACnE,OAAO;QACL,GAAG,cAAc,CAAC,OAAO,CAAC;KAC3B,CAAC;AACJ,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { ComputeLimitContext } from \"../../api/computeLimitContext.js\";\nimport { listBySubscriptionLocationResource, get } from \"../../api/vmFamilies/operations.js\";\nimport type {\n VmFamiliesListBySubscriptionLocationResourceOptionalParams,\n VmFamiliesGetOptionalParams,\n} from \"../../api/vmFamilies/options.js\";\nimport type { VmFamily } from \"../../models/models.js\";\nimport type { PagedAsyncIterableIterator } from \"../../static-helpers/pagingHelpers.js\";\n\n/** Interface representing a VmFamilies operations. */\nexport interface VmFamiliesOperations {\n /** Lists all VM families for the subscription at the specified location. */\n listBySubscriptionLocationResource: (\n location: string,\n options?: VmFamiliesListBySubscriptionLocationResourceOptionalParams,\n ) => PagedAsyncIterableIterator<VmFamily>;\n /** Gets the properties of a VM family. */\n get: (\n location: string,\n vmFamilyName: string,\n options?: VmFamiliesGetOptionalParams,\n ) => Promise<VmFamily>;\n}\n\nfunction _getVmFamilies(context: ComputeLimitContext) {\n return {\n listBySubscriptionLocationResource: (\n location: string,\n options?: VmFamiliesListBySubscriptionLocationResourceOptionalParams,\n ) => listBySubscriptionLocationResource(context, location, options),\n get: (location: string, vmFamilyName: string, options?: VmFamiliesGetOptionalParams) =>\n get(context, location, vmFamilyName, options),\n };\n}\n\nexport function _getVmFamiliesOperations(context: ComputeLimitContext): VmFamiliesOperations {\n return {\n ..._getVmFamilies(context),\n };\n}\n"]}
|
|
@@ -3,6 +3,7 @@ import type { FeaturesOperations } from "./classic/features/index.js";
|
|
|
3
3
|
import type { GuestSubscriptionsOperations } from "./classic/guestSubscriptions/index.js";
|
|
4
4
|
import type { OperationsOperations } from "./classic/operations/index.js";
|
|
5
5
|
import type { SharedLimitsOperations } from "./classic/sharedLimits/index.js";
|
|
6
|
+
import type { VmFamiliesOperations } from "./classic/vmFamilies/index.js";
|
|
6
7
|
import type { TokenCredential } from "@azure/core-auth";
|
|
7
8
|
import type { Pipeline } from "@azure/core-rest-pipeline";
|
|
8
9
|
export type { ComputeLimitClientOptionalParams } from "./api/computeLimitContext.js";
|
|
@@ -12,6 +13,8 @@ export declare class ComputeLimitClient {
|
|
|
12
13
|
readonly pipeline: Pipeline;
|
|
13
14
|
/** Microsoft Azure Compute Limit Resource Provider. */
|
|
14
15
|
constructor(credential: TokenCredential, subscriptionId: string, options?: ComputeLimitClientOptionalParams);
|
|
16
|
+
/** The operation groups for vmFamilies */
|
|
17
|
+
readonly vmFamilies: VmFamiliesOperations;
|
|
15
18
|
/** The operation groups for features */
|
|
16
19
|
readonly features: FeaturesOperations;
|
|
17
20
|
/** The operation groups for sharedLimits */
|
|
@@ -5,6 +5,7 @@ import { _getFeaturesOperations } from "./classic/features/index.js";
|
|
|
5
5
|
import { _getGuestSubscriptionsOperations } from "./classic/guestSubscriptions/index.js";
|
|
6
6
|
import { _getOperationsOperations } from "./classic/operations/index.js";
|
|
7
7
|
import { _getSharedLimitsOperations } from "./classic/sharedLimits/index.js";
|
|
8
|
+
import { _getVmFamiliesOperations } from "./classic/vmFamilies/index.js";
|
|
8
9
|
export class ComputeLimitClient {
|
|
9
10
|
_client;
|
|
10
11
|
/** The pipeline used by this client to make requests */
|
|
@@ -20,11 +21,14 @@ export class ComputeLimitClient {
|
|
|
20
21
|
userAgentOptions: { userAgentPrefix },
|
|
21
22
|
});
|
|
22
23
|
this.pipeline = this._client.pipeline;
|
|
24
|
+
this.vmFamilies = _getVmFamiliesOperations(this._client);
|
|
23
25
|
this.features = _getFeaturesOperations(this._client);
|
|
24
26
|
this.sharedLimits = _getSharedLimitsOperations(this._client);
|
|
25
27
|
this.guestSubscriptions = _getGuestSubscriptionsOperations(this._client);
|
|
26
28
|
this.operations = _getOperationsOperations(this._client);
|
|
27
29
|
}
|
|
30
|
+
/** The operation groups for vmFamilies */
|
|
31
|
+
vmFamilies;
|
|
28
32
|
/** The operation groups for features */
|
|
29
33
|
features;
|
|
30
34
|
/** The operation groups for sharedLimits */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"computeLimitClient.js","sourceRoot":"","sources":["../../src/computeLimitClient.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAGlC,OAAO,EAAE,kBAA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UAAU,GAAG,wBAAwB,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACzD,IAAI,CAAC,QAAQ,GAAG,sBAAsB,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACrD,IAAI,CAAC,YAAY,GAAG,0BAA0B,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC7D,IAAI,CAAC,kBAAkB,GAAG,gCAAgC,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACzE,IAAI,CAAC,UAAU,GAAG,wBAAwB,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAC3D,CAAC;IAED,0CAA0C;IAC1B,UAAU,CAAuB;IACjD,wCAAwC;IACxB,QAAQ,CAAqB;IAC7C,4CAA4C;IAC5B,YAAY,CAAyB;IACrD,kDAAkD;IAClC,kBAAkB,CAA+B;IACjE,0CAA0C;IAC1B,UAAU,CAAuB;CAClD","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { ComputeLimitContext, ComputeLimitClientOptionalParams } from \"./api/index.js\";\nimport { createComputeLimit } from \"./api/index.js\";\nimport type { FeaturesOperations } from \"./classic/features/index.js\";\nimport { _getFeaturesOperations } from \"./classic/features/index.js\";\nimport type { GuestSubscriptionsOperations } from \"./classic/guestSubscriptions/index.js\";\nimport { _getGuestSubscriptionsOperations } from \"./classic/guestSubscriptions/index.js\";\nimport type { OperationsOperations } from \"./classic/operations/index.js\";\nimport { _getOperationsOperations } from \"./classic/operations/index.js\";\nimport type { SharedLimitsOperations } from \"./classic/sharedLimits/index.js\";\nimport { _getSharedLimitsOperations } from \"./classic/sharedLimits/index.js\";\nimport type { VmFamiliesOperations } from \"./classic/vmFamilies/index.js\";\nimport { _getVmFamiliesOperations } from \"./classic/vmFamilies/index.js\";\nimport type { TokenCredential } from \"@azure/core-auth\";\nimport type { Pipeline } from \"@azure/core-rest-pipeline\";\n\nexport type { ComputeLimitClientOptionalParams } from \"./api/computeLimitContext.js\";\n\nexport class ComputeLimitClient {\n private _client: ComputeLimitContext;\n /** The pipeline used by this client to make requests */\n public readonly pipeline: Pipeline;\n\n /** Microsoft Azure Compute Limit Resource Provider. */\n constructor(\n credential: TokenCredential,\n subscriptionId: string,\n options: ComputeLimitClientOptionalParams = {},\n ) {\n const prefixFromOptions = options?.userAgentOptions?.userAgentPrefix;\n const userAgentPrefix = prefixFromOptions\n ? `${prefixFromOptions} azsdk-js-client`\n : `azsdk-js-client`;\n this._client = createComputeLimit(credential, subscriptionId, {\n ...options,\n userAgentOptions: { userAgentPrefix },\n });\n this.pipeline = this._client.pipeline;\n this.vmFamilies = _getVmFamiliesOperations(this._client);\n this.features = _getFeaturesOperations(this._client);\n this.sharedLimits = _getSharedLimitsOperations(this._client);\n this.guestSubscriptions = _getGuestSubscriptionsOperations(this._client);\n this.operations = _getOperationsOperations(this._client);\n }\n\n /** The operation groups for vmFamilies */\n public readonly vmFamilies: VmFamiliesOperations;\n /** The operation groups for features */\n public readonly features: FeaturesOperations;\n /** The operation groups for sharedLimits */\n public readonly sharedLimits: SharedLimitsOperations;\n /** The operation groups for guestSubscriptions */\n public readonly guestSubscriptions: GuestSubscriptionsOperations;\n /** The operation groups for operations */\n public readonly operations: OperationsOperations;\n}\n"]}
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -4,15 +4,17 @@ import type { PageSettings, ContinuablePage, PagedAsyncIterableIterator } from "
|
|
|
4
4
|
export { ComputeLimitClient } from "./computeLimitClient.js";
|
|
5
5
|
export type { RestorePollerOptions } from "./restorePollerHelpers.js";
|
|
6
6
|
export { restorePoller } from "./restorePollerHelpers.js";
|
|
7
|
-
export type { Operation, OperationDisplay, Origin, ActionType, ErrorResponse, ErrorDetail, ErrorAdditionalInfo, GuestSubscription, GuestSubscriptionProperties, ResourceProvisioningState, ProxyResource, Resource, SystemData, CreatedByType, SharedLimit, SharedLimitProperties, LimitName, Feature, FeatureProperties, FeatureState, OperationStatusResult, } from "./models/index.js";
|
|
7
|
+
export type { Operation, OperationDisplay, Origin, ActionType, ErrorResponse, ErrorDetail, ErrorAdditionalInfo, GuestSubscription, GuestSubscriptionProperties, ResourceProvisioningState, ProxyResource, Resource, SystemData, CreatedByType, SharedLimit, SharedLimitProperties, LimitName, Feature, FeatureProperties, FeatureState, FeatureEnableRequest, OperationStatusResult, VmFamily, VmFamilyProperties, } from "./models/index.js";
|
|
8
8
|
export { KnownOrigin, KnownActionType, KnownResourceProvisioningState, KnownCreatedByType, KnownFeatureState, KnownVersions, } from "./models/index.js";
|
|
9
9
|
export type { ComputeLimitClientOptionalParams } from "./api/index.js";
|
|
10
|
-
export type { FeaturesEnableOptionalParams, FeaturesListBySubscriptionLocationResourceOptionalParams, FeaturesGetOptionalParams, } from "./api/features/index.js";
|
|
10
|
+
export type { FeaturesDisableOptionalParams, FeaturesEnableOptionalParams, FeaturesListBySubscriptionLocationResourceOptionalParams, FeaturesGetOptionalParams, } from "./api/features/index.js";
|
|
11
11
|
export type { GuestSubscriptionsListBySubscriptionLocationResourceOptionalParams, GuestSubscriptionsDeleteOptionalParams, GuestSubscriptionsCreateOptionalParams, GuestSubscriptionsGetOptionalParams, } from "./api/guestSubscriptions/index.js";
|
|
12
12
|
export type { OperationsListOptionalParams } from "./api/operations/index.js";
|
|
13
13
|
export type { SharedLimitsListBySubscriptionLocationResourceOptionalParams, SharedLimitsDeleteOptionalParams, SharedLimitsCreateOptionalParams, SharedLimitsGetOptionalParams, } from "./api/sharedLimits/index.js";
|
|
14
|
-
export type {
|
|
14
|
+
export type { VmFamiliesListBySubscriptionLocationResourceOptionalParams, VmFamiliesGetOptionalParams, } from "./api/vmFamilies/index.js";
|
|
15
|
+
export type { FeaturesOperations, GuestSubscriptionsOperations, OperationsOperations, SharedLimitsOperations, VmFamiliesOperations, } from "./classic/index.js";
|
|
15
16
|
export type { PageSettings, ContinuablePage, PagedAsyncIterableIterator };
|
|
16
17
|
export { AzureClouds };
|
|
17
18
|
export type { AzureSupportedClouds };
|
|
19
|
+
export { RestError, isRestError } from "@azure/core-rest-pipeline";
|
|
18
20
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/esm/index.js
CHANGED
|
@@ -5,4 +5,5 @@ export { ComputeLimitClient } from "./computeLimitClient.js";
|
|
|
5
5
|
export { restorePoller } from "./restorePollerHelpers.js";
|
|
6
6
|
export { KnownOrigin, KnownActionType, KnownResourceProvisioningState, KnownCreatedByType, KnownFeatureState, KnownVersions, } from "./models/index.js";
|
|
7
7
|
export { AzureClouds };
|
|
8
|
+
export { RestError, isRestError } from "@azure/core-rest-pipeline";
|
|
8
9
|
//# sourceMappingURL=index.js.map
|
package/dist/esm/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAGlC,OAAO,EAAE,WAAW,EAAE,MAAM,yCAAyC,CAAC;AAOtE,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAE7D,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAGlC,OAAO,EAAE,WAAW,EAAE,MAAM,yCAAyC,CAAC;AAOtE,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAE7D,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AA2B1D,OAAO,EACL,WAAW,EACX,eAAe,EACf,8BAA8B,EAC9B,kBAAkB,EAClB,iBAAiB,EACjB,aAAa,GACd,MAAM,mBAAmB,CAAC;AAiC3B,OAAO,EAAE,WAAW,EAAE,CAAC;AAEvB,OAAO,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { AzureSupportedClouds } from \"./static-helpers/cloudSettingHelpers.js\";\nimport { AzureClouds } from \"./static-helpers/cloudSettingHelpers.js\";\nimport type {\n PageSettings,\n ContinuablePage,\n PagedAsyncIterableIterator,\n} from \"./static-helpers/pagingHelpers.js\";\n\nexport { ComputeLimitClient } from \"./computeLimitClient.js\";\nexport type { RestorePollerOptions } from \"./restorePollerHelpers.js\";\nexport { restorePoller } from \"./restorePollerHelpers.js\";\nexport type {\n Operation,\n OperationDisplay,\n Origin,\n ActionType,\n ErrorResponse,\n ErrorDetail,\n ErrorAdditionalInfo,\n GuestSubscription,\n GuestSubscriptionProperties,\n ResourceProvisioningState,\n ProxyResource,\n Resource,\n SystemData,\n CreatedByType,\n SharedLimit,\n SharedLimitProperties,\n LimitName,\n Feature,\n FeatureProperties,\n FeatureState,\n FeatureEnableRequest,\n OperationStatusResult,\n VmFamily,\n VmFamilyProperties,\n} from \"./models/index.js\";\nexport {\n KnownOrigin,\n KnownActionType,\n KnownResourceProvisioningState,\n KnownCreatedByType,\n KnownFeatureState,\n KnownVersions,\n} from \"./models/index.js\";\nexport type { ComputeLimitClientOptionalParams } from \"./api/index.js\";\nexport type {\n FeaturesDisableOptionalParams,\n FeaturesEnableOptionalParams,\n FeaturesListBySubscriptionLocationResourceOptionalParams,\n FeaturesGetOptionalParams,\n} from \"./api/features/index.js\";\nexport type {\n GuestSubscriptionsListBySubscriptionLocationResourceOptionalParams,\n GuestSubscriptionsDeleteOptionalParams,\n GuestSubscriptionsCreateOptionalParams,\n GuestSubscriptionsGetOptionalParams,\n} from \"./api/guestSubscriptions/index.js\";\nexport type { OperationsListOptionalParams } from \"./api/operations/index.js\";\nexport type {\n SharedLimitsListBySubscriptionLocationResourceOptionalParams,\n SharedLimitsDeleteOptionalParams,\n SharedLimitsCreateOptionalParams,\n SharedLimitsGetOptionalParams,\n} from \"./api/sharedLimits/index.js\";\nexport type {\n VmFamiliesListBySubscriptionLocationResourceOptionalParams,\n VmFamiliesGetOptionalParams,\n} from \"./api/vmFamilies/index.js\";\nexport type {\n FeaturesOperations,\n GuestSubscriptionsOperations,\n OperationsOperations,\n SharedLimitsOperations,\n VmFamiliesOperations,\n} from \"./classic/index.js\";\nexport type { PageSettings, ContinuablePage, PagedAsyncIterableIterator };\nexport { AzureClouds };\nexport type { AzureSupportedClouds };\nexport { RestError, isRestError } from \"@azure/core-rest-pipeline\";\n"]}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export type { Operation, OperationDisplay, Origin, ActionType, ErrorResponse, ErrorDetail, ErrorAdditionalInfo, GuestSubscription, GuestSubscriptionProperties, ResourceProvisioningState, ProxyResource, Resource, SystemData, CreatedByType, SharedLimit, SharedLimitProperties, LimitName, Feature, FeatureProperties, FeatureState, OperationStatusResult, } from "./models.js";
|
|
1
|
+
export type { Operation, OperationDisplay, Origin, ActionType, ErrorResponse, ErrorDetail, ErrorAdditionalInfo, GuestSubscription, GuestSubscriptionProperties, ResourceProvisioningState, ProxyResource, Resource, SystemData, CreatedByType, SharedLimit, SharedLimitProperties, LimitName, Feature, FeatureProperties, FeatureState, FeatureEnableRequest, OperationStatusResult, VmFamily, VmFamilyProperties, } from "./models.js";
|
|
2
2
|
export { KnownOrigin, KnownActionType, KnownResourceProvisioningState, KnownCreatedByType, KnownFeatureState, KnownVersions, } from "./models.js";
|
|
3
3
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/models/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/models/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AA4BlC,OAAO,EACL,WAAW,EACX,eAAe,EACf,8BAA8B,EAC9B,kBAAkB,EAClB,iBAAiB,EACjB,aAAa,GACd,MAAM,aAAa,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nexport type {\n Operation,\n OperationDisplay,\n Origin,\n ActionType,\n ErrorResponse,\n ErrorDetail,\n ErrorAdditionalInfo,\n GuestSubscription,\n GuestSubscriptionProperties,\n ResourceProvisioningState,\n ProxyResource,\n Resource,\n SystemData,\n CreatedByType,\n SharedLimit,\n SharedLimitProperties,\n LimitName,\n Feature,\n FeatureProperties,\n FeatureState,\n FeatureEnableRequest,\n OperationStatusResult,\n VmFamily,\n VmFamilyProperties,\n} from \"./models.js\";\nexport {\n KnownOrigin,\n KnownActionType,\n KnownResourceProvisioningState,\n KnownCreatedByType,\n KnownFeatureState,\n KnownVersions,\n} from \"./models.js\";\n"]}
|
|
@@ -275,6 +275,12 @@ export interface _FeatureListResult {
|
|
|
275
275
|
}
|
|
276
276
|
export declare function _featureListResultDeserializer(item: any): _FeatureListResult;
|
|
277
277
|
export declare function featureArrayDeserializer(result: Array<Feature>): any[];
|
|
278
|
+
/** Request body for feature enable action. */
|
|
279
|
+
export interface FeatureEnableRequest {
|
|
280
|
+
/** The Service Tree identifier associated with this feature action. */
|
|
281
|
+
serviceTreeId?: string;
|
|
282
|
+
}
|
|
283
|
+
export declare function featureEnableRequestSerializer(item: FeatureEnableRequest): any;
|
|
278
284
|
/** The current status of an async operation. */
|
|
279
285
|
export interface OperationStatusResult {
|
|
280
286
|
/** Fully qualified ID for the async operation. */
|
|
@@ -298,11 +304,38 @@ export interface OperationStatusResult {
|
|
|
298
304
|
}
|
|
299
305
|
export declare function operationStatusResultDeserializer(item: any): OperationStatusResult;
|
|
300
306
|
export declare function operationStatusResultArrayDeserializer(result: Array<OperationStatusResult>): any[];
|
|
307
|
+
/** VM family resource representing a virtual machine family and its category. */
|
|
308
|
+
export interface VmFamily extends ProxyResource {
|
|
309
|
+
/** The resource-specific properties for this resource. */
|
|
310
|
+
properties?: VmFamilyProperties;
|
|
311
|
+
}
|
|
312
|
+
export declare function vmFamilyDeserializer(item: any): VmFamily;
|
|
313
|
+
/** Properties of a VM family resource. */
|
|
314
|
+
export interface VmFamilyProperties {
|
|
315
|
+
/** The category of the VM family (for example, GeneralPurpose, ComputeOptimized). */
|
|
316
|
+
category?: string;
|
|
317
|
+
/** The provisioning state of the resource. */
|
|
318
|
+
readonly provisioningState?: ResourceProvisioningState;
|
|
319
|
+
}
|
|
320
|
+
export declare function vmFamilyPropertiesDeserializer(item: any): VmFamilyProperties;
|
|
321
|
+
/** The response of a VmFamily list operation. */
|
|
322
|
+
export interface _VmFamilyListResult {
|
|
323
|
+
/** The VmFamily items on this page */
|
|
324
|
+
value: VmFamily[];
|
|
325
|
+
/** The link to the next page of items */
|
|
326
|
+
nextLink?: string;
|
|
327
|
+
}
|
|
328
|
+
export declare function _vmFamilyListResultDeserializer(item: any): _VmFamilyListResult;
|
|
329
|
+
export declare function vmFamilyArrayDeserializer(result: Array<VmFamily>): any[];
|
|
301
330
|
/** The available API versions. */
|
|
302
331
|
export declare enum KnownVersions {
|
|
303
332
|
/** The 2025-08-15 API version. */
|
|
304
333
|
V20250815 = "2025-08-15",
|
|
305
334
|
/** The 2026-03-20 API version. */
|
|
306
|
-
V20260320 = "2026-03-20"
|
|
335
|
+
V20260320 = "2026-03-20",
|
|
336
|
+
/** The 2026-04-30 API version. */
|
|
337
|
+
V20260430 = "2026-04-30",
|
|
338
|
+
/** The 2026-06-01 API version. */
|
|
339
|
+
V20260601 = "2026-06-01"
|
|
307
340
|
}
|
|
308
341
|
//# sourceMappingURL=models.d.ts.map
|
|
@@ -273,6 +273,9 @@ export function featureArrayDeserializer(result) {
|
|
|
273
273
|
return featureDeserializer(item);
|
|
274
274
|
});
|
|
275
275
|
}
|
|
276
|
+
export function featureEnableRequestSerializer(item) {
|
|
277
|
+
return { serviceTreeId: item["serviceTreeId"] };
|
|
278
|
+
}
|
|
276
279
|
export function operationStatusResultDeserializer(item) {
|
|
277
280
|
return {
|
|
278
281
|
id: item["id"],
|
|
@@ -293,6 +296,36 @@ export function operationStatusResultArrayDeserializer(result) {
|
|
|
293
296
|
return operationStatusResultDeserializer(item);
|
|
294
297
|
});
|
|
295
298
|
}
|
|
299
|
+
export function vmFamilyDeserializer(item) {
|
|
300
|
+
return {
|
|
301
|
+
id: item["id"],
|
|
302
|
+
name: item["name"],
|
|
303
|
+
type: item["type"],
|
|
304
|
+
systemData: !item["systemData"]
|
|
305
|
+
? item["systemData"]
|
|
306
|
+
: systemDataDeserializer(item["systemData"]),
|
|
307
|
+
properties: !item["properties"]
|
|
308
|
+
? item["properties"]
|
|
309
|
+
: vmFamilyPropertiesDeserializer(item["properties"]),
|
|
310
|
+
};
|
|
311
|
+
}
|
|
312
|
+
export function vmFamilyPropertiesDeserializer(item) {
|
|
313
|
+
return {
|
|
314
|
+
category: item["category"],
|
|
315
|
+
provisioningState: item["provisioningState"],
|
|
316
|
+
};
|
|
317
|
+
}
|
|
318
|
+
export function _vmFamilyListResultDeserializer(item) {
|
|
319
|
+
return {
|
|
320
|
+
value: vmFamilyArrayDeserializer(item["value"]),
|
|
321
|
+
nextLink: item["nextLink"],
|
|
322
|
+
};
|
|
323
|
+
}
|
|
324
|
+
export function vmFamilyArrayDeserializer(result) {
|
|
325
|
+
return result.map((item) => {
|
|
326
|
+
return vmFamilyDeserializer(item);
|
|
327
|
+
});
|
|
328
|
+
}
|
|
296
329
|
/** The available API versions. */
|
|
297
330
|
export var KnownVersions;
|
|
298
331
|
(function (KnownVersions) {
|
|
@@ -300,5 +333,9 @@ export var KnownVersions;
|
|
|
300
333
|
KnownVersions["V20250815"] = "2025-08-15";
|
|
301
334
|
/** The 2026-03-20 API version. */
|
|
302
335
|
KnownVersions["V20260320"] = "2026-03-20";
|
|
336
|
+
/** The 2026-04-30 API version. */
|
|
337
|
+
KnownVersions["V20260430"] = "2026-04-30";
|
|
338
|
+
/** The 2026-06-01 API version. */
|
|
339
|
+
KnownVersions["V20260601"] = "2026-06-01";
|
|
303
340
|
})(KnownVersions || (KnownVersions = {}));
|
|
304
341
|
//# sourceMappingURL=models.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-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Y,CAAC,CAAC;QAC9D,KAAK,EAAE,CAAC,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
|
+
{"version":3,"file":"models.js","sourceRoot":"","sources":["../../../src/models/models.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAgBlC,MAAM,UAAU,gCAAgC,CAAC,IAAS;IACxD,OAAO;QACL,KAAK,EAAE,0BAA0B,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAChD,QAAQ,EAAE,IAAI,CAAC,UAAU,CAAC;KAC3B,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,0BAA0B,CAAC,MAAwB;IACjE,OAAO,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE;QACzB,OAAO,qBAAqB,CAAC,IAAI,CAAC,CAAC;IACrC,CAAC,CAAC,CAAC;AACL,CAAC;AAgBD,MAAM,UAAU,qBAAqB,CAAC,IAAS;IAC7C,OAAO;QACL,IAAI,EAAE,IAAI,CAAC,MAAM,CAAC;QAClB,YAAY,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a,KAAb,aAAa,QASxB","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/** Request body for feature enable action. */\nexport interface FeatureEnableRequest {\n /** The Service Tree identifier associated with this feature action. */\n serviceTreeId?: string;\n}\n\nexport function featureEnableRequestSerializer(item: FeatureEnableRequest): any {\n return { serviceTreeId: item[\"serviceTreeId\"] };\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/** VM family resource representing a virtual machine family and its category. */\nexport interface VmFamily extends ProxyResource {\n /** The resource-specific properties for this resource. */\n properties?: VmFamilyProperties;\n}\n\nexport function vmFamilyDeserializer(item: any): VmFamily {\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 : vmFamilyPropertiesDeserializer(item[\"properties\"]),\n };\n}\n\n/** Properties of a VM family resource. */\nexport interface VmFamilyProperties {\n /** The category of the VM family (for example, GeneralPurpose, ComputeOptimized). */\n category?: string;\n /** The provisioning state of the resource. */\n readonly provisioningState?: ResourceProvisioningState;\n}\n\nexport function vmFamilyPropertiesDeserializer(item: any): VmFamilyProperties {\n return {\n category: item[\"category\"],\n provisioningState: item[\"provisioningState\"],\n };\n}\n\n/** The response of a VmFamily list operation. */\nexport interface _VmFamilyListResult {\n /** The VmFamily items on this page */\n value: VmFamily[];\n /** The link to the next page of items */\n nextLink?: string;\n}\n\nexport function _vmFamilyListResultDeserializer(item: any): _VmFamilyListResult {\n return {\n value: vmFamilyArrayDeserializer(item[\"value\"]),\n nextLink: item[\"nextLink\"],\n };\n}\n\nexport function vmFamilyArrayDeserializer(result: Array<VmFamily>): any[] {\n return result.map((item) => {\n return vmFamilyDeserializer(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 /** The 2026-04-30 API version. */\n V20260430 = \"2026-04-30\",\n /** The 2026-06-01 API version. */\n V20260601 = \"2026-06-01\",\n}\n"]}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// Copyright (c) Microsoft Corporation.
|
|
2
2
|
// Licensed under the MIT License.
|
|
3
|
-
import { _enableDeserialize } from "./api/features/operations.js";
|
|
3
|
+
import { _disableDeserialize, _enableDeserialize } from "./api/features/operations.js";
|
|
4
4
|
import { getLongRunningPoller } from "./static-helpers/pollingHelpers.js";
|
|
5
5
|
import { deserializeState } from "@azure/core-lro";
|
|
6
6
|
/**
|
|
@@ -31,7 +31,8 @@ export function restorePoller(client, serializedState, sourceOperation, options)
|
|
|
31
31
|
});
|
|
32
32
|
}
|
|
33
33
|
const deserializeMap = {
|
|
34
|
-
"POST /subscriptions/{subscriptionId}/providers/Microsoft.ComputeLimit/locations/{location}/features/{featureName}/
|
|
34
|
+
"POST /subscriptions/{subscriptionId}/providers/Microsoft.ComputeLimit/locations/{location}/features/{featureName}/disable": { deserializer: _disableDeserialize, expectedStatuses: ["200", "202", "201"] },
|
|
35
|
+
"POST /subscriptions/{subscriptionId}/providers/Microsoft.ComputeLimit/locations/{location}/features/{featureName}/enable": { deserializer: _enableDeserialize, expectedStatuses: ["200", "202", "201"] },
|
|
35
36
|
};
|
|
36
37
|
function getDeserializationHelper(urlStr, method) {
|
|
37
38
|
const path = new URL(urlStr).pathname;
|
|
@@ -1 +1 @@
|
|
|
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;
|
|
1
|
+
{"version":3,"file":"restorePollerHelpers.js","sourceRoot":"","sources":["../../src/restorePollerHelpers.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAGlC,OAAO,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,MAAM,8BAA8B,CAAC;AACvF,OAAO,EAAE,oBAAoB,EAAE,MAAM,oCAAoC,CAAC;AAI1E,OAAO,EAAE,gBAAgB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,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 { _disableDeserialize, _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}/disable\":\n { deserializer: _disableDeserialize, expectedStatuses: [\"200\", \"202\", \"201\"] },\n \"POST /subscriptions/{subscriptionId}/providers/Microsoft.ComputeLimit/locations/{location}/features/{featureName}/enable\":\n { deserializer: _enableDeserialize, expectedStatuses: [\"200\", \"202\", \"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"]}
|
|
@@ -136,7 +136,7 @@ function addApiVersionToUrl(url, apiVersion) {
|
|
|
136
136
|
const urlObj = new URL(url, "https://microsoft.com");
|
|
137
137
|
if (!urlObj.searchParams.get("api-version")) {
|
|
138
138
|
// Append one if there is no apiVersion
|
|
139
|
-
return `${url}${
|
|
139
|
+
return `${url}${urlObj.search ? "&" : "?"}api-version=${apiVersion}`;
|
|
140
140
|
}
|
|
141
141
|
return url;
|
|
142
142
|
}
|