mirror of
https://github.com/hashicorp/vault.git
synced 2025-08-06 14:47:01 +02:00
58 lines
2.3 KiB
JavaScript
58 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 TransformWriteTransformationRequest interface.
|
|
*/
|
|
export function instanceOfTransformWriteTransformationRequest(value) {
|
|
return true;
|
|
}
|
|
export function TransformWriteTransformationRequestFromJSON(json) {
|
|
return TransformWriteTransformationRequestFromJSONTyped(json, false);
|
|
}
|
|
export function TransformWriteTransformationRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
if (json == null) {
|
|
return json;
|
|
}
|
|
return {
|
|
'allowedRoles': json['allowed_roles'] == null ? undefined : json['allowed_roles'],
|
|
'convergent': json['convergent'] == null ? undefined : json['convergent'],
|
|
'deletionAllowed': json['deletion_allowed'] == null ? undefined : json['deletion_allowed'],
|
|
'mappingMode': json['mapping_mode'] == null ? undefined : json['mapping_mode'],
|
|
'maskingCharacter': json['masking_character'] == null ? undefined : json['masking_character'],
|
|
'stores': json['stores'] == null ? undefined : json['stores'],
|
|
'template': json['template'] == null ? undefined : json['template'],
|
|
'tweakSource': json['tweak_source'] == null ? undefined : json['tweak_source'],
|
|
'type': json['type'] == null ? undefined : json['type'],
|
|
};
|
|
}
|
|
export function TransformWriteTransformationRequestToJSON(json) {
|
|
return TransformWriteTransformationRequestToJSONTyped(json, false);
|
|
}
|
|
export function TransformWriteTransformationRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
if (value == null) {
|
|
return value;
|
|
}
|
|
return {
|
|
'allowed_roles': value['allowedRoles'],
|
|
'convergent': value['convergent'],
|
|
'deletion_allowed': value['deletionAllowed'],
|
|
'mapping_mode': value['mappingMode'],
|
|
'masking_character': value['maskingCharacter'],
|
|
'stores': value['stores'],
|
|
'template': value['template'],
|
|
'tweak_source': value['tweakSource'],
|
|
'type': value['type'],
|
|
};
|
|
}
|