com.pulumi.azure.apimanagement.kotlin.outputs.ApiImport.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-azure-kotlin Show documentation
Show all versions of pulumi-azure-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.azure.apimanagement.kotlin.outputs
import kotlin.String
import kotlin.Suppress
/**
*
* @property contentFormat The format of the content from which the API Definition should be imported. Possible values are: `openapi`, `openapi+json`, `openapi+json-link`, `openapi-link`, `swagger-json`, `swagger-link-json`, `wadl-link-json`, `wadl-xml`, `wsdl` and `wsdl-link`.
* @property contentValue The Content from which the API Definition should be imported. When a `content_format` of `*-link-*` is specified this must be a URL, otherwise this must be defined inline.
* @property wsdlSelector A `wsdl_selector` block as defined below, which allows you to limit the import of a WSDL to only a subset of the document. This can only be specified when `content_format` is `wsdl` or `wsdl-link`.
*/
public data class ApiImport(
public val contentFormat: String,
public val contentValue: String,
public val wsdlSelector: ApiImportWsdlSelector? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.azure.apimanagement.outputs.ApiImport): ApiImport =
ApiImport(
contentFormat = javaType.contentFormat(),
contentValue = javaType.contentValue(),
wsdlSelector = javaType.wsdlSelector().map({ args0 ->
args0.let({ args0 ->
com.pulumi.azure.apimanagement.kotlin.outputs.ApiImportWsdlSelector.Companion.toKotlin(args0)
})
}).orElse(null),
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy