aws.sdk.kotlin.services.sagemaker.transform.OidcConfigDocumentSerializer.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.sagemaker.transform
import aws.sdk.kotlin.services.sagemaker.model.OidcConfig
import aws.smithy.kotlin.runtime.serde.SdkFieldDescriptor
import aws.smithy.kotlin.runtime.serde.SdkObjectDescriptor
import aws.smithy.kotlin.runtime.serde.SerialKind
import aws.smithy.kotlin.runtime.serde.Serializer
import aws.smithy.kotlin.runtime.serde.asSdkSerializable
import aws.smithy.kotlin.runtime.serde.deserializeList
import aws.smithy.kotlin.runtime.serde.deserializeMap
import aws.smithy.kotlin.runtime.serde.deserializeStruct
import aws.smithy.kotlin.runtime.serde.field
import aws.smithy.kotlin.runtime.serde.json.JsonDeserializer
import aws.smithy.kotlin.runtime.serde.json.JsonSerialName
import aws.smithy.kotlin.runtime.serde.serializeList
import aws.smithy.kotlin.runtime.serde.serializeMap
import aws.smithy.kotlin.runtime.serde.serializeStruct
internal fun serializeOidcConfigDocument(serializer: Serializer, input: OidcConfig) {
val AUTHORIZATIONENDPOINT_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("AuthorizationEndpoint"))
val CLIENTID_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("ClientId"))
val CLIENTSECRET_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("ClientSecret"))
val ISSUER_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("Issuer"))
val JWKSURI_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("JwksUri"))
val LOGOUTENDPOINT_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("LogoutEndpoint"))
val TOKENENDPOINT_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("TokenEndpoint"))
val USERINFOENDPOINT_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("UserInfoEndpoint"))
val OBJ_DESCRIPTOR = SdkObjectDescriptor.build {
field(AUTHORIZATIONENDPOINT_DESCRIPTOR)
field(CLIENTID_DESCRIPTOR)
field(CLIENTSECRET_DESCRIPTOR)
field(ISSUER_DESCRIPTOR)
field(JWKSURI_DESCRIPTOR)
field(LOGOUTENDPOINT_DESCRIPTOR)
field(TOKENENDPOINT_DESCRIPTOR)
field(USERINFOENDPOINT_DESCRIPTOR)
}
serializer.serializeStruct(OBJ_DESCRIPTOR) {
input.clientId?.let { field(CLIENTID_DESCRIPTOR, it) }
input.clientSecret?.let { field(CLIENTSECRET_DESCRIPTOR, it) }
input.issuer?.let { field(ISSUER_DESCRIPTOR, it) }
input.authorizationEndpoint?.let { field(AUTHORIZATIONENDPOINT_DESCRIPTOR, it) }
input.tokenEndpoint?.let { field(TOKENENDPOINT_DESCRIPTOR, it) }
input.userInfoEndpoint?.let { field(USERINFOENDPOINT_DESCRIPTOR, it) }
input.logoutEndpoint?.let { field(LOGOUTENDPOINT_DESCRIPTOR, it) }
input.jwksUri?.let { field(JWKSURI_DESCRIPTOR, it) }
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy