@azure/arm-computelimit 1.1.0 → 1.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser/api/computeLimitContext.js +1 -1
- package/dist/browser/api/computeLimitContext.js.map +1 -1
- package/dist/browser/api/features/operations.d.ts +2 -2
- package/dist/browser/api/features/operations.js +21 -13
- package/dist/browser/api/features/operations.js.map +1 -1
- package/dist/browser/api/guestSubscriptions/operations.js +17 -9
- package/dist/browser/api/guestSubscriptions/operations.js.map +1 -1
- package/dist/browser/api/memberCapOverrides/index.d.ts +3 -0
- package/dist/browser/api/memberCapOverrides/index.js +4 -0
- package/dist/browser/api/memberCapOverrides/index.js.map +1 -0
- package/dist/browser/api/memberCapOverrides/operations.d.ts +22 -0
- package/dist/browser/api/memberCapOverrides/operations.js +128 -0
- package/dist/browser/api/memberCapOverrides/operations.js.map +1 -0
- package/dist/browser/api/memberCapOverrides/options.d.ts +14 -0
- package/dist/browser/api/memberCapOverrides/options.js +4 -0
- package/dist/browser/api/memberCapOverrides/options.js.map +1 -0
- package/dist/browser/api/operations/operations.js +5 -3
- package/dist/browser/api/operations/operations.js.map +1 -1
- package/dist/browser/api/sharedLimitCaps/index.d.ts +3 -0
- package/dist/browser/api/sharedLimitCaps/index.js +4 -0
- package/dist/browser/api/sharedLimitCaps/index.js.map +1 -0
- package/dist/browser/api/sharedLimitCaps/operations.d.ts +30 -0
- package/dist/browser/api/sharedLimitCaps/operations.js +160 -0
- package/dist/browser/api/sharedLimitCaps/operations.js.map +1 -0
- package/dist/browser/api/sharedLimitCaps/options.d.ts +17 -0
- package/dist/browser/api/sharedLimitCaps/options.js +4 -0
- package/dist/browser/api/sharedLimitCaps/options.js.map +1 -0
- package/dist/browser/api/sharedLimits/operations.js +17 -9
- package/dist/browser/api/sharedLimits/operations.js.map +1 -1
- package/dist/browser/api/vmFamilies/operations.js +9 -5
- package/dist/browser/api/vmFamilies/operations.js.map +1 -1
- package/dist/browser/classic/features/index.d.ts +2 -2
- package/dist/browser/classic/features/index.js.map +1 -1
- package/dist/browser/classic/index.d.ts +2 -0
- package/dist/browser/classic/index.js.map +1 -1
- package/dist/browser/classic/memberCapOverrides/index.d.ts +17 -0
- package/dist/browser/classic/memberCapOverrides/index.js +17 -0
- package/dist/browser/classic/memberCapOverrides/index.js.map +1 -0
- package/dist/browser/classic/sharedLimitCaps/index.d.ts +23 -0
- package/dist/browser/classic/sharedLimitCaps/index.js +18 -0
- package/dist/browser/classic/sharedLimitCaps/index.js.map +1 -0
- package/dist/browser/computeLimitClient.d.ts +6 -0
- package/dist/browser/computeLimitClient.js +8 -0
- package/dist/browser/computeLimitClient.js.map +1 -1
- package/dist/browser/index.d.ts +4 -2
- 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 +111 -1
- package/dist/browser/models/models.js +120 -0
- package/dist/browser/models/models.js.map +1 -1
- package/dist/browser/restorePollerHelpers.js.map +1 -1
- package/dist/browser/static-helpers/pollingHelpers.d.ts +1 -1
- package/dist/browser/static-helpers/pollingHelpers.js.map +1 -1
- package/dist/commonjs/api/computeLimitContext.js +1 -1
- package/dist/commonjs/api/computeLimitContext.js.map +1 -1
- package/dist/commonjs/api/features/operations.d.ts +2 -2
- package/dist/commonjs/api/features/operations.js +19 -11
- package/dist/commonjs/api/features/operations.js.map +2 -2
- package/dist/commonjs/api/guestSubscriptions/operations.js +17 -9
- package/dist/commonjs/api/guestSubscriptions/operations.js.map +2 -2
- package/dist/commonjs/api/memberCapOverrides/index.d.ts +3 -0
- package/dist/commonjs/api/memberCapOverrides/index.js +34 -0
- package/dist/commonjs/api/memberCapOverrides/index.js.map +7 -0
- package/dist/commonjs/api/memberCapOverrides/operations.d.ts +22 -0
- package/dist/commonjs/api/memberCapOverrides/operations.js +199 -0
- package/dist/commonjs/api/memberCapOverrides/operations.js.map +7 -0
- package/dist/commonjs/api/memberCapOverrides/options.d.ts +14 -0
- package/dist/commonjs/api/memberCapOverrides/options.js +16 -0
- package/dist/commonjs/api/memberCapOverrides/options.js.map +7 -0
- package/dist/commonjs/api/operations/operations.js +5 -3
- package/dist/commonjs/api/operations/operations.js.map +2 -2
- package/dist/commonjs/api/sharedLimitCaps/index.d.ts +3 -0
- package/dist/commonjs/api/sharedLimitCaps/index.js +36 -0
- package/dist/commonjs/api/sharedLimitCaps/index.js.map +7 -0
- package/dist/commonjs/api/sharedLimitCaps/operations.d.ts +30 -0
- package/dist/commonjs/api/sharedLimitCaps/operations.js +229 -0
- package/dist/commonjs/api/sharedLimitCaps/operations.js.map +7 -0
- package/dist/commonjs/api/sharedLimitCaps/options.d.ts +17 -0
- package/dist/commonjs/api/sharedLimitCaps/options.js +16 -0
- package/dist/commonjs/api/sharedLimitCaps/options.js.map +7 -0
- package/dist/commonjs/api/sharedLimits/operations.js +17 -9
- package/dist/commonjs/api/sharedLimits/operations.js.map +2 -2
- package/dist/commonjs/api/vmFamilies/operations.js +9 -5
- package/dist/commonjs/api/vmFamilies/operations.js.map +2 -2
- package/dist/commonjs/classic/features/index.d.ts +2 -2
- package/dist/commonjs/classic/features/index.js.map +1 -1
- package/dist/commonjs/classic/index.d.ts +2 -0
- package/dist/commonjs/classic/index.js.map +1 -1
- package/dist/commonjs/classic/memberCapOverrides/index.d.ts +17 -0
- package/dist/commonjs/classic/memberCapOverrides/index.js +41 -0
- package/dist/commonjs/classic/memberCapOverrides/index.js.map +7 -0
- package/dist/commonjs/classic/sharedLimitCaps/index.d.ts +23 -0
- package/dist/commonjs/classic/sharedLimitCaps/index.js +42 -0
- package/dist/commonjs/classic/sharedLimitCaps/index.js.map +7 -0
- package/dist/commonjs/computeLimitClient.d.ts +6 -0
- package/dist/commonjs/computeLimitClient.js +8 -0
- package/dist/commonjs/computeLimitClient.js.map +2 -2
- package/dist/commonjs/index.d.ts +4 -2
- 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 +111 -1
- package/dist/commonjs/models/models.js +147 -0
- package/dist/commonjs/models/models.js.map +2 -2
- package/dist/commonjs/restorePollerHelpers.js.map +2 -2
- package/dist/commonjs/static-helpers/pollingHelpers.d.ts +1 -1
- package/dist/commonjs/static-helpers/pollingHelpers.js.map +1 -1
- package/dist/commonjs/tsdoc-metadata.json +1 -1
- package/dist/esm/api/computeLimitContext.js +1 -1
- package/dist/esm/api/computeLimitContext.js.map +1 -1
- package/dist/esm/api/features/operations.d.ts +2 -2
- package/dist/esm/api/features/operations.js +21 -13
- package/dist/esm/api/features/operations.js.map +1 -1
- package/dist/esm/api/guestSubscriptions/operations.js +17 -9
- package/dist/esm/api/guestSubscriptions/operations.js.map +1 -1
- package/dist/esm/api/memberCapOverrides/index.d.ts +3 -0
- package/dist/esm/api/memberCapOverrides/index.js +4 -0
- package/dist/esm/api/memberCapOverrides/index.js.map +1 -0
- package/dist/esm/api/memberCapOverrides/operations.d.ts +22 -0
- package/dist/esm/api/memberCapOverrides/operations.js +128 -0
- package/dist/esm/api/memberCapOverrides/operations.js.map +1 -0
- package/dist/esm/api/memberCapOverrides/options.d.ts +14 -0
- package/dist/esm/api/memberCapOverrides/options.js +4 -0
- package/dist/esm/api/memberCapOverrides/options.js.map +1 -0
- package/dist/esm/api/operations/operations.js +5 -3
- package/dist/esm/api/operations/operations.js.map +1 -1
- package/dist/esm/api/sharedLimitCaps/index.d.ts +3 -0
- package/dist/esm/api/sharedLimitCaps/index.js +4 -0
- package/dist/esm/api/sharedLimitCaps/index.js.map +1 -0
- package/dist/esm/api/sharedLimitCaps/operations.d.ts +30 -0
- package/dist/esm/api/sharedLimitCaps/operations.js +160 -0
- package/dist/esm/api/sharedLimitCaps/operations.js.map +1 -0
- package/dist/esm/api/sharedLimitCaps/options.d.ts +17 -0
- package/dist/esm/api/sharedLimitCaps/options.js +4 -0
- package/dist/esm/api/sharedLimitCaps/options.js.map +1 -0
- package/dist/esm/api/sharedLimits/operations.js +17 -9
- package/dist/esm/api/sharedLimits/operations.js.map +1 -1
- package/dist/esm/api/vmFamilies/operations.js +9 -5
- package/dist/esm/api/vmFamilies/operations.js.map +1 -1
- package/dist/esm/classic/features/index.d.ts +2 -2
- package/dist/esm/classic/features/index.js.map +1 -1
- package/dist/esm/classic/index.d.ts +2 -0
- package/dist/esm/classic/index.js.map +1 -1
- package/dist/esm/classic/memberCapOverrides/index.d.ts +17 -0
- package/dist/esm/classic/memberCapOverrides/index.js +17 -0
- package/dist/esm/classic/memberCapOverrides/index.js.map +1 -0
- package/dist/esm/classic/sharedLimitCaps/index.d.ts +23 -0
- package/dist/esm/classic/sharedLimitCaps/index.js +18 -0
- package/dist/esm/classic/sharedLimitCaps/index.js.map +1 -0
- package/dist/esm/computeLimitClient.d.ts +6 -0
- package/dist/esm/computeLimitClient.js +8 -0
- package/dist/esm/computeLimitClient.js.map +1 -1
- package/dist/esm/index.d.ts +4 -2
- 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 +111 -1
- package/dist/esm/models/models.js +120 -0
- package/dist/esm/models/models.js.map +1 -1
- package/dist/esm/restorePollerHelpers.js.map +1 -1
- package/dist/esm/static-helpers/pollingHelpers.d.ts +1 -1
- package/dist/esm/static-helpers/pollingHelpers.js.map +1 -1
- package/package.json +33 -5
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../src/models/models.ts"],
|
|
4
|
-
"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"],
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAA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;AAAA,IAC9C,UAAU,KAAK,UAAU;AAAA,EAC3B;AACF;AAEO,SAAS,0BAA0B,QAAgC;AACxE,SAAO,OAAO,IAAI,CAAC,SAAS;AAC1B,WAAO,qBAAqB,IAAI;AAAA,EAClC,CAAC;AACH;AAGO,IAAK,gBAAL,kBAAKC,mBAAL;AAEL,EAAAA,eAAA,eAAY;AAEZ,EAAAA,eAAA,eAAY;AAEZ,EAAAA,eAAA,eAAY;AAEZ,EAAAA,eAAA,eAAY;
|
|
4
|
+
"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/**\n * Shared limit cap configuration for a VM family, owned by a host subscription\n * and propagated to its member subscriptions. The same resource type is\n * readable by host and member subscriptions, but write operations (PUT/DELETE)\n * are scoped to the caller's subscription as the host.\n */\nexport interface SharedLimitCap extends ProxyResource {\n /** The resource-specific properties for this resource. */\n properties?: SharedLimitCapProperties;\n}\n\nexport function sharedLimitCapSerializer(item: SharedLimitCap): any {\n return {\n properties: !item[\"properties\"]\n ? item[\"properties\"]\n : sharedLimitCapPropertiesSerializer(item[\"properties\"]),\n };\n}\n\nexport function sharedLimitCapDeserializer(item: any): SharedLimitCap {\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 : sharedLimitCapPropertiesDeserializer(item[\"properties\"]),\n };\n}\n\n/** Properties of a shared limit cap resource. */\nexport interface SharedLimitCapProperties {\n /**\n * The default member cap value (in count units).\n * Set to a non-negative integer to apply a cap to all member subscriptions\n * that do not have a per-member override. Omit the property to leave no\n * default cap in effect.\n */\n defaultMemberCap?: number;\n /**\n * Controls whether the service validates the aggregate cap against the\n * group limit for the VM family.\n *\n * SUM(caps) is the sum of all per-member overrides' cap values plus\n * `defaultMemberCap` multiplied by the number of member subscriptions without an override.\n *\n * When true, the service rejects any configuration where SUM(caps)\n * exceeds the group limit. When false, SUM(caps) is permitted to exceed\n * the group limit.\n *\n * Enabling this flag is rejected if the current configuration already breaches the group limit;\n * reduce caps first, then enable.\n */\n isBoundedCap: boolean;\n /** The provisioning state of the resource. */\n readonly provisioningState?: ResourceProvisioningState;\n}\n\nexport function sharedLimitCapPropertiesSerializer(item: SharedLimitCapProperties): any {\n return { defaultMemberCap: item[\"defaultMemberCap\"], isBoundedCap: item[\"isBoundedCap\"] };\n}\n\nexport function sharedLimitCapPropertiesDeserializer(item: any): SharedLimitCapProperties {\n return {\n defaultMemberCap: item[\"defaultMemberCap\"],\n isBoundedCap: item[\"isBoundedCap\"],\n provisioningState: item[\"provisioningState\"],\n };\n}\n\n/** The response of a SharedLimitCap list operation. */\nexport interface _SharedLimitCapListResult {\n /** The SharedLimitCap items on this page */\n value: SharedLimitCap[];\n /** The link to the next page of items */\n nextLink?: string;\n}\n\nexport function _sharedLimitCapListResultDeserializer(item: any): _SharedLimitCapListResult {\n return {\n value: sharedLimitCapArrayDeserializer(item[\"value\"]),\n nextLink: item[\"nextLink\"],\n };\n}\n\nexport function sharedLimitCapArraySerializer(result: Array<SharedLimitCap>): any[] {\n return result.map((item) => {\n return sharedLimitCapSerializer(item);\n });\n}\n\nexport function sharedLimitCapArrayDeserializer(result: Array<SharedLimitCap>): any[] {\n return result.map((item) => {\n return sharedLimitCapDeserializer(item);\n });\n}\n\n/** Request body for the `setMemberCapOverrides` action. */\nexport interface SetMemberCapOverridesRequest {\n /**\n * The full set of per-member cap overrides to persist for this resource.\n * This call replaces the existing set entirely; supply an empty array\n * (`[]`) to clear all overrides.\n */\n memberCapOverrides: MemberCap[];\n}\n\nexport function setMemberCapOverridesRequestSerializer(item: SetMemberCapOverridesRequest): any {\n return { memberCapOverrides: memberCapArraySerializer(item[\"memberCapOverrides\"]) };\n}\n\nexport function memberCapArraySerializer(result: Array<MemberCap>): any[] {\n return result.map((item) => {\n return memberCapSerializer(item);\n });\n}\n\nexport function memberCapArrayDeserializer(result: Array<MemberCap>): any[] {\n return result.map((item) => {\n return memberCapDeserializer(item);\n });\n}\n\n/** Per-member cap override. Pairs a member subscription with its cap value. */\nexport interface MemberCap {\n /** The member subscription identifier this cap applies to. */\n subscriptionId: string;\n /** The cap value in count units for this member subscription. */\n cap: number;\n}\n\nexport function memberCapSerializer(item: MemberCap): any {\n return { subscriptionId: item[\"subscriptionId\"], cap: item[\"cap\"] };\n}\n\nexport function memberCapDeserializer(item: any): MemberCap {\n return {\n subscriptionId: item[\"subscriptionId\"],\n cap: item[\"cap\"],\n };\n}\n\n/** Response body for the `setMemberCapOverrides` action. */\nexport interface SetMemberCapOverridesResult {\n /** The per-member cap overrides as persisted after the action completed. */\n memberCapOverrides: MemberCap[];\n}\n\nexport function setMemberCapOverridesResultDeserializer(item: any): SetMemberCapOverridesResult {\n return {\n memberCapOverrides: memberCapArrayDeserializer(item[\"memberCapOverrides\"]),\n };\n}\n\n/**\n * Member cap override as a standalone child resource of `SharedLimitCap`.\n * Use this resource to read or modify a single member's cap without\n * resending the entire `memberCapOverrides` array on the parent.\n */\nexport interface MemberCapOverride extends ProxyResource {\n /** The resource-specific properties for this resource. */\n properties?: MemberCapOverrideProperties;\n}\n\nexport function memberCapOverrideSerializer(item: MemberCapOverride): any {\n return {\n properties: !item[\"properties\"]\n ? item[\"properties\"]\n : memberCapOverridePropertiesSerializer(item[\"properties\"]),\n };\n}\n\nexport function memberCapOverrideDeserializer(item: any): MemberCapOverride {\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 : memberCapOverridePropertiesDeserializer(item[\"properties\"]),\n };\n}\n\n/** Properties of a per-member cap override. */\nexport interface MemberCapOverrideProperties {\n /** The cap value in count units for this member subscription. */\n cap: number;\n /** The provisioning state of the resource. */\n readonly provisioningState?: ResourceProvisioningState;\n}\n\nexport function memberCapOverridePropertiesSerializer(item: MemberCapOverrideProperties): any {\n return { cap: item[\"cap\"] };\n}\n\nexport function memberCapOverridePropertiesDeserializer(item: any): MemberCapOverrideProperties {\n return {\n cap: item[\"cap\"],\n provisioningState: item[\"provisioningState\"],\n };\n}\n\n/** The response of a MemberCapOverride list operation. */\nexport interface _MemberCapOverrideListResult {\n /** The MemberCapOverride items on this page */\n value: MemberCapOverride[];\n /** The link to the next page of items */\n nextLink?: string;\n}\n\nexport function _memberCapOverrideListResultDeserializer(item: any): _MemberCapOverrideListResult {\n return {\n value: memberCapOverrideArrayDeserializer(item[\"value\"]),\n nextLink: item[\"nextLink\"],\n };\n}\n\nexport function memberCapOverrideArraySerializer(result: Array<MemberCapOverride>): any[] {\n return result.map((item) => {\n return memberCapOverrideSerializer(item);\n });\n}\n\nexport function memberCapOverrideArrayDeserializer(result: Array<MemberCapOverride>): any[] {\n return result.map((item) => {\n return memberCapOverrideDeserializer(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 /** The 2026-07-01 API version. */\n V20260701 = \"2026-07-01\",\n}\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAiBO,SAAS,iCAAiC,MAAiC;AAChF,SAAO;AAAA,IACL,OAAO,2BAA2B,KAAK,OAAO,CAAC;AAAA,IAC/C,UAAU,KAAK,UAAU;AAAA,EAC3B;AACF;AAEO,SAAS,2BAA2B,QAAiC;AAC1E,SAAO,OAAO,IAAI,CAAC,SAAS;AAC1B,WAAO,s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,IAAI,CAAC,SAAS;AAC1B,WAAO,4BAA4B,IAAI;AAAA,EACzC,CAAC;AACH;AAEO,SAAS,mCAAmC,QAAyC;AAC1F,SAAO,OAAO,IAAI,CAAC,SAAS;AAC1B,WAAO,8BAA8B,IAAI;AAAA,EAC3C,CAAC;AACH;AAGO,IAAK,gBAAL,kBAAKC,mBAAL;AAEL,EAAAA,eAAA,eAAY;AAEZ,EAAAA,eAAA,eAAY;AAEZ,EAAAA,eAAA,eAAY;AAEZ,EAAAA,eAAA,eAAY;AAEZ,EAAAA,eAAA,eAAY;AAVF,SAAAA;AAAA,GAAA;",
|
|
6
6
|
"names": ["KnownOrigin", "KnownActionType", "KnownResourceProvisioningState", "KnownCreatedByType", "KnownFeatureState", "KnownVersions"]
|
|
7
7
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/restorePollerHelpers.ts"],
|
|
4
|
-
"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
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAIA,wBAAwD;AACxD,4BAAqC;AAIrC,sBAAiC;AAqB1B,SAAS,cACd,QACA,iBACA,iBACA,SAC8C;AAC9C,QAAM,mBAAe,kCAAiB,eAAe,EAAE;AACvD,QAAM,EAAE,mBAAmB,eAAe,SAAS,IAAI;AACvD,MAAI,CAAC,qBAAqB,CAAC,eAAe;AACxC,UAAM,IAAI;AAAA,MACR,6BAA6B,eAAe,wBAAwB,iBAAiB,IAAI;AAAA,IAC3F;AAAA,EACF;AACA,QAAM,yBAAyB,WAAW,wBAAwB;
|
|
4
|
+
"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 | 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"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAIA,wBAAwD;AACxD,4BAAqC;AAIrC,sBAAiC;AAqB1B,SAAS,cACd,QACA,iBACA,iBACA,SAC8C;AAC9C,QAAM,mBAAe,kCAAiB,eAAe,EAAE;AACvD,QAAM,EAAE,mBAAmB,eAAe,SAAS,IAAI;AACvD,MAAI,CAAC,qBAAqB,CAAC,eAAe;AACxC,UAAM,IAAI;AAAA,MACR,6BAA6B,eAAe,wBAAwB,iBAAiB,IAAI;AAAA,IAC3F;AAAA,EACF;AACA,QAAM,yBAAyB,WAAW,wBAAwB;AAElE,QAAM,EAAE,cAAc,mBAAmB,CAAC,EAAE,IAC1C,yBAAyB,mBAAmB,aAAa,KAAK,CAAC;AACjE,QAAM,oBAAoB,SAAS,uBAAuB;AAC1D,MAAI,CAAC,mBAAmB;AACtB,UAAM,IAAI;AAAA,MACR,0FAA0F,iBAAiB,IAAI;AAAA,IACjH;AAAA,EACF;AACA,QAAM,aAAa,qBAAqB,iBAAiB;AACzD,aAAO;AAAA,IACJ,OAAe,SAAS,KAAK;AAAA,IAC9B;AAAA,IACA;AAAA,IACA;AAAA,MACE,oBAAoB,SAAS;AAAA,MAC7B,aAAa,SAAS;AAAA,MACtB;AAAA,MACA,aAAa;AAAA,MACb;AAAA,MACA;AAAA,IACF;AAAA,EACF;AACF;AAOA,MAAM,iBAAwD;AAAA,EAC5D,6HACE,EAAE,cAAc,uCAAqB,kBAAkB,CAAC,OAAO,OAAO,KAAK,EAAE;AAAA,EAC/E,4HACE,EAAE,cAAc,sCAAoB,kBAAkB,CAAC,OAAO,OAAO,KAAK,EAAE;AAChF;AAEA,SAAS,yBACP,QACA,QACmC;AACnC,QAAM,OAAO,IAAI,IAAI,MAA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,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { OperationState, PollerLike, ResourceLocationConfig } from "@azure/core-lro";
|
|
2
2
|
import type { Client, PathUncheckedResponse } from "@azure-rest/core-client";
|
|
3
3
|
import type { AbortSignalLike } from "@azure/abort-controller";
|
|
4
4
|
export interface GetLongRunningPollerOptions<TResponse> {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../src/static-helpers/pollingHelpers.ts"],
|
|
4
|
-
"sourcesContent": ["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type {\n
|
|
4
|
+
"sourcesContent": ["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type {\n OperationResponse,\n OperationState,\n PollerLike,\n ResourceLocationConfig,\n RunningOperation,\n} from \"@azure/core-lro\";\nimport { createHttpPoller } from \"@azure/core-lro\";\n\nimport type { Client, PathUncheckedResponse } from \"@azure-rest/core-client\";\nimport { createRestError } from \"@azure-rest/core-client\";\nimport type { AbortSignalLike } from \"@azure/abort-controller\";\n\nexport interface GetLongRunningPollerOptions<TResponse> {\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 /**\n * The potential location of the result of the LRO if specified by the LRO extension in the swagger.\n */\n resourceLocationConfig?: ResourceLocationConfig;\n /**\n * The original url of the LRO\n * Should not be null when restoreFrom is set\n */\n initialRequestUrl?: string;\n /**\n * A serialized poller which can be used to resume an existing paused Long-Running-Operation.\n */\n restoreFrom?: string;\n /**\n * The function to get the initial response\n */\n getInitialResponse?: () => PromiseLike<TResponse>;\n /**\n * The api-version of the LRO\n */\n apiVersion?: string;\n}\nexport function getLongRunningPoller<TResponse extends PathUncheckedResponse, TResult = void>(\n client: Client,\n processResponseBody: (result: TResponse) => Promise<TResult>,\n expectedStatuses: string[],\n options: GetLongRunningPollerOptions<TResponse>,\n): PollerLike<OperationState<TResult>, TResult> {\n const { restoreFrom, getInitialResponse, apiVersion } = options;\n if (!restoreFrom && !getInitialResponse) {\n throw new Error(\"Either restoreFrom or getInitialResponse must be specified\");\n }\n let initialResponse: TResponse | undefined = undefined;\n const pollAbortController = new AbortController();\n const poller: RunningOperation<TResponse> = {\n sendInitialRequest: async () => {\n if (!getInitialResponse) {\n throw new Error(\"getInitialResponse is required when initializing a new poller\");\n }\n initialResponse = await getInitialResponse();\n return getLroResponse(initialResponse, expectedStatuses);\n },\n sendPollRequest: async (\n path: string,\n pollOptions?: {\n abortSignal?: AbortSignalLike;\n },\n ) => {\n // The poll request would both listen to the user provided abort signal and the poller's own abort signal\n function abortListener(): void {\n pollAbortController.abort();\n }\n const abortSignal = pollAbortController.signal;\n if (options.abortSignal?.aborted) {\n pollAbortController.abort();\n } else if (pollOptions?.abortSignal?.aborted) {\n pollAbortController.abort();\n } else if (!abortSignal.aborted) {\n options.abortSignal?.addEventListener(\"abort\", abortListener, {\n once: true,\n });\n pollOptions?.abortSignal?.addEventListener(\"abort\", abortListener, {\n once: true,\n });\n }\n let response;\n try {\n const pollingPath = apiVersion ? addApiVersionToUrl(path, apiVersion) : path;\n response = await client.pathUnchecked(pollingPath).get({ abortSignal });\n } finally {\n options.abortSignal?.removeEventListener(\"abort\", abortListener);\n pollOptions?.abortSignal?.removeEventListener(\"abort\", abortListener);\n }\n\n return getLroResponse(response as TResponse, expectedStatuses);\n },\n };\n return createHttpPoller(poller, {\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: options?.resourceLocationConfig,\n restoreFrom: options?.restoreFrom,\n processResult: (result: unknown) => {\n return processResponseBody(result as TResponse);\n },\n });\n}\n/**\n * Converts a Rest Client response to a response that the LRO implementation understands\n * @param response - a rest client http response\n * @param deserializeFn - deserialize function to convert Rest response to modular output\n * @returns - An LRO response that the LRO implementation understands\n */\nfunction getLroResponse<TResponse extends PathUncheckedResponse>(\n response: TResponse,\n expectedStatuses: string[],\n): OperationResponse<TResponse> {\n if (!expectedStatuses.includes(response.status)) {\n throw createRestError(response);\n }\n\n return {\n flatResponse: response,\n rawResponse: {\n ...response,\n statusCode: Number.parseInt(response.status),\n body: response.body,\n },\n };\n}\n\n/**\n * Adds the api-version query parameter on a URL if it's not present.\n * @param url - the URL to modify\n * @param apiVersion - the API version to set\n * @returns - the URL with the api-version query parameter set\n */\nfunction addApiVersionToUrl(url: string, apiVersion: string): string {\n // The base URL is only used for parsing and won't appear in the returned URL\n const urlObj = new URL(url, \"https://microsoft.com\");\n if (!urlObj.searchParams.get(\"api-version\")) {\n // Append one if there is no apiVersion\n return `${url}${urlObj.search ? \"&\" : \"?\"}api-version=${apiVersion}`;\n }\n return url;\n}\n"],
|
|
5
5
|
"mappings": ";;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAUA,sBAAiC;AAGjC,yBAAgC;AAgCzB,SAAS,qBACd,QACA,qBACA,kBACA,SAC8C;AAC9C,QAAM,EAAE,aAAa,oBAAoB,WAAW,IAAI;AACxD,MAAI,CAAC,eAAe,CAAC,oBAAoB;AACvC,UAAM,IAAI,MAAM,4DAA4D;AAAA,EAC9E;AACA,MAAI,kBAAyC;AAC7C,QAAM,sBAAsB,IAAI,gBAAgB;AAChD,QAAM,SAAsC;AAAA,IAC1C,oBAAoB,YAAY;AAC9B,UAAI,CAAC,oBAAoB;AACvB,cAAM,IAAI,MAAM,+DAA+D;AAAA,MACjF;AACA,wBAAkB,MAAM,mBAAmB;AAC3C,aAAO,eAAe,iBAAiB,gBAAgB;AAAA,IACzD;AAAA,IACA,iBAAiB,OACf,MACA,gBAGG;AAEH,eAAS,gBAAsB;AAC7B,4BAAoB,MAAM;AAAA,MAC5B;AACA,YAAM,cAAc,oBAAoB;AACxC,UAAI,QAAQ,aAAa,SAAS;AAChC,4BAAoB,MAAM;AAAA,MAC5B,WAAW,aAAa,aAAa,SAAS;AAC5C,4BAAoB,MAAM;AAAA,MAC5B,WAAW,C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 +7,7 @@ import { getClient } from "@azure-rest/core-client";
|
|
|
7
7
|
export function createComputeLimit(credential, subscriptionId, options = {}) {
|
|
8
8
|
const endpointUrl = options.endpoint ?? getArmEndpoint(options.cloudSetting) ?? "https://management.azure.com";
|
|
9
9
|
const prefixFromOptions = options?.userAgentOptions?.userAgentPrefix;
|
|
10
|
-
const userAgentInfo = `azsdk-js-arm-computelimit/1.1
|
|
10
|
+
const userAgentInfo = `azsdk-js-arm-computelimit/1.2.1`;
|
|
11
11
|
const userAgentPrefix = prefixFromOptions
|
|
12
12
|
? `${prefixFromOptions} azsdk-js-api ${userAgentInfo}`
|
|
13
13
|
: `azsdk-js-api ${userAgentInfo}`;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"computeLimitContext.js","sourceRoot":"","sources":["../../../src/api/computeLimitContext.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAGtC,OAAO,EAAE,cAAc,EAAE,MAAM,0CAA0C,CAAC;AAE1E,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAqBpD,uDAAuD;AACvD,MAAM,UAAU,kBAAkB,CAChC,UAA2B,EAC3B,cAAsB,EACtB,UAA4C,EAAE;IAE9C,MAAM,WAAW,GACf,OAAO,CAAC,QAAQ,IAAI,cAAc,CAAC,OAAO,CAAC,YAAY,CAAC,IAAI,8BAA8B,CAAC;IAC7F,MAAM,iBAAiB,GAAG,OAAO,EAAE,gBAAgB,EAAE,eAAe,CAAC;IACrE,MAAM,aAAa,GAAG,iCAAiC,CAAC;IACxD,MAAM,eAAe,GAAG,iBAAiB;QACvC,CAAC,CAAC,GAAG,iBAAiB,iBAAiB,aAAa,EAAE;QACtD,CAAC,CAAC,gBAAgB,aAAa,EAAE,CAAC;IACpC,MAAM,EAAE,UAAU,EAAE,CAAC,EAAE,GAAG,cAAc,EAAE,GAAG;QAC3C,GAAG,OAAO;QACV,gBAAgB,EAAE,EAAE,eAAe,EAAE;QACrC,cAAc,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,cAAc,EAAE,MAAM,IAAI,MAAM,CAAC,IAAI,EAAE;QACzE,WAAW,EAAE;YACX,MAAM,EAAE,OAAO,CAAC,WAAW,EAAE,MAAM,IAAI,CAAC,uCAAuC,CAAC;SACjF;KACF,CAAC;IACF,MAAM,aAAa,GAAG,SAAS,CAAC,WAAW,EAAE,UAAU,EAAE,cAAc,CAAC,CAAC;IACzE,MAAM,UAAU,GAAG,OAAO,CAAC,UAAU,CAAC;IACtC,OAAO,EAAE,GAAG,aAAa,EAAE,UAAU,EAAE,cAAc,EAAyB,CAAC;AACjF,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { logger } from \"../logger.js\";\nimport { KnownVersions } from \"../models/models.js\";\nimport type { AzureSupportedClouds } from \"../static-helpers/cloudSettingHelpers.js\";\nimport { getArmEndpoint } from \"../static-helpers/cloudSettingHelpers.js\";\nimport type { Client, ClientOptions } from \"@azure-rest/core-client\";\nimport { getClient } from \"@azure-rest/core-client\";\nimport type { TokenCredential } from \"@azure/core-auth\";\n\n/** Microsoft Azure Compute Limit Resource Provider. */\nexport interface ComputeLimitContext extends Client {\n /** The ID of the target subscription. The value must be an UUID. */\n subscriptionId: string;\n /** The API version to use for this operation. */\n /** Known values of {@link KnownVersions} that the service accepts. */\n apiVersion?: string;\n}\n\n/** Optional parameters for the client. */\nexport interface ComputeLimitClientOptionalParams extends ClientOptions {\n /** The API version to use for this operation. */\n /** Known values of {@link KnownVersions} that the service accepts. */\n apiVersion?: string;\n /** Specifies the Azure cloud environment for the client. */\n cloudSetting?: AzureSupportedClouds;\n}\n\n/** Microsoft Azure Compute Limit Resource Provider. */\nexport function createComputeLimit(\n credential: TokenCredential,\n subscriptionId: string,\n options: ComputeLimitClientOptionalParams = {},\n): ComputeLimitContext {\n const endpointUrl =\n options.endpoint ?? getArmEndpoint(options.cloudSetting) ?? \"https://management.azure.com\";\n const prefixFromOptions = options?.userAgentOptions?.userAgentPrefix;\n const userAgentInfo = `azsdk-js-arm-computelimit/1.1
|
|
1
|
+
{"version":3,"file":"computeLimitContext.js","sourceRoot":"","sources":["../../../src/api/computeLimitContext.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAGtC,OAAO,EAAE,cAAc,EAAE,MAAM,0CAA0C,CAAC;AAE1E,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAqBpD,uDAAuD;AACvD,MAAM,UAAU,kBAAkB,CAChC,UAA2B,EAC3B,cAAsB,EACtB,UAA4C,EAAE;IAE9C,MAAM,WAAW,GACf,OAAO,CAAC,QAAQ,IAAI,cAAc,CAAC,OAAO,CAAC,YAAY,CAAC,IAAI,8BAA8B,CAAC;IAC7F,MAAM,iBAAiB,GAAG,OAAO,EAAE,gBAAgB,EAAE,eAAe,CAAC;IACrE,MAAM,aAAa,GAAG,iCAAiC,CAAC;IACxD,MAAM,eAAe,GAAG,iBAAiB;QACvC,CAAC,CAAC,GAAG,iBAAiB,iBAAiB,aAAa,EAAE;QACtD,CAAC,CAAC,gBAAgB,aAAa,EAAE,CAAC;IACpC,MAAM,EAAE,UAAU,EAAE,CAAC,EAAE,GAAG,cAAc,EAAE,GAAG;QAC3C,GAAG,OAAO;QACV,gBAAgB,EAAE,EAAE,eAAe,EAAE;QACrC,cAAc,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,cAAc,EAAE,MAAM,IAAI,MAAM,CAAC,IAAI,EAAE;QACzE,WAAW,EAAE;YACX,MAAM,EAAE,OAAO,CAAC,WAAW,EAAE,MAAM,IAAI,CAAC,uCAAuC,CAAC;SACjF;KACF,CAAC;IACF,MAAM,aAAa,GAAG,SAAS,CAAC,WAAW,EAAE,UAAU,EAAE,cAAc,CAAC,CAAC;IACzE,MAAM,UAAU,GAAG,OAAO,CAAC,UAAU,CAAC;IACtC,OAAO,EAAE,GAAG,aAAa,EAAE,UAAU,EAAE,cAAc,EAAyB,CAAC;AACjF,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { logger } from \"../logger.js\";\nimport { KnownVersions } from \"../models/models.js\";\nimport type { AzureSupportedClouds } from \"../static-helpers/cloudSettingHelpers.js\";\nimport { getArmEndpoint } from \"../static-helpers/cloudSettingHelpers.js\";\nimport type { Client, ClientOptions } from \"@azure-rest/core-client\";\nimport { getClient } from \"@azure-rest/core-client\";\nimport type { TokenCredential } from \"@azure/core-auth\";\n\n/** Microsoft Azure Compute Limit Resource Provider. */\nexport interface ComputeLimitContext extends Client {\n /** The ID of the target subscription. The value must be an UUID. */\n subscriptionId: string;\n /** The API version to use for this operation. */\n /** Known values of {@link KnownVersions} that the service accepts. */\n apiVersion?: string;\n}\n\n/** Optional parameters for the client. */\nexport interface ComputeLimitClientOptionalParams extends ClientOptions {\n /** The API version to use for this operation. */\n /** Known values of {@link KnownVersions} that the service accepts. */\n apiVersion?: string;\n /** Specifies the Azure cloud environment for the client. */\n cloudSetting?: AzureSupportedClouds;\n}\n\n/** Microsoft Azure Compute Limit Resource Provider. */\nexport function createComputeLimit(\n credential: TokenCredential,\n subscriptionId: string,\n options: ComputeLimitClientOptionalParams = {},\n): ComputeLimitContext {\n const endpointUrl =\n options.endpoint ?? getArmEndpoint(options.cloudSetting) ?? \"https://management.azure.com\";\n const prefixFromOptions = options?.userAgentOptions?.userAgentPrefix;\n const userAgentInfo = `azsdk-js-arm-computelimit/1.2.1`;\n const userAgentPrefix = prefixFromOptions\n ? `${prefixFromOptions} azsdk-js-api ${userAgentInfo}`\n : `azsdk-js-api ${userAgentInfo}`;\n const { apiVersion: _, ...updatedOptions } = {\n ...options,\n userAgentOptions: { userAgentPrefix },\n loggingOptions: { logger: options.loggingOptions?.logger ?? logger.info },\n credentials: {\n scopes: options.credentials?.scopes ?? [\"https://management.azure.com/.default\"],\n },\n };\n const clientContext = getClient(endpointUrl, credential, updatedOptions);\n const apiVersion = options.apiVersion;\n return { ...clientContext, apiVersion, subscriptionId } as ComputeLimitContext;\n}\n"]}
|
|
@@ -6,11 +6,11 @@ import type { StreamableMethod, PathUncheckedResponse } from "@azure-rest/core-c
|
|
|
6
6
|
import type { PollerLike, OperationState } from "@azure/core-lro";
|
|
7
7
|
export declare function _disableSend(context: Client, location: string, featureName: string, options?: FeaturesDisableOptionalParams): StreamableMethod;
|
|
8
8
|
export declare function _disableDeserialize(result: PathUncheckedResponse): Promise<OperationStatusResult>;
|
|
9
|
-
/** Disables a compute limit feature for the subscription at the specified location. */
|
|
9
|
+
/** Disables a compute limit feature for the subscription at the specified location. Requires the Contributor role. */
|
|
10
10
|
export declare function disable(context: Client, location: string, featureName: string, options?: FeaturesDisableOptionalParams): PollerLike<OperationState<OperationStatusResult>, OperationStatusResult>;
|
|
11
11
|
export declare function _enableSend(context: Client, location: string, featureName: string, options?: FeaturesEnableOptionalParams): StreamableMethod;
|
|
12
12
|
export declare function _enableDeserialize(result: PathUncheckedResponse): Promise<OperationStatusResult>;
|
|
13
|
-
/** Enables a compute limit feature for the subscription at the specified location. */
|
|
13
|
+
/** Enables a compute limit feature for the subscription at the specified location. Requires the Contributor role. */
|
|
14
14
|
export declare function enable(context: Client, location: string, featureName: string, options?: FeaturesEnableOptionalParams): PollerLike<OperationState<OperationStatusResult>, OperationStatusResult>;
|
|
15
15
|
export declare function _listBySubscriptionLocationResourceSend(context: Client, location: string, options?: FeaturesListBySubscriptionLocationResourceOptionalParams): StreamableMethod;
|
|
16
16
|
export declare function _listBySubscriptionLocationResourceDeserialize(result: PathUncheckedResponse): Promise<_FeatureListResult>;
|
|
@@ -10,7 +10,7 @@ export function _disableSend(context, location, featureName, options = { request
|
|
|
10
10
|
subscriptionId: context.subscriptionId,
|
|
11
11
|
location: location,
|
|
12
12
|
featureName: featureName,
|
|
13
|
-
"api%2Dversion": context.apiVersion ?? "2026-
|
|
13
|
+
"api%2Dversion": context.apiVersion ?? "2026-07-01",
|
|
14
14
|
}, {
|
|
15
15
|
allowReserved: options?.requestOptions?.skipUrlEncoding,
|
|
16
16
|
});
|
|
@@ -23,19 +23,21 @@ export async function _disableDeserialize(result) {
|
|
|
23
23
|
const expectedStatuses = ["200", "202", "201"];
|
|
24
24
|
if (!expectedStatuses.includes(result.status)) {
|
|
25
25
|
const error = createRestError(result);
|
|
26
|
-
|
|
26
|
+
if (result.body) {
|
|
27
|
+
error.details = errorResponseDeserializer(result.body);
|
|
28
|
+
}
|
|
27
29
|
throw error;
|
|
28
30
|
}
|
|
29
31
|
return operationStatusResultDeserializer(result.body);
|
|
30
32
|
}
|
|
31
|
-
/** Disables a compute limit feature for the subscription at the specified location. */
|
|
33
|
+
/** Disables a compute limit feature for the subscription at the specified location. Requires the Contributor role. */
|
|
32
34
|
export function disable(context, location, featureName, options = { requestOptions: {} }) {
|
|
33
35
|
return getLongRunningPoller(context, _disableDeserialize, ["200", "202", "201"], {
|
|
34
36
|
updateIntervalInMs: options?.updateIntervalInMs,
|
|
35
37
|
abortSignal: options?.abortSignal,
|
|
36
38
|
getInitialResponse: () => _disableSend(context, location, featureName, options),
|
|
37
39
|
resourceLocationConfig: "location",
|
|
38
|
-
apiVersion: context.apiVersion ?? "2026-
|
|
40
|
+
apiVersion: context.apiVersion ?? "2026-07-01",
|
|
39
41
|
});
|
|
40
42
|
}
|
|
41
43
|
export function _enableSend(context, location, featureName, options = { requestOptions: {} }) {
|
|
@@ -43,7 +45,7 @@ export function _enableSend(context, location, featureName, options = { requestO
|
|
|
43
45
|
subscriptionId: context.subscriptionId,
|
|
44
46
|
location: location,
|
|
45
47
|
featureName: featureName,
|
|
46
|
-
"api%2Dversion": context.apiVersion ?? "2026-
|
|
48
|
+
"api%2Dversion": context.apiVersion ?? "2026-07-01",
|
|
47
49
|
}, {
|
|
48
50
|
allowReserved: options?.requestOptions?.skipUrlEncoding,
|
|
49
51
|
});
|
|
@@ -58,26 +60,28 @@ export async function _enableDeserialize(result) {
|
|
|
58
60
|
const expectedStatuses = ["200", "202", "201"];
|
|
59
61
|
if (!expectedStatuses.includes(result.status)) {
|
|
60
62
|
const error = createRestError(result);
|
|
61
|
-
|
|
63
|
+
if (result.body) {
|
|
64
|
+
error.details = errorResponseDeserializer(result.body);
|
|
65
|
+
}
|
|
62
66
|
throw error;
|
|
63
67
|
}
|
|
64
68
|
return operationStatusResultDeserializer(result.body);
|
|
65
69
|
}
|
|
66
|
-
/** Enables a compute limit feature for the subscription at the specified location. */
|
|
70
|
+
/** Enables a compute limit feature for the subscription at the specified location. Requires the Contributor role. */
|
|
67
71
|
export function enable(context, location, featureName, options = { requestOptions: {} }) {
|
|
68
72
|
return getLongRunningPoller(context, _enableDeserialize, ["200", "202", "201"], {
|
|
69
73
|
updateIntervalInMs: options?.updateIntervalInMs,
|
|
70
74
|
abortSignal: options?.abortSignal,
|
|
71
75
|
getInitialResponse: () => _enableSend(context, location, featureName, options),
|
|
72
76
|
resourceLocationConfig: "location",
|
|
73
|
-
apiVersion: context.apiVersion ?? "2026-
|
|
77
|
+
apiVersion: context.apiVersion ?? "2026-07-01",
|
|
74
78
|
});
|
|
75
79
|
}
|
|
76
80
|
export function _listBySubscriptionLocationResourceSend(context, location, options = { requestOptions: {} }) {
|
|
77
81
|
const path = expandUrlTemplate("/subscriptions/{subscriptionId}/providers/Microsoft.ComputeLimit/locations/{location}/features{?api%2Dversion}", {
|
|
78
82
|
subscriptionId: context.subscriptionId,
|
|
79
83
|
location: location,
|
|
80
|
-
"api%2Dversion": context.apiVersion ?? "2026-
|
|
84
|
+
"api%2Dversion": context.apiVersion ?? "2026-07-01",
|
|
81
85
|
}, {
|
|
82
86
|
allowReserved: options?.requestOptions?.skipUrlEncoding,
|
|
83
87
|
});
|
|
@@ -90,21 +94,23 @@ export async function _listBySubscriptionLocationResourceDeserialize(result) {
|
|
|
90
94
|
const expectedStatuses = ["200"];
|
|
91
95
|
if (!expectedStatuses.includes(result.status)) {
|
|
92
96
|
const error = createRestError(result);
|
|
93
|
-
|
|
97
|
+
if (result.body) {
|
|
98
|
+
error.details = errorResponseDeserializer(result.body);
|
|
99
|
+
}
|
|
94
100
|
throw error;
|
|
95
101
|
}
|
|
96
102
|
return _featureListResultDeserializer(result.body);
|
|
97
103
|
}
|
|
98
104
|
/** Lists all compute limit features for the subscription at the specified location. */
|
|
99
105
|
export function listBySubscriptionLocationResource(context, location, options = { requestOptions: {} }) {
|
|
100
|
-
return buildPagedAsyncIterator(context, () => _listBySubscriptionLocationResourceSend(context, location, options), _listBySubscriptionLocationResourceDeserialize, ["200"], { itemName: "value", nextLinkName: "nextLink", apiVersion: context.apiVersion ?? "2026-
|
|
106
|
+
return buildPagedAsyncIterator(context, () => _listBySubscriptionLocationResourceSend(context, location, options), _listBySubscriptionLocationResourceDeserialize, ["200"], { itemName: "value", nextLinkName: "nextLink", apiVersion: context.apiVersion ?? "2026-07-01" });
|
|
101
107
|
}
|
|
102
108
|
export function _getSend(context, location, featureName, options = { requestOptions: {} }) {
|
|
103
109
|
const path = expandUrlTemplate("/subscriptions/{subscriptionId}/providers/Microsoft.ComputeLimit/locations/{location}/features/{featureName}{?api%2Dversion}", {
|
|
104
110
|
subscriptionId: context.subscriptionId,
|
|
105
111
|
location: location,
|
|
106
112
|
featureName: featureName,
|
|
107
|
-
"api%2Dversion": context.apiVersion ?? "2026-
|
|
113
|
+
"api%2Dversion": context.apiVersion ?? "2026-07-01",
|
|
108
114
|
}, {
|
|
109
115
|
allowReserved: options?.requestOptions?.skipUrlEncoding,
|
|
110
116
|
});
|
|
@@ -117,7 +123,9 @@ export async function _getDeserialize(result) {
|
|
|
117
123
|
const expectedStatuses = ["200"];
|
|
118
124
|
if (!expectedStatuses.includes(result.status)) {
|
|
119
125
|
const error = createRestError(result);
|
|
120
|
-
|
|
126
|
+
if (result.body) {
|
|
127
|
+
error.details = errorResponseDeserializer(result.body);
|
|
128
|
+
}
|
|
121
129
|
throw error;
|
|
122
130
|
}
|
|
123
131
|
return featureDeserializer(result.body);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"operations.js","sourceRoot":"","sources":["../../../../src/api/features/operations.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAIlC,OAAO,EACL,yBAAyB,EACzB,mBAAmB,EACnB,8BAA8B,EAC9B,8BAA8B,EAC9B,iCAAiC,GAClC,MAAM,wBAAwB,CAAC;AAEhC,OAAO,EAAE,uBAAuB,EAAE,MAAM,uCAAuC,CAAC;AAChF,OAAO,EAAE,oBAAoB,EAAE,MAAM,wCAAwC,CAAC;AAC9E,OAAO,EAAE,iBAAiB,EAAE,MAAM,qCAAqC,CAAC;AAQxE,OAAO,EAAE,eAAe,EAAE,mCAAmC,EAAE,MAAM,yBAAyB,CAAC;AAG/F,MAAM,UAAU,YAAY,CAC1B,OAAe,EACf,QAAgB,EAChB,WAAmB,EACnB,UAAyC,EAAE,cAAc,EAAE,EAAE,EAAE;IAE/D,MAAM,IAAI,GAAG,iBAAiB,CAC5B,sIAAsI,EACtI;QACE,cAAc,EAAE,OAAO,CAAC,cAAc;QACtC,QAAQ,EAAE,QAAQ;QAClB,WAAW,EAAE,WAAW;QACxB,eAAe,EAAE,OAAO,CAAC,UAAU,IAAI,YAAY;KACpD,EACD;QACE,aAAa,EAAE,OAAO,EAAE,cAAc,EAAE,eAAe;KACxD,CACF,CAAC;IACF,OAAO,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC;QAC7B,GAAG,mCAAmC,CAAC,OAAO,CAAC;QAC/C,OAAO,EAAE,EAAE,MAAM,EAAE,kBAAkB,EAAE,GAAG,OAAO,CAAC,cAAc,EAAE,OAAO,EAAE;KAC5E,CAAC,CAAC;AACL,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,mBAAmB,CACvC,MAA6B;IAE7B,MAAM,gBAAgB,GAAG,CAAC,KAAK,EAAE,KAAK,EAAE,K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;AAED,sDAAsD;AACtD,MAAM,CAAC,KAAK,UAAU,GAAG,CACvB,OAAe,EACf,QAAgB,EAChB,WAAmB,EACnB,UAAqC,EAAE,cAAc,EAAE,EAAE,EAAE;IAE3D,MAAM,MAAM,GAAG,MAAM,QAAQ,CAAC,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,OAAO,CAAC,CAAC;IACvE,OAAO,eAAe,CAAC,MAAM,CAAC,CAAC;AACjC,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { ComputeLimitContext as Client } from \"../index.js\";\nimport type { Feature, _FeatureListResult, OperationStatusResult } from \"../../models/models.js\";\nimport {\n errorResponseDeserializer,\n featureDeserializer,\n _featureListResultDeserializer,\n featureEnableRequestSerializer,\n operationStatusResultDeserializer,\n} from \"../../models/models.js\";\nimport type { PagedAsyncIterableIterator } from \"../../static-helpers/pagingHelpers.js\";\nimport { buildPagedAsyncIterator } from \"../../static-helpers/pagingHelpers.js\";\nimport { getLongRunningPoller } from \"../../static-helpers/pollingHelpers.js\";\nimport { expandUrlTemplate } from \"../../static-helpers/urlTemplate.js\";\nimport type {\n FeaturesDisableOptionalParams,\n FeaturesEnableOptionalParams,\n FeaturesListBySubscriptionLocationResourceOptionalParams,\n FeaturesGetOptionalParams,\n} from \"./options.js\";\nimport type { StreamableMethod, PathUncheckedResponse } from \"@azure-rest/core-client\";\nimport { createRestError, operationOptionsToRequestParameters } from \"@azure-rest/core-client\";\nimport type { PollerLike, OperationState } from \"@azure/core-lro\";\n\nexport function _disableSend(\n context: Client,\n location: string,\n featureName: string,\n options: FeaturesDisableOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/providers/Microsoft.ComputeLimit/locations/{location}/features/{featureName}/disable{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n location: location,\n featureName: featureName,\n \"api%2Dversion\": context.apiVersion ?? \"2026-06-01\",\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).post({\n ...operationOptionsToRequestParameters(options),\n headers: { accept: \"application/json\", ...options.requestOptions?.headers },\n });\n}\n\nexport async function _disableDeserialize(\n result: PathUncheckedResponse,\n): Promise<OperationStatusResult> {\n const expectedStatuses = [\"200\", \"202\", \"201\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n error.details = errorResponseDeserializer(result.body);\n\n throw error;\n }\n\n return operationStatusResultDeserializer(result.body);\n}\n\n/** Disables a compute limit feature for the subscription at the specified location. */\nexport function disable(\n context: Client,\n location: string,\n featureName: string,\n options: FeaturesDisableOptionalParams = { requestOptions: {} },\n): PollerLike<OperationState<OperationStatusResult>, OperationStatusResult> {\n return getLongRunningPoller(context, _disableDeserialize, [\"200\", \"202\", \"201\"], {\n updateIntervalInMs: options?.updateIntervalInMs,\n abortSignal: options?.abortSignal,\n getInitialResponse: () => _disableSend(context, location, featureName, options),\n resourceLocationConfig: \"location\",\n apiVersion: context.apiVersion ?? \"2026-06-01\",\n }) as PollerLike<OperationState<OperationStatusResult>, OperationStatusResult>;\n}\n\nexport function _enableSend(\n context: Client,\n location: string,\n featureName: string,\n options: FeaturesEnableOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/providers/Microsoft.ComputeLimit/locations/{location}/features/{featureName}/enable{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n location: location,\n featureName: featureName,\n \"api%2Dversion\": context.apiVersion ?? \"2026-06-01\",\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).post({\n ...operationOptionsToRequestParameters(options),\n contentType: \"application/json\",\n headers: { accept: \"application/json\", ...options.requestOptions?.headers },\n body: !options?.body ? options?.body : featureEnableRequestSerializer(options?.body),\n });\n}\n\nexport async function _enableDeserialize(\n result: PathUncheckedResponse,\n): Promise<OperationStatusResult> {\n const expectedStatuses = [\"200\", \"202\", \"201\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n error.details = errorResponseDeserializer(result.body);\n\n throw error;\n }\n\n return operationStatusResultDeserializer(result.body);\n}\n\n/** Enables a compute limit feature for the subscription at the specified location. */\nexport function enable(\n context: Client,\n location: string,\n featureName: string,\n options: FeaturesEnableOptionalParams = { requestOptions: {} },\n): PollerLike<OperationState<OperationStatusResult>, OperationStatusResult> {\n return getLongRunningPoller(context, _enableDeserialize, [\"200\", \"202\", \"201\"], {\n updateIntervalInMs: options?.updateIntervalInMs,\n abortSignal: options?.abortSignal,\n getInitialResponse: () => _enableSend(context, location, featureName, options),\n resourceLocationConfig: \"location\",\n apiVersion: context.apiVersion ?? \"2026-06-01\",\n }) as PollerLike<OperationState<OperationStatusResult>, OperationStatusResult>;\n}\n\nexport function _listBySubscriptionLocationResourceSend(\n context: Client,\n location: string,\n options: FeaturesListBySubscriptionLocationResourceOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/providers/Microsoft.ComputeLimit/locations/{location}/features{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n location: location,\n \"api%2Dversion\": context.apiVersion ?? \"2026-06-01\",\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).get({\n ...operationOptionsToRequestParameters(options),\n headers: { accept: \"application/json\", ...options.requestOptions?.headers },\n });\n}\n\nexport async function _listBySubscriptionLocationResourceDeserialize(\n result: PathUncheckedResponse,\n): Promise<_FeatureListResult> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n error.details = errorResponseDeserializer(result.body);\n\n throw error;\n }\n\n return _featureListResultDeserializer(result.body);\n}\n\n/** Lists all compute limit features for the subscription at the specified location. */\nexport function listBySubscriptionLocationResource(\n context: Client,\n location: string,\n options: FeaturesListBySubscriptionLocationResourceOptionalParams = { requestOptions: {} },\n): PagedAsyncIterableIterator<Feature> {\n return buildPagedAsyncIterator(\n context,\n () => _listBySubscriptionLocationResourceSend(context, location, options),\n _listBySubscriptionLocationResourceDeserialize,\n [\"200\"],\n { itemName: \"value\", nextLinkName: \"nextLink\", apiVersion: context.apiVersion ?? \"2026-06-01\" },\n );\n}\n\nexport function _getSend(\n context: Client,\n location: string,\n featureName: string,\n options: FeaturesGetOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/providers/Microsoft.ComputeLimit/locations/{location}/features/{featureName}{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n location: location,\n featureName: featureName,\n \"api%2Dversion\": context.apiVersion ?? \"2026-06-01\",\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).get({\n ...operationOptionsToRequestParameters(options),\n headers: { accept: \"application/json\", ...options.requestOptions?.headers },\n });\n}\n\nexport async function _getDeserialize(result: PathUncheckedResponse): Promise<Feature> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n error.details = errorResponseDeserializer(result.body);\n\n throw error;\n }\n\n return featureDeserializer(result.body);\n}\n\n/** Gets the properties of a compute limit feature. */\nexport async function get(\n context: Client,\n location: string,\n featureName: string,\n options: FeaturesGetOptionalParams = { requestOptions: {} },\n): Promise<Feature> {\n const result = await _getSend(context, location, featureName, options);\n return _getDeserialize(result);\n}\n"]}
|
|
1
|
+
{"version":3,"file":"operations.js","sourceRoot":"","sources":["../../../../src/api/features/operations.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAIlC,OAAO,EACL,yBAAyB,EACzB,mBAAmB,EACnB,8BAA8B,EAC9B,8BAA8B,EAC9B,iCAAiC,GAClC,MAAM,wBAAwB,CAAC;AAEhC,OAAO,EAAE,uBAAuB,EAAE,MAAM,uCAAuC,CAAC;AAChF,OAAO,EAAE,oBAAoB,EAAE,MAAM,w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AAE,QAAQ,EAAE,WAAW,EAAE,OAAO,CAAC,CAAC;IACvE,OAAO,eAAe,CAAC,MAAM,CAAC,CAAC;AACjC,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { ComputeLimitContext as Client } from \"../index.js\";\nimport type { Feature, _FeatureListResult, OperationStatusResult } from \"../../models/models.js\";\nimport {\n errorResponseDeserializer,\n featureDeserializer,\n _featureListResultDeserializer,\n featureEnableRequestSerializer,\n operationStatusResultDeserializer,\n} from \"../../models/models.js\";\nimport type { PagedAsyncIterableIterator } from \"../../static-helpers/pagingHelpers.js\";\nimport { buildPagedAsyncIterator } from \"../../static-helpers/pagingHelpers.js\";\nimport { getLongRunningPoller } from \"../../static-helpers/pollingHelpers.js\";\nimport { expandUrlTemplate } from \"../../static-helpers/urlTemplate.js\";\nimport type {\n FeaturesDisableOptionalParams,\n FeaturesEnableOptionalParams,\n FeaturesListBySubscriptionLocationResourceOptionalParams,\n FeaturesGetOptionalParams,\n} from \"./options.js\";\nimport type { StreamableMethod, PathUncheckedResponse } from \"@azure-rest/core-client\";\nimport { createRestError, operationOptionsToRequestParameters } from \"@azure-rest/core-client\";\nimport type { PollerLike, OperationState } from \"@azure/core-lro\";\n\nexport function _disableSend(\n context: Client,\n location: string,\n featureName: string,\n options: FeaturesDisableOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/providers/Microsoft.ComputeLimit/locations/{location}/features/{featureName}/disable{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n location: location,\n featureName: featureName,\n \"api%2Dversion\": context.apiVersion ?? \"2026-07-01\",\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).post({\n ...operationOptionsToRequestParameters(options),\n headers: { accept: \"application/json\", ...options.requestOptions?.headers },\n });\n}\n\nexport async function _disableDeserialize(\n result: PathUncheckedResponse,\n): Promise<OperationStatusResult> {\n const expectedStatuses = [\"200\", \"202\", \"201\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n if (result.body) {\n error.details = errorResponseDeserializer(result.body);\n }\n\n throw error;\n }\n\n return operationStatusResultDeserializer(result.body);\n}\n\n/** Disables a compute limit feature for the subscription at the specified location. Requires the Contributor role. */\nexport function disable(\n context: Client,\n location: string,\n featureName: string,\n options: FeaturesDisableOptionalParams = { requestOptions: {} },\n): PollerLike<OperationState<OperationStatusResult>, OperationStatusResult> {\n return getLongRunningPoller(context, _disableDeserialize, [\"200\", \"202\", \"201\"], {\n updateIntervalInMs: options?.updateIntervalInMs,\n abortSignal: options?.abortSignal,\n getInitialResponse: () => _disableSend(context, location, featureName, options),\n resourceLocationConfig: \"location\",\n apiVersion: context.apiVersion ?? \"2026-07-01\",\n }) as PollerLike<OperationState<OperationStatusResult>, OperationStatusResult>;\n}\n\nexport function _enableSend(\n context: Client,\n location: string,\n featureName: string,\n options: FeaturesEnableOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/providers/Microsoft.ComputeLimit/locations/{location}/features/{featureName}/enable{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n location: location,\n featureName: featureName,\n \"api%2Dversion\": context.apiVersion ?? \"2026-07-01\",\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).post({\n ...operationOptionsToRequestParameters(options),\n contentType: \"application/json\",\n headers: { accept: \"application/json\", ...options.requestOptions?.headers },\n body: !options?.body ? options?.body : featureEnableRequestSerializer(options?.body),\n });\n}\n\nexport async function _enableDeserialize(\n result: PathUncheckedResponse,\n): Promise<OperationStatusResult> {\n const expectedStatuses = [\"200\", \"202\", \"201\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n if (result.body) {\n error.details = errorResponseDeserializer(result.body);\n }\n\n throw error;\n }\n\n return operationStatusResultDeserializer(result.body);\n}\n\n/** Enables a compute limit feature for the subscription at the specified location. Requires the Contributor role. */\nexport function enable(\n context: Client,\n location: string,\n featureName: string,\n options: FeaturesEnableOptionalParams = { requestOptions: {} },\n): PollerLike<OperationState<OperationStatusResult>, OperationStatusResult> {\n return getLongRunningPoller(context, _enableDeserialize, [\"200\", \"202\", \"201\"], {\n updateIntervalInMs: options?.updateIntervalInMs,\n abortSignal: options?.abortSignal,\n getInitialResponse: () => _enableSend(context, location, featureName, options),\n resourceLocationConfig: \"location\",\n apiVersion: context.apiVersion ?? \"2026-07-01\",\n }) as PollerLike<OperationState<OperationStatusResult>, OperationStatusResult>;\n}\n\nexport function _listBySubscriptionLocationResourceSend(\n context: Client,\n location: string,\n options: FeaturesListBySubscriptionLocationResourceOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/providers/Microsoft.ComputeLimit/locations/{location}/features{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n location: location,\n \"api%2Dversion\": context.apiVersion ?? \"2026-07-01\",\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).get({\n ...operationOptionsToRequestParameters(options),\n headers: { accept: \"application/json\", ...options.requestOptions?.headers },\n });\n}\n\nexport async function _listBySubscriptionLocationResourceDeserialize(\n result: PathUncheckedResponse,\n): Promise<_FeatureListResult> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n if (result.body) {\n error.details = errorResponseDeserializer(result.body);\n }\n\n throw error;\n }\n\n return _featureListResultDeserializer(result.body);\n}\n\n/** Lists all compute limit features for the subscription at the specified location. */\nexport function listBySubscriptionLocationResource(\n context: Client,\n location: string,\n options: FeaturesListBySubscriptionLocationResourceOptionalParams = { requestOptions: {} },\n): PagedAsyncIterableIterator<Feature> {\n return buildPagedAsyncIterator(\n context,\n () => _listBySubscriptionLocationResourceSend(context, location, options),\n _listBySubscriptionLocationResourceDeserialize,\n [\"200\"],\n { itemName: \"value\", nextLinkName: \"nextLink\", apiVersion: context.apiVersion ?? \"2026-07-01\" },\n );\n}\n\nexport function _getSend(\n context: Client,\n location: string,\n featureName: string,\n options: FeaturesGetOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/providers/Microsoft.ComputeLimit/locations/{location}/features/{featureName}{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n location: location,\n featureName: featureName,\n \"api%2Dversion\": context.apiVersion ?? \"2026-07-01\",\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).get({\n ...operationOptionsToRequestParameters(options),\n headers: { accept: \"application/json\", ...options.requestOptions?.headers },\n });\n}\n\nexport async function _getDeserialize(result: PathUncheckedResponse): Promise<Feature> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n if (result.body) {\n error.details = errorResponseDeserializer(result.body);\n }\n\n throw error;\n }\n\n return featureDeserializer(result.body);\n}\n\n/** Gets the properties of a compute limit feature. */\nexport async function get(\n context: Client,\n location: string,\n featureName: string,\n options: FeaturesGetOptionalParams = { requestOptions: {} },\n): Promise<Feature> {\n const result = await _getSend(context, location, featureName, options);\n return _getDeserialize(result);\n}\n"]}
|