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

58 lines
2.2 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 PluginsCatalogReadPluginConfigurationResponse interface.
*/
export function instanceOfPluginsCatalogReadPluginConfigurationResponse(value) {
return true;
}
export function PluginsCatalogReadPluginConfigurationResponseFromJSON(json) {
return PluginsCatalogReadPluginConfigurationResponseFromJSONTyped(json, false);
}
export function PluginsCatalogReadPluginConfigurationResponseFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'args': json['args'] == null ? undefined : json['args'],
'builtin': json['builtin'] == null ? undefined : json['builtin'],
'command': json['command'] == null ? undefined : json['command'],
'deprecationStatus': json['deprecation_status'] == null ? undefined : json['deprecation_status'],
'name': json['name'] == null ? undefined : json['name'],
'ociImage': json['oci_image'] == null ? undefined : json['oci_image'],
'runtime': json['runtime'] == null ? undefined : json['runtime'],
'sha256': json['sha256'] == null ? undefined : json['sha256'],
'version': json['version'] == null ? undefined : json['version'],
};
}
export function PluginsCatalogReadPluginConfigurationResponseToJSON(json) {
return PluginsCatalogReadPluginConfigurationResponseToJSONTyped(json, false);
}
export function PluginsCatalogReadPluginConfigurationResponseToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {
'args': value['args'],
'builtin': value['builtin'],
'command': value['command'],
'deprecation_status': value['deprecationStatus'],
'name': value['name'],
'oci_image': value['ociImage'],
'runtime': value['runtime'],
'sha256': value['sha256'],
'version': value['version'],
};
}