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
79 lines
4.1 KiB
JavaScript
79 lines
4.1 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.instanceOfCloudFoundryConfigureRequest = instanceOfCloudFoundryConfigureRequest;
|
|
exports.CloudFoundryConfigureRequestFromJSON = CloudFoundryConfigureRequestFromJSON;
|
|
exports.CloudFoundryConfigureRequestFromJSONTyped = CloudFoundryConfigureRequestFromJSONTyped;
|
|
exports.CloudFoundryConfigureRequestToJSON = CloudFoundryConfigureRequestToJSON;
|
|
exports.CloudFoundryConfigureRequestToJSONTyped = CloudFoundryConfigureRequestToJSONTyped;
|
|
/**
|
|
* Check if a given object implements the CloudFoundryConfigureRequest interface.
|
|
*/
|
|
function instanceOfCloudFoundryConfigureRequest(value) {
|
|
return true;
|
|
}
|
|
function CloudFoundryConfigureRequestFromJSON(json) {
|
|
return CloudFoundryConfigureRequestFromJSONTyped(json, false);
|
|
}
|
|
function CloudFoundryConfigureRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
if (json == null) {
|
|
return json;
|
|
}
|
|
return {
|
|
cfApiAddr: json['cf_api_addr'] == null ? undefined : json['cf_api_addr'],
|
|
cfApiMutualTlsCertificate: json['cf_api_mutual_tls_certificate'] == null ? undefined : json['cf_api_mutual_tls_certificate'],
|
|
cfApiMutualTlsKey: json['cf_api_mutual_tls_key'] == null ? undefined : json['cf_api_mutual_tls_key'],
|
|
cfApiTrustedCertificates: json['cf_api_trusted_certificates'] == null ? undefined : json['cf_api_trusted_certificates'],
|
|
cfClientId: json['cf_client_id'] == null ? undefined : json['cf_client_id'],
|
|
cfClientSecret: json['cf_client_secret'] == null ? undefined : json['cf_client_secret'],
|
|
cfPassword: json['cf_password'] == null ? undefined : json['cf_password'],
|
|
cfTimeout: json['cf_timeout'] == null ? undefined : json['cf_timeout'],
|
|
cfUsername: json['cf_username'] == null ? undefined : json['cf_username'],
|
|
identityCaCertificates: json['identity_ca_certificates'] == null ? undefined : json['identity_ca_certificates'],
|
|
loginMaxSecondsNotAfter: json['login_max_seconds_not_after'] == null ? undefined : json['login_max_seconds_not_after'],
|
|
loginMaxSecondsNotBefore: json['login_max_seconds_not_before'] == null ? undefined : json['login_max_seconds_not_before'],
|
|
pcfApiAddr: json['pcf_api_addr'] == null ? undefined : json['pcf_api_addr'],
|
|
pcfApiTrustedCertificates: json['pcf_api_trusted_certificates'] == null ? undefined : json['pcf_api_trusted_certificates'],
|
|
pcfPassword: json['pcf_password'] == null ? undefined : json['pcf_password'],
|
|
pcfUsername: json['pcf_username'] == null ? undefined : json['pcf_username'],
|
|
};
|
|
}
|
|
function CloudFoundryConfigureRequestToJSON(json) {
|
|
return CloudFoundryConfigureRequestToJSONTyped(json, false);
|
|
}
|
|
function CloudFoundryConfigureRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
if (value == null) {
|
|
return value;
|
|
}
|
|
return {
|
|
cf_api_addr: value['cfApiAddr'],
|
|
cf_api_mutual_tls_certificate: value['cfApiMutualTlsCertificate'],
|
|
cf_api_mutual_tls_key: value['cfApiMutualTlsKey'],
|
|
cf_api_trusted_certificates: value['cfApiTrustedCertificates'],
|
|
cf_client_id: value['cfClientId'],
|
|
cf_client_secret: value['cfClientSecret'],
|
|
cf_password: value['cfPassword'],
|
|
cf_timeout: value['cfTimeout'],
|
|
cf_username: value['cfUsername'],
|
|
identity_ca_certificates: value['identityCaCertificates'],
|
|
login_max_seconds_not_after: value['loginMaxSecondsNotAfter'],
|
|
login_max_seconds_not_before: value['loginMaxSecondsNotBefore'],
|
|
pcf_api_addr: value['pcfApiAddr'],
|
|
pcf_api_trusted_certificates: value['pcfApiTrustedCertificates'],
|
|
pcf_password: value['pcfPassword'],
|
|
pcf_username: value['pcfUsername'],
|
|
};
|
|
}
|