"use strict"; /* 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.20.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ Object.defineProperty(exports, "__esModule", { value: true }); exports.instanceOfSshIssueCertificateRequest = instanceOfSshIssueCertificateRequest; exports.SshIssueCertificateRequestFromJSON = SshIssueCertificateRequestFromJSON; exports.SshIssueCertificateRequestFromJSONTyped = SshIssueCertificateRequestFromJSONTyped; exports.SshIssueCertificateRequestToJSON = SshIssueCertificateRequestToJSON; exports.SshIssueCertificateRequestToJSONTyped = SshIssueCertificateRequestToJSONTyped; /** * Check if a given object implements the SshIssueCertificateRequest interface. */ function instanceOfSshIssueCertificateRequest(value) { return true; } function SshIssueCertificateRequestFromJSON(json) { return SshIssueCertificateRequestFromJSONTyped(json, false); } function SshIssueCertificateRequestFromJSONTyped(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'], 'keyBits': json['key_bits'] == null ? undefined : json['key_bits'], 'keyId': json['key_id'] == null ? undefined : json['key_id'], 'keyType': json['key_type'] == null ? undefined : json['key_type'], 'ttl': json['ttl'] == null ? undefined : json['ttl'], 'validPrincipals': json['valid_principals'] == null ? undefined : json['valid_principals'], }; } function SshIssueCertificateRequestToJSON(json) { return SshIssueCertificateRequestToJSONTyped(json, false); } function SshIssueCertificateRequestToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return { 'cert_type': value['certType'], 'critical_options': value['criticalOptions'], 'extensions': value['extensions'], 'key_bits': value['keyBits'], 'key_id': value['keyId'], 'key_type': value['keyType'], 'ttl': value['ttl'], 'valid_principals': value['validPrincipals'], }; }