mirror of
https://github.com/hashicorp/vault.git
synced 2025-08-06 06:37:02 +02:00
56 lines
2.3 KiB
JavaScript
56 lines
2.3 KiB
JavaScript
/* tslint:disable */
|
|
/* eslint-disable */
|
|
/**
|
|
* HashiCorp Vault API
|
|
* HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`.
|
|
*
|
|
* The version of the OpenAPI document: 1.21.0
|
|
*
|
|
*
|
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
* https://openapi-generator.tech
|
|
* Do not edit the class manually.
|
|
*/
|
|
/**
|
|
* Check if a given object implements the SystemReadStorageRaftSnapshotLoadIdResponse interface.
|
|
*/
|
|
export function instanceOfSystemReadStorageRaftSnapshotLoadIdResponse(value) {
|
|
return true;
|
|
}
|
|
export function SystemReadStorageRaftSnapshotLoadIdResponseFromJSON(json) {
|
|
return SystemReadStorageRaftSnapshotLoadIdResponseFromJSONTyped(json, false);
|
|
}
|
|
export function SystemReadStorageRaftSnapshotLoadIdResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
if (json == null) {
|
|
return json;
|
|
}
|
|
return {
|
|
'autoSnapshotConfig': json['auto_snapshot_config'] == null ? undefined : json['auto_snapshot_config'],
|
|
'clusterId': json['cluster_id'] == null ? undefined : json['cluster_id'],
|
|
'error': json['error'] == null ? undefined : json['error'],
|
|
'expiresAt': json['expires_at'] == null ? undefined : (new Date(json['expires_at'])),
|
|
'snapshotId': json['snapshot_id'] == null ? undefined : json['snapshot_id'],
|
|
'status': json['status'] == null ? undefined : json['status'],
|
|
'uploaderEntityId': json['uploader_entity_id'] == null ? undefined : json['uploader_entity_id'],
|
|
'url': json['url'] == null ? undefined : json['url'],
|
|
};
|
|
}
|
|
export function SystemReadStorageRaftSnapshotLoadIdResponseToJSON(json) {
|
|
return SystemReadStorageRaftSnapshotLoadIdResponseToJSONTyped(json, false);
|
|
}
|
|
export function SystemReadStorageRaftSnapshotLoadIdResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
if (value == null) {
|
|
return value;
|
|
}
|
|
return {
|
|
'auto_snapshot_config': value['autoSnapshotConfig'],
|
|
'cluster_id': value['clusterId'],
|
|
'error': value['error'],
|
|
'expires_at': value['expiresAt'] == null ? undefined : ((value['expiresAt']).toISOString()),
|
|
'snapshot_id': value['snapshotId'],
|
|
'status': value['status'],
|
|
'uploader_entity_id': value['uploaderEntityId'],
|
|
'url': value['url'],
|
|
};
|
|
}
|