vault/ui/api-client/dist/models/PkiReadUrlsConfigurationResponse.js

55 lines
2.3 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.instanceOfPkiReadUrlsConfigurationResponse = instanceOfPkiReadUrlsConfigurationResponse;
exports.PkiReadUrlsConfigurationResponseFromJSON = PkiReadUrlsConfigurationResponseFromJSON;
exports.PkiReadUrlsConfigurationResponseFromJSONTyped = PkiReadUrlsConfigurationResponseFromJSONTyped;
exports.PkiReadUrlsConfigurationResponseToJSON = PkiReadUrlsConfigurationResponseToJSON;
exports.PkiReadUrlsConfigurationResponseToJSONTyped = PkiReadUrlsConfigurationResponseToJSONTyped;
/**
* Check if a given object implements the PkiReadUrlsConfigurationResponse interface.
*/
function instanceOfPkiReadUrlsConfigurationResponse(value) {
return true;
}
function PkiReadUrlsConfigurationResponseFromJSON(json) {
return PkiReadUrlsConfigurationResponseFromJSONTyped(json, false);
}
function PkiReadUrlsConfigurationResponseFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'crlDistributionPoints': json['crl_distribution_points'] == null ? undefined : json['crl_distribution_points'],
'enableTemplating': json['enable_templating'] == null ? undefined : json['enable_templating'],
'issuingCertificates': json['issuing_certificates'] == null ? undefined : json['issuing_certificates'],
'ocspServers': json['ocsp_servers'] == null ? undefined : json['ocsp_servers'],
};
}
function PkiReadUrlsConfigurationResponseToJSON(json) {
return PkiReadUrlsConfigurationResponseToJSONTyped(json, false);
}
function PkiReadUrlsConfigurationResponseToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {
'crl_distribution_points': value['crlDistributionPoints'],
'enable_templating': value['enableTemplating'],
'issuing_certificates': value['issuingCertificates'],
'ocsp_servers': value['ocspServers'],
};
}