mirror of
https://github.com/hashicorp/vault.git
synced 2025-08-25 16:41:08 +02:00
* removes dist from api-client gitignore * ignores api-client/dist directory for eslint and prettier * builds api client
97 lines
4.5 KiB
JavaScript
97 lines
4.5 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.PkiIssuerIssueWithRoleRequestPrivateKeyFormatEnum = exports.PkiIssuerIssueWithRoleRequestFormatEnum = void 0;
|
|
exports.instanceOfPkiIssuerIssueWithRoleRequest = instanceOfPkiIssuerIssueWithRoleRequest;
|
|
exports.PkiIssuerIssueWithRoleRequestFromJSON = PkiIssuerIssueWithRoleRequestFromJSON;
|
|
exports.PkiIssuerIssueWithRoleRequestFromJSONTyped = PkiIssuerIssueWithRoleRequestFromJSONTyped;
|
|
exports.PkiIssuerIssueWithRoleRequestToJSON = PkiIssuerIssueWithRoleRequestToJSON;
|
|
exports.PkiIssuerIssueWithRoleRequestToJSONTyped = PkiIssuerIssueWithRoleRequestToJSONTyped;
|
|
/**
|
|
* @export
|
|
* @enum {string}
|
|
*/
|
|
var PkiIssuerIssueWithRoleRequestFormatEnum;
|
|
(function (PkiIssuerIssueWithRoleRequestFormatEnum) {
|
|
PkiIssuerIssueWithRoleRequestFormatEnum["PEM"] = "pem";
|
|
PkiIssuerIssueWithRoleRequestFormatEnum["DER"] = "der";
|
|
PkiIssuerIssueWithRoleRequestFormatEnum["PEM_BUNDLE"] = "pem_bundle";
|
|
})(PkiIssuerIssueWithRoleRequestFormatEnum || (exports.PkiIssuerIssueWithRoleRequestFormatEnum = PkiIssuerIssueWithRoleRequestFormatEnum = {}));
|
|
/**
|
|
* @export
|
|
* @enum {string}
|
|
*/
|
|
var PkiIssuerIssueWithRoleRequestPrivateKeyFormatEnum;
|
|
(function (PkiIssuerIssueWithRoleRequestPrivateKeyFormatEnum) {
|
|
PkiIssuerIssueWithRoleRequestPrivateKeyFormatEnum["EMPTY"] = "";
|
|
PkiIssuerIssueWithRoleRequestPrivateKeyFormatEnum["DER"] = "der";
|
|
PkiIssuerIssueWithRoleRequestPrivateKeyFormatEnum["PEM"] = "pem";
|
|
PkiIssuerIssueWithRoleRequestPrivateKeyFormatEnum["PKCS8"] = "pkcs8";
|
|
})(PkiIssuerIssueWithRoleRequestPrivateKeyFormatEnum || (exports.PkiIssuerIssueWithRoleRequestPrivateKeyFormatEnum = PkiIssuerIssueWithRoleRequestPrivateKeyFormatEnum = {}));
|
|
/**
|
|
* Check if a given object implements the PkiIssuerIssueWithRoleRequest interface.
|
|
*/
|
|
function instanceOfPkiIssuerIssueWithRoleRequest(value) {
|
|
return true;
|
|
}
|
|
function PkiIssuerIssueWithRoleRequestFromJSON(json) {
|
|
return PkiIssuerIssueWithRoleRequestFromJSONTyped(json, false);
|
|
}
|
|
function PkiIssuerIssueWithRoleRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
if (json == null) {
|
|
return json;
|
|
}
|
|
return {
|
|
altNames: json['alt_names'] == null ? undefined : json['alt_names'],
|
|
certMetadata: json['cert_metadata'] == null ? undefined : json['cert_metadata'],
|
|
commonName: json['common_name'] == null ? undefined : json['common_name'],
|
|
excludeCnFromSans: json['exclude_cn_from_sans'] == null ? undefined : json['exclude_cn_from_sans'],
|
|
format: json['format'] == null ? undefined : json['format'],
|
|
ipSans: json['ip_sans'] == null ? undefined : json['ip_sans'],
|
|
notAfter: json['not_after'] == null ? undefined : json['not_after'],
|
|
otherSans: json['other_sans'] == null ? undefined : json['other_sans'],
|
|
privateKeyFormat: json['private_key_format'] == null ? undefined : json['private_key_format'],
|
|
removeRootsFromChain: json['remove_roots_from_chain'] == null ? undefined : json['remove_roots_from_chain'],
|
|
serialNumber: json['serial_number'] == null ? undefined : json['serial_number'],
|
|
ttl: json['ttl'] == null ? undefined : json['ttl'],
|
|
uriSans: json['uri_sans'] == null ? undefined : json['uri_sans'],
|
|
userIds: json['user_ids'] == null ? undefined : json['user_ids'],
|
|
};
|
|
}
|
|
function PkiIssuerIssueWithRoleRequestToJSON(json) {
|
|
return PkiIssuerIssueWithRoleRequestToJSONTyped(json, false);
|
|
}
|
|
function PkiIssuerIssueWithRoleRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
if (value == null) {
|
|
return value;
|
|
}
|
|
return {
|
|
alt_names: value['altNames'],
|
|
cert_metadata: value['certMetadata'],
|
|
common_name: value['commonName'],
|
|
exclude_cn_from_sans: value['excludeCnFromSans'],
|
|
format: value['format'],
|
|
ip_sans: value['ipSans'],
|
|
not_after: value['notAfter'],
|
|
other_sans: value['otherSans'],
|
|
private_key_format: value['privateKeyFormat'],
|
|
remove_roots_from_chain: value['removeRootsFromChain'],
|
|
serial_number: value['serialNumber'],
|
|
ttl: value['ttl'],
|
|
uri_sans: value['uriSans'],
|
|
user_ids: value['userIds'],
|
|
};
|
|
}
|