vault/ui/api-client/dist/esm/models/TransformApplyStoreSchemaRequest.js

46 lines
1.5 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 TransformApplyStoreSchemaRequest interface.
*/
export function instanceOfTransformApplyStoreSchemaRequest(value) {
return true;
}
export function TransformApplyStoreSchemaRequestFromJSON(json) {
return TransformApplyStoreSchemaRequestFromJSONTyped(json, false);
}
export function TransformApplyStoreSchemaRequestFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'password': json['password'] == null ? undefined : json['password'],
'transformationType': json['transformation_type'] == null ? undefined : json['transformation_type'],
'username': json['username'] == null ? undefined : json['username'],
};
}
export function TransformApplyStoreSchemaRequestToJSON(json) {
return TransformApplyStoreSchemaRequestToJSONTyped(json, false);
}
export function TransformApplyStoreSchemaRequestToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {
'password': value['password'],
'transformation_type': value['transformationType'],
'username': value['username'],
};
}