![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.azurenative.apimanagement.kotlin.outputs.GetApiSchemaResult.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-azure-native-kotlin Show documentation
Show all versions of pulumi-azure-native-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.azurenative.apimanagement.kotlin.outputs
import kotlin.Any
import kotlin.String
import kotlin.Suppress
/**
* API Schema Contract details.
* @property components Types definitions. Used for Swagger/OpenAPI v2/v3 schemas only, null otherwise.
* @property contentType Must be a valid a media type used in a Content-Type header as defined in the RFC 2616. Media type of the schema document (e.g. application/json, application/xml). - `Swagger` Schema use `application/vnd.ms-azure-apim.swagger.definitions+json` - `WSDL` Schema use `application/vnd.ms-azure-apim.xsd+xml` - `OpenApi` Schema use `application/vnd.oai.openapi.components+json` - `WADL Schema` use `application/vnd.ms-azure-apim.wadl.grammars+xml`.
* @property definitions Types definitions. Used for Swagger/OpenAPI v1 schemas only, null otherwise.
* @property id Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
* @property name The name of the resource
* @property type The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
* @property value Json escaped string defining the document representing the Schema. Used for schemas other than Swagger/OpenAPI.
*/
public data class GetApiSchemaResult(
public val components: Any? = null,
public val contentType: String,
public val definitions: Any? = null,
public val id: String,
public val name: String,
public val type: String,
public val `value`: String? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.azurenative.apimanagement.outputs.GetApiSchemaResult): GetApiSchemaResult = GetApiSchemaResult(
components = javaType.components().map({ args0 -> args0 }).orElse(null),
contentType = javaType.contentType(),
definitions = javaType.definitions().map({ args0 -> args0 }).orElse(null),
id = javaType.id(),
name = javaType.name(),
type = javaType.type(),
`value` = javaType.`value`().map({ args0 -> args0 }).orElse(null),
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy