@azure/arm-computelimit 1.1.0 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser/api/computeLimitContext.js +1 -1
- package/dist/browser/api/computeLimitContext.js.map +1 -1
- package/dist/browser/api/features/operations.js +19 -11
- 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/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/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.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/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/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.js +19 -11
- 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/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/static-helpers/pollingHelpers.d.ts +1 -1
- package/dist/esm/static-helpers/pollingHelpers.js.map +1 -1
- package/package.json +32 -4
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"models.js","sourceRoot":"","sources":["../../../src/models/models.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAgBlC,MAAM,UAAU,gCAAgC,CAAC,IAAS;IACxD,OAAO;QACL,KAAK,EAAE,0BAA0B,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAChD,QAAQ,EAAE,IAAI,CAAC,UAAU,CAAC;KAC3B,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,0BAA0B,CAAC,MAAwB;IACjE,OAAO,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE;QACzB,OAAO,qBAAqB,CAAC,IAAI,CAAC,CAAC;IACrC,CAAC,CAAC,CAAC;AACL,CAAC;AAgBD,MAAM,UAAU,qBAAqB,CAAC,IAAS;IAC7C,OAAO;QACL,IAAI,EAAE,IAAI,CAAC,MAAM,CAAC;QAClB,YAAY,EAAE,IAAI,CAAC,cAAc,CAAC;QAClC,OAAO,EAAE,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,C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IAAI,CAAC,MAAM,CAAC;QAClB,UAAU,EAAE,CAAC,IAAI,CAAC,YAAY,CAAC;YAC7B,CAAC,CAAC,IAAI,CAAC,YAAY,CAAC;YACpB,CAAC,CAAC,sBAAsB,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;QAC9C,UAAU,EAAE,CAAC,IAAI,CAAC,YAAY,CAAC;YAC7B,CAAC,CAAC,IAAI,CAAC,YAAY,CAAC;YACpB,CAAC,CAAC,8BAA8B,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;KACvD,CAAC;AACJ,CAAC;AAUD,MAAM,UAAU,8BAA8B,CAAC,IAAS;IACtD,OAAO;QACL,QAAQ,EAAE,IAAI,CAAC,UAAU,CAAC;QAC1B,iBAAiB,EAAE,IAAI,CAAC,mBAAmB,CAAC;KAC7C,CAAC;AACJ,CAAC;AAUD,MAAM,UAAU,+BAA+B,CAAC,IAAS;IACvD,OAAO;QACL,KAAK,EAAE,yBAAyB,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC/C,QAAQ,EAAE,IAAI,CAAC,UAAU,CAAC;KAC3B,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,yBAAyB,CAAC,MAAuB;IAC/D,OAAO,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE;QACzB,OAAO,oBAAoB,CAAC,IAAI,CAAC,CAAC;IACpC,CAAC,CAAC,CAAC;AACL,CAAC;AAED,kCAAkC;AAClC,MAAM,CAAN,IAAY,aASX;AATD,WAAY,aAAa;IACvB,kCAAkC;IAClC,yCAAwB,CAAA;IACxB,kCAAkC;IAClC,yCAAwB,CAAA;IACxB,kCAAkC;IAClC,yCAAwB,CAAA;IACxB,kCAAkC;IAClC,yCAAwB,CAAA;AAC1B,CAAC,EATW,aAAa,KAAb,aAAa,QASxB","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\n/**\n * This file contains only generated model types and their (de)serializers.\n * Disable the following rules for internal models with '_' prefix and deserializers which require 'any' for raw JSON input.\n */\n/* eslint-disable @typescript-eslint/naming-convention */\n/* eslint-disable @typescript-eslint/explicit-module-boundary-types */\n/** A list of REST API operations supported by an Azure Resource Provider. It contains an URL link to get the next set of results. */\nexport interface _OperationListResult {\n /** The Operation items on this page */\n value: Operation[];\n /** The link to the next page of items */\n nextLink?: string;\n}\n\nexport function _operationListResultDeserializer(item: any): _OperationListResult {\n return {\n value: operationArrayDeserializer(item[\"value\"]),\n nextLink: item[\"nextLink\"],\n };\n}\n\nexport function operationArrayDeserializer(result: Array<Operation>): any[] {\n return result.map((item) => {\n return operationDeserializer(item);\n });\n}\n\n/** Details of a REST API operation, returned from the Resource Provider Operations API */\nexport interface Operation {\n /** The name of the operation, as per Resource-Based Access Control (RBAC). Examples: \"Microsoft.Compute/virtualMachines/write\", \"Microsoft.Compute/virtualMachines/capture/action\" */\n readonly name?: string;\n /** Whether the operation applies to data-plane. This is \"true\" for data-plane operations and \"false\" for Azure Resource Manager/control-plane operations. */\n readonly isDataAction?: boolean;\n /** Localized display information for this particular operation. */\n display?: OperationDisplay;\n /** The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default value is \"user,system\" */\n readonly origin?: Origin;\n /** Extensible enum. Indicates the action type. \"Internal\" refers to actions that are for internal only APIs. */\n readonly actionType?: ActionType;\n}\n\nexport function operationDeserializer(item: any): Operation {\n return {\n name: item[\"name\"],\n isDataAction: item[\"isDataAction\"],\n display: !item[\"display\"] ? item[\"display\"] : operationDisplayDeserializer(item[\"display\"]),\n origin: item[\"origin\"],\n actionType: item[\"actionType\"],\n };\n}\n\n/** Localized display information for an operation. */\nexport interface OperationDisplay {\n /** The localized friendly form of the resource provider name, e.g. \"Microsoft Monitoring Insights\" or \"Microsoft Compute\". */\n readonly provider?: string;\n /** The localized friendly name of the resource type related to this operation. E.g. \"Virtual Machines\" or \"Job Schedule Collections\". */\n readonly resource?: string;\n /** The concise, localized friendly name for the operation; suitable for dropdowns. E.g. \"Create or Update Virtual Machine\", \"Restart Virtual Machine\". */\n readonly operation?: string;\n /** The short, localized friendly description of the operation; suitable for tool tips and detailed views. */\n readonly description?: string;\n}\n\nexport function operationDisplayDeserializer(item: any): OperationDisplay {\n return {\n provider: item[\"provider\"],\n resource: item[\"resource\"],\n operation: item[\"operation\"],\n description: item[\"description\"],\n };\n}\n\n/** The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default value is \"user,system\" */\nexport enum KnownOrigin {\n /** Indicates the operation is initiated by a user. */\n User = \"user\",\n /** Indicates the operation is initiated by a system. */\n System = \"system\",\n /** Indicates the operation is initiated by a user or system. */\n UserSystem = \"user,system\",\n}\n\n/**\n * The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default value is \"user,system\" \\\n * {@link KnownOrigin} can be used interchangeably with Origin,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **user**: Indicates the operation is initiated by a user. \\\n * **system**: Indicates the operation is initiated by a system. \\\n * **user,system**: Indicates the operation is initiated by a user or system.\n */\nexport type Origin = string;\n\n/** Extensible enum. Indicates the action type. \"Internal\" refers to actions that are for internal only APIs. */\nexport enum KnownActionType {\n /** Actions are for internal-only APIs. */\n Internal = \"Internal\",\n}\n\n/**\n * Extensible enum. Indicates the action type. \"Internal\" refers to actions that are for internal only APIs. \\\n * {@link KnownActionType} can be used interchangeably with ActionType,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **Internal**: Actions are for internal-only APIs.\n */\nexport type ActionType = string;\n\n/** Common error response for all Azure Resource Manager APIs to return error details for failed operations. */\nexport interface ErrorResponse {\n /** The error object. */\n error?: ErrorDetail;\n}\n\nexport function errorResponseDeserializer(item: any): ErrorResponse {\n return {\n error: !item[\"error\"] ? item[\"error\"] : errorDetailDeserializer(item[\"error\"]),\n };\n}\n\n/** The error detail. */\nexport interface ErrorDetail {\n /** The error code. */\n readonly code?: string;\n /** The error message. */\n readonly message?: string;\n /** The error target. */\n readonly target?: string;\n /** The error details. */\n readonly details?: ErrorDetail[];\n /** The error additional info. */\n readonly additionalInfo?: ErrorAdditionalInfo[];\n}\n\nexport function errorDetailDeserializer(item: any): ErrorDetail {\n return {\n code: item[\"code\"],\n message: item[\"message\"],\n target: item[\"target\"],\n details: !item[\"details\"] ? item[\"details\"] : errorDetailArrayDeserializer(item[\"details\"]),\n additionalInfo: !item[\"additionalInfo\"]\n ? item[\"additionalInfo\"]\n : errorAdditionalInfoArrayDeserializer(item[\"additionalInfo\"]),\n };\n}\n\nexport function errorDetailArrayDeserializer(result: Array<ErrorDetail>): any[] {\n return result.map((item) => {\n return errorDetailDeserializer(item);\n });\n}\n\nexport function errorAdditionalInfoArrayDeserializer(result: Array<ErrorAdditionalInfo>): any[] {\n return result.map((item) => {\n return errorAdditionalInfoDeserializer(item);\n });\n}\n\n/** The resource management error additional info. */\nexport interface ErrorAdditionalInfo {\n /** The additional info type. */\n readonly type?: string;\n /** The additional info. */\n readonly info?: any;\n}\n\nexport function errorAdditionalInfoDeserializer(item: any): ErrorAdditionalInfo {\n return {\n type: item[\"type\"],\n info: item[\"info\"],\n };\n}\n\n/** Guest subscription that consumes shared compute limits. */\nexport interface GuestSubscription extends ProxyResource {\n /** The resource-specific properties for this resource. */\n properties?: GuestSubscriptionProperties;\n}\n\nexport function guestSubscriptionSerializer(item: GuestSubscription): any {\n return {\n properties: !item[\"properties\"]\n ? item[\"properties\"]\n : guestSubscriptionPropertiesSerializer(item[\"properties\"]),\n };\n}\n\nexport function guestSubscriptionDeserializer(item: any): GuestSubscription {\n return {\n id: item[\"id\"],\n name: item[\"name\"],\n type: item[\"type\"],\n systemData: !item[\"systemData\"]\n ? item[\"systemData\"]\n : systemDataDeserializer(item[\"systemData\"]),\n properties: !item[\"properties\"]\n ? item[\"properties\"]\n : guestSubscriptionPropertiesDeserializer(item[\"properties\"]),\n };\n}\n\n/** Properties for guest subscription. */\nexport interface GuestSubscriptionProperties {\n /** The provisioning state of the resource. */\n readonly provisioningState?: ResourceProvisioningState;\n}\n\nexport function guestSubscriptionPropertiesSerializer(_item: GuestSubscriptionProperties): any {\n return {};\n}\n\nexport function guestSubscriptionPropertiesDeserializer(item: any): GuestSubscriptionProperties {\n return {\n provisioningState: item[\"provisioningState\"],\n };\n}\n\n/** The provisioning state of a resource type. */\nexport enum KnownResourceProvisioningState {\n /** Resource has been created. */\n Succeeded = \"Succeeded\",\n /** Resource creation failed. */\n Failed = \"Failed\",\n /** Resource creation was canceled. */\n Canceled = \"Canceled\",\n}\n\n/**\n * The provisioning state of a resource type. \\\n * {@link KnownResourceProvisioningState} can be used interchangeably with ResourceProvisioningState,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **Succeeded**: Resource has been created. \\\n * **Failed**: Resource creation failed. \\\n * **Canceled**: Resource creation was canceled.\n */\nexport type ResourceProvisioningState = string;\n\n/** The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location */\nexport interface ProxyResource extends Resource {}\n\nexport function proxyResourceSerializer(_item: ProxyResource): any {\n return {};\n}\n\nexport function proxyResourceDeserializer(item: any): ProxyResource {\n return {\n id: item[\"id\"],\n name: item[\"name\"],\n type: item[\"type\"],\n systemData: !item[\"systemData\"]\n ? item[\"systemData\"]\n : systemDataDeserializer(item[\"systemData\"]),\n };\n}\n\n/** Common fields that are returned in the response for all Azure Resource Manager resources */\nexport interface Resource {\n /** Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} */\n readonly id?: string;\n /** The name of the resource */\n readonly name?: string;\n /** The type of the resource. E.g. \"Microsoft.Compute/virtualMachines\" or \"Microsoft.Storage/storageAccounts\" */\n readonly type?: string;\n /** Azure Resource Manager metadata containing createdBy and modifiedBy information. */\n readonly systemData?: SystemData;\n}\n\nexport function resourceSerializer(_item: Resource): any {\n return {};\n}\n\nexport function resourceDeserializer(item: any): Resource {\n return {\n id: item[\"id\"],\n name: item[\"name\"],\n type: item[\"type\"],\n systemData: !item[\"systemData\"]\n ? item[\"systemData\"]\n : systemDataDeserializer(item[\"systemData\"]),\n };\n}\n\n/** Metadata pertaining to creation and last modification of the resource. */\nexport interface SystemData {\n /** The identity that created the resource. */\n createdBy?: string;\n /** The type of identity that created the resource. */\n createdByType?: CreatedByType;\n /** The timestamp of resource creation (UTC). */\n createdAt?: Date;\n /** The identity that last modified the resource. */\n lastModifiedBy?: string;\n /** The type of identity that last modified the resource. */\n lastModifiedByType?: CreatedByType;\n /** The timestamp of resource last modification (UTC) */\n lastModifiedAt?: Date;\n}\n\nexport function systemDataDeserializer(item: any): SystemData {\n return {\n createdBy: item[\"createdBy\"],\n createdByType: item[\"createdByType\"],\n createdAt: !item[\"createdAt\"] ? item[\"createdAt\"] : new Date(item[\"createdAt\"]),\n lastModifiedBy: item[\"lastModifiedBy\"],\n lastModifiedByType: item[\"lastModifiedByType\"],\n lastModifiedAt: !item[\"lastModifiedAt\"]\n ? item[\"lastModifiedAt\"]\n : new Date(item[\"lastModifiedAt\"]),\n };\n}\n\n/** The kind of entity that created the resource. */\nexport enum KnownCreatedByType {\n /** The entity was created by a user. */\n User = \"User\",\n /** The entity was created by an application. */\n Application = \"Application\",\n /** The entity was created by a managed identity. */\n ManagedIdentity = \"ManagedIdentity\",\n /** The entity was created by a key. */\n Key = \"Key\",\n}\n\n/**\n * The kind of entity that created the resource. \\\n * {@link KnownCreatedByType} can be used interchangeably with CreatedByType,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **User**: The entity was created by a user. \\\n * **Application**: The entity was created by an application. \\\n * **ManagedIdentity**: The entity was created by a managed identity. \\\n * **Key**: The entity was created by a key.\n */\nexport type CreatedByType = string;\n\n/** The response of a GuestSubscription list operation. */\nexport interface _GuestSubscriptionListResult {\n /** The GuestSubscription items on this page */\n value: GuestSubscription[];\n /** The link to the next page of items */\n nextLink?: string;\n}\n\nexport function _guestSubscriptionListResultDeserializer(item: any): _GuestSubscriptionListResult {\n return {\n value: guestSubscriptionArrayDeserializer(item[\"value\"]),\n nextLink: item[\"nextLink\"],\n };\n}\n\nexport function guestSubscriptionArraySerializer(result: Array<GuestSubscription>): any[] {\n return result.map((item) => {\n return guestSubscriptionSerializer(item);\n });\n}\n\nexport function guestSubscriptionArrayDeserializer(result: Array<GuestSubscription>): any[] {\n return result.map((item) => {\n return guestSubscriptionDeserializer(item);\n });\n}\n\n/** Compute limits shared by the subscription. */\nexport interface SharedLimit extends ProxyResource {\n /** The resource-specific properties for this resource. */\n properties?: SharedLimitProperties;\n}\n\nexport function sharedLimitSerializer(item: SharedLimit): any {\n return {\n properties: !item[\"properties\"]\n ? item[\"properties\"]\n : sharedLimitPropertiesSerializer(item[\"properties\"]),\n };\n}\n\nexport function sharedLimitDeserializer(item: any): SharedLimit {\n return {\n id: item[\"id\"],\n name: item[\"name\"],\n type: item[\"type\"],\n systemData: !item[\"systemData\"]\n ? item[\"systemData\"]\n : systemDataDeserializer(item[\"systemData\"]),\n properties: !item[\"properties\"]\n ? item[\"properties\"]\n : sharedLimitPropertiesDeserializer(item[\"properties\"]),\n };\n}\n\n/** Properties of the compute shared limit. */\nexport interface SharedLimitProperties {\n /** The limit name properties. */\n readonly resourceName?: LimitName;\n /** The maximum permitted usage of the resource. */\n readonly limit?: number;\n /** The quota units, such as Count. */\n readonly unit?: string;\n /** The provisioning state of the resource. */\n readonly provisioningState?: ResourceProvisioningState;\n}\n\nexport function sharedLimitPropertiesSerializer(_item: SharedLimitProperties): any {\n return {};\n}\n\nexport function sharedLimitPropertiesDeserializer(item: any): SharedLimitProperties {\n return {\n resourceName: !item[\"resourceName\"]\n ? item[\"resourceName\"]\n : limitNameDeserializer(item[\"resourceName\"]),\n limit: item[\"limit\"],\n unit: item[\"unit\"],\n provisioningState: item[\"provisioningState\"],\n };\n}\n\n/** Properties of the limit name. */\nexport interface LimitName {\n /** The limit name. */\n value: string;\n /** The localized limit name. */\n readonly localizedValue?: string;\n}\n\nexport function limitNameDeserializer(item: any): LimitName {\n return {\n value: item[\"value\"],\n localizedValue: item[\"localizedValue\"],\n };\n}\n\n/** The response of a SharedLimit list operation. */\nexport interface _SharedLimitListResult {\n /** The SharedLimit items on this page */\n value: SharedLimit[];\n /** The link to the next page of items */\n nextLink?: string;\n}\n\nexport function _sharedLimitListResultDeserializer(item: any): _SharedLimitListResult {\n return {\n value: sharedLimitArrayDeserializer(item[\"value\"]),\n nextLink: item[\"nextLink\"],\n };\n}\n\nexport function sharedLimitArraySerializer(result: Array<SharedLimit>): any[] {\n return result.map((item) => {\n return sharedLimitSerializer(item);\n });\n}\n\nexport function sharedLimitArrayDeserializer(result: Array<SharedLimit>): any[] {\n return result.map((item) => {\n return sharedLimitDeserializer(item);\n });\n}\n\n/** Compute limit feature. */\nexport interface Feature extends ProxyResource {\n /** The resource-specific properties for this resource. */\n properties?: FeatureProperties;\n}\n\nexport function featureDeserializer(item: any): Feature {\n return {\n id: item[\"id\"],\n name: item[\"name\"],\n type: item[\"type\"],\n systemData: !item[\"systemData\"]\n ? item[\"systemData\"]\n : systemDataDeserializer(item[\"systemData\"]),\n properties: !item[\"properties\"]\n ? item[\"properties\"]\n : featurePropertiesDeserializer(item[\"properties\"]),\n };\n}\n\n/** Properties of the compute limit feature. */\nexport interface FeatureProperties {\n /** The current state of the feature (for example, Enabled, Disabled). */\n state?: FeatureState;\n /** The provisioning state of the resource. */\n readonly provisioningState?: ResourceProvisioningState;\n}\n\nexport function featurePropertiesDeserializer(item: any): FeatureProperties {\n return {\n state: item[\"state\"],\n provisioningState: item[\"provisioningState\"],\n };\n}\n\n/** The allowed states for a compute limit feature. */\nexport enum KnownFeatureState {\n /** The feature is enabled. */\n Enabled = \"Enabled\",\n /** The feature is disabled. */\n Disabled = \"Disabled\",\n}\n\n/**\n * The allowed states for a compute limit feature. \\\n * {@link KnownFeatureState} can be used interchangeably with FeatureState,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **Enabled**: The feature is enabled. \\\n * **Disabled**: The feature is disabled.\n */\nexport type FeatureState = string;\n\n/** The response of a Feature list operation. */\nexport interface _FeatureListResult {\n /** The Feature items on this page */\n value: Feature[];\n /** The link to the next page of items */\n nextLink?: string;\n}\n\nexport function _featureListResultDeserializer(item: any): _FeatureListResult {\n return {\n value: featureArrayDeserializer(item[\"value\"]),\n nextLink: item[\"nextLink\"],\n };\n}\n\nexport function featureArrayDeserializer(result: Array<Feature>): any[] {\n return result.map((item) => {\n return featureDeserializer(item);\n });\n}\n\n/** Request body for feature enable action. */\nexport interface FeatureEnableRequest {\n /** The Service Tree identifier associated with this feature action. */\n serviceTreeId?: string;\n}\n\nexport function featureEnableRequestSerializer(item: FeatureEnableRequest): any {\n return { serviceTreeId: item[\"serviceTreeId\"] };\n}\n\n/** The current status of an async operation. */\nexport interface OperationStatusResult {\n /** Fully qualified ID for the async operation. */\n id?: string;\n /** Name of the async operation. */\n name?: string;\n /** Operation status. */\n status: string;\n /** Percent of the operation that is complete. */\n percentComplete?: number;\n /** The start time of the operation. */\n startTime?: Date;\n /** The end time of the operation. */\n endTime?: Date;\n /** The operations list. */\n operations?: OperationStatusResult[];\n /** If present, details of the operation error. */\n error?: ErrorDetail;\n /** Fully qualified ID of the resource against which the original async operation was started. */\n readonly resourceId?: string;\n}\n\nexport function operationStatusResultDeserializer(item: any): OperationStatusResult {\n return {\n id: item[\"id\"],\n name: item[\"name\"],\n status: item[\"status\"],\n percentComplete: item[\"percentComplete\"],\n startTime: !item[\"startTime\"] ? item[\"startTime\"] : new Date(item[\"startTime\"]),\n endTime: !item[\"endTime\"] ? item[\"endTime\"] : new Date(item[\"endTime\"]),\n operations: !item[\"operations\"]\n ? item[\"operations\"]\n : operationStatusResultArrayDeserializer(item[\"operations\"]),\n error: !item[\"error\"] ? item[\"error\"] : errorDetailDeserializer(item[\"error\"]),\n resourceId: item[\"resourceId\"],\n };\n}\n\nexport function operationStatusResultArrayDeserializer(\n result: Array<OperationStatusResult>,\n): any[] {\n return result.map((item) => {\n return operationStatusResultDeserializer(item);\n });\n}\n\n/** VM family resource representing a virtual machine family and its category. */\nexport interface VmFamily extends ProxyResource {\n /** The resource-specific properties for this resource. */\n properties?: VmFamilyProperties;\n}\n\nexport function vmFamilyDeserializer(item: any): VmFamily {\n return {\n id: item[\"id\"],\n name: item[\"name\"],\n type: item[\"type\"],\n systemData: !item[\"systemData\"]\n ? item[\"systemData\"]\n : systemDataDeserializer(item[\"systemData\"]),\n properties: !item[\"properties\"]\n ? item[\"properties\"]\n : vmFamilyPropertiesDeserializer(item[\"properties\"]),\n };\n}\n\n/** Properties of a VM family resource. */\nexport interface VmFamilyProperties {\n /** The category of the VM family (for example, GeneralPurpose, ComputeOptimized). */\n category?: string;\n /** The provisioning state of the resource. */\n readonly provisioningState?: ResourceProvisioningState;\n}\n\nexport function vmFamilyPropertiesDeserializer(item: any): VmFamilyProperties {\n return {\n category: item[\"category\"],\n provisioningState: item[\"provisioningState\"],\n };\n}\n\n/** The response of a VmFamily list operation. */\nexport interface _VmFamilyListResult {\n /** The VmFamily items on this page */\n value: VmFamily[];\n /** The link to the next page of items */\n nextLink?: string;\n}\n\nexport function _vmFamilyListResultDeserializer(item: any): _VmFamilyListResult {\n return {\n value: vmFamilyArrayDeserializer(item[\"value\"]),\n nextLink: item[\"nextLink\"],\n };\n}\n\nexport function vmFamilyArrayDeserializer(result: Array<VmFamily>): any[] {\n return result.map((item) => {\n return vmFamilyDeserializer(item);\n });\n}\n\n/** The available API versions. */\nexport enum KnownVersions {\n /** The 2025-08-15 API version. */\n V20250815 = \"2025-08-15\",\n /** The 2026-03-20 API version. */\n V20260320 = \"2026-03-20\",\n /** The 2026-04-30 API version. */\n V20260430 = \"2026-04-30\",\n /** The 2026-06-01 API version. */\n V20260601 = \"2026-06-01\",\n}\n"]}
|
|
1
|
+
{"version":3,"file":"models.js","sourceRoot":"","sources":["../../../src/models/models.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAgBlC,MAAM,UAAU,gCAAgC,CAAC,IAAS;IACxD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,uCAAuC,CAAC,IAAS;IAC/D,OAAO;QACL,GAAG,EAAE,IAAI,CAAC,KAAK,CAAC;QAChB,iBAAiB,EAAE,IAAI,CAAC,mBAAmB,CAAC;KAC7C,CAAC;AACJ,CAAC;AAUD,MAAM,UAAU,wCAAwC,CAAC,IAAS;IAChE,OAAO;QACL,KAAK,EAAE,kCAAkC,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxD,QAAQ,EAAE,IAAI,CAAC,UAAU,CAAC;KAC3B,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,gCAAgC,CAAC,MAAgC;IAC/E,OAAO,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE;QACzB,OAAO,2BAA2B,CAAC,IAAI,CAAC,CAAC;IAC3C,CAAC,CAAC,CAAC;AACL,CAAC;AAED,MAAM,UAAU,kCAAkC,CAAC,MAAgC;IACjF,OAAO,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE;QACzB,OAAO,6BAA6B,CAAC,IAAI,CAAC,CAAC;IAC7C,CAAC,CAAC,CAAC;AACL,CAAC;AAED,kCAAkC;AAClC,MAAM,CAAN,IAAY,aAWX;AAXD,WAAY,aAAa;IACvB,kCAAkC;IAClC,yCAAwB,CAAA;IACxB,kCAAkC;IAClC,yCAAwB,CAAA;IACxB,kCAAkC;IAClC,yCAAwB,CAAA;IACxB,kCAAkC;IAClC,yCAAwB,CAAA;IACxB,kCAAkC;IAClC,yCAAwB,CAAA;AAC1B,CAAC,EAXW,aAAa,KAAb,aAAa,QAWxB","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"]}
|
|
@@ -1,4 +1,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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pollingHelpers.js","sourceRoot":"","sources":["../../../src/static-helpers/pollingHelpers.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AASlC,OAAO,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AAGnD,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAgC1D,MAAM,UAAU,oBAAoB,CAClC,MAAc,EACd,mBAA4D,EAC5D,gBAA0B,EAC1B,OAA+C;IAE/C,MAAM,EAAE,WAAW,EAAE,kBAAkB,EAAE,UAAU,EAAE,GAAG,OAAO,CAAC;IAChE,IAAI,CAAC,WAAW,IAAI,CAAC,kBAAkB,EAAE,CAAC;QACxC,MAAM,IAAI,KAAK,CAAC,4DAA4D,CAAC,CAAC;IAChF,CAAC;IACD,IAAI,eAAe,GAA0B,SAAS,CAAC;IACvD,MAAM,mBAAmB,GAAG,IAAI,eAAe,EAAE,CAAC;IAClD,MAAM,MAAM,GAAgC;QAC1C,kBAAkB,EAAE,KAAK,IAAI,EAAE;YAC7B,IAAI,CAAC,kBAAkB,EAAE,CAAC;gBACxB,MAAM,IAAI,KAAK,CAAC,+DAA+D,CAAC,CAAC;YACnF,CAAC;YACD,eAAe,GAAG,MAAM,kBAAkB,EAAE,CAAC;YAC7C,OAAO,cAAc,CAAC,eAAe,EAAE,gBAAgB,CAAC,CAAC;QAC3D,CAAC;QACD,eAAe,EAAE,KAAK,EACpB,IAAY,EACZ,WAEC,EACD,EAAE;YACF,yGAAyG;YACzG,SAAS,aAAa;gBACpB,mBAAmB,CAAC,KAAK,EAAE,CAAC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AW,EAAE,OAAO,EAAE,WAAW;QACjC,aAAa,EAAE,CAAC,MAAe,EAAE,EAAE;YACjC,OAAO,mBAAmB,CAAC,MAAmB,CAAC,CAAC;QAClD,CAAC;KACF,CAAC,CAAC;AACL,CAAC;AACD;;;;;GAKG;AACH,SAAS,cAAc,CACrB,QAAmB,EACnB,gBAA0B;IAE1B,IAAI,CAAC,gBAAgB,CAAC,QAAQ,CAAC,QAAQ,CAAC,MAAM,CAAC,EAAE,CAAC;QAChD,MAAM,eAAe,CAAC,QAAQ,CAAC,CAAC;IAClC,CAAC;IAED,OAAO;QACL,YAAY,EAAE,QAAQ;QACtB,WAAW,EAAE;YACX,GAAG,QAAQ;YACX,UAAU,EAAE,MAAM,CAAC,QAAQ,CAAC,QAAQ,CAAC,MAAM,CAAC;YAC5C,IAAI,EAAE,QAAQ,CAAC,IAAI;SACpB;KACF,CAAC;AACJ,CAAC;AAED;;;;;GAKG;AACH,SAAS,kBAAkB,CAAC,GAAW,EAAE,UAAkB;IACzD,6EAA6E;IAC7E,MAAM,MAAM,GAAG,IAAI,GAAG,CAAC,GAAG,EAAE,uBAAuB,CAAC,CAAC;IACrD,IAAI,CAAC,MAAM,CAAC,YAAY,CAAC,GAAG,CAAC,aAAa,CAAC,EAAE,CAAC;QAC5C,uCAAuC;QACvC,OAAO,GAAG,GAAG,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,eAAe,UAAU,EAAE,CAAC;IACvE,CAAC;IACD,OAAO,GAAG,CAAC;AACb,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type {\n
|
|
1
|
+
{"version":3,"file":"pollingHelpers.js","sourceRoot":"","sources":["../../../src/static-helpers/pollingHelpers.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AASlC,OAAO,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AAGnD,OAAO,EAAE,eAAe,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,UAAU,EAAE,MAAM,CAAC,QAAQ,CAAC,QAAQ,CAAC,MAAM,CAAC;YAC5C,IAAI,EAAE,QAAQ,CAAC,IAAI;SACpB;KACF,CAAC;AACJ,CAAC;AAED;;;;;GAKG;AACH,SAAS,kBAAkB,CAAC,GAAW,EAAE,UAAkB;IACzD,6EAA6E;IAC7E,MAAM,MAAM,GAAG,IAAI,GAAG,CAAC,GAAG,EAAE,uBAAuB,CAAC,CAAC;IACrD,IAAI,CAAC,MAAM,CAAC,YAAY,CAAC,GAAG,CAAC,aAAa,CAAC,EAAE,CAAC;QAC5C,uCAAuC;QACvC,OAAO,GAAG,GAAG,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,eAAe,UAAU,EAAE,CAAC;IACvE,CAAC;IACD,OAAO,GAAG,CAAC;AACb,CAAC","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"]}
|
|
@@ -26,7 +26,7 @@ var import_core_client = require("@azure-rest/core-client");
|
|
|
26
26
|
function createComputeLimit(credential, subscriptionId, options = {}) {
|
|
27
27
|
const endpointUrl = options.endpoint ?? (0, import_cloudSettingHelpers.getArmEndpoint)(options.cloudSetting) ?? "https://management.azure.com";
|
|
28
28
|
const prefixFromOptions = options?.userAgentOptions?.userAgentPrefix;
|
|
29
|
-
const userAgentInfo = `azsdk-js-arm-computelimit/1.
|
|
29
|
+
const userAgentInfo = `azsdk-js-arm-computelimit/1.2.0`;
|
|
30
30
|
const userAgentPrefix = prefixFromOptions ? `${prefixFromOptions} azsdk-js-api ${userAgentInfo}` : `azsdk-js-api ${userAgentInfo}`;
|
|
31
31
|
const { apiVersion: _, ...updatedOptions } = {
|
|
32
32
|
...options,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../src/api/computeLimitContext.ts"],
|
|
4
|
-
"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.
|
|
4
|
+
"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.0`;\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"],
|
|
5
5
|
"mappings": ";;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAGA,oBAAuB;AAGvB,iCAA+B;AAE/B,yBAA0B;AAsBnB,SAAS,mBACd,YACA,gBACA,UAA4C,CAAC,GACxB;AACrB,QAAM,cACJ,QAAQ,gBAAY,2CAAe,QAAQ,YAAY,KAAK;AAC9D,QAAM,oBAAoB,SAAS,kBAAkB;AACrD,QAAM,gBAAgB;AACtB,QAAM,kBAAkB,oBACpB,GAAG,iBAAiB,iBAAiB,aAAa,KAClD,gBAAgB,aAAa;AACjC,QAAM,EAAE,YAAY,GAAG,GAAG,eAAe,IAAI;AAAA,IAC3C,GAAG;AAAA,IACH,kBAAkB,EAAE,gBAAgB;AAAA,IACpC,gBAAgB,EAAE,QAAQ,QAAQ,gBAAgB,UAAU,qBAAO,KAAK;AAAA,IACxE,aAAa;AAAA,MACX,QAAQ,QAAQ,aAAa,UAAU,CAAC,uCAAuC;AAAA,IACjF;AAAA,EACF;AACA,QAAM,oBAAgB,8BAAU,aAAa,YAAY,cAAc;AACvE,QAAM,aAAa,QAAQ;AAC3B,SAAO,EAAE,GAAG,eAAe,YAAY,eAAe;AACxD;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -43,7 +43,7 @@ function _disableSend(context, location, featureName, options = { requestOptions
|
|
|
43
43
|
subscriptionId: context.subscriptionId,
|
|
44
44
|
location,
|
|
45
45
|
featureName,
|
|
46
|
-
"api%2Dversion": context.apiVersion ?? "2026-
|
|
46
|
+
"api%2Dversion": context.apiVersion ?? "2026-07-01"
|
|
47
47
|
},
|
|
48
48
|
{
|
|
49
49
|
allowReserved: options?.requestOptions?.skipUrlEncoding
|
|
@@ -58,7 +58,9 @@ async function _disableDeserialize(result) {
|
|
|
58
58
|
const expectedStatuses = ["200", "202", "201"];
|
|
59
59
|
if (!expectedStatuses.includes(result.status)) {
|
|
60
60
|
const error = (0, import_core_client.createRestError)(result);
|
|
61
|
-
|
|
61
|
+
if (result.body) {
|
|
62
|
+
error.details = (0, import_models.errorResponseDeserializer)(result.body);
|
|
63
|
+
}
|
|
62
64
|
throw error;
|
|
63
65
|
}
|
|
64
66
|
return (0, import_models.operationStatusResultDeserializer)(result.body);
|
|
@@ -69,7 +71,7 @@ function disable(context, location, featureName, options = { requestOptions: {}
|
|
|
69
71
|
abortSignal: options?.abortSignal,
|
|
70
72
|
getInitialResponse: () => _disableSend(context, location, featureName, options),
|
|
71
73
|
resourceLocationConfig: "location",
|
|
72
|
-
apiVersion: context.apiVersion ?? "2026-
|
|
74
|
+
apiVersion: context.apiVersion ?? "2026-07-01"
|
|
73
75
|
});
|
|
74
76
|
}
|
|
75
77
|
function _enableSend(context, location, featureName, options = { requestOptions: {} }) {
|
|
@@ -79,7 +81,7 @@ function _enableSend(context, location, featureName, options = { requestOptions:
|
|
|
79
81
|
subscriptionId: context.subscriptionId,
|
|
80
82
|
location,
|
|
81
83
|
featureName,
|
|
82
|
-
"api%2Dversion": context.apiVersion ?? "2026-
|
|
84
|
+
"api%2Dversion": context.apiVersion ?? "2026-07-01"
|
|
83
85
|
},
|
|
84
86
|
{
|
|
85
87
|
allowReserved: options?.requestOptions?.skipUrlEncoding
|
|
@@ -96,7 +98,9 @@ async function _enableDeserialize(result) {
|
|
|
96
98
|
const expectedStatuses = ["200", "202", "201"];
|
|
97
99
|
if (!expectedStatuses.includes(result.status)) {
|
|
98
100
|
const error = (0, import_core_client.createRestError)(result);
|
|
99
|
-
|
|
101
|
+
if (result.body) {
|
|
102
|
+
error.details = (0, import_models.errorResponseDeserializer)(result.body);
|
|
103
|
+
}
|
|
100
104
|
throw error;
|
|
101
105
|
}
|
|
102
106
|
return (0, import_models.operationStatusResultDeserializer)(result.body);
|
|
@@ -107,7 +111,7 @@ function enable(context, location, featureName, options = { requestOptions: {} }
|
|
|
107
111
|
abortSignal: options?.abortSignal,
|
|
108
112
|
getInitialResponse: () => _enableSend(context, location, featureName, options),
|
|
109
113
|
resourceLocationConfig: "location",
|
|
110
|
-
apiVersion: context.apiVersion ?? "2026-
|
|
114
|
+
apiVersion: context.apiVersion ?? "2026-07-01"
|
|
111
115
|
});
|
|
112
116
|
}
|
|
113
117
|
function _listBySubscriptionLocationResourceSend(context, location, options = { requestOptions: {} }) {
|
|
@@ -116,7 +120,7 @@ function _listBySubscriptionLocationResourceSend(context, location, options = {
|
|
|
116
120
|
{
|
|
117
121
|
subscriptionId: context.subscriptionId,
|
|
118
122
|
location,
|
|
119
|
-
"api%2Dversion": context.apiVersion ?? "2026-
|
|
123
|
+
"api%2Dversion": context.apiVersion ?? "2026-07-01"
|
|
120
124
|
},
|
|
121
125
|
{
|
|
122
126
|
allowReserved: options?.requestOptions?.skipUrlEncoding
|
|
@@ -131,7 +135,9 @@ async function _listBySubscriptionLocationResourceDeserialize(result) {
|
|
|
131
135
|
const expectedStatuses = ["200"];
|
|
132
136
|
if (!expectedStatuses.includes(result.status)) {
|
|
133
137
|
const error = (0, import_core_client.createRestError)(result);
|
|
134
|
-
|
|
138
|
+
if (result.body) {
|
|
139
|
+
error.details = (0, import_models.errorResponseDeserializer)(result.body);
|
|
140
|
+
}
|
|
135
141
|
throw error;
|
|
136
142
|
}
|
|
137
143
|
return (0, import_models._featureListResultDeserializer)(result.body);
|
|
@@ -142,7 +148,7 @@ function listBySubscriptionLocationResource(context, location, options = { reque
|
|
|
142
148
|
() => _listBySubscriptionLocationResourceSend(context, location, options),
|
|
143
149
|
_listBySubscriptionLocationResourceDeserialize,
|
|
144
150
|
["200"],
|
|
145
|
-
{ itemName: "value", nextLinkName: "nextLink", apiVersion: context.apiVersion ?? "2026-
|
|
151
|
+
{ itemName: "value", nextLinkName: "nextLink", apiVersion: context.apiVersion ?? "2026-07-01" }
|
|
146
152
|
);
|
|
147
153
|
}
|
|
148
154
|
function _getSend(context, location, featureName, options = { requestOptions: {} }) {
|
|
@@ -152,7 +158,7 @@ function _getSend(context, location, featureName, options = { requestOptions: {}
|
|
|
152
158
|
subscriptionId: context.subscriptionId,
|
|
153
159
|
location,
|
|
154
160
|
featureName,
|
|
155
|
-
"api%2Dversion": context.apiVersion ?? "2026-
|
|
161
|
+
"api%2Dversion": context.apiVersion ?? "2026-07-01"
|
|
156
162
|
},
|
|
157
163
|
{
|
|
158
164
|
allowReserved: options?.requestOptions?.skipUrlEncoding
|
|
@@ -167,7 +173,9 @@ async function _getDeserialize(result) {
|
|
|
167
173
|
const expectedStatuses = ["200"];
|
|
168
174
|
if (!expectedStatuses.includes(result.status)) {
|
|
169
175
|
const error = (0, import_core_client.createRestError)(result);
|
|
170
|
-
|
|
176
|
+
if (result.body) {
|
|
177
|
+
error.details = (0, import_models.errorResponseDeserializer)(result.body);
|
|
178
|
+
}
|
|
171
179
|
throw error;
|
|
172
180
|
}
|
|
173
181
|
return (0, import_models.featureDeserializer)(result.body);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../src/api/features/operations.ts"],
|
|
4
|
-
"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-
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAKA,oBAMO;AAEP,2BAAwC;AACxC,4BAAqC;AACrC,yBAAkC;AAQlC,yBAAqE;AAG9D,SAAS,aACd,SACA,UACA,aACA,UAAyC,EAAE,gBAAgB,CAAC,EAAE,GAC5C;AAClB,QAAM,WAAO;AAAA,IACX;AAAA,IACA;AAAA,MACE,gBAAgB,QAAQ;AAAA,MACxB;AAAA,MACA;AAAA,MACA,iBAAiB,QAAQ,cAAc;AAAA,IACzC;AAAA,IACA;AAAA,MACE,eAAe,SAAS,gBAAgB;AAAA,IAC1C;AAAA,EACF;AACA,SAAO,QAAQ,KAAK,IAAI,EAAE,KAAK;AAAA,IAC7B,OAAG,wDAAoC,OAAO;AAAA,IAC9C,SAAS,EAAE,QAAQ,oBAAoB,GAAG,QAAQ,gBAAgB,QAAQ;AAAA,EAC5E,CAAC;AACH;AAEA,eAAsB,oBACpB,QACgC;AAChC,QAAM,mBAAmB,CAAC,OAAO,OAAO,KAAK;AAC7C,MAAI,CAAC,iBAAiB,SAAS,OAAO,MAAM,GAAG;AAC7C,UAAM,YAAQ,oCAAgB,MAAM;AACpC,
|
|
4
|
+
"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. */\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. */\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"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAKA,oBAMO;AAEP,2BAAwC;AACxC,4BAAqC;AACrC,yBAAkC;AAQlC,yBAAqE;AAG9D,SAAS,aACd,SACA,UACA,aACA,UAAyC,EAAE,gBAAgB,CAAC,EAAE,GAC5C;AAClB,QAAM,WAAO;AAAA,IACX;AAAA,IACA;AAAA,MACE,gBAAgB,QAAQ;AAAA,MACxB;AAAA,MACA;AAAA,MACA,iBAAiB,QAAQ,cAAc;AAAA,IACzC;AAAA,IACA;AAAA,MACE,eAAe,SAAS,gBAAgB;AAAA,IAC1C;AAAA,EACF;AACA,SAAO,QAAQ,KAAK,IAAI,EAAE,KAAK;AAAA,IAC7B,OAAG,wDAAoC,OAAO;AAAA,IAC9C,SAAS,EAAE,QAAQ,oBAAoB,GAAG,QAAQ,gBAAgB,QAAQ;AAAA,EAC5E,CAAC;AACH;AAEA,eAAsB,oBACpB,QACgC;AAChC,QAAM,mBAAmB,CAAC,OAAO,OAAO,KAAK;AAC7C,MAAI,CAAC,iBAAiB,SAAS,OAAO,MAAM,GAAG;AAC7C,UAAM,YAAQ,oCAAgB,MAAM;AACpC,QAAI,OAAO,MAAM;AACf,YAAM,cAAU,yCAA0B,OAAO,IAAI;AAAA,IACvD;AAEA,UAAM;AAAA,EACR;AAEA,aAAO,iDAAkC,OAAO,IAAI;AACtD;AAGO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AAgB,CAAC,EAAE,GACxC;AAClB,QAAM,WAAO;AAAA,IACX;AAAA,IACA;AAAA,MACE,gBAAgB,QAAQ;AAAA,MACxB;AAAA,MACA;AAAA,MACA,iBAAiB,QAAQ,cAAc;AAAA,IACzC;AAAA,IACA;AAAA,MACE,eAAe,SAAS,gBAAgB;AAAA,IAC1C;AAAA,EACF;AACA,SAAO,QAAQ,KAAK,IAAI,EAAE,IAAI;AAAA,IAC5B,OAAG,wDAAoC,OAAO;AAAA,IAC9C,SAAS,EAAE,QAAQ,oBAAoB,GAAG,QAAQ,gBAAgB,QAAQ;AAAA,EAC5E,CAAC;AACH;AAEA,eAAsB,gBAAgB,QAAiD;AACrF,QAAM,mBAAmB,CAAC,KAAK;AAC/B,MAAI,CAAC,iBAAiB,SAAS,OAAO,MAAM,GAAG;AAC7C,UAAM,YAAQ,oCAAgB,MAAM;AACpC,QAAI,OAAO,MAAM;AACf,YAAM,cAAU,yCAA0B,OAAO,IAAI;AAAA,IACvD;AAEA,UAAM;AAAA,EACR;AAEA,aAAO,mCAAoB,OAAO,IAAI;AACxC;AAGA,eAAsB,IACpB,SACA,UACA,aACA,UAAqC,EAAE,gBAAgB,CAAC,EAAE,GACxC;AAClB,QAAM,SAAS,MAAM,SAAS,SAAS,UAAU,aAAa,OAAO;AACrE,SAAO,gBAAgB,MAAM;AAC/B;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -43,7 +43,7 @@ function _listBySubscriptionLocationResourceSend(context, location, options = {
|
|
|
43
43
|
{
|
|
44
44
|
subscriptionId: context.subscriptionId,
|
|
45
45
|
location,
|
|
46
|
-
"api%2Dversion": context.apiVersion ?? "2026-
|
|
46
|
+
"api%2Dversion": context.apiVersion ?? "2026-07-01"
|
|
47
47
|
},
|
|
48
48
|
{
|
|
49
49
|
allowReserved: options?.requestOptions?.skipUrlEncoding
|
|
@@ -58,7 +58,9 @@ async function _listBySubscriptionLocationResourceDeserialize(result) {
|
|
|
58
58
|
const expectedStatuses = ["200"];
|
|
59
59
|
if (!expectedStatuses.includes(result.status)) {
|
|
60
60
|
const error = (0, import_core_client.createRestError)(result);
|
|
61
|
-
|
|
61
|
+
if (result.body) {
|
|
62
|
+
error.details = (0, import_models.errorResponseDeserializer)(result.body);
|
|
63
|
+
}
|
|
62
64
|
throw error;
|
|
63
65
|
}
|
|
64
66
|
return (0, import_models._guestSubscriptionListResultDeserializer)(result.body);
|
|
@@ -71,7 +73,7 @@ function listBySubscriptionLocationResource(context, location, options = {
|
|
|
71
73
|
() => _listBySubscriptionLocationResourceSend(context, location, options),
|
|
72
74
|
_listBySubscriptionLocationResourceDeserialize,
|
|
73
75
|
["200"],
|
|
74
|
-
{ itemName: "value", nextLinkName: "nextLink", apiVersion: context.apiVersion ?? "2026-
|
|
76
|
+
{ itemName: "value", nextLinkName: "nextLink", apiVersion: context.apiVersion ?? "2026-07-01" }
|
|
75
77
|
);
|
|
76
78
|
}
|
|
77
79
|
function _$deleteSend(context, location, guestSubscriptionId, options = { requestOptions: {} }) {
|
|
@@ -81,7 +83,7 @@ function _$deleteSend(context, location, guestSubscriptionId, options = { reques
|
|
|
81
83
|
subscriptionId: context.subscriptionId,
|
|
82
84
|
location,
|
|
83
85
|
guestSubscriptionId,
|
|
84
|
-
"api%2Dversion": context.apiVersion ?? "2026-
|
|
86
|
+
"api%2Dversion": context.apiVersion ?? "2026-07-01"
|
|
85
87
|
},
|
|
86
88
|
{
|
|
87
89
|
allowReserved: options?.requestOptions?.skipUrlEncoding
|
|
@@ -93,7 +95,9 @@ async function _$deleteDeserialize(result) {
|
|
|
93
95
|
const expectedStatuses = ["200", "204"];
|
|
94
96
|
if (!expectedStatuses.includes(result.status)) {
|
|
95
97
|
const error = (0, import_core_client.createRestError)(result);
|
|
96
|
-
|
|
98
|
+
if (result.body) {
|
|
99
|
+
error.details = (0, import_models.errorResponseDeserializer)(result.body);
|
|
100
|
+
}
|
|
97
101
|
throw error;
|
|
98
102
|
}
|
|
99
103
|
return;
|
|
@@ -109,7 +113,7 @@ function _createSend(context, location, guestSubscriptionId, resource, options =
|
|
|
109
113
|
subscriptionId: context.subscriptionId,
|
|
110
114
|
location,
|
|
111
115
|
guestSubscriptionId,
|
|
112
|
-
"api%2Dversion": context.apiVersion ?? "2026-
|
|
116
|
+
"api%2Dversion": context.apiVersion ?? "2026-07-01"
|
|
113
117
|
},
|
|
114
118
|
{
|
|
115
119
|
allowReserved: options?.requestOptions?.skipUrlEncoding
|
|
@@ -126,7 +130,9 @@ async function _createDeserialize(result) {
|
|
|
126
130
|
const expectedStatuses = ["200", "201"];
|
|
127
131
|
if (!expectedStatuses.includes(result.status)) {
|
|
128
132
|
const error = (0, import_core_client.createRestError)(result);
|
|
129
|
-
|
|
133
|
+
if (result.body) {
|
|
134
|
+
error.details = (0, import_models.errorResponseDeserializer)(result.body);
|
|
135
|
+
}
|
|
130
136
|
throw error;
|
|
131
137
|
}
|
|
132
138
|
return (0, import_models.guestSubscriptionDeserializer)(result.body);
|
|
@@ -142,7 +148,7 @@ function _getSend(context, location, guestSubscriptionId, options = { requestOpt
|
|
|
142
148
|
subscriptionId: context.subscriptionId,
|
|
143
149
|
location,
|
|
144
150
|
guestSubscriptionId,
|
|
145
|
-
"api%2Dversion": context.apiVersion ?? "2026-
|
|
151
|
+
"api%2Dversion": context.apiVersion ?? "2026-07-01"
|
|
146
152
|
},
|
|
147
153
|
{
|
|
148
154
|
allowReserved: options?.requestOptions?.skipUrlEncoding
|
|
@@ -157,7 +163,9 @@ async function _getDeserialize(result) {
|
|
|
157
163
|
const expectedStatuses = ["200"];
|
|
158
164
|
if (!expectedStatuses.includes(result.status)) {
|
|
159
165
|
const error = (0, import_core_client.createRestError)(result);
|
|
160
|
-
|
|
166
|
+
if (result.body) {
|
|
167
|
+
error.details = (0, import_models.errorResponseDeserializer)(result.body);
|
|
168
|
+
}
|
|
161
169
|
throw error;
|
|
162
170
|
}
|
|
163
171
|
return (0, import_models.guestSubscriptionDeserializer)(result.body);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../src/api/guestSubscriptions/operations.ts"],
|
|
4
|
-
"sourcesContent": ["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { ComputeLimitContext as Client } from \"../index.js\";\nimport type { GuestSubscription, _GuestSubscriptionListResult } from \"../../models/models.js\";\nimport {\n errorResponseDeserializer,\n guestSubscriptionSerializer,\n guestSubscriptionDeserializer,\n _guestSubscriptionListResultDeserializer,\n} from \"../../models/models.js\";\nimport type { PagedAsyncIterableIterator } from \"../../static-helpers/pagingHelpers.js\";\nimport { buildPagedAsyncIterator } from \"../../static-helpers/pagingHelpers.js\";\nimport { expandUrlTemplate } from \"../../static-helpers/urlTemplate.js\";\nimport type {\n GuestSubscriptionsListBySubscriptionLocationResourceOptionalParams,\n GuestSubscriptionsDeleteOptionalParams,\n GuestSubscriptionsCreateOptionalParams,\n GuestSubscriptionsGetOptionalParams,\n} from \"./options.js\";\nimport type { StreamableMethod, PathUncheckedResponse } from \"@azure-rest/core-client\";\nimport { createRestError, operationOptionsToRequestParameters } from \"@azure-rest/core-client\";\n\nexport function _listBySubscriptionLocationResourceSend(\n context: Client,\n location: string,\n options: GuestSubscriptionsListBySubscriptionLocationResourceOptionalParams = {\n requestOptions: {},\n },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/providers/Microsoft.ComputeLimit/locations/{location}/guestSubscriptions{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n location: location,\n \"api%2Dversion\": context.apiVersion ?? \"2026-
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAKA,oBAKO;AAEP,2BAAwC;AACxC,yBAAkC;AAQlC,yBAAqE;AAE9D,SAAS,wCACd,SACA,UACA,UAA8E;AAAA,EAC5E,gBAAgB,CAAC;AACnB,GACkB;AAClB,QAAM,WAAO;AAAA,IACX;AAAA,IACA;AAAA,MACE,gBAAgB,QAAQ;AAAA,MACxB;AAAA,MACA,iBAAiB,QAAQ,cAAc;AAAA,IACzC;AAAA,IACA;AAAA,MACE,eAAe,SAAS,gBAAgB;AAAA,IAC1C;AAAA,EACF;AACA,SAAO,QAAQ,KAAK,IAAI,EAAE,IAAI;AAAA,IAC5B,OAAG,wDAAoC,OAAO;AAAA,IAC9C,SAAS,EAAE,QAAQ,oBAAoB,GAAG,QAAQ,gBAAgB,QAAQ;AAAA,EAC5E,CAAC;AACH;AAEA,eAAsB,+CACpB,QACuC;AACvC,QAAM,mBAAmB,CAAC,KAAK;AAC/B,MAAI,CAAC,iBAAiB,SAAS,OAAO,MAAM,GAAG;AAC7C,UAAM,YAAQ,oCAAgB,MAAM;AACpC,
|
|
4
|
+
"sourcesContent": ["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { ComputeLimitContext as Client } from \"../index.js\";\nimport type { GuestSubscription, _GuestSubscriptionListResult } from \"../../models/models.js\";\nimport {\n errorResponseDeserializer,\n guestSubscriptionSerializer,\n guestSubscriptionDeserializer,\n _guestSubscriptionListResultDeserializer,\n} from \"../../models/models.js\";\nimport type { PagedAsyncIterableIterator } from \"../../static-helpers/pagingHelpers.js\";\nimport { buildPagedAsyncIterator } from \"../../static-helpers/pagingHelpers.js\";\nimport { expandUrlTemplate } from \"../../static-helpers/urlTemplate.js\";\nimport type {\n GuestSubscriptionsListBySubscriptionLocationResourceOptionalParams,\n GuestSubscriptionsDeleteOptionalParams,\n GuestSubscriptionsCreateOptionalParams,\n GuestSubscriptionsGetOptionalParams,\n} from \"./options.js\";\nimport type { StreamableMethod, PathUncheckedResponse } from \"@azure-rest/core-client\";\nimport { createRestError, operationOptionsToRequestParameters } from \"@azure-rest/core-client\";\n\nexport function _listBySubscriptionLocationResourceSend(\n context: Client,\n location: string,\n options: GuestSubscriptionsListBySubscriptionLocationResourceOptionalParams = {\n requestOptions: {},\n },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/providers/Microsoft.ComputeLimit/locations/{location}/guestSubscriptions{?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<_GuestSubscriptionListResult> {\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 _guestSubscriptionListResultDeserializer(result.body);\n}\n\n/** Lists all guest subscriptions in a location. */\nexport function listBySubscriptionLocationResource(\n context: Client,\n location: string,\n options: GuestSubscriptionsListBySubscriptionLocationResourceOptionalParams = {\n requestOptions: {},\n },\n): PagedAsyncIterableIterator<GuestSubscription> {\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 _$deleteSend(\n context: Client,\n location: string,\n guestSubscriptionId: string,\n options: GuestSubscriptionsDeleteOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/providers/Microsoft.ComputeLimit/locations/{location}/guestSubscriptions/{guestSubscriptionId}{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n location: location,\n guestSubscriptionId: guestSubscriptionId,\n \"api%2Dversion\": context.apiVersion ?? \"2026-07-01\",\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).delete({ ...operationOptionsToRequestParameters(options) });\n}\n\nexport async function _$deleteDeserialize(result: PathUncheckedResponse): Promise<void> {\n const expectedStatuses = [\"200\", \"204\"];\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;\n}\n\n/** Deletes a subscription as a guest to stop consuming the compute limits shared by the host subscription. */\nexport async function $delete(\n context: Client,\n location: string,\n guestSubscriptionId: string,\n options: GuestSubscriptionsDeleteOptionalParams = { requestOptions: {} },\n): Promise<void> {\n const result = await _$deleteSend(context, location, guestSubscriptionId, options);\n return _$deleteDeserialize(result);\n}\n\nexport function _createSend(\n context: Client,\n location: string,\n guestSubscriptionId: string,\n resource: GuestSubscription,\n options: GuestSubscriptionsCreateOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/providers/Microsoft.ComputeLimit/locations/{location}/guestSubscriptions/{guestSubscriptionId}{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n location: location,\n guestSubscriptionId: guestSubscriptionId,\n \"api%2Dversion\": context.apiVersion ?? \"2026-07-01\",\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).put({\n ...operationOptionsToRequestParameters(options),\n contentType: \"application/json\",\n headers: { accept: \"application/json\", ...options.requestOptions?.headers },\n body: guestSubscriptionSerializer(resource),\n });\n}\n\nexport async function _createDeserialize(\n result: PathUncheckedResponse,\n): Promise<GuestSubscription> {\n const expectedStatuses = [\"200\", \"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 guestSubscriptionDeserializer(result.body);\n}\n\n/** Adds a subscription as a guest to consume the compute limits shared by the host subscription. */\nexport async function create(\n context: Client,\n location: string,\n guestSubscriptionId: string,\n resource: GuestSubscription,\n options: GuestSubscriptionsCreateOptionalParams = { requestOptions: {} },\n): Promise<GuestSubscription> {\n const result = await _createSend(context, location, guestSubscriptionId, resource, options);\n return _createDeserialize(result);\n}\n\nexport function _getSend(\n context: Client,\n location: string,\n guestSubscriptionId: string,\n options: GuestSubscriptionsGetOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/providers/Microsoft.ComputeLimit/locations/{location}/guestSubscriptions/{guestSubscriptionId}{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n location: location,\n guestSubscriptionId: guestSubscriptionId,\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<GuestSubscription> {\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 guestSubscriptionDeserializer(result.body);\n}\n\n/** Gets the properties of a guest subscription. */\nexport async function get(\n context: Client,\n location: string,\n guestSubscriptionId: string,\n options: GuestSubscriptionsGetOptionalParams = { requestOptions: {} },\n): Promise<GuestSubscription> {\n const result = await _getSend(context, location, guestSubscriptionId, options);\n return _getDeserialize(result);\n}\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAKA,oBAKO;AAEP,2BAAwC;AACxC,yBAAkC;AAQlC,yBAAqE;AAE9D,SAAS,wCACd,SACA,UACA,UAA8E;AAAA,EAC5E,gBAAgB,CAA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