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

51 lines
1.7 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.instanceOfOidcIntrospectRequest = instanceOfOidcIntrospectRequest;
exports.OidcIntrospectRequestFromJSON = OidcIntrospectRequestFromJSON;
exports.OidcIntrospectRequestFromJSONTyped = OidcIntrospectRequestFromJSONTyped;
exports.OidcIntrospectRequestToJSON = OidcIntrospectRequestToJSON;
exports.OidcIntrospectRequestToJSONTyped = OidcIntrospectRequestToJSONTyped;
/**
* Check if a given object implements the OidcIntrospectRequest interface.
*/
function instanceOfOidcIntrospectRequest(value) {
return true;
}
function OidcIntrospectRequestFromJSON(json) {
return OidcIntrospectRequestFromJSONTyped(json, false);
}
function OidcIntrospectRequestFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'clientId': json['client_id'] == null ? undefined : json['client_id'],
'token': json['token'] == null ? undefined : json['token'],
};
}
function OidcIntrospectRequestToJSON(json) {
return OidcIntrospectRequestToJSONTyped(json, false);
}
function OidcIntrospectRequestToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {
'client_id': value['clientId'],
'token': value['token'],
};
}