All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.gcp.endpoints.kotlin.outputs.ServiceApiMethod.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 8.10.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.gcp.endpoints.kotlin.outputs

import kotlin.String
import kotlin.Suppress

/**
 *
 * @property name The simple name of the endpoint as described in the config.
 * @property requestType The type URL for the request to this API.
 * @property responseType The type URL for the response from this API.
 * @property syntax `SYNTAX_PROTO2` or `SYNTAX_PROTO3`.
 */
public data class ServiceApiMethod(
    public val name: String? = null,
    public val requestType: String? = null,
    public val responseType: String? = null,
    public val syntax: String? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.gcp.endpoints.outputs.ServiceApiMethod): ServiceApiMethod = ServiceApiMethod(
            name = javaType.name().map({ args0 -> args0 }).orElse(null),
            requestType = javaType.requestType().map({ args0 -> args0 }).orElse(null),
            responseType = javaType.responseType().map({ args0 -> args0 }).orElse(null),
            syntax = javaType.syntax().map({ args0 -> args0 }).orElse(null),
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy