com.svix.kotlin.models.EndpointOauthConfigIn.kt Maven / Gradle / Ivy
/**
* Svix API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.1.1
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
package com.svix.kotlin.models
import com.svix.kotlin.models.ClientSecretJwtParamsIn
import com.svix.kotlin.models.Oauth2AuthMethodIn
import com.svix.kotlin.models.Oauth2GrantTypeIn
import com.squareup.moshi.Json
/**
*
* @param authMethod
* @param clientId The client ID. Required for all authentication types.
* @param grantType
* @param tokenUrl The URL of the authorization server.
* @param clientSecret Optional client secret. This is only used for `clientSecretBasic` and `clientSecretPost`. For `clientSecretBasic`, the secret will be appended to the `Authorization` header. For `clientSecretPost`, this will be added to the body in a `client_secret` parameter.
* @param extraParams Extra parameters added to the request body as key-value pairs.
* @param jwtParams
* @param refreshToken For `refreshToken` grant type
* @param scopes Optional OAuth scopes added to the request body.
*/
data class EndpointOauthConfigIn (
@Json(name = "authMethod")
val authMethod: Oauth2AuthMethodIn,
/* The client ID. Required for all authentication types. */
@Json(name = "clientId")
val clientId: kotlin.String,
@Json(name = "grantType")
val grantType: Oauth2GrantTypeIn,
/* The URL of the authorization server. */
@Json(name = "tokenUrl")
val tokenUrl: java.net.URI,
/* Optional client secret. This is only used for `clientSecretBasic` and `clientSecretPost`. For `clientSecretBasic`, the secret will be appended to the `Authorization` header. For `clientSecretPost`, this will be added to the body in a `client_secret` parameter. */
@Json(name = "clientSecret")
val clientSecret: kotlin.String? = null,
/* Extra parameters added to the request body as key-value pairs. */
@Json(name = "extraParams")
val extraParams: kotlin.collections.Map? = null,
@Json(name = "jwtParams")
val jwtParams: ClientSecretJwtParamsIn? = null,
/* For `refreshToken` grant type */
@Json(name = "refreshToken")
val refreshToken: kotlin.String? = null,
/* Optional OAuth scopes added to the request body. */
@Json(name = "scopes")
val scopes: kotlin.collections.List? = null
)