mirror of
https://github.com/hashicorp/vault.git
synced 2025-08-06 14:47:01 +02:00
54 lines
2.1 KiB
JavaScript
54 lines
2.1 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 TransformWriteTokenizationTransformationRequest interface.
|
|
*/
|
|
export function instanceOfTransformWriteTokenizationTransformationRequest(value) {
|
|
return true;
|
|
}
|
|
export function TransformWriteTokenizationTransformationRequestFromJSON(json) {
|
|
return TransformWriteTokenizationTransformationRequestFromJSONTyped(json, false);
|
|
}
|
|
export function TransformWriteTokenizationTransformationRequestFromJSONTyped(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'],
|
|
'maxTtl': json['max_ttl'] == null ? undefined : json['max_ttl'],
|
|
'stores': json['stores'] == null ? undefined : json['stores'],
|
|
'template': json['template'] == null ? undefined : json['template'],
|
|
};
|
|
}
|
|
export function TransformWriteTokenizationTransformationRequestToJSON(json) {
|
|
return TransformWriteTokenizationTransformationRequestToJSONTyped(json, false);
|
|
}
|
|
export function TransformWriteTokenizationTransformationRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
if (value == null) {
|
|
return value;
|
|
}
|
|
return {
|
|
'allowed_roles': value['allowedRoles'],
|
|
'convergent': value['convergent'],
|
|
'deletion_allowed': value['deletionAllowed'],
|
|
'mapping_mode': value['mappingMode'],
|
|
'max_ttl': value['maxTtl'],
|
|
'stores': value['stores'],
|
|
'template': value['template'],
|
|
};
|
|
}
|