vault/ui/api-client/dist/models/OidcProviderAuthorizeWithParametersRequest.js
Jordan Reimer 5905f43e1f
[UI] Check-in Built API Client (#29955)
* removes dist from api-client gitignore

* ignores api-client/dist directory for eslint and prettier

* builds api client
2025-03-19 11:50:15 -06:00

73 lines
3.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.instanceOfOidcProviderAuthorizeWithParametersRequest = instanceOfOidcProviderAuthorizeWithParametersRequest;
exports.OidcProviderAuthorizeWithParametersRequestFromJSON = OidcProviderAuthorizeWithParametersRequestFromJSON;
exports.OidcProviderAuthorizeWithParametersRequestFromJSONTyped = OidcProviderAuthorizeWithParametersRequestFromJSONTyped;
exports.OidcProviderAuthorizeWithParametersRequestToJSON = OidcProviderAuthorizeWithParametersRequestToJSON;
exports.OidcProviderAuthorizeWithParametersRequestToJSONTyped = OidcProviderAuthorizeWithParametersRequestToJSONTyped;
/**
* Check if a given object implements the OidcProviderAuthorizeWithParametersRequest interface.
*/
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;
}
function OidcProviderAuthorizeWithParametersRequestFromJSON(json) {
return OidcProviderAuthorizeWithParametersRequestFromJSONTyped(json, false);
}
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'],
};
}
function OidcProviderAuthorizeWithParametersRequestToJSON(json) {
return OidcProviderAuthorizeWithParametersRequestToJSONTyped(json, false);
}
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'],
};
}