@azure/keyvault-admin 4.6.1-alpha.20250225.1 → 4.7.0-alpha.20250226.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/commonjs/backupClient.d.ts +130 -3
- package/dist/commonjs/backupClient.d.ts.map +1 -1
- package/dist/commonjs/backupClient.js +123 -30
- package/dist/commonjs/backupClient.js.map +1 -1
- package/dist/commonjs/backupClientModels.d.ts +15 -3
- package/dist/commonjs/backupClientModels.d.ts.map +1 -1
- package/dist/commonjs/backupClientModels.js.map +1 -1
- package/dist/commonjs/constants.d.ts +2 -2
- package/dist/commonjs/constants.d.ts.map +1 -1
- package/dist/commonjs/constants.js +2 -2
- package/dist/commonjs/constants.js.map +1 -1
- package/dist/commonjs/generated/api/index.d.ts +2 -2
- package/dist/commonjs/generated/api/index.d.ts.map +1 -1
- package/dist/commonjs/generated/api/index.js +11 -10
- package/dist/commonjs/generated/api/index.js.map +1 -1
- package/dist/commonjs/generated/api/keyVaultContext.d.ts +4 -1
- package/dist/commonjs/generated/api/keyVaultContext.d.ts.map +1 -1
- package/dist/commonjs/generated/api/keyVaultContext.js +4 -4
- package/dist/commonjs/generated/api/keyVaultContext.js.map +1 -1
- package/dist/commonjs/generated/api/operations.d.ts +42 -38
- package/dist/commonjs/generated/api/operations.d.ts.map +1 -1
- package/dist/commonjs/generated/api/operations.js +188 -145
- package/dist/commonjs/generated/api/operations.js.map +1 -1
- package/dist/commonjs/generated/api/options.d.ts +34 -42
- package/dist/commonjs/generated/api/options.d.ts.map +1 -1
- package/dist/commonjs/generated/api/options.js.map +1 -1
- package/dist/commonjs/generated/api/roleAssignments/index.d.ts +12 -12
- package/dist/commonjs/generated/api/roleAssignments/index.d.ts.map +1 -1
- package/dist/commonjs/generated/api/roleAssignments/index.js +66 -51
- package/dist/commonjs/generated/api/roleAssignments/index.js.map +1 -1
- package/dist/commonjs/generated/api/roleDefinitions/index.d.ts +12 -12
- package/dist/commonjs/generated/api/roleDefinitions/index.d.ts.map +1 -1
- package/dist/commonjs/generated/api/roleDefinitions/index.js +66 -51
- package/dist/commonjs/generated/api/roleDefinitions/index.js.map +1 -1
- package/dist/commonjs/generated/classic/roleAssignments/index.d.ts +8 -14
- package/dist/commonjs/generated/classic/roleAssignments/index.d.ts.map +1 -1
- package/dist/commonjs/generated/classic/roleAssignments/index.js +7 -8
- package/dist/commonjs/generated/classic/roleAssignments/index.js.map +1 -1
- package/dist/commonjs/generated/classic/roleDefinitions/index.d.ts +8 -14
- package/dist/commonjs/generated/classic/roleDefinitions/index.d.ts.map +1 -1
- package/dist/commonjs/generated/classic/roleDefinitions/index.js +7 -8
- package/dist/commonjs/generated/classic/roleDefinitions/index.js.map +1 -1
- package/dist/commonjs/generated/index.d.ts +2 -2
- package/dist/commonjs/generated/index.d.ts.map +1 -1
- package/dist/commonjs/generated/index.js +2 -2
- package/dist/commonjs/generated/index.js.map +1 -1
- package/dist/commonjs/generated/keyVaultClient.d.ts +27 -25
- package/dist/commonjs/generated/keyVaultClient.d.ts.map +1 -1
- package/dist/commonjs/generated/keyVaultClient.js +39 -35
- package/dist/commonjs/generated/keyVaultClient.js.map +1 -1
- package/dist/commonjs/generated/models/index.d.ts +1 -1
- package/dist/commonjs/generated/models/index.d.ts.map +1 -1
- package/dist/commonjs/generated/models/index.js +2 -2
- package/dist/commonjs/generated/models/index.js.map +1 -1
- package/dist/commonjs/generated/models/models.d.ts +90 -78
- package/dist/commonjs/generated/models/models.d.ts.map +1 -1
- package/dist/commonjs/generated/models/models.js +78 -70
- package/dist/commonjs/generated/models/models.js.map +1 -1
- package/dist/commonjs/generated/restorePollerHelpers.js +8 -8
- package/dist/commonjs/generated/restorePollerHelpers.js.map +1 -1
- package/dist/commonjs/lro/shim.d.ts +7 -0
- package/dist/commonjs/lro/shim.d.ts.map +1 -1
- package/dist/commonjs/lro/shim.js +17 -1
- package/dist/commonjs/lro/shim.js.map +1 -1
- package/dist/esm/backupClient.d.ts +130 -3
- package/dist/esm/backupClient.d.ts.map +1 -1
- package/dist/esm/backupClient.js +124 -31
- package/dist/esm/backupClient.js.map +1 -1
- package/dist/esm/backupClientModels.d.ts +15 -3
- package/dist/esm/backupClientModels.d.ts.map +1 -1
- package/dist/esm/backupClientModels.js.map +1 -1
- package/dist/esm/constants.d.ts +2 -2
- package/dist/esm/constants.d.ts.map +1 -1
- package/dist/esm/constants.js +2 -2
- package/dist/esm/constants.js.map +1 -1
- package/dist/esm/generated/api/index.d.ts +2 -2
- package/dist/esm/generated/api/index.d.ts.map +1 -1
- package/dist/esm/generated/api/index.js +1 -1
- package/dist/esm/generated/api/index.js.map +1 -1
- package/dist/esm/generated/api/keyVaultContext.d.ts +4 -1
- package/dist/esm/generated/api/keyVaultContext.d.ts.map +1 -1
- package/dist/esm/generated/api/keyVaultContext.js +4 -4
- package/dist/esm/generated/api/keyVaultContext.js.map +1 -1
- package/dist/esm/generated/api/operations.d.ts +42 -38
- package/dist/esm/generated/api/operations.d.ts.map +1 -1
- package/dist/esm/generated/api/operations.js +159 -119
- package/dist/esm/generated/api/operations.js.map +1 -1
- package/dist/esm/generated/api/options.d.ts +34 -42
- package/dist/esm/generated/api/options.d.ts.map +1 -1
- package/dist/esm/generated/api/options.js.map +1 -1
- package/dist/esm/generated/api/roleAssignments/index.d.ts +12 -12
- package/dist/esm/generated/api/roleAssignments/index.d.ts.map +1 -1
- package/dist/esm/generated/api/roleAssignments/index.js +58 -43
- package/dist/esm/generated/api/roleAssignments/index.js.map +1 -1
- package/dist/esm/generated/api/roleDefinitions/index.d.ts +12 -12
- package/dist/esm/generated/api/roleDefinitions/index.d.ts.map +1 -1
- package/dist/esm/generated/api/roleDefinitions/index.js +58 -43
- package/dist/esm/generated/api/roleDefinitions/index.js.map +1 -1
- package/dist/esm/generated/classic/roleAssignments/index.d.ts +8 -14
- package/dist/esm/generated/classic/roleAssignments/index.d.ts.map +1 -1
- package/dist/esm/generated/classic/roleAssignments/index.js +7 -7
- package/dist/esm/generated/classic/roleAssignments/index.js.map +1 -1
- package/dist/esm/generated/classic/roleDefinitions/index.d.ts +8 -14
- package/dist/esm/generated/classic/roleDefinitions/index.d.ts.map +1 -1
- package/dist/esm/generated/classic/roleDefinitions/index.js +7 -7
- package/dist/esm/generated/classic/roleDefinitions/index.js.map +1 -1
- package/dist/esm/generated/index.d.ts +2 -2
- package/dist/esm/generated/index.d.ts.map +1 -1
- package/dist/esm/generated/index.js +1 -1
- package/dist/esm/generated/index.js.map +1 -1
- package/dist/esm/generated/keyVaultClient.d.ts +27 -25
- package/dist/esm/generated/keyVaultClient.d.ts.map +1 -1
- package/dist/esm/generated/keyVaultClient.js +42 -38
- package/dist/esm/generated/keyVaultClient.js.map +1 -1
- package/dist/esm/generated/models/index.d.ts +1 -1
- package/dist/esm/generated/models/index.d.ts.map +1 -1
- package/dist/esm/generated/models/index.js +1 -1
- package/dist/esm/generated/models/index.js.map +1 -1
- package/dist/esm/generated/models/models.d.ts +90 -78
- package/dist/esm/generated/models/models.d.ts.map +1 -1
- package/dist/esm/generated/models/models.js +69 -61
- package/dist/esm/generated/models/models.js.map +1 -1
- package/dist/esm/generated/restorePollerHelpers.js +9 -9
- package/dist/esm/generated/restorePollerHelpers.js.map +1 -1
- package/dist/esm/lro/shim.d.ts +7 -0
- package/dist/esm/lro/shim.d.ts.map +1 -1
- package/dist/esm/lro/shim.js +16 -1
- package/dist/esm/lro/shim.js.map +1 -1
- package/package.json +1 -1
- package/dist/commonjs/generated/helpers/serializerHelpers.d.ts +0 -3
- package/dist/commonjs/generated/helpers/serializerHelpers.d.ts.map +0 -1
- package/dist/commonjs/generated/helpers/serializerHelpers.js +0 -28
- package/dist/commonjs/generated/helpers/serializerHelpers.js.map +0 -1
- package/dist/esm/generated/helpers/serializerHelpers.d.ts +0 -3
- package/dist/esm/generated/helpers/serializerHelpers.d.ts.map +0 -1
- package/dist/esm/generated/helpers/serializerHelpers.js +0 -25
- package/dist/esm/generated/helpers/serializerHelpers.js.map +0 -1
|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J,CAAC;AAED,MAAM,UAAU,+BAA+B,CAC7C,MAA6B;IAE7B,OAAO,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE;QACzB,OAAO,0BAA0B,CAAC,IAAI,CAAC,CAAC;IAC1C,CAAC,CAAC,CAAC;AACL,CAAC;AAED,kCAAkC;AAClC,MAAM,CAAN,IAAY,aAKX;AALD,WAAY,aAAa;IACvB,2BAA2B;IAC3B,6BAAc,CAAA;IACd,qCAAqC;IACrC,iDAAkC,CAAA;AACpC,CAAC,EALW,aAAa,KAAb,aAAa,QAKxB","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\n/** Full backup operation */\nexport interface FullBackupOperation {\n /** Status of the backup operation. */\n status?: OperationStatus;\n /** The status details of backup operation. */\n statusDetails?: string;\n /** Error encountered, if any, during the full backup operation. */\n error?: ErrorModel;\n /** The start time of the backup operation in UTC */\n startTime?: Date;\n /** The end time of the backup operation in UTC */\n endTime?: Date;\n /** Identifier for the full backup operation. */\n jobId?: string;\n /** The Azure blob storage container Uri which contains the full backup */\n folderUri?: string;\n}\n\nexport function fullBackupOperationDeserializer(\n item: any,\n): FullBackupOperation {\n return {\n status: item[\"status\"],\n statusDetails: item[\"statusDetails\"],\n error: !item[\"error\"] ? item[\"error\"] : errorDeserializer(item[\"error\"]),\n startTime: !item[\"startTime\"]\n ? item[\"startTime\"]\n : new Date(item[\"startTime\"] * 1000),\n endTime: !item[\"endTime\"]\n ? item[\"endTime\"]\n : new Date(item[\"endTime\"] * 1000),\n jobId: item[\"jobId\"],\n folderUri: item[\"azureStorageBlobContainerUri\"],\n };\n}\n\n/** The status of a long-running operation. */\nexport enum KnownOperationStatus {\n /** The operation is in progress. */\n InProgress = \"InProgress\",\n /** The operation successfully completed. */\n Succeeded = \"Succeeded\",\n /** The operation was canceled. */\n Canceled = \"Canceled\",\n /** The operation failed. */\n Failed = \"Failed\",\n}\n\n/**\n * The status of a long-running operation. \\\n * {@link KnownOperationStatus} can be used interchangeably with OperationStatus,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **InProgress**: The operation is in progress. \\\n * **Succeeded**: The operation successfully completed. \\\n * **Canceled**: The operation was canceled. \\\n * **Failed**: The operation failed.\n */\nexport type OperationStatus = string;\n\n/** The key vault server error. */\nexport interface ErrorModel {\n /** The error code. */\n readonly code?: string;\n /** The error message. */\n readonly message?: string;\n /** The key vault server error. */\n readonly innerError?: ErrorModel;\n}\n\nexport function errorDeserializer(item: any): ErrorModel {\n return {\n code: item[\"code\"],\n message: item[\"message\"],\n innerError: !item[\"innererror\"]\n ? item[\"innererror\"]\n : errorDeserializer(item[\"innererror\"]),\n };\n}\n\n/** The key vault error exception. */\nexport interface KeyVaultError {\n /** The key vault server error. */\n readonly error?: ErrorModel;\n}\n\nexport function keyVaultErrorDeserializer(item: any): KeyVaultError {\n return {\n error: !item[\"error\"] ? item[\"error\"] : errorDeserializer(item[\"error\"]),\n };\n}\n\n/** An authentication method and location for the operation. */\nexport interface SASTokenParameter {\n /** Azure Blob storage container Uri */\n storageResourceUri: string;\n /** The SAS token pointing to an Azure Blob storage container */\n token?: string;\n /** Indicates which authentication method should be used. If set to true, Managed HSM will use the configured user-assigned managed identity to authenticate with Azure Storage. Otherwise, a SAS token has to be specified. */\n useManagedIdentity?: boolean;\n}\n\nexport function sASTokenParameterSerializer(item: SASTokenParameter): any {\n return {\n storageResourceUri: item[\"storageResourceUri\"],\n token: item[\"token\"],\n useManagedIdentity: item[\"useManagedIdentity\"],\n };\n}\n\n/** The authentication method and location for the backup operation. */\nexport interface PreBackupOperationParameters {\n /** Azure Blob storage container Uri */\n storageResourceUri?: string;\n /** The SAS token pointing to an Azure Blob storage container */\n token?: string;\n /** Indicates which authentication method should be used. If set to true, Managed HSM will use the configured user-assigned managed identity to authenticate with Azure Storage. Otherwise, a SAS token has to be specified. */\n useManagedIdentity?: boolean;\n}\n\nexport function preBackupOperationParametersSerializer(\n item: PreBackupOperationParameters,\n): any {\n return {\n storageResourceUri: item[\"storageResourceUri\"],\n token: item[\"token\"],\n useManagedIdentity: item[\"useManagedIdentity\"],\n };\n}\n\n/** Restore operation */\nexport interface RestoreOperation {\n /** Status of the restore operation. */\n status?: OperationStatus;\n /** The status details of restore operation. */\n statusDetails?: string;\n /** Error encountered, if any, during the restore operation. */\n error?: ErrorModel;\n /** Identifier for the restore operation. */\n jobId?: string;\n /** The start time of the restore operation */\n startTime?: Date;\n /** The end time of the restore operation */\n endTime?: Date;\n}\n\nexport function restoreOperationDeserializer(item: any): RestoreOperation {\n return {\n status: item[\"status\"],\n statusDetails: item[\"statusDetails\"],\n error: !item[\"error\"] ? item[\"error\"] : errorDeserializer(item[\"error\"]),\n jobId: item[\"jobId\"],\n startTime: !item[\"startTime\"]\n ? item[\"startTime\"]\n : new Date(item[\"startTime\"] * 1000),\n endTime: !item[\"endTime\"]\n ? item[\"endTime\"]\n : new Date(item[\"endTime\"] * 1000),\n };\n}\n\n/** The authentication method and location for the restore operation. */\nexport interface PreRestoreOperationParameters {\n /** A user-provided SAS token to an Azure blob storage container. */\n sasTokenParameters?: SASTokenParameter;\n /** The Folder name of the blob where the previous successful full backup was stored */\n folderToRestore?: string;\n}\n\nexport function preRestoreOperationParametersSerializer(\n item: PreRestoreOperationParameters,\n): any {\n return {\n sasTokenParameters: !item[\"sasTokenParameters\"]\n ? item[\"sasTokenParameters\"]\n : sASTokenParameterSerializer(item[\"sasTokenParameters\"]),\n folderToRestore: item[\"folderToRestore\"],\n };\n}\n\n/** The authentication method and location for the restore operation. */\nexport interface RestoreOperationParameters {\n /** A user-provided SAS token to an Azure blob storage container. */\n sasTokenParameters: SASTokenParameter;\n /** The Folder name of the blob where the previous successful full backup was stored */\n folderToRestore: string;\n}\n\nexport function restoreOperationParametersSerializer(\n item: RestoreOperationParameters,\n): any {\n return {\n sasTokenParameters: sASTokenParameterSerializer(item[\"sasTokenParameters\"]),\n folderToRestore: item[\"folderToRestore\"],\n };\n}\n\n/** The authentication method and location for the selective key restore operation. */\nexport interface SelectiveKeyRestoreOperationParameters {\n /** A user-provided SAS token to an Azure blob storage container. */\n sasTokenParameters: SASTokenParameter;\n /** The Folder name of the blob where the previous successful full backup was stored */\n folder: string;\n}\n\nexport function selectiveKeyRestoreOperationParametersSerializer(\n item: SelectiveKeyRestoreOperationParameters,\n): any {\n return {\n sasTokenParameters: sASTokenParameterSerializer(item[\"sasTokenParameters\"]),\n folder: item[\"folder\"],\n };\n}\n\n/** Selective Key Restore operation */\nexport interface SelectiveKeyRestoreOperation {\n /** Status of the restore operation. */\n status?: OperationStatus;\n /** The status details of restore operation. */\n statusDetails?: string;\n /** Error encountered, if any, during the selective key restore operation. */\n error?: ErrorModel;\n /** Identifier for the selective key restore operation. */\n jobId?: string;\n /** The start time of the restore operation */\n startTime?: Date;\n /** The end time of the restore operation */\n endTime?: Date;\n}\n\nexport function selectiveKeyRestoreOperationDeserializer(\n item: any,\n): SelectiveKeyRestoreOperation {\n return {\n status: item[\"status\"],\n statusDetails: item[\"statusDetails\"],\n error: !item[\"error\"] ? item[\"error\"] : errorDeserializer(item[\"error\"]),\n jobId: item[\"jobId\"],\n startTime: !item[\"startTime\"]\n ? item[\"startTime\"]\n : new Date(item[\"startTime\"] * 1000),\n endTime: !item[\"endTime\"]\n ? item[\"endTime\"]\n : new Date(item[\"endTime\"] * 1000),\n };\n}\n\n/** The update settings request object. */\nexport interface UpdateSettingRequest {\n /** The value of the pool setting. */\n value: string;\n}\n\nexport function updateSettingRequestSerializer(\n item: UpdateSettingRequest,\n): any {\n return { value: item[\"value\"] };\n}\n\n/** A Key Vault account setting. */\nexport interface Setting {\n /** The account setting to be updated */\n name: string;\n /** The value of the pool setting. */\n value: string;\n /** The type specifier of the value. */\n type?: SettingTypeEnum;\n}\n\nexport function settingDeserializer(item: any): Setting {\n return {\n name: item[\"name\"],\n value: item[\"value\"],\n type: item[\"type\"],\n };\n}\n\n/** The type specifier of the value. */\nexport enum KnownSettingTypeEnum {\n /** A boolean setting value. */\n boolean = \"boolean\",\n}\n\n/**\n * The type specifier of the value. \\\n * {@link KnownSettingTypeEnum} can be used interchangeably with SettingTypeEnum,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **boolean**: A boolean setting value.\n */\nexport type SettingTypeEnum = string;\n\n/** The settings list result. */\nexport interface SettingsListResult {\n /** A response message containing a list of account settings with their associated value. */\n readonly settings?: Setting[];\n}\n\nexport function settingsListResultDeserializer(item: any): SettingsListResult {\n return {\n settings: !item[\"settings\"]\n ? item[\"settings\"]\n : settingArrayDeserializer(item[\"settings\"]),\n };\n}\n\nexport function settingArrayDeserializer(result: Array<Setting>): any[] {\n return result.map((item) => {\n return settingDeserializer(item);\n });\n}\n\n/** Role definition. */\nexport interface RoleDefinition {\n /** The role definition ID. */\n readonly id?: string;\n /** The role definition name. */\n readonly name?: string;\n /** The role definition type. */\n readonly type?: RoleDefinitionType;\n /** Role definition properties. */\n properties?: RoleDefinitionProperties;\n}\n\nexport function roleDefinitionDeserializer(item: any): RoleDefinition {\n return {\n id: item[\"id\"],\n name: item[\"name\"],\n type: item[\"type\"],\n properties: !item[\"properties\"]\n ? item[\"properties\"]\n : roleDefinitionPropertiesDeserializer(item[\"properties\"]),\n };\n}\n\n/** The role definition type. */\nexport enum KnownRoleDefinitionType {\n /** Microsoft-defined role definitions. */\n \"Microsoft.Authorization/roleDefinitions\" = \"Microsoft.Authorization/roleDefinitions\",\n}\n\n/**\n * The role definition type. \\\n * {@link KnownRoleDefinitionType} can be used interchangeably with RoleDefinitionType,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **Microsoft.Authorization\\/roleDefinitions**: Microsoft-defined role definitions.\n */\nexport type RoleDefinitionType = string;\n\n/** Role definition properties. */\nexport interface RoleDefinitionProperties {\n /** The role name. */\n roleName?: string;\n /** The role definition description. */\n description?: string;\n /** The role type. */\n roleType?: RoleType;\n /** Role definition permissions. */\n permissions?: Permission[];\n /** Role definition assignable scopes. */\n assignableScopes?: RoleScope[];\n}\n\nexport function roleDefinitionPropertiesSerializer(\n item: RoleDefinitionProperties,\n): any {\n return {\n roleName: item[\"roleName\"],\n description: item[\"description\"],\n type: item[\"roleType\"],\n permissions: !item[\"permissions\"]\n ? item[\"permissions\"]\n : permissionArraySerializer(item[\"permissions\"]),\n assignableScopes: !item[\"assignableScopes\"]\n ? item[\"assignableScopes\"]\n : item[\"assignableScopes\"].map((p: any) => {\n return p;\n }),\n };\n}\n\nexport function roleDefinitionPropertiesDeserializer(\n item: any,\n): RoleDefinitionProperties {\n return {\n roleName: item[\"roleName\"],\n description: item[\"description\"],\n roleType: item[\"type\"],\n permissions: !item[\"permissions\"]\n ? item[\"permissions\"]\n : permissionArrayDeserializer(item[\"permissions\"]),\n assignableScopes: !item[\"assignableScopes\"]\n ? item[\"assignableScopes\"]\n : item[\"assignableScopes\"].map((p: any) => {\n return p;\n }),\n };\n}\n\n/** The role type. */\nexport enum KnownRoleType {\n /** Built in role. */\n BuiltInRole = \"AKVBuiltInRole\",\n /** Custom role. */\n CustomRole = \"CustomRole\",\n}\n\n/**\n * The role type. \\\n * {@link KnownRoleType} can be used interchangeably with RoleType,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **AKVBuiltInRole**: Built in role. \\\n * **CustomRole**: Custom role.\n */\nexport type RoleType = string;\n\nexport function permissionArraySerializer(result: Array<Permission>): any[] {\n return result.map((item) => {\n return permissionSerializer(item);\n });\n}\n\nexport function permissionArrayDeserializer(result: Array<Permission>): any[] {\n return result.map((item) => {\n return permissionDeserializer(item);\n });\n}\n\n/** Role definition permissions. */\nexport interface Permission {\n /** Action permissions that are granted. */\n actions?: string[];\n /** Action permissions that are excluded but not denied. They may be granted by other role definitions assigned to a principal. */\n notActions?: string[];\n /** Data action permissions that are granted. */\n dataActions?: DataAction[];\n /** Data action permissions that are excluded but not denied. They may be granted by other role definitions assigned to a principal. */\n notDataActions?: DataAction[];\n}\n\nexport function permissionSerializer(item: Permission): any {\n return {\n actions: !item[\"actions\"]\n ? item[\"actions\"]\n : item[\"actions\"].map((p: any) => {\n return p;\n }),\n notActions: !item[\"notActions\"]\n ? item[\"notActions\"]\n : item[\"notActions\"].map((p: any) => {\n return p;\n }),\n dataActions: !item[\"dataActions\"]\n ? item[\"dataActions\"]\n : item[\"dataActions\"].map((p: any) => {\n return p;\n }),\n notDataActions: !item[\"notDataActions\"]\n ? item[\"notDataActions\"]\n : item[\"notDataActions\"].map((p: any) => {\n return p;\n }),\n };\n}\n\nexport function permissionDeserializer(item: any): Permission {\n return {\n actions: !item[\"actions\"]\n ? item[\"actions\"]\n : item[\"actions\"].map((p: any) => {\n return p;\n }),\n notActions: !item[\"notActions\"]\n ? item[\"notActions\"]\n : item[\"notActions\"].map((p: any) => {\n return p;\n }),\n dataActions: !item[\"dataActions\"]\n ? item[\"dataActions\"]\n : item[\"dataActions\"].map((p: any) => {\n return p;\n }),\n notDataActions: !item[\"notDataActions\"]\n ? item[\"notDataActions\"]\n : item[\"notDataActions\"].map((p: any) => {\n return p;\n }),\n };\n}\n\n/** Supported permissions for data actions. */\nexport enum KnownDataAction {\n /** Read HSM key metadata. */\n ReadHsmKey = \"Microsoft.KeyVault/managedHsm/keys/read/action\",\n /** Update an HSM key. */\n WriteHsmKey = \"Microsoft.KeyVault/managedHsm/keys/write/action\",\n /** Read deleted HSM key. */\n ReadDeletedHsmKey = \"Microsoft.KeyVault/managedHsm/keys/deletedKeys/read/action\",\n /** Recover deleted HSM key. */\n RecoverDeletedHsmKey = \"Microsoft.KeyVault/managedHsm/keys/deletedKeys/recover/action\",\n /** Backup HSM keys. */\n BackupHsmKeys = \"Microsoft.KeyVault/managedHsm/keys/backup/action\",\n /** Restore HSM keys. */\n RestoreHsmKeys = \"Microsoft.KeyVault/managedHsm/keys/restore/action\",\n /** Delete role assignment. */\n DeleteRoleAssignment = \"Microsoft.KeyVault/managedHsm/roleAssignments/delete/action\",\n /** Get role assignment. */\n GetRoleAssignment = \"Microsoft.KeyVault/managedHsm/roleAssignments/read/action\",\n /** Create or update role assignment. */\n WriteRoleAssignment = \"Microsoft.KeyVault/managedHsm/roleAssignments/write/action\",\n /** Get role definition. */\n ReadRoleDefinition = \"Microsoft.KeyVault/managedHsm/roleDefinitions/read/action\",\n /** Create or update role definition. */\n WriteRoleDefinition = \"Microsoft.KeyVault/managedHsm/roleDefinitions/write/action\",\n /** Delete role definition. */\n DeleteRoleDefinition = \"Microsoft.KeyVault/managedHsm/roleDefinitions/delete/action\",\n /** Encrypt using an HSM key. */\n EncryptHsmKey = \"Microsoft.KeyVault/managedHsm/keys/encrypt/action\",\n /** Decrypt using an HSM key. */\n DecryptHsmKey = \"Microsoft.KeyVault/managedHsm/keys/decrypt/action\",\n /** Wrap using an HSM key. */\n WrapHsmKey = \"Microsoft.KeyVault/managedHsm/keys/wrap/action\",\n /** Unwrap using an HSM key. */\n UnwrapHsmKey = \"Microsoft.KeyVault/managedHsm/keys/unwrap/action\",\n /** Sign using an HSM key. */\n SignHsmKey = \"Microsoft.KeyVault/managedHsm/keys/sign/action\",\n /** Verify using an HSM key. */\n VerifyHsmKey = \"Microsoft.KeyVault/managedHsm/keys/verify/action\",\n /** Create an HSM key. */\n CreateHsmKey = \"Microsoft.KeyVault/managedHsm/keys/create\",\n /** Delete an HSM key. */\n DeleteHsmKey = \"Microsoft.KeyVault/managedHsm/keys/delete\",\n /** Export an HSM key. */\n ExportHsmKey = \"Microsoft.KeyVault/managedHsm/keys/export/action\",\n /** Release an HSM key using Secure Key Release. */\n ReleaseKey = \"Microsoft.KeyVault/managedHsm/keys/release/action\",\n /** Import an HSM key. */\n ImportHsmKey = \"Microsoft.KeyVault/managedHsm/keys/import/action\",\n /** Purge a deleted HSM key. */\n PurgeDeletedHsmKey = \"Microsoft.KeyVault/managedHsm/keys/deletedKeys/delete\",\n /** Download an HSM security domain. */\n DownloadHsmSecurityDomain = \"Microsoft.KeyVault/managedHsm/securitydomain/download/action\",\n /** Check status of HSM security domain download. */\n DownloadHsmSecurityDomainStatus = \"Microsoft.KeyVault/managedHsm/securitydomain/download/read\",\n /** Upload an HSM security domain. */\n UploadHsmSecurityDomain = \"Microsoft.KeyVault/managedHsm/securitydomain/upload/action\",\n /** Check the status of the HSM security domain exchange file. */\n ReadHsmSecurityDomainStatus = \"Microsoft.KeyVault/managedHsm/securitydomain/upload/read\",\n /** Download an HSM security domain transfer key. */\n ReadHsmSecurityDomainTransferKey = \"Microsoft.KeyVault/managedHsm/securitydomain/transferkey/read\",\n /** Start an HSM backup. */\n StartHsmBackup = \"Microsoft.KeyVault/managedHsm/backup/start/action\",\n /** Start an HSM restore. */\n StartHsmRestore = \"Microsoft.KeyVault/managedHsm/restore/start/action\",\n /** Read an HSM backup status. */\n ReadHsmBackupStatus = \"Microsoft.KeyVault/managedHsm/backup/status/action\",\n /** Read an HSM restore status. */\n ReadHsmRestoreStatus = \"Microsoft.KeyVault/managedHsm/restore/status/action\",\n /** Generate random numbers. */\n RandomNumbersGenerate = \"Microsoft.KeyVault/managedHsm/rng/action\",\n}\n\n/**\n * Supported permissions for data actions. \\\n * {@link KnownDataAction} can be used interchangeably with DataAction,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **Microsoft.KeyVault\\/managedHsm\\/keys\\/read\\/action**: Read HSM key metadata. \\\n * **Microsoft.KeyVault\\/managedHsm\\/keys\\/write\\/action**: Update an HSM key. \\\n * **Microsoft.KeyVault\\/managedHsm\\/keys\\/deletedKeys\\/read\\/action**: Read deleted HSM key. \\\n * **Microsoft.KeyVault\\/managedHsm\\/keys\\/deletedKeys\\/recover\\/action**: Recover deleted HSM key. \\\n * **Microsoft.KeyVault\\/managedHsm\\/keys\\/backup\\/action**: Backup HSM keys. \\\n * **Microsoft.KeyVault\\/managedHsm\\/keys\\/restore\\/action**: Restore HSM keys. \\\n * **Microsoft.KeyVault\\/managedHsm\\/roleAssignments\\/delete\\/action**: Delete role assignment. \\\n * **Microsoft.KeyVault\\/managedHsm\\/roleAssignments\\/read\\/action**: Get role assignment. \\\n * **Microsoft.KeyVault\\/managedHsm\\/roleAssignments\\/write\\/action**: Create or update role assignment. \\\n * **Microsoft.KeyVault\\/managedHsm\\/roleDefinitions\\/read\\/action**: Get role definition. \\\n * **Microsoft.KeyVault\\/managedHsm\\/roleDefinitions\\/write\\/action**: Create or update role definition. \\\n * **Microsoft.KeyVault\\/managedHsm\\/roleDefinitions\\/delete\\/action**: Delete role definition. \\\n * **Microsoft.KeyVault\\/managedHsm\\/keys\\/encrypt\\/action**: Encrypt using an HSM key. \\\n * **Microsoft.KeyVault\\/managedHsm\\/keys\\/decrypt\\/action**: Decrypt using an HSM key. \\\n * **Microsoft.KeyVault\\/managedHsm\\/keys\\/wrap\\/action**: Wrap using an HSM key. \\\n * **Microsoft.KeyVault\\/managedHsm\\/keys\\/unwrap\\/action**: Unwrap using an HSM key. \\\n * **Microsoft.KeyVault\\/managedHsm\\/keys\\/sign\\/action**: Sign using an HSM key. \\\n * **Microsoft.KeyVault\\/managedHsm\\/keys\\/verify\\/action**: Verify using an HSM key. \\\n * **Microsoft.KeyVault\\/managedHsm\\/keys\\/create**: Create an HSM key. \\\n * **Microsoft.KeyVault\\/managedHsm\\/keys\\/delete**: Delete an HSM key. \\\n * **Microsoft.KeyVault\\/managedHsm\\/keys\\/export\\/action**: Export an HSM key. \\\n * **Microsoft.KeyVault\\/managedHsm\\/keys\\/release\\/action**: Release an HSM key using Secure Key Release. \\\n * **Microsoft.KeyVault\\/managedHsm\\/keys\\/import\\/action**: Import an HSM key. \\\n * **Microsoft.KeyVault\\/managedHsm\\/keys\\/deletedKeys\\/delete**: Purge a deleted HSM key. \\\n * **Microsoft.KeyVault\\/managedHsm\\/securitydomain\\/download\\/action**: Download an HSM security domain. \\\n * **Microsoft.KeyVault\\/managedHsm\\/securitydomain\\/download\\/read**: Check status of HSM security domain download. \\\n * **Microsoft.KeyVault\\/managedHsm\\/securitydomain\\/upload\\/action**: Upload an HSM security domain. \\\n * **Microsoft.KeyVault\\/managedHsm\\/securitydomain\\/upload\\/read**: Check the status of the HSM security domain exchange file. \\\n * **Microsoft.KeyVault\\/managedHsm\\/securitydomain\\/transferkey\\/read**: Download an HSM security domain transfer key. \\\n * **Microsoft.KeyVault\\/managedHsm\\/backup\\/start\\/action**: Start an HSM backup. \\\n * **Microsoft.KeyVault\\/managedHsm\\/restore\\/start\\/action**: Start an HSM restore. \\\n * **Microsoft.KeyVault\\/managedHsm\\/backup\\/status\\/action**: Read an HSM backup status. \\\n * **Microsoft.KeyVault\\/managedHsm\\/restore\\/status\\/action**: Read an HSM restore status. \\\n * **Microsoft.KeyVault\\/managedHsm\\/rng\\/action**: Generate random numbers.\n */\nexport type DataAction = string;\n\n/** The role scope. */\nexport enum KnownRoleScope {\n /** Global scope */\n Global = \"/\",\n /** Keys scope */\n Keys = \"/keys\",\n}\n\n/**\n * The role scope. \\\n * {@link KnownRoleScope} can be used interchangeably with RoleScope,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **\\/**: Global scope \\\n * **\\/keys**: Keys scope\n */\nexport type RoleScope = string;\n\n/** Role definition create parameters. */\nexport interface RoleDefinitionCreateParameters {\n /** Role definition properties. */\n properties: RoleDefinitionProperties;\n}\n\nexport function roleDefinitionCreateParametersSerializer(\n item: RoleDefinitionCreateParameters,\n): any {\n return { properties: roleDefinitionPropertiesSerializer(item[\"properties\"]) };\n}\n\n/** Role definition list operation result. */\nexport interface _RoleDefinitionListResult {\n /** Role definition list. */\n value?: RoleDefinition[];\n /** The URL to use for getting the next set of results. */\n nextLink?: string;\n}\n\nexport function _roleDefinitionListResultDeserializer(\n item: any,\n): _RoleDefinitionListResult {\n return {\n value: !item[\"value\"]\n ? item[\"value\"]\n : roleDefinitionArrayDeserializer(item[\"value\"]),\n nextLink: item[\"nextLink\"],\n };\n}\n\nexport function roleDefinitionArrayDeserializer(\n result: Array<RoleDefinition>,\n): any[] {\n return result.map((item) => {\n return roleDefinitionDeserializer(item);\n });\n}\n\n/** Role Assignments */\nexport interface RoleAssignment {\n /** The role assignment ID. */\n readonly id?: string;\n /** The role assignment name. */\n readonly name?: string;\n /** The role assignment type. */\n readonly type?: string;\n /** Role assignment properties. */\n properties?: RoleAssignmentPropertiesWithScope;\n}\n\nexport function roleAssignmentDeserializer(item: any): RoleAssignment {\n return {\n id: item[\"id\"],\n name: item[\"name\"],\n type: item[\"type\"],\n properties: !item[\"properties\"]\n ? item[\"properties\"]\n : roleAssignmentPropertiesWithScopeDeserializer(item[\"properties\"]),\n };\n}\n\n/** Role assignment properties with scope. */\nexport interface RoleAssignmentPropertiesWithScope {\n /** The role scope. */\n scope?: RoleScope;\n /** The role definition ID. */\n roleDefinitionId?: string;\n /** The principal ID. */\n principalId?: string;\n}\n\nexport function roleAssignmentPropertiesWithScopeDeserializer(\n item: any,\n): RoleAssignmentPropertiesWithScope {\n return {\n scope: item[\"scope\"],\n roleDefinitionId: item[\"roleDefinitionId\"],\n principalId: item[\"principalId\"],\n };\n}\n\n/** Role assignment create parameters. */\nexport interface RoleAssignmentCreateParameters {\n /** Role assignment properties. */\n properties: RoleAssignmentProperties;\n}\n\nexport function roleAssignmentCreateParametersSerializer(\n item: RoleAssignmentCreateParameters,\n): any {\n return { properties: roleAssignmentPropertiesSerializer(item[\"properties\"]) };\n}\n\n/** Role assignment properties. */\nexport interface RoleAssignmentProperties {\n /** The role definition ID used in the role assignment. */\n roleDefinitionId: string;\n /** The principal ID assigned to the role. This maps to the ID inside the Active Directory. It can point to a user, service principal, or security group. */\n principalId: string;\n}\n\nexport function roleAssignmentPropertiesSerializer(\n item: RoleAssignmentProperties,\n): any {\n return {\n roleDefinitionId: item[\"roleDefinitionId\"],\n principalId: item[\"principalId\"],\n };\n}\n\n/** Role assignment list operation result. */\nexport interface _RoleAssignmentListResult {\n /** Role assignment list. */\n value?: RoleAssignment[];\n /** The URL to use for getting the next set of results. */\n nextLink?: string;\n}\n\nexport function _roleAssignmentListResultDeserializer(\n item: any,\n): _RoleAssignmentListResult {\n return {\n value: !item[\"value\"]\n ? item[\"value\"]\n : roleAssignmentArrayDeserializer(item[\"value\"]),\n nextLink: item[\"nextLink\"],\n };\n}\n\nexport function roleAssignmentArrayDeserializer(\n result: Array<RoleAssignment>,\n): any[] {\n return result.map((item) => {\n return roleAssignmentDeserializer(item);\n });\n}\n\n/** The available API versions. */\nexport enum KnownVersions {\n /** The 7.5 API version. */\n \"v7.5\" = \"7.5\",\n /** The 7.6-preview.1 API version. */\n \"v7.6_preview.1\" = \"7.6-preview.1\",\n}\n"]}
|
|
1
|
+
{"version":3,"file":"models.js","sourceRoot":"","sources":["../../../../src/generated/models/models.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAoBlC,MAAM,UAAU,+BAA+B,CAC7C,IAAS;IAET,OAAO;QACL,MAAM,EAAE,IAAI,CAAC,QAAQ,CAAC;QACtB,aAAa,EAAE,IAAI,CAAC,eAAe,CAAC;QACpC,KAAK,EAAE,CAAC,IAAI,CAAC,OAAO,CAAC;YACnB,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC;YACf,CAAC,CAAC,qCAAqC,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxD,SAAS,EAAE,CAAC,IAAI,CAAC,WAAW,CAAC;YAC3B,CAAC,CAAC,IAAI,CAAC,WAAW,CAAC;YACnB,CAAC,CAAC,IAAI,IAAI,CAAC,IAAI,CAAC,WAAW,CAAC,GAAG,IAAI,CAAC;QACtC,OAAO,EAAE,CAAC,IAAI,CAAC,SAAS,CAAC;YACvB,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC;YACjB,CAAC,CAAC,IAAI,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,GAAG,IAAI,CAAC;QACpC,KAAK,EAAE,IAAI,CAAC,OAAO,CAAC;QACpB,SAAS,EAAE,IAAI,CAAC,8BAA8B,CAAC;KAChD,CAAC;AACJ,CAAC;AAED,8CAA8C;AAC9C,MAAM,CAAN,IAAY,oBASX;AATD,WAAY,oBAAoB;IAC9B,oCAAoC;IACpC,i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AAC;AAChF,CAAC;AAUD,MAAM,UAAU,qCAAqC,CACnD,IAAS;IAET,OAAO;QACL,KAAK,EAAE,CAAC,IAAI,CAAC,OAAO,CAAC;YACnB,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC;YACf,CAAC,CAAC,+BAA+B,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAClD,QAAQ,EAAE,IAAI,CAAC,UAAU,CAAC;KAC3B,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,+BAA+B,CAC7C,MAA6B;IAE7B,OAAO,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE;QACzB,OAAO,0BAA0B,CAAC,IAAI,CAAC,CAAC;IAC1C,CAAC,CAAC,CAAC;AACL,CAAC;AAED,kCAAkC;AAClC,MAAM,CAAN,IAAY,aAKX;AALD,WAAY,aAAa;IACvB,2BAA2B;IAC3B,6BAAc,CAAA;IACd,qCAAqC;IACrC,iDAAkC,CAAA;AACpC,CAAC,EALW,aAAa,KAAb,aAAa,QAKxB","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\n/** Full backup operation */\nexport interface FullBackupOperation {\n /** Status of the backup operation. */\n status?: OperationStatus;\n /** The status details of backup operation. */\n statusDetails?: string;\n /** Error encountered, if any, during the full backup operation. */\n error?: ErrorModel;\n /** The start time of the backup operation in UTC */\n startTime?: Date;\n /** The end time of the backup operation in UTC */\n endTime?: Date | null;\n /** Identifier for the full backup operation. */\n jobId?: string;\n /** The Azure blob storage container Uri which contains the full backup */\n folderUri?: string;\n}\n\nexport function fullBackupOperationDeserializer(\n item: any,\n): FullBackupOperation {\n return {\n status: item[\"status\"],\n statusDetails: item[\"statusDetails\"],\n error: !item[\"error\"]\n ? item[\"error\"]\n : _fullBackupOperationErrorDeserializer(item[\"error\"]),\n startTime: !item[\"startTime\"]\n ? item[\"startTime\"]\n : new Date(item[\"startTime\"] * 1000),\n endTime: !item[\"endTime\"]\n ? item[\"endTime\"]\n : new Date(item[\"endTime\"] * 1000),\n jobId: item[\"jobId\"],\n folderUri: item[\"azureStorageBlobContainerUri\"],\n };\n}\n\n/** The status of a long-running operation. */\nexport enum KnownOperationStatus {\n /** The operation is in progress. */\n InProgress = \"InProgress\",\n /** The operation successfully completed. */\n Succeeded = \"Succeeded\",\n /** The operation was canceled. */\n Canceled = \"Canceled\",\n /** The operation failed. */\n Failed = \"Failed\",\n}\n\n/**\n * The status of a long-running operation. \\\n * {@link KnownOperationStatus} can be used interchangeably with OperationStatus,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **InProgress**: The operation is in progress. \\\n * **Succeeded**: The operation successfully completed. \\\n * **Canceled**: The operation was canceled. \\\n * **Failed**: The operation failed.\n */\nexport type OperationStatus = string;\n/** Alias for ErrorModel */\nexport type ErrorModel = {\n code?: string;\n message?: string;\n innerError?: ErrorModel_1;\n} | null;\n\n/** model interface _FullBackupOperationError */\nexport interface _FullBackupOperationError {\n /** The error code. */\n readonly code?: string;\n /** The error message. */\n readonly message?: string;\n /** The key vault server error. */\n readonly innerError?: ErrorModel_1;\n}\n\nexport function _fullBackupOperationErrorDeserializer(\n item: any,\n): _FullBackupOperationError {\n return {\n code: item[\"code\"],\n message: item[\"message\"],\n innerError: !item[\"innererror\"]\n ? item[\"innererror\"]\n : _fullBackupOperationErrorDeserializer(item[\"innererror\"]),\n };\n}\n\n/** Alias for ErrorModel */\nexport type ErrorModel_1 = {\n code?: string;\n message?: string;\n innerError?: ErrorModel_1;\n} | null;\n\n/** The key vault error exception. */\nexport interface KeyVaultError {\n /** The key vault server error. */\n readonly error?: ErrorModel;\n}\n\nexport function keyVaultErrorDeserializer(item: any): KeyVaultError {\n return {\n error: !item[\"error\"]\n ? item[\"error\"]\n : _fullBackupOperationErrorDeserializer(item[\"error\"]),\n };\n}\n\n/** An authentication method and location for the operation. */\nexport interface SASTokenParameter {\n /** Azure Blob storage container Uri */\n storageResourceUri: string;\n /** The SAS token pointing to an Azure Blob storage container */\n token?: string;\n /** Indicates which authentication method should be used. If set to true, Managed HSM will use the configured user-assigned managed identity to authenticate with Azure Storage. Otherwise, a SAS token has to be specified. */\n useManagedIdentity?: boolean;\n}\n\nexport function sASTokenParameterSerializer(item: SASTokenParameter): any {\n return {\n storageResourceUri: item[\"storageResourceUri\"],\n token: item[\"token\"],\n useManagedIdentity: item[\"useManagedIdentity\"],\n };\n}\n\n/** The authentication method and location for the backup operation. */\nexport interface PreBackupOperationParameters {\n /** Azure Blob storage container Uri */\n storageResourceUri?: string;\n /** The SAS token pointing to an Azure Blob storage container */\n token?: string;\n /** Indicates which authentication method should be used. If set to true, Managed HSM will use the configured user-assigned managed identity to authenticate with Azure Storage. Otherwise, a SAS token has to be specified. */\n useManagedIdentity?: boolean;\n}\n\nexport function preBackupOperationParametersSerializer(\n item: PreBackupOperationParameters,\n): any {\n return {\n storageResourceUri: item[\"storageResourceUri\"],\n token: item[\"token\"],\n useManagedIdentity: item[\"useManagedIdentity\"],\n };\n}\n\n/** Restore operation */\nexport interface RestoreOperation {\n /** Status of the restore operation. */\n status?: OperationStatus;\n /** The status details of restore operation. */\n statusDetails?: string;\n /** Error encountered, if any, during the restore operation. */\n error?: ErrorModel;\n /** Identifier for the restore operation. */\n jobId?: string;\n /** The start time of the restore operation */\n startTime?: Date;\n /** The end time of the restore operation */\n endTime?: Date | null;\n}\n\nexport function restoreOperationDeserializer(item: any): RestoreOperation {\n return {\n status: item[\"status\"],\n statusDetails: item[\"statusDetails\"],\n error: !item[\"error\"]\n ? item[\"error\"]\n : _fullBackupOperationErrorDeserializer(item[\"error\"]),\n jobId: item[\"jobId\"],\n startTime: !item[\"startTime\"]\n ? item[\"startTime\"]\n : new Date(item[\"startTime\"] * 1000),\n endTime: !item[\"endTime\"]\n ? item[\"endTime\"]\n : new Date(item[\"endTime\"] * 1000),\n };\n}\n\n/** The authentication method and location for the restore operation. */\nexport interface PreRestoreOperationParameters {\n /** A user-provided SAS token to an Azure blob storage container. */\n sasTokenParameters?: SASTokenParameter;\n /** The Folder name of the blob where the previous successful full backup was stored */\n folderToRestore?: string;\n}\n\nexport function preRestoreOperationParametersSerializer(\n item: PreRestoreOperationParameters,\n): any {\n return {\n sasTokenParameters: !item[\"sasTokenParameters\"]\n ? item[\"sasTokenParameters\"]\n : sASTokenParameterSerializer(item[\"sasTokenParameters\"]),\n folderToRestore: item[\"folderToRestore\"],\n };\n}\n\n/** The authentication method and location for the restore operation. */\nexport interface RestoreOperationParameters {\n /** A user-provided SAS token to an Azure blob storage container. */\n sasTokenParameters: SASTokenParameter;\n /** The Folder name of the blob where the previous successful full backup was stored */\n folderToRestore: string;\n}\n\nexport function restoreOperationParametersSerializer(\n item: RestoreOperationParameters,\n): any {\n return {\n sasTokenParameters: sASTokenParameterSerializer(item[\"sasTokenParameters\"]),\n folderToRestore: item[\"folderToRestore\"],\n };\n}\n\n/** Selective Key Restore operation */\nexport interface SelectiveKeyRestoreOperation {\n /** Status of the restore operation. */\n status?: OperationStatus;\n /** The status details of restore operation. */\n statusDetails?: string;\n /** Error encountered, if any, during the selective key restore operation. */\n error?: ErrorModel;\n /** Identifier for the selective key restore operation. */\n jobId?: string;\n /** The start time of the restore operation */\n startTime?: Date;\n /** The end time of the restore operation */\n endTime?: Date | null;\n}\n\nexport function selectiveKeyRestoreOperationDeserializer(\n item: any,\n): SelectiveKeyRestoreOperation {\n return {\n status: item[\"status\"],\n statusDetails: item[\"statusDetails\"],\n error: !item[\"error\"]\n ? item[\"error\"]\n : _fullBackupOperationErrorDeserializer(item[\"error\"]),\n jobId: item[\"jobId\"],\n startTime: !item[\"startTime\"]\n ? item[\"startTime\"]\n : new Date(item[\"startTime\"] * 1000),\n endTime: !item[\"endTime\"]\n ? item[\"endTime\"]\n : new Date(item[\"endTime\"] * 1000),\n };\n}\n\n/** The authentication method and location for the selective key restore operation. */\nexport interface SelectiveKeyRestoreOperationParameters {\n /** A user-provided SAS token to an Azure blob storage container. */\n sasTokenParameters: SASTokenParameter;\n /** The Folder name of the blob where the previous successful full backup was stored */\n folder: string;\n}\n\nexport function selectiveKeyRestoreOperationParametersSerializer(\n item: SelectiveKeyRestoreOperationParameters,\n): any {\n return {\n sasTokenParameters: sASTokenParameterSerializer(item[\"sasTokenParameters\"]),\n folder: item[\"folder\"],\n };\n}\n\n/** The update settings request object. */\nexport interface UpdateSettingRequest {\n /** The value of the pool setting. */\n value: string;\n}\n\nexport function updateSettingRequestSerializer(\n item: UpdateSettingRequest,\n): any {\n return { value: item[\"value\"] };\n}\n\n/** A Key Vault account setting. */\nexport interface Setting {\n /** The account setting to be updated */\n name: string;\n /** The value of the pool setting. */\n value: string;\n /** The type specifier of the value. */\n type?: SettingTypeEnum;\n}\n\nexport function settingDeserializer(item: any): Setting {\n return {\n name: item[\"name\"],\n value: item[\"value\"],\n type: item[\"type\"],\n };\n}\n\n/** The type specifier of the value. */\nexport enum KnownSettingTypeEnum {\n /** A boolean setting value. */\n boolean = \"boolean\",\n}\n\n/**\n * The type specifier of the value. \\\n * {@link KnownSettingTypeEnum} can be used interchangeably with SettingTypeEnum,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **boolean**: A boolean setting value.\n */\nexport type SettingTypeEnum = string;\n\n/** The settings list result. */\nexport interface SettingsListResult {\n /** A response message containing a list of account settings with their associated value. */\n readonly settings?: Setting[];\n}\n\nexport function settingsListResultDeserializer(item: any): SettingsListResult {\n return {\n settings: !item[\"settings\"]\n ? item[\"settings\"]\n : settingArrayDeserializer(item[\"settings\"]),\n };\n}\n\nexport function settingArrayDeserializer(result: Array<Setting>): any[] {\n return result.map((item) => {\n return settingDeserializer(item);\n });\n}\n\n/** Role Assignments */\nexport interface RoleAssignment {\n /** The role assignment ID. */\n readonly id?: string;\n /** The role assignment name. */\n readonly name?: string;\n /** The role assignment type. */\n readonly type?: string;\n /** Role assignment properties. */\n properties?: RoleAssignmentPropertiesWithScope;\n}\n\nexport function roleAssignmentDeserializer(item: any): RoleAssignment {\n return {\n id: item[\"id\"],\n name: item[\"name\"],\n type: item[\"type\"],\n properties: !item[\"properties\"]\n ? item[\"properties\"]\n : roleAssignmentPropertiesWithScopeDeserializer(item[\"properties\"]),\n };\n}\n\n/** Role assignment properties with scope. */\nexport interface RoleAssignmentPropertiesWithScope {\n /** The role scope. */\n scope?: RoleScope;\n /** The role definition ID. */\n roleDefinitionId?: string;\n /** The principal ID. */\n principalId?: string;\n}\n\nexport function roleAssignmentPropertiesWithScopeDeserializer(\n item: any,\n): RoleAssignmentPropertiesWithScope {\n return {\n scope: item[\"scope\"],\n roleDefinitionId: item[\"roleDefinitionId\"],\n principalId: item[\"principalId\"],\n };\n}\n\n/** The role scope. */\nexport enum KnownRoleScope {\n /** Global scope */\n Global = \"/\",\n /** Keys scope */\n Keys = \"/keys\",\n}\n\n/**\n * The role scope. \\\n * {@link KnownRoleScope} can be used interchangeably with RoleScope,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **\\/**: Global scope \\\n * **\\/keys**: Keys scope\n */\nexport type RoleScope = string;\n\n/** Role assignment create parameters. */\nexport interface RoleAssignmentCreateParameters {\n /** Role assignment properties. */\n properties: RoleAssignmentProperties;\n}\n\nexport function roleAssignmentCreateParametersSerializer(\n item: RoleAssignmentCreateParameters,\n): any {\n return { properties: roleAssignmentPropertiesSerializer(item[\"properties\"]) };\n}\n\n/** Role assignment properties. */\nexport interface RoleAssignmentProperties {\n /** The role definition ID used in the role assignment. */\n roleDefinitionId: string;\n /** The principal ID assigned to the role. This maps to the ID inside the Active Directory. It can point to a user, service principal, or security group. */\n principalId: string;\n}\n\nexport function roleAssignmentPropertiesSerializer(\n item: RoleAssignmentProperties,\n): any {\n return {\n roleDefinitionId: item[\"roleDefinitionId\"],\n principalId: item[\"principalId\"],\n };\n}\n\n/** Role assignment list operation result. */\nexport interface _RoleAssignmentListResult {\n /** Role assignment list. */\n value?: RoleAssignment[];\n /** The URL to use for getting the next set of results. */\n nextLink?: string;\n}\n\nexport function _roleAssignmentListResultDeserializer(\n item: any,\n): _RoleAssignmentListResult {\n return {\n value: !item[\"value\"]\n ? item[\"value\"]\n : roleAssignmentArrayDeserializer(item[\"value\"]),\n nextLink: item[\"nextLink\"],\n };\n}\n\nexport function roleAssignmentArrayDeserializer(\n result: Array<RoleAssignment>,\n): any[] {\n return result.map((item) => {\n return roleAssignmentDeserializer(item);\n });\n}\n\n/** Role definition. */\nexport interface RoleDefinition {\n /** The role definition ID. */\n readonly id?: string;\n /** The role definition name. */\n readonly name?: string;\n /** The role definition type. */\n readonly type?: RoleDefinitionType;\n /** Role definition properties. */\n properties?: RoleDefinitionProperties;\n}\n\nexport function roleDefinitionDeserializer(item: any): RoleDefinition {\n return {\n id: item[\"id\"],\n name: item[\"name\"],\n type: item[\"type\"],\n properties: !item[\"properties\"]\n ? item[\"properties\"]\n : roleDefinitionPropertiesDeserializer(item[\"properties\"]),\n };\n}\n\n/** The role definition type. */\nexport enum KnownRoleDefinitionType {\n /** Microsoft-defined role definitions. */\n \"Microsoft.Authorization/roleDefinitions\" = \"Microsoft.Authorization/roleDefinitions\",\n}\n\n/**\n * The role definition type. \\\n * {@link KnownRoleDefinitionType} can be used interchangeably with RoleDefinitionType,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **Microsoft.Authorization\\/roleDefinitions**: Microsoft-defined role definitions.\n */\nexport type RoleDefinitionType = string;\n\n/** Role definition properties. */\nexport interface RoleDefinitionProperties {\n /** The role name. */\n roleName?: string;\n /** The role definition description. */\n description?: string;\n /** The role type. */\n roleType?: RoleType;\n /** Role definition permissions. */\n permissions?: Permission[];\n /** Role definition assignable scopes. */\n assignableScopes?: RoleScope[];\n}\n\nexport function roleDefinitionPropertiesSerializer(\n item: RoleDefinitionProperties,\n): any {\n return {\n roleName: item[\"roleName\"],\n description: item[\"description\"],\n type: item[\"roleType\"],\n permissions: !item[\"permissions\"]\n ? item[\"permissions\"]\n : permissionArraySerializer(item[\"permissions\"]),\n assignableScopes: !item[\"assignableScopes\"]\n ? item[\"assignableScopes\"]\n : item[\"assignableScopes\"].map((p: any) => {\n return p;\n }),\n };\n}\n\nexport function roleDefinitionPropertiesDeserializer(\n item: any,\n): RoleDefinitionProperties {\n return {\n roleName: item[\"roleName\"],\n description: item[\"description\"],\n roleType: item[\"type\"],\n permissions: !item[\"permissions\"]\n ? item[\"permissions\"]\n : permissionArrayDeserializer(item[\"permissions\"]),\n assignableScopes: !item[\"assignableScopes\"]\n ? item[\"assignableScopes\"]\n : item[\"assignableScopes\"].map((p: any) => {\n return p;\n }),\n };\n}\n\n/** The role type. */\nexport enum KnownRoleType {\n /** Built in role. */\n BuiltInRole = \"AKVBuiltInRole\",\n /** Custom role. */\n CustomRole = \"CustomRole\",\n}\n\n/**\n * The role type. \\\n * {@link KnownRoleType} can be used interchangeably with RoleType,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **AKVBuiltInRole**: Built in role. \\\n * **CustomRole**: Custom role.\n */\nexport type RoleType = string;\n\nexport function permissionArraySerializer(result: Array<Permission>): any[] {\n return result.map((item) => {\n return permissionSerializer(item);\n });\n}\n\nexport function permissionArrayDeserializer(result: Array<Permission>): any[] {\n return result.map((item) => {\n return permissionDeserializer(item);\n });\n}\n\n/** Role definition permissions. */\nexport interface Permission {\n /** Action permissions that are granted. */\n actions?: string[];\n /** Action permissions that are excluded but not denied. They may be granted by other role definitions assigned to a principal. */\n notActions?: string[];\n /** Data action permissions that are granted. */\n dataActions?: DataAction[];\n /** Data action permissions that are excluded but not denied. They may be granted by other role definitions assigned to a principal. */\n notDataActions?: DataAction[];\n}\n\nexport function permissionSerializer(item: Permission): any {\n return {\n actions: !item[\"actions\"]\n ? item[\"actions\"]\n : item[\"actions\"].map((p: any) => {\n return p;\n }),\n notActions: !item[\"notActions\"]\n ? item[\"notActions\"]\n : item[\"notActions\"].map((p: any) => {\n return p;\n }),\n dataActions: !item[\"dataActions\"]\n ? item[\"dataActions\"]\n : item[\"dataActions\"].map((p: any) => {\n return p;\n }),\n notDataActions: !item[\"notDataActions\"]\n ? item[\"notDataActions\"]\n : item[\"notDataActions\"].map((p: any) => {\n return p;\n }),\n };\n}\n\nexport function permissionDeserializer(item: any): Permission {\n return {\n actions: !item[\"actions\"]\n ? item[\"actions\"]\n : item[\"actions\"].map((p: any) => {\n return p;\n }),\n notActions: !item[\"notActions\"]\n ? item[\"notActions\"]\n : item[\"notActions\"].map((p: any) => {\n return p;\n }),\n dataActions: !item[\"dataActions\"]\n ? item[\"dataActions\"]\n : item[\"dataActions\"].map((p: any) => {\n return p;\n }),\n notDataActions: !item[\"notDataActions\"]\n ? item[\"notDataActions\"]\n : item[\"notDataActions\"].map((p: any) => {\n return p;\n }),\n };\n}\n\n/** Supported permissions for data actions. */\nexport enum KnownDataAction {\n /** Read HSM key metadata. */\n ReadHsmKey = \"Microsoft.KeyVault/managedHsm/keys/read/action\",\n /** Update an HSM key. */\n WriteHsmKey = \"Microsoft.KeyVault/managedHsm/keys/write/action\",\n /** Read deleted HSM key. */\n ReadDeletedHsmKey = \"Microsoft.KeyVault/managedHsm/keys/deletedKeys/read/action\",\n /** Recover deleted HSM key. */\n RecoverDeletedHsmKey = \"Microsoft.KeyVault/managedHsm/keys/deletedKeys/recover/action\",\n /** Backup HSM keys. */\n BackupHsmKeys = \"Microsoft.KeyVault/managedHsm/keys/backup/action\",\n /** Restore HSM keys. */\n RestoreHsmKeys = \"Microsoft.KeyVault/managedHsm/keys/restore/action\",\n /** Delete role assignment. */\n DeleteRoleAssignment = \"Microsoft.KeyVault/managedHsm/roleAssignments/delete/action\",\n /** Get role assignment. */\n GetRoleAssignment = \"Microsoft.KeyVault/managedHsm/roleAssignments/read/action\",\n /** Create or update role assignment. */\n WriteRoleAssignment = \"Microsoft.KeyVault/managedHsm/roleAssignments/write/action\",\n /** Get role definition. */\n ReadRoleDefinition = \"Microsoft.KeyVault/managedHsm/roleDefinitions/read/action\",\n /** Create or update role definition. */\n WriteRoleDefinition = \"Microsoft.KeyVault/managedHsm/roleDefinitions/write/action\",\n /** Delete role definition. */\n DeleteRoleDefinition = \"Microsoft.KeyVault/managedHsm/roleDefinitions/delete/action\",\n /** Encrypt using an HSM key. */\n EncryptHsmKey = \"Microsoft.KeyVault/managedHsm/keys/encrypt/action\",\n /** Decrypt using an HSM key. */\n DecryptHsmKey = \"Microsoft.KeyVault/managedHsm/keys/decrypt/action\",\n /** Wrap using an HSM key. */\n WrapHsmKey = \"Microsoft.KeyVault/managedHsm/keys/wrap/action\",\n /** Unwrap using an HSM key. */\n UnwrapHsmKey = \"Microsoft.KeyVault/managedHsm/keys/unwrap/action\",\n /** Sign using an HSM key. */\n SignHsmKey = \"Microsoft.KeyVault/managedHsm/keys/sign/action\",\n /** Verify using an HSM key. */\n VerifyHsmKey = \"Microsoft.KeyVault/managedHsm/keys/verify/action\",\n /** Create an HSM key. */\n CreateHsmKey = \"Microsoft.KeyVault/managedHsm/keys/create\",\n /** Delete an HSM key. */\n DeleteHsmKey = \"Microsoft.KeyVault/managedHsm/keys/delete\",\n /** Export an HSM key. */\n ExportHsmKey = \"Microsoft.KeyVault/managedHsm/keys/export/action\",\n /** Release an HSM key using Secure Key Release. */\n ReleaseKey = \"Microsoft.KeyVault/managedHsm/keys/release/action\",\n /** Import an HSM key. */\n ImportHsmKey = \"Microsoft.KeyVault/managedHsm/keys/import/action\",\n /** Purge a deleted HSM key. */\n PurgeDeletedHsmKey = \"Microsoft.KeyVault/managedHsm/keys/deletedKeys/delete\",\n /** Download an HSM security domain. */\n DownloadHsmSecurityDomain = \"Microsoft.KeyVault/managedHsm/securitydomain/download/action\",\n /** Check status of HSM security domain download. */\n DownloadHsmSecurityDomainStatus = \"Microsoft.KeyVault/managedHsm/securitydomain/download/read\",\n /** Upload an HSM security domain. */\n UploadHsmSecurityDomain = \"Microsoft.KeyVault/managedHsm/securitydomain/upload/action\",\n /** Check the status of the HSM security domain exchange file. */\n ReadHsmSecurityDomainStatus = \"Microsoft.KeyVault/managedHsm/securitydomain/upload/read\",\n /** Download an HSM security domain transfer key. */\n ReadHsmSecurityDomainTransferKey = \"Microsoft.KeyVault/managedHsm/securitydomain/transferkey/read\",\n /** Start an HSM backup. */\n StartHsmBackup = \"Microsoft.KeyVault/managedHsm/backup/start/action\",\n /** Start an HSM restore. */\n StartHsmRestore = \"Microsoft.KeyVault/managedHsm/restore/start/action\",\n /** Read an HSM backup status. */\n ReadHsmBackupStatus = \"Microsoft.KeyVault/managedHsm/backup/status/action\",\n /** Read an HSM restore status. */\n ReadHsmRestoreStatus = \"Microsoft.KeyVault/managedHsm/restore/status/action\",\n /** Generate random numbers. */\n RandomNumbersGenerate = \"Microsoft.KeyVault/managedHsm/rng/action\",\n}\n\n/**\n * Supported permissions for data actions. \\\n * {@link KnownDataAction} can be used interchangeably with DataAction,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **Microsoft.KeyVault\\/managedHsm\\/keys\\/read\\/action**: Read HSM key metadata. \\\n * **Microsoft.KeyVault\\/managedHsm\\/keys\\/write\\/action**: Update an HSM key. \\\n * **Microsoft.KeyVault\\/managedHsm\\/keys\\/deletedKeys\\/read\\/action**: Read deleted HSM key. \\\n * **Microsoft.KeyVault\\/managedHsm\\/keys\\/deletedKeys\\/recover\\/action**: Recover deleted HSM key. \\\n * **Microsoft.KeyVault\\/managedHsm\\/keys\\/backup\\/action**: Backup HSM keys. \\\n * **Microsoft.KeyVault\\/managedHsm\\/keys\\/restore\\/action**: Restore HSM keys. \\\n * **Microsoft.KeyVault\\/managedHsm\\/roleAssignments\\/delete\\/action**: Delete role assignment. \\\n * **Microsoft.KeyVault\\/managedHsm\\/roleAssignments\\/read\\/action**: Get role assignment. \\\n * **Microsoft.KeyVault\\/managedHsm\\/roleAssignments\\/write\\/action**: Create or update role assignment. \\\n * **Microsoft.KeyVault\\/managedHsm\\/roleDefinitions\\/read\\/action**: Get role definition. \\\n * **Microsoft.KeyVault\\/managedHsm\\/roleDefinitions\\/write\\/action**: Create or update role definition. \\\n * **Microsoft.KeyVault\\/managedHsm\\/roleDefinitions\\/delete\\/action**: Delete role definition. \\\n * **Microsoft.KeyVault\\/managedHsm\\/keys\\/encrypt\\/action**: Encrypt using an HSM key. \\\n * **Microsoft.KeyVault\\/managedHsm\\/keys\\/decrypt\\/action**: Decrypt using an HSM key. \\\n * **Microsoft.KeyVault\\/managedHsm\\/keys\\/wrap\\/action**: Wrap using an HSM key. \\\n * **Microsoft.KeyVault\\/managedHsm\\/keys\\/unwrap\\/action**: Unwrap using an HSM key. \\\n * **Microsoft.KeyVault\\/managedHsm\\/keys\\/sign\\/action**: Sign using an HSM key. \\\n * **Microsoft.KeyVault\\/managedHsm\\/keys\\/verify\\/action**: Verify using an HSM key. \\\n * **Microsoft.KeyVault\\/managedHsm\\/keys\\/create**: Create an HSM key. \\\n * **Microsoft.KeyVault\\/managedHsm\\/keys\\/delete**: Delete an HSM key. \\\n * **Microsoft.KeyVault\\/managedHsm\\/keys\\/export\\/action**: Export an HSM key. \\\n * **Microsoft.KeyVault\\/managedHsm\\/keys\\/release\\/action**: Release an HSM key using Secure Key Release. \\\n * **Microsoft.KeyVault\\/managedHsm\\/keys\\/import\\/action**: Import an HSM key. \\\n * **Microsoft.KeyVault\\/managedHsm\\/keys\\/deletedKeys\\/delete**: Purge a deleted HSM key. \\\n * **Microsoft.KeyVault\\/managedHsm\\/securitydomain\\/download\\/action**: Download an HSM security domain. \\\n * **Microsoft.KeyVault\\/managedHsm\\/securitydomain\\/download\\/read**: Check status of HSM security domain download. \\\n * **Microsoft.KeyVault\\/managedHsm\\/securitydomain\\/upload\\/action**: Upload an HSM security domain. \\\n * **Microsoft.KeyVault\\/managedHsm\\/securitydomain\\/upload\\/read**: Check the status of the HSM security domain exchange file. \\\n * **Microsoft.KeyVault\\/managedHsm\\/securitydomain\\/transferkey\\/read**: Download an HSM security domain transfer key. \\\n * **Microsoft.KeyVault\\/managedHsm\\/backup\\/start\\/action**: Start an HSM backup. \\\n * **Microsoft.KeyVault\\/managedHsm\\/restore\\/start\\/action**: Start an HSM restore. \\\n * **Microsoft.KeyVault\\/managedHsm\\/backup\\/status\\/action**: Read an HSM backup status. \\\n * **Microsoft.KeyVault\\/managedHsm\\/restore\\/status\\/action**: Read an HSM restore status. \\\n * **Microsoft.KeyVault\\/managedHsm\\/rng\\/action**: Generate random numbers.\n */\nexport type DataAction = string;\n\n/** Role definition create parameters. */\nexport interface RoleDefinitionCreateParameters {\n /** Role definition properties. */\n properties: RoleDefinitionProperties;\n}\n\nexport function roleDefinitionCreateParametersSerializer(\n item: RoleDefinitionCreateParameters,\n): any {\n return { properties: roleDefinitionPropertiesSerializer(item[\"properties\"]) };\n}\n\n/** Role definition list operation result. */\nexport interface _RoleDefinitionListResult {\n /** Role definition list. */\n value?: RoleDefinition[];\n /** The URL to use for getting the next set of results. */\n nextLink?: string;\n}\n\nexport function _roleDefinitionListResultDeserializer(\n item: any,\n): _RoleDefinitionListResult {\n return {\n value: !item[\"value\"]\n ? item[\"value\"]\n : roleDefinitionArrayDeserializer(item[\"value\"]),\n nextLink: item[\"nextLink\"],\n };\n}\n\nexport function roleDefinitionArrayDeserializer(\n result: Array<RoleDefinition>,\n): any[] {\n return result.map((item) => {\n return roleDefinitionDeserializer(item);\n });\n}\n\n/** The available API versions. */\nexport enum KnownVersions {\n /** The 7.5 API version. */\n \"v7.5\" = \"7.5\",\n /** The 7.6-preview.2 API version. */\n \"v7.6_preview.2\" = \"7.6-preview.2\",\n}\n"]}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// Copyright (c) Microsoft Corporation.
|
|
2
2
|
// Licensed under the MIT License.
|
|
3
|
-
import {
|
|
3
|
+
import { _selectiveKeyRestoreOperationDeserialize, _fullRestoreOperationDeserialize, _preFullRestoreOperationDeserialize, _preFullBackupDeserialize, _fullBackupDeserialize, } from "./api/operations.js";
|
|
4
4
|
import { getLongRunningPoller } from "./static-helpers/pollingHelpers.js";
|
|
5
5
|
import { deserializeState, } from "@azure/core-lro";
|
|
6
6
|
/**
|
|
@@ -30,24 +30,24 @@ export function restorePoller(client, serializedState, sourceOperation, options)
|
|
|
30
30
|
});
|
|
31
31
|
}
|
|
32
32
|
const deserializeMap = {
|
|
33
|
-
"
|
|
34
|
-
deserializer:
|
|
33
|
+
"PUT /keys/{keyName}/restore": {
|
|
34
|
+
deserializer: _selectiveKeyRestoreOperationDeserialize,
|
|
35
35
|
expectedStatuses: ["202", "200"],
|
|
36
36
|
},
|
|
37
|
-
"
|
|
38
|
-
deserializer:
|
|
37
|
+
"PUT /restore": {
|
|
38
|
+
deserializer: _fullRestoreOperationDeserialize,
|
|
39
39
|
expectedStatuses: ["202", "200"],
|
|
40
40
|
},
|
|
41
41
|
"PUT /prerestore": {
|
|
42
42
|
deserializer: _preFullRestoreOperationDeserialize,
|
|
43
43
|
expectedStatuses: ["202", "200"],
|
|
44
44
|
},
|
|
45
|
-
"
|
|
46
|
-
deserializer:
|
|
45
|
+
"POST /prebackup": {
|
|
46
|
+
deserializer: _preFullBackupDeserialize,
|
|
47
47
|
expectedStatuses: ["202", "200"],
|
|
48
48
|
},
|
|
49
|
-
"
|
|
50
|
-
deserializer:
|
|
49
|
+
"POST /backup": {
|
|
50
|
+
deserializer: _fullBackupDeserialize,
|
|
51
51
|
expectedStatuses: ["202", "200"],
|
|
52
52
|
},
|
|
53
53
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"restorePollerHelpers.js","sourceRoot":"","sources":["../../../src/generated/restorePollerHelpers.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAGlC,OAAO,EACL,
|
|
1
|
+
{"version":3,"file":"restorePollerHelpers.js","sourceRoot":"","sources":["../../../src/generated/restorePollerHelpers.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAGlC,OAAO,EACL,wCAAwC,EACxC,gCAAgC,EAChC,mCAAmC,EACnC,yBAAyB,EACzB,sBAAsB,GACvB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,oBAAoB,EAAE,MAAM,oCAAoC,CAAC;AA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AM,GAAG,UAAU,EAAE,CAAC;YAC/C,UAAU,GAAG,aAAa,CAAC,MAAM,CAAC;YAClC,YAAY,GAAG,KAAK,CAAC;QACvB,CAAC;IACH,CAAC;IAED,OAAO,YAAY,CAAC;AACtB,CAAC;AAED,SAAS,iBAAiB,CAAC,MAAc;IACvC,MAAM,SAAS,GAAG,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;IACtC,OAAO,MAAM,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC;AACjC,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { KeyVaultClient } from \"./keyVaultClient.js\";\nimport {\n _selectiveKeyRestoreOperationDeserialize,\n _fullRestoreOperationDeserialize,\n _preFullRestoreOperationDeserialize,\n _preFullBackupDeserialize,\n _fullBackupDeserialize,\n} from \"./api/operations.js\";\nimport { getLongRunningPoller } from \"./static-helpers/pollingHelpers.js\";\nimport {\n OperationOptions,\n PathUncheckedResponse,\n} from \"@azure-rest/core-client\";\nimport { AbortSignalLike } from \"@azure/abort-controller\";\nimport {\n PollerLike,\n OperationState,\n deserializeState,\n ResourceLocationConfig,\n} 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: KeyVaultClient,\n serializedState: string,\n sourceOperation: (\n ...args: any[]\n ) => 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 deserializer: Function;\n expectedStatuses: string[];\n}\n\nconst deserializeMap: Record<string, DeserializationHelper> = {\n \"PUT /keys/{keyName}/restore\": {\n deserializer: _selectiveKeyRestoreOperationDeserialize,\n expectedStatuses: [\"202\", \"200\"],\n },\n \"PUT /restore\": {\n deserializer: _fullRestoreOperationDeserialize,\n expectedStatuses: [\"202\", \"200\"],\n },\n \"PUT /prerestore\": {\n deserializer: _preFullRestoreOperationDeserialize,\n expectedStatuses: [\"202\", \"200\"],\n },\n \"POST /prebackup\": {\n deserializer: _preFullBackupDeserialize,\n expectedStatuses: [\"202\", \"200\"],\n },\n \"POST /backup\": {\n deserializer: _fullBackupDeserialize,\n expectedStatuses: [\"202\", \"200\"],\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 (\n let i = candidateParts.length - 1, j = pathParts.length - 1;\n i >= 1 && j >= 1;\n i--, j--\n ) {\n if (\n candidateParts[i]?.startsWith(\"{\") &&\n candidateParts[i]?.indexOf(\"}\") !== -1\n ) {\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(\n `${candidateParts[i]?.slice(start, end)}`,\n ).test(pathParts[j] || \"\");\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"]}
|
package/dist/esm/lro/shim.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { AbortSignalLike } from "@azure/abort-controller";
|
|
2
2
|
import type { CancelOnProgress, OperationState, PollerLike as CorePollerLike } from "@azure/core-lro";
|
|
3
3
|
import type { KeyVaultAdminPollOperationState } from "./models.js";
|
|
4
|
+
import { FullBackupOperation, RestoreOperation } from "../generated/index.js";
|
|
4
5
|
/**
|
|
5
6
|
* A simple poller that can be used to poll a long running operation.
|
|
6
7
|
*/
|
|
@@ -54,4 +55,10 @@ export interface PollerLike<TState extends KeyVaultAdminPollOperationState<TResu
|
|
|
54
55
|
stopPolling(): void;
|
|
55
56
|
}
|
|
56
57
|
export declare function wrapPoller<TState extends OperationState<TResult>, TResult>(httpPoller: CorePollerLike<TState, TResult>): Promise<PollerLike<TState, TResult>>;
|
|
58
|
+
/**
|
|
59
|
+
* A helper that standardizes the shape of the result of a long-running operation.
|
|
60
|
+
*
|
|
61
|
+
* smoothing over the differences between `null` and `undefined` sent over the wire in responses.
|
|
62
|
+
*/
|
|
63
|
+
export declare function updateState(state: OperationState<RestoreOperation | FullBackupOperation>): void;
|
|
57
64
|
//# sourceMappingURL=shim.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shim.d.ts","sourceRoot":"","sources":["../../../src/lro/shim.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAC/D,OAAO,KAAK,EACV,gBAAgB,EAChB,cAAc,EACd,UAAU,IAAI,cAAc,EAC7B,MAAM,iBAAiB,CAAC;AACzB,OAAO,KAAK,EAAE,+BAA+B,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"shim.d.ts","sourceRoot":"","sources":["../../../src/lro/shim.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAC/D,OAAO,KAAK,EACV,gBAAgB,EAChB,cAAc,EACd,UAAU,IAAI,cAAc,EAC7B,MAAM,iBAAiB,CAAC;AACzB,OAAO,KAAK,EAAE,+BAA+B,EAAE,MAAM,aAAa,CAAC;AACnE,OAAO,EAAE,mBAAmB,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAE9E;;GAEG;AACH,MAAM,WAAW,UAAU,CAAC,MAAM,SAAS,+BAA+B,CAAC,OAAO,CAAC,EAAE,OAAO;IAC1F;;OAEG;IACH,MAAM,IAAI,OAAO,CAAC;IAClB;;OAEG;IACH,SAAS,IAAI,OAAO,CAAC;IACrB;;OAEG;IACH,iBAAiB,IAAI,MAAM,CAAC;IAC5B;;;;;OAKG;IACH,SAAS,IAAI,OAAO,GAAG,SAAS,CAAC;IACjC;;;OAGG;IACH,IAAI,CAAC,OAAO,CAAC,EAAE;QAAE,WAAW,CAAC,EAAE,eAAe,CAAA;KAAE,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IACjE;;OAEG;IACH,aAAa,CAAC,WAAW,CAAC,EAAE;QAAE,WAAW,CAAC,EAAE,eAAe,CAAA;KAAE,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;IACjF;;;;;OAKG;IACH,UAAU,CAAC,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,GAAG,gBAAgB,CAAC;IAEhE;;OAEG;IACH,QAAQ,IAAI,MAAM,CAAC;IAEnB;;OAEG;IACH,WAAW,IAAI,IAAI,CAAC;CACrB;AAED,wBAAsB,UAAU,CAAC,MAAM,SAAS,cAAc,CAAC,OAAO,CAAC,EAAE,OAAO,EAC9E,UAAU,EAAE,cAAc,CAAC,MAAM,EAAE,OAAO,CAAC,GAC1C,OAAO,CAAC,UAAU,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAwEtC;AAED;;;;GAIG;AACH,wBAAgB,WAAW,CAAC,KAAK,EAAE,cAAc,CAAC,gBAAgB,GAAG,mBAAmB,CAAC,GAAG,IAAI,CAc/F"}
|
package/dist/esm/lro/shim.js
CHANGED
|
@@ -38,7 +38,7 @@ export async function wrapPoller(httpPoller) {
|
|
|
38
38
|
},
|
|
39
39
|
onProgress: httpPoller.onProgress,
|
|
40
40
|
async poll(options) {
|
|
41
|
-
httpPoller.poll(options);
|
|
41
|
+
await httpPoller.poll(options);
|
|
42
42
|
},
|
|
43
43
|
pollUntilDone(pollOptions) {
|
|
44
44
|
function abortListener() {
|
|
@@ -65,4 +65,19 @@ export async function wrapPoller(httpPoller) {
|
|
|
65
65
|
}
|
|
66
66
|
return simplePoller;
|
|
67
67
|
}
|
|
68
|
+
/**
|
|
69
|
+
* A helper that standardizes the shape of the result of a long-running operation.
|
|
70
|
+
*
|
|
71
|
+
* smoothing over the differences between `null` and `undefined` sent over the wire in responses.
|
|
72
|
+
*/
|
|
73
|
+
export function updateState(state) {
|
|
74
|
+
var _a, _b, _c, _d, _e;
|
|
75
|
+
var _f;
|
|
76
|
+
if (state.result) {
|
|
77
|
+
state.result = Object.assign(Object.assign({}, state.result), { endTime: (_a = state.result.endTime) !== null && _a !== void 0 ? _a : undefined, startTime: (_b = state.result.startTime) !== null && _b !== void 0 ? _b : undefined, error: (_c = state.result.error) !== null && _c !== void 0 ? _c : undefined, statusDetails: (_d = state.result.statusDetails) !== null && _d !== void 0 ? _d : undefined });
|
|
78
|
+
if ("folderUri" in state.result) {
|
|
79
|
+
(_e = (_f = state.result).folderUri) !== null && _e !== void 0 ? _e : (_f.folderUri = undefined);
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
}
|
|
68
83
|
//# sourceMappingURL=shim.js.map
|
package/dist/esm/lro/shim.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shim.js","sourceRoot":"","sources":["../../../src/lro/shim.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;
|
|
1
|
+
{"version":3,"file":"shim.js","sourceRoot":"","sources":["../../../src/lro/shim.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AA8DlC,MAAM,CAAC,KAAK,UAAU,UAAU,CAC9B,UAA2C;;IAE3C,MAAM,eAAe,GAAG,IAAI,eAAe,EAAE,CAAC;IAC9C,MAAM,YAAY,GAAgC;QAChD,MAAM;YACJ,OAAO,UAAU,CAAC,MAAM,CAAC;QAC3B,CAAC;QACD,SAAS;YACP,OAAO,eAAe,CAAC,MAAM,CAAC,OAAO,CAAC;QACxC,CAA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E,CAAC;YAChC,YAAA,KAAK,CAAC,MAAM,EAAC,SAAS,uCAAT,SAAS,GAAK,SAAS,EAAC;QACvC,CAAC;IACH,CAAC;AACH,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { AbortSignalLike } from \"@azure/abort-controller\";\nimport type {\n CancelOnProgress,\n OperationState,\n PollerLike as CorePollerLike,\n} from \"@azure/core-lro\";\nimport type { KeyVaultAdminPollOperationState } from \"./models.js\";\nimport { FullBackupOperation, RestoreOperation } from \"../generated/index.js\";\n\n/**\n * A simple poller that can be used to poll a long running operation.\n */\nexport interface PollerLike<TState extends KeyVaultAdminPollOperationState<TResult>, TResult> {\n /**\n * Returns true if the poller has finished polling.\n */\n isDone(): boolean;\n /**\n * Returns true if the poller is stopped.\n */\n isStopped(): boolean;\n /**\n * Returns the state of the operation.\n */\n getOperationState(): TState;\n /**\n * Returns the result value of the operation,\n * regardless of the state of the poller.\n * It can return undefined or an incomplete form of the final TResult value\n * depending on the implementation.\n */\n getResult(): TResult | undefined;\n /**\n * Returns a promise that will resolve once a single polling request finishes.\n * It does this by calling the update method of the Poller's operation.\n */\n poll(options?: { abortSignal?: AbortSignalLike }): Promise<void>;\n /**\n * Returns a promise that will resolve once the underlying operation is completed.\n */\n pollUntilDone(pollOptions?: { abortSignal?: AbortSignalLike }): Promise<TResult>;\n /**\n * Invokes the provided callback after each polling is completed,\n * sending the current state of the poller's operation.\n *\n * It returns a method that can be used to stop receiving updates on the given callback function.\n */\n onProgress(callback: (state: TState) => void): CancelOnProgress;\n\n /**\n * Returns a string representation of the poller's operation. Similar to serialize but returns a string.\n */\n toString(): string;\n\n /**\n * Stops the poller from continuing to poll. Please note this will only stop the client-side polling\n */\n stopPolling(): void;\n}\n\nexport async function wrapPoller<TState extends OperationState<TResult>, TResult>(\n httpPoller: CorePollerLike<TState, TResult>,\n): Promise<PollerLike<TState, TResult>> {\n const abortController = new AbortController();\n const simplePoller: PollerLike<TState, TResult> = {\n isDone() {\n return httpPoller.isDone;\n },\n isStopped() {\n return abortController.signal.aborted;\n },\n getOperationState() {\n if (!httpPoller.operationState) {\n throw new Error(\n \"Operation state is not available. The poller may not have been started and you could await submitted() before calling getOperationState().\",\n );\n }\n const mergedState = {\n ...httpPoller.operationState,\n ...httpPoller.operationState.result,\n isStarted: httpPoller.operationState.status !== \"notStarted\", // Shim for isStarted\n isCompleted:\n httpPoller.operationState.status === \"succeeded\" ||\n httpPoller.operationState.status === \"failed\" ||\n httpPoller.operationState.status === \"canceled\",\n };\n if (mergedState.error === null) {\n mergedState.error = undefined;\n }\n return mergedState;\n },\n getResult() {\n return httpPoller.result;\n },\n toString() {\n if (!httpPoller.operationState) {\n throw new Error(\n \"Operation state is not available. The poller may not have been started and you could await submitted() before calling getOperationState().\",\n );\n }\n return JSON.stringify({\n state: httpPoller.operationState,\n });\n },\n stopPolling() {\n abortController.abort();\n },\n onProgress: httpPoller.onProgress,\n async poll(options) {\n await httpPoller.poll(options);\n },\n pollUntilDone(pollOptions?: { abortSignal?: AbortSignalLike }) {\n function abortListener(): void {\n abortController.abort();\n }\n const inputAbortSignal = pollOptions?.abortSignal;\n const abortSignal = abortController.signal;\n if (inputAbortSignal?.aborted) {\n abortController.abort();\n } else if (!abortSignal.aborted) {\n inputAbortSignal?.addEventListener(\"abort\", abortListener, {\n once: true,\n });\n }\n return httpPoller.pollUntilDone({ abortSignal: abortController.signal });\n },\n };\n await httpPoller.submitted();\n // clean up the final GET path so that we could skip final GET\n // Workaround for https://github.com/Azure/azure-sdk-for-js/issues/32142\n if ((httpPoller.operationState as any)?.config?.resourceLocation) {\n (httpPoller.operationState as any).config.resourceLocation = undefined;\n }\n return simplePoller;\n}\n\n/**\n * A helper that standardizes the shape of the result of a long-running operation.\n *\n * smoothing over the differences between `null` and `undefined` sent over the wire in responses.\n */\nexport function updateState(state: OperationState<RestoreOperation | FullBackupOperation>): void {\n if (state.result) {\n state.result = {\n ...state.result,\n endTime: state.result.endTime ?? undefined,\n startTime: state.result.startTime ?? undefined,\n error: state.result.error ?? undefined,\n statusDetails: state.result.statusDetails ?? undefined,\n };\n\n if (\"folderUri\" in state.result) {\n state.result.folderUri ??= undefined;\n }\n }\n}\n"]}
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@azure/keyvault-admin",
|
|
3
3
|
"sdk-type": "client",
|
|
4
4
|
"author": "Microsoft Corporation",
|
|
5
|
-
"version": "4.
|
|
5
|
+
"version": "4.7.0-alpha.20250226.2",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"description": "Isomorphic client library for Azure KeyVault's administrative functions.",
|
|
8
8
|
"homepage": "https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/keyvault/keyvault-admin/README.md",
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
export declare function serializeRecord<T extends string | number | boolean | Date | null, R>(item: Record<string, T>): Record<string, R>;
|
|
2
|
-
export declare function serializeRecord<T, R>(item: Record<string, T>, serializer: (item: T) => R): Record<string, R>;
|
|
3
|
-
//# sourceMappingURL=serializerHelpers.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"serializerHelpers.d.ts","sourceRoot":"","sources":["../../../../src/generated/helpers/serializerHelpers.ts"],"names":[],"mappings":"AAGA,wBAAgB,eAAe,CAC7B,CAAC,SAAS,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,IAAI,GAAG,IAAI,EACjD,CAAC,EACD,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,CAAC,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC;AAC9C,wBAAgB,eAAe,CAAC,CAAC,EAAE,CAAC,EAClC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,CAAC,CAAC,EACvB,UAAU,EAAE,CAAC,IAAI,EAAE,CAAC,KAAK,CAAC,GACzB,MAAM,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC"}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// Copyright (c) Microsoft Corporation.
|
|
3
|
-
// Licensed under the MIT License.
|
|
4
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
-
exports.serializeRecord = serializeRecord;
|
|
6
|
-
function serializeRecord(item, serializer) {
|
|
7
|
-
return Object.keys(item).reduce((acc, key) => {
|
|
8
|
-
if (isSupportedRecordType(item[key])) {
|
|
9
|
-
acc[key] = item[key];
|
|
10
|
-
}
|
|
11
|
-
else if (serializer) {
|
|
12
|
-
const value = item[key];
|
|
13
|
-
if (value !== undefined) {
|
|
14
|
-
acc[key] = serializer(value);
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
else {
|
|
18
|
-
console.warn(`Don't know how to serialize ${item[key]}`);
|
|
19
|
-
acc[key] = item[key];
|
|
20
|
-
}
|
|
21
|
-
return acc;
|
|
22
|
-
}, {});
|
|
23
|
-
}
|
|
24
|
-
function isSupportedRecordType(t) {
|
|
25
|
-
return (["number", "string", "boolean", "null"].includes(typeof t) ||
|
|
26
|
-
t instanceof Date);
|
|
27
|
-
}
|
|
28
|
-
//# sourceMappingURL=serializerHelpers.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"serializerHelpers.js","sourceRoot":"","sources":["../../../../src/generated/helpers/serializerHelpers.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AAUlC,0CAqBC;AArBD,SAAgB,eAAe,CAC7B,IAAuB,EACvB,UAA2B;IAE3B,OAAO,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,MAAM,CAC7B,CAAC,GAAG,EAAE,GAAG,EAAE,EAAE;QACX,IAAI,qBAAqB,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC;YACrC,GAAG,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC,GAAG,CAAQ,CAAC;QAC9B,CAAC;aAAM,IAAI,UAAU,EAAE,CAAC;YACtB,MAAM,KAAK,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC;YACxB,IAAI,KAAK,KAAK,SAAS,EAAE,CAAC;gBACxB,GAAG,CAAC,GAAG,CAAC,GAAG,UAAU,CAAC,KAAK,CAAC,CAAC;YAC/B,CAAC;QACH,CAAC;aAAM,CAAC;YACN,OAAO,CAAC,IAAI,CAAC,+BAA+B,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;YACzD,GAAG,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC,GAAG,CAAQ,CAAC;QAC9B,CAAC;QACD,OAAO,GAAG,CAAC;IACb,CAAC,EACD,EAAuB,CACxB,CAAC;AACJ,CAAC;AAED,SAAS,qBAAqB,CAAC,CAAM;IACnC,OAAO,CACL,CAAC,QAAQ,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,CAAC,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC;QAC1D,CAAC,YAAY,IAAI,CAClB,CAAC;AACJ,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nexport function serializeRecord<\n T extends string | number | boolean | Date | null,\n R,\n>(item: Record<string, T>): Record<string, R>;\nexport function serializeRecord<T, R>(\n item: Record<string, T>,\n serializer: (item: T) => R,\n): Record<string, R>;\nexport function serializeRecord<T, R>(\n item: Record<string, T>,\n serializer?: (item: T) => R,\n): Record<string, R> {\n return Object.keys(item).reduce(\n (acc, key) => {\n if (isSupportedRecordType(item[key])) {\n acc[key] = item[key] as any;\n } else if (serializer) {\n const value = item[key];\n if (value !== undefined) {\n acc[key] = serializer(value);\n }\n } else {\n console.warn(`Don't know how to serialize ${item[key]}`);\n acc[key] = item[key] as any;\n }\n return acc;\n },\n {} as Record<string, R>,\n );\n}\n\nfunction isSupportedRecordType(t: any) {\n return (\n [\"number\", \"string\", \"boolean\", \"null\"].includes(typeof t) ||\n t instanceof Date\n );\n}\n"]}
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
export declare function serializeRecord<T extends string | number | boolean | Date | null, R>(item: Record<string, T>): Record<string, R>;
|
|
2
|
-
export declare function serializeRecord<T, R>(item: Record<string, T>, serializer: (item: T) => R): Record<string, R>;
|
|
3
|
-
//# sourceMappingURL=serializerHelpers.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"serializerHelpers.d.ts","sourceRoot":"","sources":["../../../../src/generated/helpers/serializerHelpers.ts"],"names":[],"mappings":"AAGA,wBAAgB,eAAe,CAC7B,CAAC,SAAS,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,IAAI,GAAG,IAAI,EACjD,CAAC,EACD,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,CAAC,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC;AAC9C,wBAAgB,eAAe,CAAC,CAAC,EAAE,CAAC,EAClC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,CAAC,CAAC,EACvB,UAAU,EAAE,CAAC,IAAI,EAAE,CAAC,KAAK,CAAC,GACzB,MAAM,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC"}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
// Copyright (c) Microsoft Corporation.
|
|
2
|
-
// Licensed under the MIT License.
|
|
3
|
-
export function serializeRecord(item, serializer) {
|
|
4
|
-
return Object.keys(item).reduce((acc, key) => {
|
|
5
|
-
if (isSupportedRecordType(item[key])) {
|
|
6
|
-
acc[key] = item[key];
|
|
7
|
-
}
|
|
8
|
-
else if (serializer) {
|
|
9
|
-
const value = item[key];
|
|
10
|
-
if (value !== undefined) {
|
|
11
|
-
acc[key] = serializer(value);
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
else {
|
|
15
|
-
console.warn(`Don't know how to serialize ${item[key]}`);
|
|
16
|
-
acc[key] = item[key];
|
|
17
|
-
}
|
|
18
|
-
return acc;
|
|
19
|
-
}, {});
|
|
20
|
-
}
|
|
21
|
-
function isSupportedRecordType(t) {
|
|
22
|
-
return (["number", "string", "boolean", "null"].includes(typeof t) ||
|
|
23
|
-
t instanceof Date);
|
|
24
|
-
}
|
|
25
|
-
//# sourceMappingURL=serializerHelpers.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"serializerHelpers.js","sourceRoot":"","sources":["../../../../src/generated/helpers/serializerHelpers.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAUlC,MAAM,UAAU,eAAe,CAC7B,IAAuB,EACvB,UAA2B;IAE3B,OAAO,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,MAAM,CAC7B,CAAC,GAAG,EAAE,GAAG,EAAE,EAAE;QACX,IAAI,qBAAqB,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC;YACrC,GAAG,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC,GAAG,CAAQ,CAAC;QAC9B,CAAC;aAAM,IAAI,UAAU,EAAE,CAAC;YACtB,MAAM,KAAK,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC;YACxB,IAAI,KAAK,KAAK,SAAS,EAAE,CAAC;gBACxB,GAAG,CAAC,GAAG,CAAC,GAAG,UAAU,CAAC,KAAK,CAAC,CAAC;YAC/B,CAAC;QACH,CAAC;aAAM,CAAC;YACN,OAAO,CAAC,IAAI,CAAC,+BAA+B,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;YACzD,GAAG,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC,GAAG,CAAQ,CAAC;QAC9B,CAAC;QACD,OAAO,GAAG,CAAC;IACb,CAAC,EACD,EAAuB,CACxB,CAAC;AACJ,CAAC;AAED,SAAS,qBAAqB,CAAC,CAAM;IACnC,OAAO,CACL,CAAC,QAAQ,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,CAAC,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC;QAC1D,CAAC,YAAY,IAAI,CAClB,CAAC;AACJ,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nexport function serializeRecord<\n T extends string | number | boolean | Date | null,\n R,\n>(item: Record<string, T>): Record<string, R>;\nexport function serializeRecord<T, R>(\n item: Record<string, T>,\n serializer: (item: T) => R,\n): Record<string, R>;\nexport function serializeRecord<T, R>(\n item: Record<string, T>,\n serializer?: (item: T) => R,\n): Record<string, R> {\n return Object.keys(item).reduce(\n (acc, key) => {\n if (isSupportedRecordType(item[key])) {\n acc[key] = item[key] as any;\n } else if (serializer) {\n const value = item[key];\n if (value !== undefined) {\n acc[key] = serializer(value);\n }\n } else {\n console.warn(`Don't know how to serialize ${item[key]}`);\n acc[key] = item[key] as any;\n }\n return acc;\n },\n {} as Record<string, R>,\n );\n}\n\nfunction isSupportedRecordType(t: any) {\n return (\n [\"number\", \"string\", \"boolean\", \"null\"].includes(typeof t) ||\n t instanceof Date\n );\n}\n"]}
|