/* tslint:disable */ /* eslint-disable */ /** * Hathora Cloud API * Welcome to the Hathora Cloud API documentation! Learn how to use the Hathora Cloud APIs to build and scale your game servers globally. * * The version of the OpenAPI document: 0.0.1 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ import { exists, mapValues } from '../runtime'; /** * Enable google auth for your application. * @export * @interface AuthConfigurationGoogle */ export interface AuthConfigurationGoogle { /** * A Google generated token representing the developer's credentials for [Google's API Console](https://console.cloud.google.com/apis/dashboard?pli=1&project=discourse-login-388921). Learn how to get a `clientId` [here](https://developers.google.com/identity/gsi/web/guides/get-google-api-clientid). * @type {string} * @memberof AuthConfigurationGoogle */ clientId: string; } /** * Check if a given object implements the AuthConfigurationGoogle interface. */ export function instanceOfAuthConfigurationGoogle(value: object): boolean { let isInstance = true; isInstance = isInstance && "clientId" in value; return isInstance; } export function AuthConfigurationGoogleFromJSON(json: any): AuthConfigurationGoogle { return AuthConfigurationGoogleFromJSONTyped(json, false); } export function AuthConfigurationGoogleFromJSONTyped(json: any, ignoreDiscriminator: boolean): AuthConfigurationGoogle { if ((json === undefined) || (json === null)) { return json; } return { 'clientId': json['clientId'], }; } export function AuthConfigurationGoogleToJSON(value?: AuthConfigurationGoogle | null): any { if (value === undefined) { return undefined; } if (value === null) { return null; } return { 'clientId': value.clientId, }; }