@azure/arm-durabletask 1.0.0 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/browser/api/durableTaskContext.d.ts +3 -3
- package/dist/browser/api/durableTaskContext.js +3 -18
- package/dist/browser/api/durableTaskContext.js.map +1 -1
- package/dist/browser/api/index.d.ts +2 -1
- package/dist/browser/api/index.js +1 -1
- package/dist/browser/api/index.js.map +1 -1
- package/dist/browser/api/operations/index.d.ts +1 -1
- package/dist/browser/api/operations/index.js.map +1 -1
- package/dist/browser/api/operations/operations.js +3 -6
- package/dist/browser/api/operations/operations.js.map +1 -1
- package/dist/browser/api/retentionPolicies/index.d.ts +1 -1
- package/dist/browser/api/retentionPolicies/index.js.map +1 -1
- package/dist/browser/api/retentionPolicies/operations.js +19 -36
- package/dist/browser/api/retentionPolicies/operations.js.map +1 -1
- package/dist/browser/api/schedulers/index.d.ts +2 -2
- package/dist/browser/api/schedulers/index.js +1 -1
- package/dist/browser/api/schedulers/index.js.map +1 -1
- package/dist/browser/api/schedulers/operations.d.ts +30 -2
- package/dist/browser/api/schedulers/operations.js +234 -31
- package/dist/browser/api/schedulers/operations.js.map +1 -1
- package/dist/browser/api/schedulers/options.d.ts +27 -0
- package/dist/browser/api/schedulers/options.js.map +1 -1
- package/dist/browser/api/taskHubs/index.d.ts +1 -1
- package/dist/browser/api/taskHubs/index.js.map +1 -1
- package/dist/browser/api/taskHubs/operations.js +10 -17
- package/dist/browser/api/taskHubs/operations.js.map +1 -1
- package/dist/browser/classic/index.d.ts +4 -4
- package/dist/browser/classic/index.js.map +1 -1
- package/dist/browser/classic/schedulers/index.d.ts +16 -2
- package/dist/browser/classic/schedulers/index.js +8 -1
- package/dist/browser/classic/schedulers/index.js.map +1 -1
- package/dist/browser/durableTaskClient.d.ts +1 -1
- package/dist/browser/durableTaskClient.js.map +1 -1
- package/dist/browser/index.d.ts +16 -12
- package/dist/browser/index.js +1 -1
- package/dist/browser/index.js.map +1 -1
- package/dist/browser/models/index.d.ts +2 -1
- package/dist/browser/models/index.js +1 -1
- package/dist/browser/models/index.js.map +1 -1
- package/dist/browser/models/models.d.ts +166 -10
- package/dist/browser/models/models.js +184 -6
- package/dist/browser/models/models.js.map +1 -1
- package/dist/browser/restorePollerHelpers.js +22 -25
- package/dist/browser/restorePollerHelpers.js.map +1 -1
- package/dist/browser/static-helpers/pagingHelpers.d.ts +2 -0
- package/dist/browser/static-helpers/pagingHelpers.js +28 -3
- package/dist/browser/static-helpers/pagingHelpers.js.map +1 -1
- package/dist/browser/static-helpers/pollingHelpers.d.ts +4 -0
- package/dist/browser/static-helpers/pollingHelpers.js +18 -2
- package/dist/browser/static-helpers/pollingHelpers.js.map +1 -1
- package/dist/browser/static-helpers/urlTemplate.js +20 -5
- package/dist/browser/static-helpers/urlTemplate.js.map +1 -1
- package/dist/commonjs/api/durableTaskContext.d.ts +3 -3
- package/dist/commonjs/api/durableTaskContext.js +43 -39
- package/dist/commonjs/api/durableTaskContext.js.map +7 -1
- package/dist/commonjs/api/index.d.ts +2 -1
- package/dist/commonjs/api/index.js +28 -8
- package/dist/commonjs/api/index.js.map +7 -1
- package/dist/commonjs/api/operations/index.d.ts +1 -1
- package/dist/commonjs/api/operations/index.js +28 -8
- package/dist/commonjs/api/operations/index.js.map +7 -1
- package/dist/commonjs/api/operations/operations.js +62 -33
- package/dist/commonjs/api/operations/operations.js.map +7 -1
- package/dist/commonjs/api/operations/options.js +16 -5
- package/dist/commonjs/api/operations/options.js.map +7 -1
- package/dist/commonjs/api/retentionPolicies/index.d.ts +1 -1
- package/dist/commonjs/api/retentionPolicies/index.js +36 -12
- package/dist/commonjs/api/retentionPolicies/index.js.map +7 -1
- package/dist/commonjs/api/retentionPolicies/operations.js +210 -176
- package/dist/commonjs/api/retentionPolicies/operations.js.map +7 -1
- package/dist/commonjs/api/retentionPolicies/options.js +16 -5
- package/dist/commonjs/api/retentionPolicies/options.js.map +7 -1
- package/dist/commonjs/api/schedulers/index.d.ts +2 -2
- package/dist/commonjs/api/schedulers/index.js +52 -13
- package/dist/commonjs/api/schedulers/index.js.map +7 -1
- package/dist/commonjs/api/schedulers/operations.d.ts +30 -2
- package/dist/commonjs/api/schedulers/operations.js +577 -189
- package/dist/commonjs/api/schedulers/operations.js.map +7 -1
- package/dist/commonjs/api/schedulers/options.d.ts +27 -0
- package/dist/commonjs/api/schedulers/options.js +16 -5
- package/dist/commonjs/api/schedulers/options.js.map +7 -1
- package/dist/commonjs/api/taskHubs/index.d.ts +1 -1
- package/dist/commonjs/api/taskHubs/index.js +34 -11
- package/dist/commonjs/api/taskHubs/index.js.map +7 -1
- package/dist/commonjs/api/taskHubs/operations.js +178 -133
- package/dist/commonjs/api/taskHubs/operations.js.map +7 -1
- package/dist/commonjs/api/taskHubs/options.js +16 -5
- package/dist/commonjs/api/taskHubs/options.js.map +7 -1
- package/dist/commonjs/classic/index.d.ts +4 -4
- package/dist/commonjs/classic/index.js +16 -5
- package/dist/commonjs/classic/index.js.map +7 -1
- package/dist/commonjs/classic/operations/index.js +34 -13
- package/dist/commonjs/classic/operations/index.js.map +7 -1
- package/dist/commonjs/classic/retentionPolicies/index.js +38 -17
- package/dist/commonjs/classic/retentionPolicies/index.js.map +7 -1
- package/dist/commonjs/classic/schedulers/index.d.ts +16 -2
- package/dist/commonjs/classic/schedulers/index.js +72 -18
- package/dist/commonjs/classic/schedulers/index.js.map +7 -1
- package/dist/commonjs/classic/taskHubs/index.js +37 -16
- package/dist/commonjs/classic/taskHubs/index.js.map +7 -1
- package/dist/commonjs/durableTaskClient.d.ts +1 -1
- package/dist/commonjs/durableTaskClient.js +56 -38
- package/dist/commonjs/durableTaskClient.js.map +7 -1
- package/dist/commonjs/index.d.ts +16 -12
- package/dist/commonjs/index.js +57 -21
- package/dist/commonjs/index.js.map +7 -1
- package/dist/commonjs/logger.js +29 -8
- package/dist/commonjs/logger.js.map +7 -1
- package/dist/commonjs/models/index.d.ts +2 -1
- package/dist/commonjs/models/index.js +48 -15
- package/dist/commonjs/models/index.js.map +7 -1
- package/dist/commonjs/models/models.d.ts +166 -10
- package/dist/commonjs/models/models.js +560 -370
- package/dist/commonjs/models/models.js.map +7 -1
- package/dist/commonjs/restorePollerHelpers.js +117 -110
- package/dist/commonjs/restorePollerHelpers.js.map +7 -1
- package/dist/commonjs/static-helpers/cloudSettingHelpers.js +50 -40
- package/dist/commonjs/static-helpers/cloudSettingHelpers.js.map +7 -1
- package/dist/commonjs/static-helpers/pagingHelpers.d.ts +2 -0
- package/dist/commonjs/static-helpers/pagingHelpers.js +125 -103
- package/dist/commonjs/static-helpers/pagingHelpers.js.map +7 -1
- package/dist/commonjs/static-helpers/pollingHelpers.d.ts +4 -0
- package/dist/commonjs/static-helpers/pollingHelpers.js +95 -76
- package/dist/commonjs/static-helpers/pollingHelpers.js.map +7 -1
- package/dist/commonjs/static-helpers/urlTemplate.js +167 -158
- package/dist/commonjs/static-helpers/urlTemplate.js.map +7 -1
- package/dist/commonjs/tsdoc-metadata.json +1 -1
- package/dist/esm/api/durableTaskContext.d.ts +3 -3
- package/dist/esm/api/durableTaskContext.js +3 -18
- package/dist/esm/api/durableTaskContext.js.map +1 -1
- package/dist/esm/api/index.d.ts +2 -1
- package/dist/esm/api/index.js +1 -1
- package/dist/esm/api/index.js.map +1 -1
- package/dist/esm/api/operations/index.d.ts +1 -1
- package/dist/esm/api/operations/index.js.map +1 -1
- package/dist/esm/api/operations/operations.js +3 -6
- package/dist/esm/api/operations/operations.js.map +1 -1
- package/dist/esm/api/retentionPolicies/index.d.ts +1 -1
- package/dist/esm/api/retentionPolicies/index.js.map +1 -1
- package/dist/esm/api/retentionPolicies/operations.js +19 -36
- package/dist/esm/api/retentionPolicies/operations.js.map +1 -1
- package/dist/esm/api/schedulers/index.d.ts +2 -2
- package/dist/esm/api/schedulers/index.js +1 -1
- package/dist/esm/api/schedulers/index.js.map +1 -1
- package/dist/esm/api/schedulers/operations.d.ts +30 -2
- package/dist/esm/api/schedulers/operations.js +234 -31
- package/dist/esm/api/schedulers/operations.js.map +1 -1
- package/dist/esm/api/schedulers/options.d.ts +27 -0
- package/dist/esm/api/schedulers/options.js.map +1 -1
- package/dist/esm/api/taskHubs/index.d.ts +1 -1
- package/dist/esm/api/taskHubs/index.js.map +1 -1
- package/dist/esm/api/taskHubs/operations.js +10 -17
- package/dist/esm/api/taskHubs/operations.js.map +1 -1
- package/dist/esm/classic/index.d.ts +4 -4
- package/dist/esm/classic/index.js.map +1 -1
- package/dist/esm/classic/schedulers/index.d.ts +16 -2
- package/dist/esm/classic/schedulers/index.js +8 -1
- package/dist/esm/classic/schedulers/index.js.map +1 -1
- package/dist/esm/durableTaskClient.d.ts +1 -1
- package/dist/esm/durableTaskClient.js.map +1 -1
- package/dist/esm/index.d.ts +16 -12
- package/dist/esm/index.js +1 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/models/index.d.ts +2 -1
- package/dist/esm/models/index.js +1 -1
- package/dist/esm/models/index.js.map +1 -1
- package/dist/esm/models/models.d.ts +166 -10
- package/dist/esm/models/models.js +184 -6
- package/dist/esm/models/models.js.map +1 -1
- package/dist/esm/restorePollerHelpers.js +22 -25
- package/dist/esm/restorePollerHelpers.js.map +1 -1
- package/dist/esm/static-helpers/pagingHelpers.d.ts +2 -0
- package/dist/esm/static-helpers/pagingHelpers.js +28 -3
- package/dist/esm/static-helpers/pagingHelpers.js.map +1 -1
- package/dist/esm/static-helpers/pollingHelpers.d.ts +4 -0
- package/dist/esm/static-helpers/pollingHelpers.js +18 -2
- package/dist/esm/static-helpers/pollingHelpers.js.map +1 -1
- package/dist/esm/static-helpers/urlTemplate.js +20 -5
- package/dist/esm/static-helpers/urlTemplate.js.map +1 -1
- package/dist/react-native/api/durableTaskContext.d.ts +3 -3
- package/dist/react-native/api/durableTaskContext.js +3 -18
- package/dist/react-native/api/durableTaskContext.js.map +1 -1
- package/dist/react-native/api/index.d.ts +2 -1
- package/dist/react-native/api/index.js +1 -1
- package/dist/react-native/api/index.js.map +1 -1
- package/dist/react-native/api/operations/index.d.ts +1 -1
- package/dist/react-native/api/operations/index.js.map +1 -1
- package/dist/react-native/api/operations/operations.js +3 -6
- package/dist/react-native/api/operations/operations.js.map +1 -1
- package/dist/react-native/api/retentionPolicies/index.d.ts +1 -1
- package/dist/react-native/api/retentionPolicies/index.js.map +1 -1
- package/dist/react-native/api/retentionPolicies/operations.js +19 -36
- package/dist/react-native/api/retentionPolicies/operations.js.map +1 -1
- package/dist/react-native/api/schedulers/index.d.ts +2 -2
- package/dist/react-native/api/schedulers/index.js +1 -1
- package/dist/react-native/api/schedulers/index.js.map +1 -1
- package/dist/react-native/api/schedulers/operations.d.ts +30 -2
- package/dist/react-native/api/schedulers/operations.js +234 -31
- package/dist/react-native/api/schedulers/operations.js.map +1 -1
- package/dist/react-native/api/schedulers/options.d.ts +27 -0
- package/dist/react-native/api/schedulers/options.js.map +1 -1
- package/dist/react-native/api/taskHubs/index.d.ts +1 -1
- package/dist/react-native/api/taskHubs/index.js.map +1 -1
- package/dist/react-native/api/taskHubs/operations.js +10 -17
- package/dist/react-native/api/taskHubs/operations.js.map +1 -1
- package/dist/react-native/classic/index.d.ts +4 -4
- package/dist/react-native/classic/index.js.map +1 -1
- package/dist/react-native/classic/schedulers/index.d.ts +16 -2
- package/dist/react-native/classic/schedulers/index.js +8 -1
- package/dist/react-native/classic/schedulers/index.js.map +1 -1
- package/dist/react-native/durableTaskClient.d.ts +1 -1
- package/dist/react-native/durableTaskClient.js.map +1 -1
- package/dist/react-native/index.d.ts +16 -12
- package/dist/react-native/index.js +1 -1
- package/dist/react-native/index.js.map +1 -1
- package/dist/react-native/models/index.d.ts +2 -1
- package/dist/react-native/models/index.js +1 -1
- package/dist/react-native/models/index.js.map +1 -1
- package/dist/react-native/models/models.d.ts +166 -10
- package/dist/react-native/models/models.js +184 -6
- package/dist/react-native/models/models.js.map +1 -1
- package/dist/react-native/restorePollerHelpers.js +22 -25
- package/dist/react-native/restorePollerHelpers.js.map +1 -1
- package/dist/react-native/static-helpers/pagingHelpers.d.ts +2 -0
- package/dist/react-native/static-helpers/pagingHelpers.js +28 -3
- package/dist/react-native/static-helpers/pagingHelpers.js.map +1 -1
- package/dist/react-native/static-helpers/pollingHelpers.d.ts +4 -0
- package/dist/react-native/static-helpers/pollingHelpers.js +18 -2
- package/dist/react-native/static-helpers/pollingHelpers.js.map +1 -1
- package/dist/react-native/static-helpers/urlTemplate.js +20 -5
- package/dist/react-native/static-helpers/urlTemplate.js.map +1 -1
- package/package.json +50 -59
|
@@ -1 +1,7 @@
|
|
|
1
|
-
{"version":3,"file":"models.js","sourceRoot":"","sources":["../../../src/models/models.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;AAUlC,4EAKC;AAED,gEAIC;AAgBD,sDAQC;AAcD,oEAOC;AA4CD,8DAIC;AAgBD,0DAUC;AAED,oEAIC;AAED,oFAIC;AAUD,0EAKC;AAQD,kDAQC;AAED,sDAcC;AAcD,sEAOC;AAED,0EASC;AA6CD,wDAEC;AAED,4DAMC;AA8CD,8DAEC;AAED,kEAWC;AAcD,gDAEC;AAED,oDASC;AAkBD,wDAWC;AAkCD,8DAOC;AAcD,kFASC;AAYD,oEAEC;AAUD,4EAKC;AAED,4DAIC;AAED,gEAIC;AAQD,8CAMC;AAED,kDAYC;AAUD,kEAEC;AAED,sEAKC;AAKD,0DAEC;AAED,8DASC;AAUD,wEAKC;AAED,wDAIC;AAED,4DAIC;AAQD,8DAMC;AAED,kEAYC;AAUD,kFAMC;AAED,sFAOC;AAED,sFAMC;AAED,0FAMC;AAUD,4EAKC;AAED,gFAKC;AAkCD,wFAKC;AAED,wEAIC;AAED,4EAIC;AA5tBD,SAAgB,gCAAgC,CAAC,IAAS;IACxD,OAAO;QACL,KAAK,EAAE,0BAA0B,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAChD,QAAQ,EAAE,IAAI,CAAC,UAAU,CAAC;KAC3B,CAAC;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AAC;QACtD,QAAQ,EAAE,IAAI,CAAC,UAAU,CAAC;KAC3B,CAAC;AACJ,CAAC;AAED,SAAgB,8BAA8B,CAAC,MAA8B;IAC3E,OAAO,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE;QACzB,OAAO,yBAAyB,CAAC,IAAI,CAAC,CAAC;IACzC,CAAC,CAAC,CAAC;AACL,CAAC;AAED,SAAgB,gCAAgC,CAAC,MAA8B;IAC7E,OAAO,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE;QACzB,OAAO,2BAA2B,CAAC,IAAI,CAAC,CAAC;IAC3C,CAAC,CAAC,CAAC;AACL,CAAC;AAED,mBAAmB;AACnB,IAAY,aAGX;AAHD,WAAY,aAAa;IACvB,iBAAiB;IACjB,yCAAwB,CAAA;AAC1B,CAAC,EAHW,aAAa,6BAAb,aAAa,QAGxB","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\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 and 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/** A Durable Task Scheduler resource */\nexport interface Scheduler extends TrackedResource {\n /** The resource-specific properties for this resource. */\n properties?: SchedulerProperties;\n}\n\nexport function schedulerSerializer(item: Scheduler): any {\n return {\n tags: item[\"tags\"],\n location: item[\"location\"],\n properties: !item[\"properties\"]\n ? item[\"properties\"]\n : schedulerPropertiesSerializer(item[\"properties\"]),\n };\n}\n\nexport function schedulerDeserializer(item: any): Scheduler {\n return {\n tags: item[\"tags\"],\n location: item[\"location\"],\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 : schedulerPropertiesDeserializer(item[\"properties\"]),\n };\n}\n\n/** Details of the Scheduler */\nexport interface SchedulerProperties {\n /** The status of the last operation */\n readonly provisioningState?: ProvisioningState;\n /** URL of the durable task scheduler */\n readonly endpoint?: string;\n /** IP allow list for durable task scheduler. Values can be IPv4, IPv6 or CIDR */\n ipAllowlist: string[];\n /** SKU of the durable task scheduler */\n sku: SchedulerSku;\n}\n\nexport function schedulerPropertiesSerializer(item: SchedulerProperties): any {\n return {\n ipAllowlist: item[\"ipAllowlist\"].map((p: any) => {\n return p;\n }),\n sku: schedulerSkuSerializer(item[\"sku\"]),\n };\n}\n\nexport function schedulerPropertiesDeserializer(item: any): SchedulerProperties {\n return {\n provisioningState: item[\"provisioningState\"],\n endpoint: item[\"endpoint\"],\n ipAllowlist: item[\"ipAllowlist\"].map((p: any) => {\n return p;\n }),\n sku: schedulerSkuDeserializer(item[\"sku\"]),\n };\n}\n\n/** The status of the current operation */\nexport enum KnownProvisioningState {\n /** Resource has been created. */\n Succeeded = \"Succeeded\",\n /** Resource creation failed. */\n Failed = \"Failed\",\n /** Resource creation was canceled. */\n Canceled = \"Canceled\",\n /** The resource is being provisioned */\n Provisioning = \"Provisioning\",\n /** The resource is updating */\n Updating = \"Updating\",\n /** The resource is being deleted */\n Deleting = \"Deleting\",\n /** The resource create request has been accepted */\n Accepted = \"Accepted\",\n}\n\n/**\n * The status of the current operation \\\n * {@link KnownProvisioningState} can be used interchangeably with ProvisioningState,\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 * **Provisioning**: The resource is being provisioned \\\n * **Updating**: The resource is updating \\\n * **Deleting**: The resource is being deleted \\\n * **Accepted**: The resource create request has been accepted\n */\nexport type ProvisioningState = string;\n\n/** The SKU (Stock Keeping Unit) assigned to this durable task scheduler */\nexport interface SchedulerSku {\n /** The name of the SKU */\n name: SchedulerSkuName;\n /** The SKU capacity. This allows scale out/in for the resource and impacts zone redundancy */\n capacity?: number;\n /** Indicates whether the current SKU configuration is zone redundant */\n readonly redundancyState?: RedundancyState;\n}\n\nexport function schedulerSkuSerializer(item: SchedulerSku): any {\n return { name: item[\"name\"], capacity: item[\"capacity\"] };\n}\n\nexport function schedulerSkuDeserializer(item: any): SchedulerSku {\n return {\n name: item[\"name\"],\n capacity: item[\"capacity\"],\n redundancyState: item[\"redundancyState\"],\n };\n}\n\n/** The name of the Stock Keeping Unit (SKU) of a Durable Task Scheduler */\nexport enum KnownSchedulerSkuName {\n /** Dedicated SKU */\n Dedicated = \"Dedicated\",\n /** Consumption SKU */\n Consumption = \"Consumption\",\n}\n\n/**\n * The name of the Stock Keeping Unit (SKU) of a Durable Task Scheduler \\\n * {@link KnownSchedulerSkuName} can be used interchangeably with SchedulerSkuName,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **Dedicated**: Dedicated SKU \\\n * **Consumption**: Consumption SKU\n */\nexport type SchedulerSkuName = string;\n\n/** The state of the resource redundancy */\nexport enum KnownRedundancyState {\n /** The resource is not redundant */\n None = \"None\",\n /** The resource is zone redundant */\n Zone = \"Zone\",\n}\n\n/**\n * The state of the resource redundancy \\\n * {@link KnownRedundancyState} can be used interchangeably with RedundancyState,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **None**: The resource is not redundant \\\n * **Zone**: The resource is zone redundant\n */\nexport type RedundancyState = string;\n\n/** The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location' */\nexport interface TrackedResource extends Resource {\n /** Resource tags. */\n tags?: Record<string, string>;\n /** The geo-location where the resource lives */\n location: string;\n}\n\nexport function trackedResourceSerializer(item: TrackedResource): any {\n return { tags: item[\"tags\"], location: item[\"location\"] };\n}\n\nexport function trackedResourceDeserializer(item: any): TrackedResource {\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 tags: item[\"tags\"],\n location: item[\"location\"],\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 item;\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 update request model for the Scheduler resource */\nexport interface SchedulerUpdate {\n /** The resource-specific properties for this resource. */\n properties?: SchedulerPropertiesUpdate;\n /** Resource tags. */\n tags?: Record<string, string>;\n}\n\nexport function schedulerUpdateSerializer(item: SchedulerUpdate): any {\n return {\n properties: !item[\"properties\"]\n ? item[\"properties\"]\n : schedulerPropertiesUpdateSerializer(item[\"properties\"]),\n tags: item[\"tags\"],\n };\n}\n\n/** The Scheduler resource properties to be updated */\nexport interface SchedulerPropertiesUpdate {\n /** The status of the last operation */\n readonly provisioningState?: ProvisioningState;\n /** URL of the durable task scheduler */\n readonly endpoint?: string;\n /** IP allow list for durable task scheduler. Values can be IPv4, IPv6 or CIDR */\n ipAllowlist?: string[];\n /** SKU of the durable task scheduler */\n sku?: SchedulerSkuUpdate;\n}\n\nexport function schedulerPropertiesUpdateSerializer(item: SchedulerPropertiesUpdate): any {\n return {\n ipAllowlist: !item[\"ipAllowlist\"]\n ? item[\"ipAllowlist\"]\n : item[\"ipAllowlist\"].map((p: any) => {\n return p;\n }),\n sku: !item[\"sku\"] ? item[\"sku\"] : schedulerSkuUpdateSerializer(item[\"sku\"]),\n };\n}\n\n/** The SKU (Stock Keeping Unit) properties to be updated */\nexport interface SchedulerSkuUpdate {\n /** The name of the SKU */\n name?: SchedulerSkuName;\n /** The SKU capacity. This allows scale out/in for the resource and impacts zone redundancy */\n capacity?: number;\n /** Indicates whether the current SKU configuration is zone redundant */\n readonly redundancyState?: RedundancyState;\n}\n\nexport function schedulerSkuUpdateSerializer(item: SchedulerSkuUpdate): any {\n return { name: item[\"name\"], capacity: item[\"capacity\"] };\n}\n\n/** The response of a Scheduler list operation. */\nexport interface _SchedulerListResult {\n /** The Scheduler items on this page */\n value: Scheduler[];\n /** The link to the next page of items */\n nextLink?: string;\n}\n\nexport function _schedulerListResultDeserializer(item: any): _SchedulerListResult {\n return {\n value: schedulerArrayDeserializer(item[\"value\"]),\n nextLink: item[\"nextLink\"],\n };\n}\n\nexport function schedulerArraySerializer(result: Array<Scheduler>): any[] {\n return result.map((item) => {\n return schedulerSerializer(item);\n });\n}\n\nexport function schedulerArrayDeserializer(result: Array<Scheduler>): any[] {\n return result.map((item) => {\n return schedulerDeserializer(item);\n });\n}\n\n/** A Task Hub resource belonging to the scheduler */\nexport interface TaskHub extends ProxyResource {\n /** The resource-specific properties for this resource. */\n properties?: TaskHubProperties;\n}\n\nexport function taskHubSerializer(item: TaskHub): any {\n return {\n properties: !item[\"properties\"]\n ? item[\"properties\"]\n : taskHubPropertiesSerializer(item[\"properties\"]),\n };\n}\n\nexport function taskHubDeserializer(item: any): TaskHub {\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 : taskHubPropertiesDeserializer(item[\"properties\"]),\n };\n}\n\n/** The properties of Task Hub */\nexport interface TaskHubProperties {\n /** The status of the last operation */\n readonly provisioningState?: ProvisioningState;\n /** URL of the durable task scheduler dashboard */\n readonly dashboardUrl?: string;\n}\n\nexport function taskHubPropertiesSerializer(item: TaskHubProperties): any {\n return item;\n}\n\nexport function taskHubPropertiesDeserializer(item: any): TaskHubProperties {\n return {\n provisioningState: item[\"provisioningState\"],\n dashboardUrl: item[\"dashboardUrl\"],\n };\n}\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 item;\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/** The response of a TaskHub list operation. */\nexport interface _TaskHubListResult {\n /** The TaskHub items on this page */\n value: TaskHub[];\n /** The link to the next page of items */\n nextLink?: string;\n}\n\nexport function _taskHubListResultDeserializer(item: any): _TaskHubListResult {\n return {\n value: taskHubArrayDeserializer(item[\"value\"]),\n nextLink: item[\"nextLink\"],\n };\n}\n\nexport function taskHubArraySerializer(result: Array<TaskHub>): any[] {\n return result.map((item) => {\n return taskHubSerializer(item);\n });\n}\n\nexport function taskHubArrayDeserializer(result: Array<TaskHub>): any[] {\n return result.map((item) => {\n return taskHubDeserializer(item);\n });\n}\n\n/** A retention policy resource belonging to the scheduler */\nexport interface RetentionPolicy extends ProxyResource {\n /** The resource-specific properties for this resource. */\n properties?: RetentionPolicyProperties;\n}\n\nexport function retentionPolicySerializer(item: RetentionPolicy): any {\n return {\n properties: !item[\"properties\"]\n ? item[\"properties\"]\n : retentionPolicyPropertiesSerializer(item[\"properties\"]),\n };\n}\n\nexport function retentionPolicyDeserializer(item: any): RetentionPolicy {\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 : retentionPolicyPropertiesDeserializer(item[\"properties\"]),\n };\n}\n\n/** The retention policy settings for the resource */\nexport interface RetentionPolicyProperties {\n /** The status of the last operation */\n readonly provisioningState?: ProvisioningState;\n /** The orchestration retention policies */\n retentionPolicies?: RetentionPolicyDetails[];\n}\n\nexport function retentionPolicyPropertiesSerializer(item: RetentionPolicyProperties): any {\n return {\n retentionPolicies: !item[\"retentionPolicies\"]\n ? item[\"retentionPolicies\"]\n : retentionPolicyDetailsArraySerializer(item[\"retentionPolicies\"]),\n };\n}\n\nexport function retentionPolicyPropertiesDeserializer(item: any): RetentionPolicyProperties {\n return {\n provisioningState: item[\"provisioningState\"],\n retentionPolicies: !item[\"retentionPolicies\"]\n ? item[\"retentionPolicies\"]\n : retentionPolicyDetailsArrayDeserializer(item[\"retentionPolicies\"]),\n };\n}\n\nexport function retentionPolicyDetailsArraySerializer(\n result: Array<RetentionPolicyDetails>,\n): any[] {\n return result.map((item) => {\n return retentionPolicyDetailsSerializer(item);\n });\n}\n\nexport function retentionPolicyDetailsArrayDeserializer(\n result: Array<RetentionPolicyDetails>,\n): any[] {\n return result.map((item) => {\n return retentionPolicyDetailsDeserializer(item);\n });\n}\n\n/** The properties of a retention policy */\nexport interface RetentionPolicyDetails {\n /** The retention period in days after which the orchestration will be purged automatically */\n retentionPeriodInDays: number;\n /** The orchestration state to which this policy applies. If omitted, the policy applies to all purgeable orchestration states. */\n orchestrationState?: PurgeableOrchestrationState;\n}\n\nexport function retentionPolicyDetailsSerializer(item: RetentionPolicyDetails): any {\n return {\n retentionPeriodInDays: item[\"retentionPeriodInDays\"],\n orchestrationState: item[\"orchestrationState\"],\n };\n}\n\nexport function retentionPolicyDetailsDeserializer(item: any): RetentionPolicyDetails {\n return {\n retentionPeriodInDays: item[\"retentionPeriodInDays\"],\n orchestrationState: item[\"orchestrationState\"],\n };\n}\n\n/** Purgeable orchestration state to be used in retention policies */\nexport enum KnownPurgeableOrchestrationState {\n /** The orchestration is completed */\n Completed = \"Completed\",\n /** The orchestration is failed */\n Failed = \"Failed\",\n /** The orchestration is terminated */\n Terminated = \"Terminated\",\n /** The orchestration is canceled */\n Canceled = \"Canceled\",\n}\n\n/**\n * Purgeable orchestration state to be used in retention policies \\\n * {@link KnownPurgeableOrchestrationState} can be used interchangeably with PurgeableOrchestrationState,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **Completed**: The orchestration is completed \\\n * **Failed**: The orchestration is failed \\\n * **Terminated**: The orchestration is terminated \\\n * **Canceled**: The orchestration is canceled\n */\nexport type PurgeableOrchestrationState = string;\n\n/** The response of a RetentionPolicy list operation. */\nexport interface _RetentionPolicyListResult {\n /** The RetentionPolicy items on this page */\n value: RetentionPolicy[];\n /** The link to the next page of items */\n nextLink?: string;\n}\n\nexport function _retentionPolicyListResultDeserializer(item: any): _RetentionPolicyListResult {\n return {\n value: retentionPolicyArrayDeserializer(item[\"value\"]),\n nextLink: item[\"nextLink\"],\n };\n}\n\nexport function retentionPolicyArraySerializer(result: Array<RetentionPolicy>): any[] {\n return result.map((item) => {\n return retentionPolicySerializer(item);\n });\n}\n\nexport function retentionPolicyArrayDeserializer(result: Array<RetentionPolicy>): any[] {\n return result.map((item) => {\n return retentionPolicyDeserializer(item);\n });\n}\n\n/** API Versions */\nexport enum KnownVersions {\n /** 2025-11-01 */\n V20251101 = \"2025-11-01\",\n}\n"]}
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/models/models.ts"],
|
|
4
|
+
"sourcesContent": ["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\n/**\n * This file contains only generated model types and their (de)serializers.\n * Disable the following rules for internal models with '_' prefix and deserializers which require 'any' for raw JSON input.\n */\n/* eslint-disable @typescript-eslint/naming-convention */\n/* eslint-disable @typescript-eslint/explicit-module-boundary-types */\n/** A list of REST API operations supported by an Azure Resource Provider. It contains an URL link to get the next set of results. */\nexport interface _OperationListResult {\n /** The Operation items on this page */\n value: Operation[];\n /** The link to the next page of items */\n nextLink?: string;\n}\n\nexport function _operationListResultDeserializer(item: any): _OperationListResult {\n return {\n value: operationArrayDeserializer(item[\"value\"]),\n nextLink: item[\"nextLink\"],\n };\n}\n\nexport function operationArrayDeserializer(result: Array<Operation>): any[] {\n return result.map((item) => {\n return operationDeserializer(item);\n });\n}\n\n/** Details of a REST API operation, returned from the Resource Provider Operations API */\nexport interface Operation {\n /** The name of the operation, as per Resource-Based Access Control (RBAC). Examples: \"Microsoft.Compute/virtualMachines/write\", \"Microsoft.Compute/virtualMachines/capture/action\" */\n readonly name?: string;\n /** Whether the operation applies to data-plane. This is \"true\" for data-plane operations and \"false\" for Azure Resource Manager/control-plane operations. */\n readonly isDataAction?: boolean;\n /** Localized display information for this particular operation. */\n display?: OperationDisplay;\n /** The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default value is \"user,system\" */\n readonly origin?: Origin;\n /** Extensible enum. Indicates the action type. \"Internal\" refers to actions that are for internal only APIs. */\n readonly actionType?: ActionType;\n}\n\nexport function operationDeserializer(item: any): Operation {\n return {\n name: item[\"name\"],\n isDataAction: item[\"isDataAction\"],\n display: !item[\"display\"] ? item[\"display\"] : operationDisplayDeserializer(item[\"display\"]),\n origin: item[\"origin\"],\n actionType: item[\"actionType\"],\n };\n}\n\n/** Localized display information for an operation. */\nexport interface OperationDisplay {\n /** The localized friendly form of the resource provider name, e.g. \"Microsoft Monitoring Insights\" or \"Microsoft Compute\". */\n readonly provider?: string;\n /** The localized friendly name of the resource type related to this operation. E.g. \"Virtual Machines\" or \"Job Schedule Collections\". */\n readonly resource?: string;\n /** The concise, localized friendly name for the operation; suitable for dropdowns. E.g. \"Create or Update Virtual Machine\", \"Restart Virtual Machine\". */\n readonly operation?: string;\n /** The short, localized friendly description of the operation; suitable for tool tips and detailed views. */\n readonly description?: string;\n}\n\nexport function operationDisplayDeserializer(item: any): OperationDisplay {\n return {\n provider: item[\"provider\"],\n resource: item[\"resource\"],\n operation: item[\"operation\"],\n description: item[\"description\"],\n };\n}\n\n/** The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default value is \"user,system\" */\nexport enum KnownOrigin {\n /** Indicates the operation is initiated by a user. */\n User = \"user\",\n /** Indicates the operation is initiated by a system. */\n System = \"system\",\n /** Indicates the operation is initiated by a user or system. */\n UserSystem = \"user,system\",\n}\n\n/**\n * The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default value is \"user,system\" \\\n * {@link KnownOrigin} can be used interchangeably with Origin,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **user**: Indicates the operation is initiated by a user. \\\n * **system**: Indicates the operation is initiated by a system. \\\n * **user,system**: Indicates the operation is initiated by a user or system.\n */\nexport type Origin = string;\n\n/** Extensible enum. Indicates the action type. \"Internal\" refers to actions that are for internal only APIs. */\nexport enum KnownActionType {\n /** Actions are for internal-only APIs. */\n Internal = \"Internal\",\n}\n\n/**\n * Extensible enum. Indicates the action type. \"Internal\" refers to actions that are for internal only APIs. \\\n * {@link KnownActionType} can be used interchangeably with ActionType,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **Internal**: Actions are for internal-only APIs.\n */\nexport type ActionType = string;\n\n/** Common error response for all Azure Resource Manager APIs to return error details for failed operations. */\nexport interface ErrorResponse {\n /** The error object. */\n error?: ErrorDetail;\n}\n\nexport function errorResponseDeserializer(item: any): ErrorResponse {\n return {\n error: !item[\"error\"] ? item[\"error\"] : errorDetailDeserializer(item[\"error\"]),\n };\n}\n\n/** The error detail. */\nexport interface ErrorDetail {\n /** The error code. */\n readonly code?: string;\n /** The error message. */\n readonly message?: string;\n /** The error target. */\n readonly target?: string;\n /** The error details. */\n readonly details?: ErrorDetail[];\n /** The error additional info. */\n readonly additionalInfo?: ErrorAdditionalInfo[];\n}\n\nexport function errorDetailDeserializer(item: any): ErrorDetail {\n return {\n code: item[\"code\"],\n message: item[\"message\"],\n target: item[\"target\"],\n details: !item[\"details\"] ? item[\"details\"] : errorDetailArrayDeserializer(item[\"details\"]),\n additionalInfo: !item[\"additionalInfo\"]\n ? item[\"additionalInfo\"]\n : errorAdditionalInfoArrayDeserializer(item[\"additionalInfo\"]),\n };\n}\n\nexport function errorDetailArrayDeserializer(result: Array<ErrorDetail>): any[] {\n return result.map((item) => {\n return errorDetailDeserializer(item);\n });\n}\n\nexport function errorAdditionalInfoArrayDeserializer(result: Array<ErrorAdditionalInfo>): any[] {\n return result.map((item) => {\n return errorAdditionalInfoDeserializer(item);\n });\n}\n\n/** The resource management error additional info. */\nexport interface ErrorAdditionalInfo {\n /** The additional info type. */\n readonly type?: string;\n /** The additional info. */\n readonly info?: any;\n}\n\nexport function errorAdditionalInfoDeserializer(item: any): ErrorAdditionalInfo {\n return {\n type: item[\"type\"],\n info: item[\"info\"],\n };\n}\n\n/** A Durable Task Scheduler resource */\nexport interface Scheduler extends TrackedResource {\n /** The resource-specific properties for this resource. */\n properties?: SchedulerProperties;\n}\n\nexport function schedulerSerializer(item: Scheduler): any {\n return {\n tags: item[\"tags\"],\n location: item[\"location\"],\n properties: !item[\"properties\"]\n ? item[\"properties\"]\n : schedulerPropertiesSerializer(item[\"properties\"]),\n };\n}\n\nexport function schedulerDeserializer(item: any): Scheduler {\n return {\n tags: !item[\"tags\"]\n ? item[\"tags\"]\n : Object.fromEntries(Object.entries(item[\"tags\"]).map(([k, p]: [string, any]) => [k, p])),\n location: item[\"location\"],\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 : schedulerPropertiesDeserializer(item[\"properties\"]),\n };\n}\n\n/** Details of the Scheduler */\nexport interface SchedulerProperties {\n /** The status of the last operation */\n readonly provisioningState?: ProvisioningState;\n /** URL of the durable task scheduler */\n readonly endpoint?: string;\n /** IP allow list for durable task scheduler. Values can be IPv4, IPv6 or CIDR */\n ipAllowlist: string[];\n /** SKU of the durable task scheduler */\n sku: SchedulerSku;\n /** Allow or disallow public network access to durable task scheduler */\n publicNetworkAccess?: PublicNetworkAccess;\n /** The private endpoints exposed by this resource */\n readonly privateEndpointConnections?: PrivateEndpointConnection[];\n}\n\nexport function schedulerPropertiesSerializer(item: SchedulerProperties): any {\n return {\n ipAllowlist: item[\"ipAllowlist\"].map((p: any) => {\n return p;\n }),\n sku: schedulerSkuSerializer(item[\"sku\"]),\n publicNetworkAccess: item[\"publicNetworkAccess\"],\n };\n}\n\nexport function schedulerPropertiesDeserializer(item: any): SchedulerProperties {\n return {\n provisioningState: item[\"provisioningState\"],\n endpoint: item[\"endpoint\"],\n ipAllowlist: item[\"ipAllowlist\"].map((p: any) => {\n return p;\n }),\n sku: schedulerSkuDeserializer(item[\"sku\"]),\n publicNetworkAccess: item[\"publicNetworkAccess\"],\n privateEndpointConnections: !item[\"privateEndpointConnections\"]\n ? item[\"privateEndpointConnections\"]\n : privateEndpointConnectionArrayDeserializer(item[\"privateEndpointConnections\"]),\n };\n}\n\n/** The status of the current operation */\nexport enum KnownProvisioningState {\n /** Resource has been created. */\n Succeeded = \"Succeeded\",\n /** Resource creation failed. */\n Failed = \"Failed\",\n /** Resource creation was canceled. */\n Canceled = \"Canceled\",\n /** The resource is being provisioned */\n Provisioning = \"Provisioning\",\n /** The resource is updating */\n Updating = \"Updating\",\n /** The resource is being deleted */\n Deleting = \"Deleting\",\n /** The resource create request has been accepted */\n Accepted = \"Accepted\",\n}\n\n/**\n * The status of the current operation \\\n * {@link KnownProvisioningState} can be used interchangeably with ProvisioningState,\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 * **Provisioning**: The resource is being provisioned \\\n * **Updating**: The resource is updating \\\n * **Deleting**: The resource is being deleted \\\n * **Accepted**: The resource create request has been accepted\n */\nexport type ProvisioningState = string;\n\n/** The SKU (Stock Keeping Unit) assigned to this durable task scheduler */\nexport interface SchedulerSku {\n /** The name of the SKU */\n name: SchedulerSkuName;\n /** The SKU capacity. This allows scale out/in for the resource and impacts zone redundancy */\n capacity?: number;\n /** Indicates whether the current SKU configuration is zone redundant */\n readonly redundancyState?: RedundancyState;\n}\n\nexport function schedulerSkuSerializer(item: SchedulerSku): any {\n return { name: item[\"name\"], capacity: item[\"capacity\"] };\n}\n\nexport function schedulerSkuDeserializer(item: any): SchedulerSku {\n return {\n name: item[\"name\"],\n capacity: item[\"capacity\"],\n redundancyState: item[\"redundancyState\"],\n };\n}\n\n/** The name of the Stock Keeping Unit (SKU) of a Durable Task Scheduler */\nexport enum KnownSchedulerSkuName {\n /** Dedicated SKU */\n Dedicated = \"Dedicated\",\n /** Consumption SKU */\n Consumption = \"Consumption\",\n}\n\n/**\n * The name of the Stock Keeping Unit (SKU) of a Durable Task Scheduler \\\n * {@link KnownSchedulerSkuName} can be used interchangeably with SchedulerSkuName,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **Dedicated**: Dedicated SKU \\\n * **Consumption**: Consumption SKU\n */\nexport type SchedulerSkuName = string;\n\n/** The state of the resource redundancy */\nexport enum KnownRedundancyState {\n /** The resource is not redundant */\n None = \"None\",\n /** The resource is zone redundant */\n Zone = \"Zone\",\n}\n\n/**\n * The state of the resource redundancy \\\n * {@link KnownRedundancyState} can be used interchangeably with RedundancyState,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **None**: The resource is not redundant \\\n * **Zone**: The resource is zone redundant\n */\nexport type RedundancyState = string;\n\n/** State of the public network access. */\nexport enum KnownPublicNetworkAccess {\n /** The public network access is enabled */\n Enabled = \"Enabled\",\n /** The public network access is disabled */\n Disabled = \"Disabled\",\n}\n\n/**\n * State of the public network access. \\\n * {@link KnownPublicNetworkAccess} can be used interchangeably with PublicNetworkAccess,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **Enabled**: The public network access is enabled \\\n * **Disabled**: The public network access is disabled\n */\nexport type PublicNetworkAccess = string;\n\nexport function privateEndpointConnectionArraySerializer(\n result: Array<PrivateEndpointConnection>,\n): any[] {\n return result.map((item) => {\n return privateEndpointConnectionSerializer(item);\n });\n}\n\nexport function privateEndpointConnectionArrayDeserializer(\n result: Array<PrivateEndpointConnection>,\n): any[] {\n return result.map((item) => {\n return privateEndpointConnectionDeserializer(item);\n });\n}\n\n/** A private endpoint connection resource */\nexport interface PrivateEndpointConnection extends Resource {\n /** The private endpoint connection properties */\n properties?: PrivateEndpointConnectionProperties;\n}\n\nexport function privateEndpointConnectionSerializer(item: PrivateEndpointConnection): any {\n return {\n properties: !item[\"properties\"]\n ? item[\"properties\"]\n : privateEndpointConnectionPropertiesSerializer(item[\"properties\"]),\n };\n}\n\nexport function privateEndpointConnectionDeserializer(item: any): PrivateEndpointConnection {\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 : privateEndpointConnectionPropertiesDeserializer(item[\"properties\"]),\n };\n}\n\n/** Properties of the private endpoint connection. */\nexport interface PrivateEndpointConnectionProperties {\n /** The group ids for the private endpoint resource. */\n readonly groupIds?: string[];\n /** The private endpoint resource. */\n privateEndpoint?: PrivateEndpoint;\n /** A collection of information about the state of the connection between service consumer and provider. */\n privateLinkServiceConnectionState: PrivateLinkServiceConnectionState;\n /** The provisioning state of the private endpoint connection resource. */\n readonly provisioningState?: PrivateEndpointConnectionProvisioningState;\n}\n\nexport function privateEndpointConnectionPropertiesSerializer(\n item: PrivateEndpointConnectionProperties,\n): any {\n return {\n privateEndpoint: !item[\"privateEndpoint\"]\n ? item[\"privateEndpoint\"]\n : privateEndpointSerializer(item[\"privateEndpoint\"]),\n privateLinkServiceConnectionState: privateLinkServiceConnectionStateSerializer(\n item[\"privateLinkServiceConnectionState\"],\n ),\n };\n}\n\nexport function privateEndpointConnectionPropertiesDeserializer(\n item: any,\n): PrivateEndpointConnectionProperties {\n return {\n groupIds: !item[\"groupIds\"]\n ? item[\"groupIds\"]\n : item[\"groupIds\"].map((p: any) => {\n return p;\n }),\n privateEndpoint: !item[\"privateEndpoint\"]\n ? item[\"privateEndpoint\"]\n : privateEndpointDeserializer(item[\"privateEndpoint\"]),\n privateLinkServiceConnectionState: privateLinkServiceConnectionStateDeserializer(\n item[\"privateLinkServiceConnectionState\"],\n ),\n provisioningState: item[\"provisioningState\"],\n };\n}\n\n/** The private endpoint resource. */\nexport interface PrivateEndpoint {\n /** The resource identifier of the private endpoint */\n readonly id?: string;\n}\n\nexport function privateEndpointSerializer(item: PrivateEndpoint): any {\n return item;\n}\n\nexport function privateEndpointDeserializer(item: any): PrivateEndpoint {\n return {\n id: item[\"id\"],\n };\n}\n\n/** A collection of information about the state of the connection between service consumer and provider. */\nexport interface PrivateLinkServiceConnectionState {\n /** Indicates whether the connection has been Approved/Rejected/Removed by the owner of the service. */\n status?: PrivateEndpointServiceConnectionStatus;\n /** The reason for approval/rejection of the connection. */\n description?: string;\n /** A message indicating if changes on the service provider require any updates on the consumer. */\n actionsRequired?: string;\n}\n\nexport function privateLinkServiceConnectionStateSerializer(\n item: PrivateLinkServiceConnectionState,\n): any {\n return {\n status: item[\"status\"],\n description: item[\"description\"],\n actionsRequired: item[\"actionsRequired\"],\n };\n}\n\nexport function privateLinkServiceConnectionStateDeserializer(\n item: any,\n): PrivateLinkServiceConnectionState {\n return {\n status: item[\"status\"],\n description: item[\"description\"],\n actionsRequired: item[\"actionsRequired\"],\n };\n}\n\n/** The private endpoint connection status. */\nexport enum KnownPrivateEndpointServiceConnectionStatus {\n /** Connection waiting for approval or rejection */\n Pending = \"Pending\",\n /** Connection approved */\n Approved = \"Approved\",\n /** Connection Rejected */\n Rejected = \"Rejected\",\n}\n\n/**\n * The private endpoint connection status. \\\n * {@link KnownPrivateEndpointServiceConnectionStatus} can be used interchangeably with PrivateEndpointServiceConnectionStatus,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **Pending**: Connection waiting for approval or rejection \\\n * **Approved**: Connection approved \\\n * **Rejected**: Connection Rejected\n */\nexport type PrivateEndpointServiceConnectionStatus = string;\n\n/** The current provisioning state. */\nexport enum KnownPrivateEndpointConnectionProvisioningState {\n /** Connection has been provisioned */\n Succeeded = \"Succeeded\",\n /** Connection is being created */\n Creating = \"Creating\",\n /** Connection is being deleted */\n Deleting = \"Deleting\",\n /** Connection provisioning has failed */\n Failed = \"Failed\",\n}\n\n/**\n * The current provisioning state. \\\n * {@link KnownPrivateEndpointConnectionProvisioningState} can be used interchangeably with PrivateEndpointConnectionProvisioningState,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **Succeeded**: Connection has been provisioned \\\n * **Creating**: Connection is being created \\\n * **Deleting**: Connection is being deleted \\\n * **Failed**: Connection provisioning has failed\n */\nexport type PrivateEndpointConnectionProvisioningState = string;\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 item;\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 resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location' */\nexport interface TrackedResource extends Resource {\n /** Resource tags. */\n tags?: Record<string, string>;\n /** The geo-location where the resource lives */\n location: string;\n}\n\nexport function trackedResourceSerializer(item: TrackedResource): any {\n return { tags: item[\"tags\"], location: item[\"location\"] };\n}\n\nexport function trackedResourceDeserializer(item: any): TrackedResource {\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 tags: !item[\"tags\"]\n ? item[\"tags\"]\n : Object.fromEntries(Object.entries(item[\"tags\"]).map(([k, p]: [string, any]) => [k, p])),\n location: item[\"location\"],\n };\n}\n\n/** The update request model for the Scheduler resource */\nexport interface SchedulerUpdate {\n /** The resource-specific properties for this resource. */\n properties?: SchedulerPropertiesUpdate;\n /** Resource tags. */\n tags?: Record<string, string>;\n}\n\nexport function schedulerUpdateSerializer(item: SchedulerUpdate): any {\n return {\n properties: !item[\"properties\"]\n ? item[\"properties\"]\n : schedulerPropertiesUpdateSerializer(item[\"properties\"]),\n tags: item[\"tags\"],\n };\n}\n\n/** The Scheduler resource properties to be updated */\nexport interface SchedulerPropertiesUpdate {\n /** The status of the last operation */\n readonly provisioningState?: ProvisioningState;\n /** URL of the durable task scheduler */\n readonly endpoint?: string;\n /** IP allow list for durable task scheduler. Values can be IPv4, IPv6 or CIDR */\n ipAllowlist?: string[];\n /** SKU of the durable task scheduler */\n sku?: SchedulerSkuUpdate;\n /** Allow or disallow public network access to durable task scheduler */\n publicNetworkAccess?: PublicNetworkAccess;\n}\n\nexport function schedulerPropertiesUpdateSerializer(item: SchedulerPropertiesUpdate): any {\n return {\n ipAllowlist: !item[\"ipAllowlist\"]\n ? item[\"ipAllowlist\"]\n : item[\"ipAllowlist\"].map((p: any) => {\n return p;\n }),\n sku: !item[\"sku\"] ? item[\"sku\"] : schedulerSkuUpdateSerializer(item[\"sku\"]),\n publicNetworkAccess: item[\"publicNetworkAccess\"],\n };\n}\n\n/** The SKU (Stock Keeping Unit) properties to be updated */\nexport interface SchedulerSkuUpdate {\n /** The name of the SKU */\n name?: SchedulerSkuName;\n /** The SKU capacity. This allows scale out/in for the resource and impacts zone redundancy */\n capacity?: number;\n /** Indicates whether the current SKU configuration is zone redundant */\n readonly redundancyState?: RedundancyState;\n}\n\nexport function schedulerSkuUpdateSerializer(item: SchedulerSkuUpdate): any {\n return { name: item[\"name\"], capacity: item[\"capacity\"] };\n}\n\n/** The response of a Scheduler list operation. */\nexport interface _SchedulerListResult {\n /** The Scheduler items on this page */\n value: Scheduler[];\n /** The link to the next page of items */\n nextLink?: string;\n}\n\nexport function _schedulerListResultDeserializer(item: any): _SchedulerListResult {\n return {\n value: schedulerArrayDeserializer(item[\"value\"]),\n nextLink: item[\"nextLink\"],\n };\n}\n\nexport function schedulerArraySerializer(result: Array<Scheduler>): any[] {\n return result.map((item) => {\n return schedulerSerializer(item);\n });\n}\n\nexport function schedulerArrayDeserializer(result: Array<Scheduler>): any[] {\n return result.map((item) => {\n return schedulerDeserializer(item);\n });\n}\n\n/** A private link resource. */\nexport interface SchedulerPrivateLinkResource extends Resource {\n /** Resource properties. */\n properties?: PrivateLinkResourceProperties;\n}\n\nexport function schedulerPrivateLinkResourceDeserializer(item: any): SchedulerPrivateLinkResource {\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 : privateLinkResourcePropertiesDeserializer(item[\"properties\"]),\n };\n}\n\n/** Properties of a private link resource. */\nexport interface PrivateLinkResourceProperties {\n /** The private link resource group id. */\n readonly groupId?: string;\n /** The private link resource required member names. */\n readonly requiredMembers?: string[];\n /** The private link resource private link DNS zone name. */\n requiredZoneNames?: string[];\n}\n\nexport function privateLinkResourcePropertiesDeserializer(\n item: any,\n): PrivateLinkResourceProperties {\n return {\n groupId: item[\"groupId\"],\n requiredMembers: !item[\"requiredMembers\"]\n ? item[\"requiredMembers\"]\n : item[\"requiredMembers\"].map((p: any) => {\n return p;\n }),\n requiredZoneNames: !item[\"requiredZoneNames\"]\n ? item[\"requiredZoneNames\"]\n : item[\"requiredZoneNames\"].map((p: any) => {\n return p;\n }),\n };\n}\n\n/** The response of a SchedulerPrivateLinkResource list operation. */\nexport interface _SchedulerPrivateLinkResourceListResult {\n /** The SchedulerPrivateLinkResource items on this page */\n value: SchedulerPrivateLinkResource[];\n /** The link to the next page of items */\n nextLink?: string;\n}\n\nexport function _schedulerPrivateLinkResourceListResultDeserializer(\n item: any,\n): _SchedulerPrivateLinkResourceListResult {\n return {\n value: schedulerPrivateLinkResourceArrayDeserializer(item[\"value\"]),\n nextLink: item[\"nextLink\"],\n };\n}\n\nexport function schedulerPrivateLinkResourceArrayDeserializer(\n result: Array<SchedulerPrivateLinkResource>,\n): any[] {\n return result.map((item) => {\n return schedulerPrivateLinkResourceDeserializer(item);\n });\n}\n\n/** PATCH model for private endpoint connections */\nexport interface PrivateEndpointConnectionUpdate {\n /** The private endpoint connection properties */\n properties?: OptionalPropertiesUpdateableProperties;\n}\n\nexport function privateEndpointConnectionUpdateSerializer(\n item: PrivateEndpointConnectionUpdate,\n): any {\n return {\n properties: !item[\"properties\"]\n ? item[\"properties\"]\n : optionalPropertiesUpdateablePropertiesSerializer(item[\"properties\"]),\n };\n}\n\n/** The template for adding optional properties. */\nexport interface OptionalPropertiesUpdateableProperties {\n /** The private endpoint resource. */\n privateEndpoint?: PrivateEndpoint;\n /** A collection of information about the state of the connection between service consumer and provider. */\n privateLinkServiceConnectionState?: PrivateLinkServiceConnectionState;\n}\n\nexport function optionalPropertiesUpdateablePropertiesSerializer(\n item: OptionalPropertiesUpdateableProperties,\n): any {\n return {\n privateEndpoint: !item[\"privateEndpoint\"]\n ? item[\"privateEndpoint\"]\n : privateEndpointSerializer(item[\"privateEndpoint\"]),\n privateLinkServiceConnectionState: !item[\"privateLinkServiceConnectionState\"]\n ? item[\"privateLinkServiceConnectionState\"]\n : privateLinkServiceConnectionStateSerializer(item[\"privateLinkServiceConnectionState\"]),\n };\n}\n\n/** The response of a PrivateEndpointConnection list operation. */\nexport interface _PrivateEndpointConnectionListResult {\n /** The PrivateEndpointConnection items on this page */\n value: PrivateEndpointConnection[];\n /** The link to the next page of items */\n nextLink?: string;\n}\n\nexport function _privateEndpointConnectionListResultDeserializer(\n item: any,\n): _PrivateEndpointConnectionListResult {\n return {\n value: privateEndpointConnectionArrayDeserializer(item[\"value\"]),\n nextLink: item[\"nextLink\"],\n };\n}\n\n/** A Task Hub resource belonging to the scheduler */\nexport interface TaskHub extends ProxyResource {\n /** The resource-specific properties for this resource. */\n properties?: TaskHubProperties;\n}\n\nexport function taskHubSerializer(item: TaskHub): any {\n return {\n properties: !item[\"properties\"]\n ? item[\"properties\"]\n : taskHubPropertiesSerializer(item[\"properties\"]),\n };\n}\n\nexport function taskHubDeserializer(item: any): TaskHub {\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 : taskHubPropertiesDeserializer(item[\"properties\"]),\n };\n}\n\n/** The properties of Task Hub */\nexport interface TaskHubProperties {\n /** The status of the last operation */\n readonly provisioningState?: ProvisioningState;\n /** URL of the durable task scheduler dashboard */\n readonly dashboardUrl?: string;\n}\n\nexport function taskHubPropertiesSerializer(item: TaskHubProperties): any {\n return item;\n}\n\nexport function taskHubPropertiesDeserializer(item: any): TaskHubProperties {\n return {\n provisioningState: item[\"provisioningState\"],\n dashboardUrl: item[\"dashboardUrl\"],\n };\n}\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 item;\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/** The response of a TaskHub list operation. */\nexport interface _TaskHubListResult {\n /** The TaskHub items on this page */\n value: TaskHub[];\n /** The link to the next page of items */\n nextLink?: string;\n}\n\nexport function _taskHubListResultDeserializer(item: any): _TaskHubListResult {\n return {\n value: taskHubArrayDeserializer(item[\"value\"]),\n nextLink: item[\"nextLink\"],\n };\n}\n\nexport function taskHubArraySerializer(result: Array<TaskHub>): any[] {\n return result.map((item) => {\n return taskHubSerializer(item);\n });\n}\n\nexport function taskHubArrayDeserializer(result: Array<TaskHub>): any[] {\n return result.map((item) => {\n return taskHubDeserializer(item);\n });\n}\n\n/** A retention policy resource belonging to the scheduler */\nexport interface RetentionPolicy extends ProxyResource {\n /** The resource-specific properties for this resource. */\n properties?: RetentionPolicyProperties;\n}\n\nexport function retentionPolicySerializer(item: RetentionPolicy): any {\n return {\n properties: !item[\"properties\"]\n ? item[\"properties\"]\n : retentionPolicyPropertiesSerializer(item[\"properties\"]),\n };\n}\n\nexport function retentionPolicyDeserializer(item: any): RetentionPolicy {\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 : retentionPolicyPropertiesDeserializer(item[\"properties\"]),\n };\n}\n\n/** The retention policy settings for the resource */\nexport interface RetentionPolicyProperties {\n /** The status of the last operation */\n readonly provisioningState?: ProvisioningState;\n /** The orchestration retention policies */\n retentionPolicies?: RetentionPolicyDetails[];\n}\n\nexport function retentionPolicyPropertiesSerializer(item: RetentionPolicyProperties): any {\n return {\n retentionPolicies: !item[\"retentionPolicies\"]\n ? item[\"retentionPolicies\"]\n : retentionPolicyDetailsArraySerializer(item[\"retentionPolicies\"]),\n };\n}\n\nexport function retentionPolicyPropertiesDeserializer(item: any): RetentionPolicyProperties {\n return {\n provisioningState: item[\"provisioningState\"],\n retentionPolicies: !item[\"retentionPolicies\"]\n ? item[\"retentionPolicies\"]\n : retentionPolicyDetailsArrayDeserializer(item[\"retentionPolicies\"]),\n };\n}\n\nexport function retentionPolicyDetailsArraySerializer(\n result: Array<RetentionPolicyDetails>,\n): any[] {\n return result.map((item) => {\n return retentionPolicyDetailsSerializer(item);\n });\n}\n\nexport function retentionPolicyDetailsArrayDeserializer(\n result: Array<RetentionPolicyDetails>,\n): any[] {\n return result.map((item) => {\n return retentionPolicyDetailsDeserializer(item);\n });\n}\n\n/** The properties of a retention policy */\nexport interface RetentionPolicyDetails {\n /** The retention period in days after which the orchestration will be purged automatically */\n retentionPeriodInDays: number;\n /** The orchestration state to which this policy applies. If omitted, the policy applies to all purgeable orchestration states. */\n orchestrationState?: PurgeableOrchestrationState;\n}\n\nexport function retentionPolicyDetailsSerializer(item: RetentionPolicyDetails): any {\n return {\n retentionPeriodInDays: item[\"retentionPeriodInDays\"],\n orchestrationState: item[\"orchestrationState\"],\n };\n}\n\nexport function retentionPolicyDetailsDeserializer(item: any): RetentionPolicyDetails {\n return {\n retentionPeriodInDays: item[\"retentionPeriodInDays\"],\n orchestrationState: item[\"orchestrationState\"],\n };\n}\n\n/** Purgeable orchestration state to be used in retention policies */\nexport enum KnownPurgeableOrchestrationState {\n /** The orchestration is completed */\n Completed = \"Completed\",\n /** The orchestration is failed */\n Failed = \"Failed\",\n /** The orchestration is terminated */\n Terminated = \"Terminated\",\n /** The orchestration is canceled */\n Canceled = \"Canceled\",\n}\n\n/**\n * Purgeable orchestration state to be used in retention policies \\\n * {@link KnownPurgeableOrchestrationState} can be used interchangeably with PurgeableOrchestrationState,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **Completed**: The orchestration is completed \\\n * **Failed**: The orchestration is failed \\\n * **Terminated**: The orchestration is terminated \\\n * **Canceled**: The orchestration is canceled\n */\nexport type PurgeableOrchestrationState = string;\n\n/** The response of a RetentionPolicy list operation. */\nexport interface _RetentionPolicyListResult {\n /** The RetentionPolicy items on this page */\n value: RetentionPolicy[];\n /** The link to the next page of items */\n nextLink?: string;\n}\n\nexport function _retentionPolicyListResultDeserializer(item: any): _RetentionPolicyListResult {\n return {\n value: retentionPolicyArrayDeserializer(item[\"value\"]),\n nextLink: item[\"nextLink\"],\n };\n}\n\nexport function retentionPolicyArraySerializer(result: Array<RetentionPolicy>): any[] {\n return result.map((item) => {\n return retentionPolicySerializer(item);\n });\n}\n\nexport function retentionPolicyArrayDeserializer(result: Array<RetentionPolicy>): any[] {\n return result.map((item) => {\n return retentionPolicyDeserializer(item);\n });\n}\n\n/** API Versions */\nexport enum KnownVersions {\n /** 2025-11-01 */\n V20251101 = \"2025-11-01\",\n /** 2026-02-01 */\n V20260201 = \"2026-02-01\",\n}\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAiBO,SAAS,iCAAiC,MAAiC;AAChF,SAAO;AAAA,IACL,OAAO,2BAA2B,KAAK,OAAO,CAAC;AAAA,IAC/C,UAAU,KAAK,UAAU;AAAA,EAC3B;AACF;AAEO,SAAS,2BAA2B,QAAiC;AAC1E,SAAO,OAAO,IAAI,CAAC,SAAS;AAC1B,WAAO,sBAAsB,IAAI;AAAA,EACnC,CAAC;AACH;AAgBO,SAAS,sBAAsB,MAAsB;AAC1D,SAAO;AAAA,IACL,MAAM,KAAK,MAAM;AAAA,IACjB,cAAc,KA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,CAAC,SAAS;AAC1B,WAAO,4BAA4B,IAAI;AAAA,EACzC,CAAC;AACH;AAGO,IAAK,gBAAL,kBAAKC,mBAAL;AAEL,EAAAA,eAAA,eAAY;AAEZ,EAAAA,eAAA,eAAY;AAJF,SAAAA;AAAA,GAAA;",
|
|
6
|
+
"names": ["KnownOrigin", "KnownActionType", "KnownProvisioningState", "KnownSchedulerSkuName", "KnownRedundancyState", "KnownPublicNetworkAccess", "KnownPrivateEndpointServiceConnectionStatus", "KnownPrivateEndpointConnectionProvisioningState", "KnownCreatedByType", "KnownPurgeableOrchestrationState", "KnownVersions"]
|
|
7
|
+
}
|
|
@@ -1,121 +1,128 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all)
|
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
+
};
|
|
9
|
+
var __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
+
}
|
|
15
|
+
return to;
|
|
16
|
+
};
|
|
17
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
+
var restorePollerHelpers_exports = {};
|
|
19
|
+
__export(restorePollerHelpers_exports, {
|
|
20
|
+
restorePoller: () => restorePoller
|
|
21
|
+
});
|
|
22
|
+
module.exports = __toCommonJS(restorePollerHelpers_exports);
|
|
23
|
+
var import_operations = require("./api/retentionPolicies/operations.js");
|
|
24
|
+
var import_operations2 = require("./api/taskHubs/operations.js");
|
|
25
|
+
var import_operations3 = require("./api/schedulers/operations.js");
|
|
26
|
+
var import_pollingHelpers = require("./static-helpers/pollingHelpers.js");
|
|
27
|
+
var import_core_lro = require("@azure/core-lro");
|
|
16
28
|
function restorePoller(client, serializedState, sourceOperation, options) {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
29
|
+
const pollerConfig = (0, import_core_lro.deserializeState)(serializedState).config;
|
|
30
|
+
const { initialRequestUrl, requestMethod, metadata } = pollerConfig;
|
|
31
|
+
if (!initialRequestUrl || !requestMethod) {
|
|
32
|
+
throw new Error(
|
|
33
|
+
`Invalid serialized state: ${serializedState} for sourceOperation ${sourceOperation?.name}`
|
|
34
|
+
);
|
|
35
|
+
}
|
|
36
|
+
const resourceLocationConfig = metadata?.["resourceLocationConfig"];
|
|
37
|
+
const { deserializer, expectedStatuses = [] } = getDeserializationHelper(initialRequestUrl, requestMethod) ?? {};
|
|
38
|
+
const deserializeHelper = options?.processResponseBody ?? deserializer;
|
|
39
|
+
if (!deserializeHelper) {
|
|
40
|
+
throw new Error(
|
|
41
|
+
`Please ensure the operation is in this client! We can't find its deserializeHelper for ${sourceOperation?.name}.`
|
|
42
|
+
);
|
|
43
|
+
}
|
|
44
|
+
const apiVersion = getApiVersionFromUrl(initialRequestUrl);
|
|
45
|
+
return (0, import_pollingHelpers.getLongRunningPoller)(
|
|
46
|
+
client["_client"] ?? client,
|
|
47
|
+
deserializeHelper,
|
|
48
|
+
expectedStatuses,
|
|
49
|
+
{
|
|
50
|
+
updateIntervalInMs: options?.updateIntervalInMs,
|
|
51
|
+
abortSignal: options?.abortSignal,
|
|
52
|
+
resourceLocationConfig,
|
|
53
|
+
restoreFrom: serializedState,
|
|
54
|
+
initialRequestUrl,
|
|
55
|
+
apiVersion
|
|
21
56
|
}
|
|
22
|
-
|
|
23
|
-
const { deserializer, expectedStatuses = [] } = getDeserializationHelper(initialRequestUrl, requestMethod) ?? {};
|
|
24
|
-
const deserializeHelper = options?.processResponseBody ?? deserializer;
|
|
25
|
-
if (!deserializeHelper) {
|
|
26
|
-
throw new Error(`Please ensure the operation is in this client! We can't find its deserializeHelper for ${sourceOperation?.name}.`);
|
|
27
|
-
}
|
|
28
|
-
return (0, pollingHelpers_js_1.getLongRunningPoller)(client["_client"] ?? client, deserializeHelper, expectedStatuses, {
|
|
29
|
-
updateIntervalInMs: options?.updateIntervalInMs,
|
|
30
|
-
abortSignal: options?.abortSignal,
|
|
31
|
-
resourceLocationConfig,
|
|
32
|
-
restoreFrom: serializedState,
|
|
33
|
-
initialRequestUrl,
|
|
34
|
-
});
|
|
57
|
+
);
|
|
35
58
|
}
|
|
36
59
|
const deserializeMap = {
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
},
|
|
58
|
-
"PATCH /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DurableTask/schedulers/{schedulerName}": {
|
|
59
|
-
deserializer: operations_js_3._updateDeserialize,
|
|
60
|
-
expectedStatuses: ["200", "202"],
|
|
61
|
-
},
|
|
62
|
-
"PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DurableTask/schedulers/{schedulerName}": {
|
|
63
|
-
deserializer: operations_js_3._createOrUpdateDeserialize,
|
|
64
|
-
expectedStatuses: ["200", "201", "202"],
|
|
65
|
-
},
|
|
60
|
+
"DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DurableTask/schedulers/{schedulerName}/retentionPolicies/default": { deserializer: import_operations._$deleteDeserialize, expectedStatuses: ["202", "204", "200"] },
|
|
61
|
+
"PATCH /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DurableTask/schedulers/{schedulerName}/retentionPolicies/default": { deserializer: import_operations._updateDeserialize, expectedStatuses: ["200", "202", "201"] },
|
|
62
|
+
"PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DurableTask/schedulers/{schedulerName}/retentionPolicies/default": { deserializer: import_operations._createOrReplaceDeserialize, expectedStatuses: ["200", "201", "202"] },
|
|
63
|
+
"DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DurableTask/schedulers/{schedulerName}/taskHubs/{taskHubName}": { deserializer: import_operations2._$deleteDeserialize, expectedStatuses: ["202", "204", "200"] },
|
|
64
|
+
"PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DurableTask/schedulers/{schedulerName}/taskHubs/{taskHubName}": { deserializer: import_operations2._createOrUpdateDeserialize, expectedStatuses: ["200", "201", "202"] },
|
|
65
|
+
"DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DurableTask/schedulers/{schedulerName}/privateEndpointConnections/{privateEndpointConnectionName}": {
|
|
66
|
+
deserializer: import_operations3._deletePrivateEndpointConnectionDeserialize,
|
|
67
|
+
expectedStatuses: ["202", "204", "200"]
|
|
68
|
+
},
|
|
69
|
+
"PATCH /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DurableTask/schedulers/{schedulerName}/privateEndpointConnections/{privateEndpointConnectionName}": {
|
|
70
|
+
deserializer: import_operations3._updatePrivateEndpointConnectionDeserialize,
|
|
71
|
+
expectedStatuses: ["200", "202", "201"]
|
|
72
|
+
},
|
|
73
|
+
"PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DurableTask/schedulers/{schedulerName}/privateEndpointConnections/{privateEndpointConnectionName}": {
|
|
74
|
+
deserializer: import_operations3._createOrUpdatePrivateEndpointConnectionDeserialize,
|
|
75
|
+
expectedStatuses: ["200", "201", "202"]
|
|
76
|
+
},
|
|
77
|
+
"DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DurableTask/schedulers/{schedulerName}": { deserializer: import_operations3._$deleteDeserialize, expectedStatuses: ["202", "204", "200"] },
|
|
78
|
+
"PATCH /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DurableTask/schedulers/{schedulerName}": { deserializer: import_operations3._updateDeserialize, expectedStatuses: ["200", "202", "201"] },
|
|
79
|
+
"PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DurableTask/schedulers/{schedulerName}": { deserializer: import_operations3._createOrUpdateDeserialize, expectedStatuses: ["200", "201", "202"] }
|
|
66
80
|
};
|
|
67
81
|
function getDeserializationHelper(urlStr, method) {
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
}
|
|
81
|
-
const
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
if (candidateParts[i]?.startsWith("{") && candidateParts[i]?.indexOf("}") !== -1) {
|
|
88
|
-
const start = candidateParts[i].indexOf("}") + 1, end = candidateParts[i]?.length;
|
|
89
|
-
// If the current part of the candidate is a "template" part
|
|
90
|
-
// Try to use the suffix of pattern to match the path
|
|
91
|
-
// {guid} ==> $
|
|
92
|
-
// {guid}:export ==> :export$
|
|
93
|
-
const isMatched = new RegExp(`${candidateParts[i]?.slice(start, end)}`).test(pathParts[j] || "");
|
|
94
|
-
if (!isMatched) {
|
|
95
|
-
found = false;
|
|
96
|
-
break;
|
|
97
|
-
}
|
|
98
|
-
continue;
|
|
99
|
-
}
|
|
100
|
-
// If the candidate part is not a template and
|
|
101
|
-
// the parts don't match mark the candidate as not found
|
|
102
|
-
// to move on with the next candidate path.
|
|
103
|
-
if (candidateParts[i] !== pathParts[j]) {
|
|
104
|
-
found = false;
|
|
105
|
-
break;
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
// We finished evaluating the current candidate parts
|
|
109
|
-
// Update the matched value if and only if we found the longer pattern
|
|
110
|
-
if (found && candidatePath.length > matchedLen) {
|
|
111
|
-
matchedLen = candidatePath.length;
|
|
112
|
-
matchedValue = value;
|
|
82
|
+
const path = new URL(urlStr).pathname;
|
|
83
|
+
const pathParts = path.split("/");
|
|
84
|
+
let matchedLen = -1, matchedValue;
|
|
85
|
+
for (const [key, value] of Object.entries(deserializeMap)) {
|
|
86
|
+
if (!key.startsWith(method)) {
|
|
87
|
+
continue;
|
|
88
|
+
}
|
|
89
|
+
const candidatePath = getPathFromMapKey(key);
|
|
90
|
+
const candidateParts = candidatePath.split("/");
|
|
91
|
+
let found = true;
|
|
92
|
+
for (let i = candidateParts.length - 1, j = pathParts.length - 1; i >= 1 && j >= 1; i--, j--) {
|
|
93
|
+
if (candidateParts[i]?.startsWith("{") && candidateParts[i]?.indexOf("}") !== -1) {
|
|
94
|
+
const start = candidateParts[i].indexOf("}") + 1, end = candidateParts[i]?.length;
|
|
95
|
+
const isMatched = new RegExp(`${candidateParts[i]?.slice(start, end)}`).test(
|
|
96
|
+
pathParts[j] || ""
|
|
97
|
+
);
|
|
98
|
+
if (!isMatched) {
|
|
99
|
+
found = false;
|
|
100
|
+
break;
|
|
113
101
|
}
|
|
102
|
+
continue;
|
|
103
|
+
}
|
|
104
|
+
if (candidateParts[i] !== pathParts[j]) {
|
|
105
|
+
found = false;
|
|
106
|
+
break;
|
|
107
|
+
}
|
|
114
108
|
}
|
|
115
|
-
|
|
109
|
+
if (found && candidatePath.length > matchedLen) {
|
|
110
|
+
matchedLen = candidatePath.length;
|
|
111
|
+
matchedValue = value;
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
return matchedValue;
|
|
116
115
|
}
|
|
117
116
|
function getPathFromMapKey(mapKey) {
|
|
118
|
-
|
|
119
|
-
|
|
117
|
+
const pathStart = mapKey.indexOf("/");
|
|
118
|
+
return mapKey.slice(pathStart);
|
|
119
|
+
}
|
|
120
|
+
function getApiVersionFromUrl(urlStr) {
|
|
121
|
+
const url = new URL(urlStr);
|
|
122
|
+
return url.searchParams.get("api-version") ?? void 0;
|
|
120
123
|
}
|
|
121
|
-
|
|
124
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
125
|
+
0 && (module.exports = {
|
|
126
|
+
restorePoller
|
|
127
|
+
});
|
|
128
|
+
//# sourceMappingURL=restorePollerHelpers.js.map
|
|
@@ -1 +1,7 @@
|
|
|
1
|
-
{"version":3,"file":"restorePollerHelpers.js","sourceRoot":"","sources":["../../src/restorePollerHelpers.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AA0ClC,sCAoCC;AA3ED,yEAI+C;AAC/C,gEAGsC;AACtC,kEAIwC;AACxC,0EAA0E;AAI1E,8CAAmD;AAgBnD;;;;GAIG;AACH,SAAgB,aAAa,CAC3B,MAAyB,EACzB,eAAuB,EACvB,eAAiF,EACjF,OAAuC;IAEvC,MAAM,YAAY,GAAG,IAAA,2BAAgB,EAAC,eAAe,CAAC,CAAC,MAAM,CAAC;IAC9D,MAAM,EAAE,iBAAiB,EAAE,aAAa,EAAE,QAAQ,EAAE,GAAG,YAAY,CAAC;IACpE,IAAI,CAAC,iBAAiB,IAAI,CAAC,aAAa,EAAE,CAAC;QACzC,MAAM,IAAI,KAAK,CACb,6BAA6B,eAAe,wBAAwB,eAAe,EAAE,IAAI,EAAE,CAC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,CAAC;IACtC,OAAO,MAAM,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC;AACjC,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { DurableTaskClient } from \"./durableTaskClient.js\";\nimport {\n _$deleteDeserialize,\n _updateDeserialize,\n _createOrReplaceDeserialize,\n} from \"./api/retentionPolicies/operations.js\";\nimport {\n _$deleteDeserialize as _$deleteDeserializeTaskHubs,\n _createOrUpdateDeserialize,\n} from \"./api/taskHubs/operations.js\";\nimport {\n _$deleteDeserialize as _$deleteDeserializeSchedulers,\n _updateDeserialize as _updateDeserializeSchedulers,\n _createOrUpdateDeserialize as _createOrUpdateDeserializeSchedulers,\n} from \"./api/schedulers/operations.js\";\nimport { getLongRunningPoller } from \"./static-helpers/pollingHelpers.js\";\nimport type { OperationOptions, PathUncheckedResponse } from \"@azure-rest/core-client\";\nimport type { AbortSignalLike } from \"@azure/abort-controller\";\nimport type { PollerLike, OperationState, ResourceLocationConfig } from \"@azure/core-lro\";\nimport { deserializeState } from \"@azure/core-lro\";\n\nexport interface RestorePollerOptions<\n TResult,\n TResponse extends PathUncheckedResponse = PathUncheckedResponse,\n> extends OperationOptions {\n /** Delay to wait until next poll, in milliseconds. */\n updateIntervalInMs?: number;\n /**\n * The signal which can be used to abort requests.\n */\n abortSignal?: AbortSignalLike;\n /** Deserialization function for raw response body */\n processResponseBody?: (result: TResponse) => Promise<TResult>;\n}\n\n/**\n * Creates a poller from the serialized state of another poller. This can be\n * useful when you want to create pollers on a different host or a poller\n * needs to be constructed after the original one is not in scope.\n */\nexport function restorePoller<TResponse extends PathUncheckedResponse, TResult>(\n client: DurableTaskClient,\n serializedState: string,\n sourceOperation: (...args: any[]) => PollerLike<OperationState<TResult>, TResult>,\n options?: RestorePollerOptions<TResult>,\n): PollerLike<OperationState<TResult>, TResult> {\n const pollerConfig = deserializeState(serializedState).config;\n const { initialRequestUrl, requestMethod, metadata } = pollerConfig;\n if (!initialRequestUrl || !requestMethod) {\n throw new Error(\n `Invalid serialized state: ${serializedState} for sourceOperation ${sourceOperation?.name}`,\n );\n }\n const resourceLocationConfig = metadata?.[\"resourceLocationConfig\"] as\n | ResourceLocationConfig\n | undefined;\n const { deserializer, expectedStatuses = [] } =\n getDeserializationHelper(initialRequestUrl, requestMethod) ?? {};\n const deserializeHelper = options?.processResponseBody ?? deserializer;\n if (!deserializeHelper) {\n throw new Error(\n `Please ensure the operation is in this client! We can't find its deserializeHelper for ${sourceOperation?.name}.`,\n );\n }\n return getLongRunningPoller(\n (client as any)[\"_client\"] ?? client,\n deserializeHelper as (result: TResponse) => Promise<TResult>,\n expectedStatuses,\n {\n updateIntervalInMs: options?.updateIntervalInMs,\n abortSignal: options?.abortSignal,\n resourceLocationConfig,\n restoreFrom: serializedState,\n initialRequestUrl,\n },\n );\n}\n\ninterface DeserializationHelper {\n // eslint-disable-next-line @typescript-eslint/no-unsafe-function-type\n deserializer: Function;\n expectedStatuses: string[];\n}\n\nconst deserializeMap: Record<string, DeserializationHelper> = {\n \"DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DurableTask/schedulers/{schedulerName}/retentionPolicies/default\":\n {\n deserializer: _$deleteDeserialize,\n expectedStatuses: [\"202\", \"204\", \"200\"],\n },\n \"PATCH /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DurableTask/schedulers/{schedulerName}/retentionPolicies/default\":\n { deserializer: _updateDeserialize, expectedStatuses: [\"200\", \"202\"] },\n \"PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DurableTask/schedulers/{schedulerName}/retentionPolicies/default\":\n {\n deserializer: _createOrReplaceDeserialize,\n expectedStatuses: [\"200\", \"201\", \"202\"],\n },\n \"DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DurableTask/schedulers/{schedulerName}/taskHubs/{taskHubName}\":\n {\n deserializer: _$deleteDeserializeTaskHubs,\n expectedStatuses: [\"202\", \"204\", \"200\"],\n },\n \"PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DurableTask/schedulers/{schedulerName}/taskHubs/{taskHubName}\":\n {\n deserializer: _createOrUpdateDeserialize,\n expectedStatuses: [\"200\", \"201\", \"202\"],\n },\n \"DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DurableTask/schedulers/{schedulerName}\":\n {\n deserializer: _$deleteDeserializeSchedulers,\n expectedStatuses: [\"202\", \"204\", \"200\"],\n },\n \"PATCH /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DurableTask/schedulers/{schedulerName}\":\n {\n deserializer: _updateDeserializeSchedulers,\n expectedStatuses: [\"200\", \"202\"],\n },\n \"PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DurableTask/schedulers/{schedulerName}\":\n {\n deserializer: _createOrUpdateDeserializeSchedulers,\n expectedStatuses: [\"200\", \"201\", \"202\"],\n },\n};\n\nfunction getDeserializationHelper(\n urlStr: string,\n method: string,\n): DeserializationHelper | undefined {\n const path = new URL(urlStr).pathname;\n const pathParts = path.split(\"/\");\n\n // Traverse list to match the longest candidate\n // matchedLen: the length of candidate path\n // matchedValue: the matched status code array\n let matchedLen = -1,\n matchedValue: DeserializationHelper | undefined;\n\n // Iterate the responseMap to find a match\n for (const [key, value] of Object.entries(deserializeMap)) {\n // Extracting the path from the map key which is in format\n // GET /path/foo\n if (!key.startsWith(method)) {\n continue;\n }\n const candidatePath = getPathFromMapKey(key);\n // Get each part of the url path\n const candidateParts = candidatePath.split(\"/\");\n\n // track if we have found a match to return the values found.\n let found = true;\n for (let i = candidateParts.length - 1, j = pathParts.length - 1; i >= 1 && j >= 1; i--, j--) {\n if (candidateParts[i]?.startsWith(\"{\") && candidateParts[i]?.indexOf(\"}\") !== -1) {\n const start = candidateParts[i]!.indexOf(\"}\") + 1,\n end = candidateParts[i]?.length;\n // If the current part of the candidate is a \"template\" part\n // Try to use the suffix of pattern to match the path\n // {guid} ==> $\n // {guid}:export ==> :export$\n const isMatched = new RegExp(`${candidateParts[i]?.slice(start, end)}`).test(\n pathParts[j] || \"\",\n );\n\n if (!isMatched) {\n found = false;\n break;\n }\n continue;\n }\n\n // If the candidate part is not a template and\n // the parts don't match mark the candidate as not found\n // to move on with the next candidate path.\n if (candidateParts[i] !== pathParts[j]) {\n found = false;\n break;\n }\n }\n\n // We finished evaluating the current candidate parts\n // Update the matched value if and only if we found the longer pattern\n if (found && candidatePath.length > matchedLen) {\n matchedLen = candidatePath.length;\n matchedValue = value;\n }\n }\n\n return matchedValue;\n}\n\nfunction getPathFromMapKey(mapKey: string): string {\n const pathStart = mapKey.indexOf(\"/\");\n return mapKey.slice(pathStart);\n}\n"]}
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/restorePollerHelpers.ts"],
|
|
4
|
+
"sourcesContent": ["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { DurableTaskClient } from \"./durableTaskClient.js\";\nimport {\n _$deleteDeserialize,\n _updateDeserialize,\n _createOrReplaceDeserialize,\n} from \"./api/retentionPolicies/operations.js\";\nimport {\n _$deleteDeserialize as _$deleteDeserializeTaskHubs,\n _createOrUpdateDeserialize,\n} from \"./api/taskHubs/operations.js\";\nimport {\n _deletePrivateEndpointConnectionDeserialize,\n _updatePrivateEndpointConnectionDeserialize,\n _createOrUpdatePrivateEndpointConnectionDeserialize,\n _$deleteDeserialize as _$deleteDeserializeSchedulers,\n _updateDeserialize as _updateDeserializeSchedulers,\n _createOrUpdateDeserialize as _createOrUpdateDeserializeSchedulers,\n} from \"./api/schedulers/operations.js\";\nimport { getLongRunningPoller } from \"./static-helpers/pollingHelpers.js\";\nimport type { OperationOptions, PathUncheckedResponse } from \"@azure-rest/core-client\";\nimport type { AbortSignalLike } from \"@azure/abort-controller\";\nimport type { PollerLike, OperationState, ResourceLocationConfig } from \"@azure/core-lro\";\nimport { deserializeState } from \"@azure/core-lro\";\n\nexport interface RestorePollerOptions<\n TResult,\n TResponse extends PathUncheckedResponse = PathUncheckedResponse,\n> extends OperationOptions {\n /** Delay to wait until next poll, in milliseconds. */\n updateIntervalInMs?: number;\n /**\n * The signal which can be used to abort requests.\n */\n abortSignal?: AbortSignalLike;\n /** Deserialization function for raw response body */\n processResponseBody?: (result: TResponse) => Promise<TResult>;\n}\n\n/**\n * Creates a poller from the serialized state of another poller. This can be\n * useful when you want to create pollers on a different host or a poller\n * needs to be constructed after the original one is not in scope.\n */\nexport function restorePoller<TResponse extends PathUncheckedResponse, TResult>(\n client: DurableTaskClient,\n serializedState: string,\n sourceOperation: (...args: any[]) => PollerLike<OperationState<TResult>, TResult>,\n options?: RestorePollerOptions<TResult>,\n): PollerLike<OperationState<TResult>, TResult> {\n const pollerConfig = deserializeState(serializedState).config;\n const { initialRequestUrl, requestMethod, metadata } = pollerConfig;\n if (!initialRequestUrl || !requestMethod) {\n throw new Error(\n `Invalid serialized state: ${serializedState} for sourceOperation ${sourceOperation?.name}`,\n );\n }\n const resourceLocationConfig = metadata?.[\"resourceLocationConfig\"] as\n | ResourceLocationConfig\n | undefined;\n const { deserializer, expectedStatuses = [] } =\n getDeserializationHelper(initialRequestUrl, requestMethod) ?? {};\n const deserializeHelper = options?.processResponseBody ?? deserializer;\n if (!deserializeHelper) {\n throw new Error(\n `Please ensure the operation is in this client! We can't find its deserializeHelper for ${sourceOperation?.name}.`,\n );\n }\n const apiVersion = getApiVersionFromUrl(initialRequestUrl);\n return getLongRunningPoller(\n (client as any)[\"_client\"] ?? client,\n deserializeHelper as (result: TResponse) => Promise<TResult>,\n expectedStatuses,\n {\n updateIntervalInMs: options?.updateIntervalInMs,\n abortSignal: options?.abortSignal,\n resourceLocationConfig,\n restoreFrom: serializedState,\n initialRequestUrl,\n apiVersion,\n },\n );\n}\n\ninterface DeserializationHelper {\n deserializer: (result: PathUncheckedResponse) => Promise<any>;\n expectedStatuses: string[];\n}\n\nconst deserializeMap: Record<string, DeserializationHelper> = {\n \"DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DurableTask/schedulers/{schedulerName}/retentionPolicies/default\":\n { deserializer: _$deleteDeserialize, expectedStatuses: [\"202\", \"204\", \"200\"] },\n \"PATCH /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DurableTask/schedulers/{schedulerName}/retentionPolicies/default\":\n { deserializer: _updateDeserialize, expectedStatuses: [\"200\", \"202\", \"201\"] },\n \"PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DurableTask/schedulers/{schedulerName}/retentionPolicies/default\":\n { deserializer: _createOrReplaceDeserialize, expectedStatuses: [\"200\", \"201\", \"202\"] },\n \"DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DurableTask/schedulers/{schedulerName}/taskHubs/{taskHubName}\":\n { deserializer: _$deleteDeserializeTaskHubs, expectedStatuses: [\"202\", \"204\", \"200\"] },\n \"PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DurableTask/schedulers/{schedulerName}/taskHubs/{taskHubName}\":\n { deserializer: _createOrUpdateDeserialize, expectedStatuses: [\"200\", \"201\", \"202\"] },\n \"DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DurableTask/schedulers/{schedulerName}/privateEndpointConnections/{privateEndpointConnectionName}\":\n {\n deserializer: _deletePrivateEndpointConnectionDeserialize,\n expectedStatuses: [\"202\", \"204\", \"200\"],\n },\n \"PATCH /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DurableTask/schedulers/{schedulerName}/privateEndpointConnections/{privateEndpointConnectionName}\":\n {\n deserializer: _updatePrivateEndpointConnectionDeserialize,\n expectedStatuses: [\"200\", \"202\", \"201\"],\n },\n \"PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DurableTask/schedulers/{schedulerName}/privateEndpointConnections/{privateEndpointConnectionName}\":\n {\n deserializer: _createOrUpdatePrivateEndpointConnectionDeserialize,\n expectedStatuses: [\"200\", \"201\", \"202\"],\n },\n \"DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DurableTask/schedulers/{schedulerName}\":\n { deserializer: _$deleteDeserializeSchedulers, expectedStatuses: [\"202\", \"204\", \"200\"] },\n \"PATCH /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DurableTask/schedulers/{schedulerName}\":\n { deserializer: _updateDeserializeSchedulers, expectedStatuses: [\"200\", \"202\", \"201\"] },\n \"PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DurableTask/schedulers/{schedulerName}\":\n { deserializer: _createOrUpdateDeserializeSchedulers, expectedStatuses: [\"200\", \"201\", \"202\"] },\n};\n\nfunction getDeserializationHelper(\n urlStr: string,\n method: string,\n): DeserializationHelper | undefined {\n const path = new URL(urlStr).pathname;\n const pathParts = path.split(\"/\");\n\n // Traverse list to match the longest candidate\n // matchedLen: the length of candidate path\n // matchedValue: the matched status code array\n let matchedLen = -1,\n matchedValue: DeserializationHelper | undefined;\n\n // Iterate the responseMap to find a match\n for (const [key, value] of Object.entries(deserializeMap)) {\n // Extracting the path from the map key which is in format\n // GET /path/foo\n if (!key.startsWith(method)) {\n continue;\n }\n const candidatePath = getPathFromMapKey(key);\n // Get each part of the url path\n const candidateParts = candidatePath.split(\"/\");\n\n // track if we have found a match to return the values found.\n let found = true;\n for (let i = candidateParts.length - 1, j = pathParts.length - 1; i >= 1 && j >= 1; i--, j--) {\n if (candidateParts[i]?.startsWith(\"{\") && candidateParts[i]?.indexOf(\"}\") !== -1) {\n const start = candidateParts[i]!.indexOf(\"}\") + 1,\n end = candidateParts[i]?.length;\n // If the current part of the candidate is a \"template\" part\n // Try to use the suffix of pattern to match the path\n // {guid} ==> $\n // {guid}:export ==> :export$\n const isMatched = new RegExp(`${candidateParts[i]?.slice(start, end)}`).test(\n pathParts[j] || \"\",\n );\n\n if (!isMatched) {\n found = false;\n break;\n }\n continue;\n }\n\n // If the candidate part is not a template and\n // the parts don't match mark the candidate as not found\n // to move on with the next candidate path.\n if (candidateParts[i] !== pathParts[j]) {\n found = false;\n break;\n }\n }\n\n // We finished evaluating the current candidate parts\n // Update the matched value if and only if we found the longer pattern\n if (found && candidatePath.length > matchedLen) {\n matchedLen = candidatePath.length;\n matchedValue = value;\n }\n }\n\n return matchedValue;\n}\n\nfunction getPathFromMapKey(mapKey: string): string {\n const pathStart = mapKey.indexOf(\"/\");\n return mapKey.slice(pathStart);\n}\n\nfunction getApiVersionFromUrl(urlStr: string): string | undefined {\n const url = new URL(urlStr);\n return url.searchParams.get(\"api-version\") ?? undefined;\n}\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAIA,wBAIO;AACP,IAAAA,qBAGO;AACP,IAAAA,qBAOO;AACP,4BAAqC;AAIrC,sBAAiC;AAqB1B,SAAS,cACd,QACA,iBACA,iBACA,SAC8C;AAC9C,QAAM,mBAAe,kCAAiB,eAAe,EAAE;AACvD,QAAM,EAAE,mBAAmB,eAAe,SAAS,IAAI;AACvD,MAAI,CAAC,qBAAqB,CAAC,eAAe;AACxC,UAAM,IAAI;AAAA,MACR,6BAA6B,eAAe,wBAAwB,iBAAiB,IAAI;AAAA,IAC3F;AAAA,EACF;AACA,QAAM,yBAAyB,WAAW,wBAAwB;AAGlE,QAAM,EAAE,cAAc,mBAAmB,CAAC,EAAE,IAC1C,yBAAyB,mBAAmB,aAAa,KAAK,CAAC;AACjE,QAAM,oBAAoB,SAAS,uBAAuB;AAC1D,MAAI,CAAC,mBAAmB;AACtB,UAAM,IAAI;AAAA,MACR,0FAA0F,iBAAiB,IAAI;AAAA,IACjH;AAAA,EACF;AACA,Q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