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

54 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 PluginsRuntimesCatalogReadPluginRuntimeConfigurationResponse interface.
*/
export function instanceOfPluginsRuntimesCatalogReadPluginRuntimeConfigurationResponse(value) {
return true;
}
export function PluginsRuntimesCatalogReadPluginRuntimeConfigurationResponseFromJSON(json) {
return PluginsRuntimesCatalogReadPluginRuntimeConfigurationResponseFromJSONTyped(json, false);
}
export function PluginsRuntimesCatalogReadPluginRuntimeConfigurationResponseFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'cgroupParent': json['cgroup_parent'] == null ? undefined : json['cgroup_parent'],
'cpuNanos': json['cpu_nanos'] == null ? undefined : json['cpu_nanos'],
'memoryBytes': json['memory_bytes'] == null ? undefined : json['memory_bytes'],
'name': json['name'] == null ? undefined : json['name'],
'ociRuntime': json['oci_runtime'] == null ? undefined : json['oci_runtime'],
'rootless': json['rootless'] == null ? undefined : json['rootless'],
'type': json['type'] == null ? undefined : json['type'],
};
}
export function PluginsRuntimesCatalogReadPluginRuntimeConfigurationResponseToJSON(json) {
return PluginsRuntimesCatalogReadPluginRuntimeConfigurationResponseToJSONTyped(json, false);
}
export function PluginsRuntimesCatalogReadPluginRuntimeConfigurationResponseToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {
'cgroup_parent': value['cgroupParent'],
'cpu_nanos': value['cpuNanos'],
'memory_bytes': value['memoryBytes'],
'name': value['name'],
'oci_runtime': value['ociRuntime'],
'rootless': value['rootless'],
'type': value['type'],
};
}