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

com.pulumi.azure.apimanagement.kotlin.outputs.GetApiResult.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azure.apimanagement.kotlin.outputs

import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List

/**
 * A collection of values returned by getApi.
 * @property apiManagementName
 * @property description A description of the API Management API, which may include HTML formatting tags.
 * @property displayName The display name of the API.
 * @property id The provider-assigned unique ID for this managed resource.
 * @property isCurrent Is this the current API Revision?
 * @property isOnline Is this API Revision online/accessible via the Gateway?
 * @property name
 * @property path The Path for this API Management API.
 * @property protocols A list of protocols the operations in this API can be invoked.
 * @property resourceGroupName
 * @property revision
 * @property serviceUrl Absolute URL of the backend service implementing this API.
 * @property soapPassThrough Should this API expose a SOAP frontend, rather than a HTTP frontend?
 * @property subscriptionKeyParameterNames A `subscription_key_parameter_names` block as documented below.
 * @property subscriptionRequired Should this API require a subscription key?
 * @property version The Version number of this API, if this API is versioned.
 * @property versionSetId The ID of the Version Set which this API is associated with.
 */
public data class GetApiResult(
    public val apiManagementName: String,
    public val description: String,
    public val displayName: String,
    public val id: String,
    public val isCurrent: Boolean,
    public val isOnline: Boolean,
    public val name: String,
    public val path: String,
    public val protocols: List,
    public val resourceGroupName: String,
    public val revision: String,
    public val serviceUrl: String,
    public val soapPassThrough: Boolean,
    public val subscriptionKeyParameterNames: List,
    public val subscriptionRequired: Boolean,
    public val version: String,
    public val versionSetId: String,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.azure.apimanagement.outputs.GetApiResult): GetApiResult = GetApiResult(
            apiManagementName = javaType.apiManagementName(),
            description = javaType.description(),
            displayName = javaType.displayName(),
            id = javaType.id(),
            isCurrent = javaType.isCurrent(),
            isOnline = javaType.isOnline(),
            name = javaType.name(),
            path = javaType.path(),
            protocols = javaType.protocols().map({ args0 -> args0 }),
            resourceGroupName = javaType.resourceGroupName(),
            revision = javaType.revision(),
            serviceUrl = javaType.serviceUrl(),
            soapPassThrough = javaType.soapPassThrough(),
            subscriptionKeyParameterNames = javaType.subscriptionKeyParameterNames().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.azure.apimanagement.kotlin.outputs.GetApiSubscriptionKeyParameterName.Companion.toKotlin(args0)
                })
            }),
            subscriptionRequired = javaType.subscriptionRequired(),
            version = javaType.version(),
            versionSetId = javaType.versionSetId(),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy