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

60 lines
2.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 GenerateUtilizationReportResponse interface.
*/
export function instanceOfGenerateUtilizationReportResponse(value) {
return true;
}
export function GenerateUtilizationReportResponseFromJSON(json) {
return GenerateUtilizationReportResponseFromJSONTyped(json, false);
}
export function GenerateUtilizationReportResponseFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'authMethods': json['auth_methods'] == null ? undefined : json['auth_methods'],
'kvv1Secrets': json['kvv1_secrets'] == null ? undefined : json['kvv1_secrets'],
'kvv2Secrets': json['kvv2_secrets'] == null ? undefined : json['kvv2_secrets'],
'leaseCountQuotas': json['lease_count_quotas'] == null ? undefined : json['lease_count_quotas'],
'leasesByAuthMethod': json['leases_by_auth_method'] == null ? undefined : json['leases_by_auth_method'],
'namespaces': json['namespaces'] == null ? undefined : json['namespaces'],
'pki': json['pki'] == null ? undefined : json['pki'],
'replicationStatus': json['replication_status'] == null ? undefined : json['replication_status'],
'secretEngines': json['secret_engines'] == null ? undefined : json['secret_engines'],
'secretSync': json['secret_sync'] == null ? undefined : json['secret_sync'],
};
}
export function GenerateUtilizationReportResponseToJSON(json) {
return GenerateUtilizationReportResponseToJSONTyped(json, false);
}
export function GenerateUtilizationReportResponseToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {
'auth_methods': value['authMethods'],
'kvv1_secrets': value['kvv1Secrets'],
'kvv2_secrets': value['kvv2Secrets'],
'lease_count_quotas': value['leaseCountQuotas'],
'leases_by_auth_method': value['leasesByAuthMethod'],
'namespaces': value['namespaces'],
'pki': value['pki'],
'replication_status': value['replicationStatus'],
'secret_engines': value['secretEngines'],
'secret_sync': value['secretSync'],
};
}