mirror of
https://github.com/hashicorp/vault.git
synced 2025-08-28 18:11:10 +02:00
58 lines
2.0 KiB
JavaScript
58 lines
2.0 KiB
JavaScript
/* 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.
|
|
*/
|
|
/**
|
|
* Check if a given object implements the OidcProviderTokenRequest interface.
|
|
*/
|
|
export function instanceOfOidcProviderTokenRequest(value) {
|
|
if (!('code' in value) || value['code'] === undefined)
|
|
return false;
|
|
if (!('grantType' in value) || value['grantType'] === undefined)
|
|
return false;
|
|
if (!('redirectUri' in value) || value['redirectUri'] === undefined)
|
|
return false;
|
|
return true;
|
|
}
|
|
export function OidcProviderTokenRequestFromJSON(json) {
|
|
return OidcProviderTokenRequestFromJSONTyped(json, false);
|
|
}
|
|
export function OidcProviderTokenRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
if (json == null) {
|
|
return json;
|
|
}
|
|
return {
|
|
'clientId': json['client_id'] == null ? undefined : json['client_id'],
|
|
'clientSecret': json['client_secret'] == null ? undefined : json['client_secret'],
|
|
'code': json['code'],
|
|
'codeVerifier': json['code_verifier'] == null ? undefined : json['code_verifier'],
|
|
'grantType': json['grant_type'],
|
|
'redirectUri': json['redirect_uri'],
|
|
};
|
|
}
|
|
export function OidcProviderTokenRequestToJSON(json) {
|
|
return OidcProviderTokenRequestToJSONTyped(json, false);
|
|
}
|
|
export function OidcProviderTokenRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
if (value == null) {
|
|
return value;
|
|
}
|
|
return {
|
|
'client_id': value['clientId'],
|
|
'client_secret': value['clientSecret'],
|
|
'code': value['code'],
|
|
'code_verifier': value['codeVerifier'],
|
|
'grant_type': value['grantType'],
|
|
'redirect_uri': value['redirectUri'],
|
|
};
|
|
}
|