vault/ui/api-client/dist/esm/models/OidcProviderAuthorizeWithParametersRequest.js

66 lines
2.5 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 OidcProviderAuthorizeWithParametersRequest interface.
*/
export function instanceOfOidcProviderAuthorizeWithParametersRequest(value) {
if (!('clientId' in value) || value['clientId'] === undefined)
return false;
if (!('redirectUri' in value) || value['redirectUri'] === undefined)
return false;
if (!('responseType' in value) || value['responseType'] === undefined)
return false;
if (!('scope' in value) || value['scope'] === undefined)
return false;
return true;
}
export function OidcProviderAuthorizeWithParametersRequestFromJSON(json) {
return OidcProviderAuthorizeWithParametersRequestFromJSONTyped(json, false);
}
export function OidcProviderAuthorizeWithParametersRequestFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'clientId': json['client_id'],
'codeChallenge': json['code_challenge'] == null ? undefined : json['code_challenge'],
'codeChallengeMethod': json['code_challenge_method'] == null ? undefined : json['code_challenge_method'],
'maxAge': json['max_age'] == null ? undefined : json['max_age'],
'nonce': json['nonce'] == null ? undefined : json['nonce'],
'redirectUri': json['redirect_uri'],
'responseType': json['response_type'],
'scope': json['scope'],
'state': json['state'] == null ? undefined : json['state'],
};
}
export function OidcProviderAuthorizeWithParametersRequestToJSON(json) {
return OidcProviderAuthorizeWithParametersRequestToJSONTyped(json, false);
}
export function OidcProviderAuthorizeWithParametersRequestToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {
'client_id': value['clientId'],
'code_challenge': value['codeChallenge'],
'code_challenge_method': value['codeChallengeMethod'],
'max_age': value['maxAge'],
'nonce': value['nonce'],
'redirect_uri': value['redirectUri'],
'response_type': value['responseType'],
'scope': value['scope'],
'state': value['state'],
};
}