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

54 lines
1.9 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 SshSignCertificateRequest interface.
*/
export function instanceOfSshSignCertificateRequest(value) {
return true;
}
export function SshSignCertificateRequestFromJSON(json) {
return SshSignCertificateRequestFromJSONTyped(json, false);
}
export function SshSignCertificateRequestFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'certType': json['cert_type'] == null ? undefined : json['cert_type'],
'criticalOptions': json['critical_options'] == null ? undefined : json['critical_options'],
'extensions': json['extensions'] == null ? undefined : json['extensions'],
'keyId': json['key_id'] == null ? undefined : json['key_id'],
'publicKey': json['public_key'] == null ? undefined : json['public_key'],
'ttl': json['ttl'] == null ? undefined : json['ttl'],
'validPrincipals': json['valid_principals'] == null ? undefined : json['valid_principals'],
};
}
export function SshSignCertificateRequestToJSON(json) {
return SshSignCertificateRequestToJSONTyped(json, false);
}
export function SshSignCertificateRequestToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {
'cert_type': value['certType'],
'critical_options': value['criticalOptions'],
'extensions': value['extensions'],
'key_id': value['keyId'],
'public_key': value['publicKey'],
'ttl': value['ttl'],
'valid_principals': value['validPrincipals'],
};
}