mirror of
https://github.com/hashicorp/vault.git
synced 2025-08-26 00:51:08 +02:00
* removes dist from api-client gitignore * ignores api-client/dist directory for eslint and prettier * builds api client
61 lines
2.4 KiB
JavaScript
61 lines
2.4 KiB
JavaScript
"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.instanceOfSshSignCertificateRequest = instanceOfSshSignCertificateRequest;
|
|
exports.SshSignCertificateRequestFromJSON = SshSignCertificateRequestFromJSON;
|
|
exports.SshSignCertificateRequestFromJSONTyped = SshSignCertificateRequestFromJSONTyped;
|
|
exports.SshSignCertificateRequestToJSON = SshSignCertificateRequestToJSON;
|
|
exports.SshSignCertificateRequestToJSONTyped = SshSignCertificateRequestToJSONTyped;
|
|
/**
|
|
* Check if a given object implements the SshSignCertificateRequest interface.
|
|
*/
|
|
function instanceOfSshSignCertificateRequest(value) {
|
|
return true;
|
|
}
|
|
function SshSignCertificateRequestFromJSON(json) {
|
|
return SshSignCertificateRequestFromJSONTyped(json, false);
|
|
}
|
|
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'],
|
|
};
|
|
}
|
|
function SshSignCertificateRequestToJSON(json) {
|
|
return SshSignCertificateRequestToJSONTyped(json, false);
|
|
}
|
|
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'],
|
|
};
|
|
}
|