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 TransformWriteTemplateRequest interface.
|
|
*/
|
|
export function instanceOfTransformWriteTemplateRequest(value) {
|
|
return true;
|
|
}
|
|
export function TransformWriteTemplateRequestFromJSON(json) {
|
|
return TransformWriteTemplateRequestFromJSONTyped(json, false);
|
|
}
|
|
export function TransformWriteTemplateRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
if (json == null) {
|
|
return json;
|
|
}
|
|
return {
|
|
'alphabet': json['alphabet'] == null ? undefined : json['alphabet'],
|
|
'decodeFormats': json['decode_formats'] == null ? undefined : json['decode_formats'],
|
|
'encodeFormat': json['encode_format'] == null ? undefined : json['encode_format'],
|
|
'pattern': json['pattern'] == null ? undefined : json['pattern'],
|
|
'type': json['type'] == null ? undefined : json['type'],
|
|
};
|
|
}
|
|
export function TransformWriteTemplateRequestToJSON(json) {
|
|
return TransformWriteTemplateRequestToJSONTyped(json, false);
|
|
}
|
|
export function TransformWriteTemplateRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
if (value == null) {
|
|
return value;
|
|
}
|
|
return {
|
|
'alphabet': value['alphabet'],
|
|
'decode_formats': value['decodeFormats'],
|
|
'encode_format': value['encodeFormat'],
|
|
'pattern': value['pattern'],
|
|
'type': value['type'],
|
|
};
|
|
}
|