com.pulumi.gcp.endpoints.kotlin.outputs.ServiceApi.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-gcp-kotlin Show documentation
Show all versions of pulumi-gcp-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.gcp.endpoints.kotlin.outputs
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
/**
*
* @property methods A list of Method objects; structure is documented below.
* @property name The simple name of the endpoint as described in the config.
* @property syntax `SYNTAX_PROTO2` or `SYNTAX_PROTO3`.
* @property version A version string for this api. If specified, will have the form major-version.minor-version, e.g. `1.10`.
*/
public data class ServiceApi(
public val methods: List? = null,
public val name: String? = null,
public val syntax: String? = null,
public val version: String? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.gcp.endpoints.outputs.ServiceApi): ServiceApi =
ServiceApi(
methods = javaType.methods().map({ args0 ->
args0.let({ args0 ->
com.pulumi.gcp.endpoints.kotlin.outputs.ServiceApiMethod.Companion.toKotlin(args0)
})
}),
name = javaType.name().map({ args0 -> args0 }).orElse(null),
syntax = javaType.syntax().map({ args0 -> args0 }).orElse(null),
version = javaType.version().map({ args0 -> args0 }).orElse(null),
)
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy