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

com.pulumi.azure.apimanagement.kotlin.outputs.ApiOperationRequest.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: 6.15.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

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

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

/**
 *
 * @property description A description of the HTTP Request, which may include HTML tags.
 * @property headers One or more `header` blocks as defined above.
 * @property queryParameters One or more `query_parameter` blocks as defined above.
 * @property representations One or more `representation` blocks as defined below.
 */
public data class ApiOperationRequest(
    public val description: String? = null,
    public val headers: List? = null,
    public val queryParameters: List? = null,
    public val representations: List? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.azure.apimanagement.outputs.ApiOperationRequest): ApiOperationRequest = ApiOperationRequest(
            description = javaType.description().map({ args0 -> args0 }).orElse(null),
            headers = javaType.headers().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.azure.apimanagement.kotlin.outputs.ApiOperationRequestHeader.Companion.toKotlin(args0)
                })
            }),
            queryParameters = javaType.queryParameters().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.azure.apimanagement.kotlin.outputs.ApiOperationRequestQueryParameter.Companion.toKotlin(args0)
                })
            }),
            representations = javaType.representations().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.azure.apimanagement.kotlin.outputs.ApiOperationRequestRepresentation.Companion.toKotlin(args0)
                })
            }),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy