mirror of
https://github.com/hashicorp/vault.git
synced 2025-08-06 14:47:01 +02:00
50 lines
1.7 KiB
JavaScript
50 lines
1.7 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 KvV2WriteResponse interface.
|
|
*/
|
|
export function instanceOfKvV2WriteResponse(value) {
|
|
return true;
|
|
}
|
|
export function KvV2WriteResponseFromJSON(json) {
|
|
return KvV2WriteResponseFromJSONTyped(json, false);
|
|
}
|
|
export function KvV2WriteResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
if (json == null) {
|
|
return json;
|
|
}
|
|
return {
|
|
'createdTime': json['created_time'] == null ? undefined : (new Date(json['created_time'])),
|
|
'customMetadata': json['custom_metadata'] == null ? undefined : json['custom_metadata'],
|
|
'deletionTime': json['deletion_time'] == null ? undefined : json['deletion_time'],
|
|
'destroyed': json['destroyed'] == null ? undefined : json['destroyed'],
|
|
'version': json['version'] == null ? undefined : json['version'],
|
|
};
|
|
}
|
|
export function KvV2WriteResponseToJSON(json) {
|
|
return KvV2WriteResponseToJSONTyped(json, false);
|
|
}
|
|
export function KvV2WriteResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
if (value == null) {
|
|
return value;
|
|
}
|
|
return {
|
|
'created_time': value['createdTime'] == null ? undefined : ((value['createdTime']).toISOString()),
|
|
'custom_metadata': value['customMetadata'],
|
|
'deletion_time': value['deletionTime'],
|
|
'destroyed': value['destroyed'],
|
|
'version': value['version'],
|
|
};
|
|
}
|