Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
com.pulumi.googlenative.apigeeregistry.v1.kotlin.DeploymentArgs.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.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.googlenative.apigeeregistry.v1.kotlin
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.googlenative.apigeeregistry.v1.DeploymentArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.collections.Map
import kotlin.jvm.JvmName
/**
* Creates a specified deployment.
* @property accessGuidance Text briefly describing how to access the endpoint. Changes to this value will not affect the revision.
* @property annotations Annotations attach non-identifying metadata to resources. Annotation keys and values are less restricted than those of labels, but should be generally used for small values of broad interest. Larger, topic- specific metadata should be stored in Artifacts.
* @property apiDeploymentId Required. The ID to use for the deployment, which will become the final component of the deployment's resource name. This value should be 4-63 characters, and valid characters are /a-z-/. Following AIP-162, IDs must not have the form of a UUID.
* @property apiId
* @property apiSpecRevision The full resource name (including revision ID) of the spec of the API being served by the deployment. Changes to this value will update the revision. Format: `projects/{project}/locations/{location}/apis/{api}/versions/{version}/specs/{spec@revision}`
* @property description A detailed description.
* @property displayName Human-meaningful name.
* @property endpointUri The address where the deployment is serving. Changes to this value will update the revision.
* @property externalChannelUri The address of the external channel of the API (e.g., the Developer Portal). Changes to this value will not affect the revision.
* @property intendedAudience Text briefly identifying the intended audience of the API. Changes to this value will not affect the revision.
* @property labels Labels attach identifying metadata to resources. Identifying metadata can be used to filter list operations. Label keys and values can be no longer than 64 characters (Unicode codepoints), can only contain lowercase letters, numeric characters, underscores and dashes. International characters are allowed. No more than 64 user labels can be associated with one resource (System labels are excluded). See https://goo.gl/xmQnxf for more information and examples of labels. System reserved label keys are prefixed with `apigeeregistry.googleapis.com/` and cannot be changed.
* @property location
* @property name Resource name.
* @property project
*/
public data class DeploymentArgs(
public val accessGuidance: Output? = null,
public val annotations: Output>? = null,
public val apiDeploymentId: Output? = null,
public val apiId: Output? = null,
public val apiSpecRevision: Output? = null,
public val description: Output? = null,
public val displayName: Output? = null,
public val endpointUri: Output? = null,
public val externalChannelUri: Output? = null,
public val intendedAudience: Output? = null,
public val labels: Output>? = null,
public val location: Output? = null,
public val name: Output? = null,
public val project: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.googlenative.apigeeregistry.v1.DeploymentArgs =
com.pulumi.googlenative.apigeeregistry.v1.DeploymentArgs.builder()
.accessGuidance(accessGuidance?.applyValue({ args0 -> args0 }))
.annotations(
annotations?.applyValue({ args0 ->
args0.map({ args0 ->
args0.key.to(args0.value)
}).toMap()
}),
)
.apiDeploymentId(apiDeploymentId?.applyValue({ args0 -> args0 }))
.apiId(apiId?.applyValue({ args0 -> args0 }))
.apiSpecRevision(apiSpecRevision?.applyValue({ args0 -> args0 }))
.description(description?.applyValue({ args0 -> args0 }))
.displayName(displayName?.applyValue({ args0 -> args0 }))
.endpointUri(endpointUri?.applyValue({ args0 -> args0 }))
.externalChannelUri(externalChannelUri?.applyValue({ args0 -> args0 }))
.intendedAudience(intendedAudience?.applyValue({ args0 -> args0 }))
.labels(labels?.applyValue({ args0 -> args0.map({ args0 -> args0.key.to(args0.value) }).toMap() }))
.location(location?.applyValue({ args0 -> args0 }))
.name(name?.applyValue({ args0 -> args0 }))
.project(project?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [DeploymentArgs].
*/
@PulumiTagMarker
public class DeploymentArgsBuilder internal constructor() {
private var accessGuidance: Output? = null
private var annotations: Output>? = null
private var apiDeploymentId: Output? = null
private var apiId: Output? = null
private var apiSpecRevision: Output? = null
private var description: Output? = null
private var displayName: Output? = null
private var endpointUri: Output? = null
private var externalChannelUri: Output? = null
private var intendedAudience: Output? = null
private var labels: Output>? = null
private var location: Output? = null
private var name: Output? = null
private var project: Output? = null
/**
* @param value Text briefly describing how to access the endpoint. Changes to this value will not affect the revision.
*/
@JvmName("jjahvklilallrjsp")
public suspend fun accessGuidance(`value`: Output) {
this.accessGuidance = value
}
/**
* @param value Annotations attach non-identifying metadata to resources. Annotation keys and values are less restricted than those of labels, but should be generally used for small values of broad interest. Larger, topic- specific metadata should be stored in Artifacts.
*/
@JvmName("nircbhocmbhqksda")
public suspend fun annotations(`value`: Output>) {
this.annotations = value
}
/**
* @param value Required. The ID to use for the deployment, which will become the final component of the deployment's resource name. This value should be 4-63 characters, and valid characters are /a-z-/. Following AIP-162, IDs must not have the form of a UUID.
*/
@JvmName("yjuytgukfwbntcki")
public suspend fun apiDeploymentId(`value`: Output) {
this.apiDeploymentId = value
}
/**
* @param value
*/
@JvmName("mawleudvwpchwlkw")
public suspend fun apiId(`value`: Output) {
this.apiId = value
}
/**
* @param value The full resource name (including revision ID) of the spec of the API being served by the deployment. Changes to this value will update the revision. Format: `projects/{project}/locations/{location}/apis/{api}/versions/{version}/specs/{spec@revision}`
*/
@JvmName("ayswumgmccpvqjqd")
public suspend fun apiSpecRevision(`value`: Output) {
this.apiSpecRevision = value
}
/**
* @param value A detailed description.
*/
@JvmName("fyladlkewjrutaaa")
public suspend fun description(`value`: Output) {
this.description = value
}
/**
* @param value Human-meaningful name.
*/
@JvmName("gpbgntkbctgdavoo")
public suspend fun displayName(`value`: Output) {
this.displayName = value
}
/**
* @param value The address where the deployment is serving. Changes to this value will update the revision.
*/
@JvmName("quwavglbxloxonjf")
public suspend fun endpointUri(`value`: Output) {
this.endpointUri = value
}
/**
* @param value The address of the external channel of the API (e.g., the Developer Portal). Changes to this value will not affect the revision.
*/
@JvmName("jhqwyymorjlxfacu")
public suspend fun externalChannelUri(`value`: Output) {
this.externalChannelUri = value
}
/**
* @param value Text briefly identifying the intended audience of the API. Changes to this value will not affect the revision.
*/
@JvmName("fqoyqqcbwpmkpumi")
public suspend fun intendedAudience(`value`: Output) {
this.intendedAudience = value
}
/**
* @param value Labels attach identifying metadata to resources. Identifying metadata can be used to filter list operations. Label keys and values can be no longer than 64 characters (Unicode codepoints), can only contain lowercase letters, numeric characters, underscores and dashes. International characters are allowed. No more than 64 user labels can be associated with one resource (System labels are excluded). See https://goo.gl/xmQnxf for more information and examples of labels. System reserved label keys are prefixed with `apigeeregistry.googleapis.com/` and cannot be changed.
*/
@JvmName("ylchaafjmpsxpsnu")
public suspend fun labels(`value`: Output>) {
this.labels = value
}
/**
* @param value
*/
@JvmName("isfwjnqbkrnvswfs")
public suspend fun location(`value`: Output) {
this.location = value
}
/**
* @param value Resource name.
*/
@JvmName("ntntvnxynvntsbou")
public suspend fun name(`value`: Output) {
this.name = value
}
/**
* @param value
*/
@JvmName("fftjhqihpdmquhhu")
public suspend fun project(`value`: Output) {
this.project = value
}
/**
* @param value Text briefly describing how to access the endpoint. Changes to this value will not affect the revision.
*/
@JvmName("ouguxmenobwgfmcn")
public suspend fun accessGuidance(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.accessGuidance = mapped
}
/**
* @param value Annotations attach non-identifying metadata to resources. Annotation keys and values are less restricted than those of labels, but should be generally used for small values of broad interest. Larger, topic- specific metadata should be stored in Artifacts.
*/
@JvmName("befankhvovwajdgf")
public suspend fun annotations(`value`: Map?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.annotations = mapped
}
/**
* @param values Annotations attach non-identifying metadata to resources. Annotation keys and values are less restricted than those of labels, but should be generally used for small values of broad interest. Larger, topic- specific metadata should be stored in Artifacts.
*/
@JvmName("kfmbyrmpifnfvagi")
public fun annotations(vararg values: Pair) {
val toBeMapped = values.toMap()
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.annotations = mapped
}
/**
* @param value Required. The ID to use for the deployment, which will become the final component of the deployment's resource name. This value should be 4-63 characters, and valid characters are /a-z-/. Following AIP-162, IDs must not have the form of a UUID.
*/
@JvmName("rhkomxxkgwjbjrie")
public suspend fun apiDeploymentId(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.apiDeploymentId = mapped
}
/**
* @param value
*/
@JvmName("jqybxncenafcdlpj")
public suspend fun apiId(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.apiId = mapped
}
/**
* @param value The full resource name (including revision ID) of the spec of the API being served by the deployment. Changes to this value will update the revision. Format: `projects/{project}/locations/{location}/apis/{api}/versions/{version}/specs/{spec@revision}`
*/
@JvmName("hhtrubmvohtstqyj")
public suspend fun apiSpecRevision(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.apiSpecRevision = mapped
}
/**
* @param value A detailed description.
*/
@JvmName("scfqkalojjlrcndp")
public suspend fun description(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.description = mapped
}
/**
* @param value Human-meaningful name.
*/
@JvmName("pctunljuxgeccptk")
public suspend fun displayName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.displayName = mapped
}
/**
* @param value The address where the deployment is serving. Changes to this value will update the revision.
*/
@JvmName("nooyiyashfpkvfku")
public suspend fun endpointUri(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.endpointUri = mapped
}
/**
* @param value The address of the external channel of the API (e.g., the Developer Portal). Changes to this value will not affect the revision.
*/
@JvmName("kqqkaweyehxatxqd")
public suspend fun externalChannelUri(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.externalChannelUri = mapped
}
/**
* @param value Text briefly identifying the intended audience of the API. Changes to this value will not affect the revision.
*/
@JvmName("wuwjxxbpthptvbkh")
public suspend fun intendedAudience(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.intendedAudience = mapped
}
/**
* @param value Labels attach identifying metadata to resources. Identifying metadata can be used to filter list operations. Label keys and values can be no longer than 64 characters (Unicode codepoints), can only contain lowercase letters, numeric characters, underscores and dashes. International characters are allowed. No more than 64 user labels can be associated with one resource (System labels are excluded). See https://goo.gl/xmQnxf for more information and examples of labels. System reserved label keys are prefixed with `apigeeregistry.googleapis.com/` and cannot be changed.
*/
@JvmName("gxwroljxulpsidpc")
public suspend fun labels(`value`: Map?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.labels = mapped
}
/**
* @param values Labels attach identifying metadata to resources. Identifying metadata can be used to filter list operations. Label keys and values can be no longer than 64 characters (Unicode codepoints), can only contain lowercase letters, numeric characters, underscores and dashes. International characters are allowed. No more than 64 user labels can be associated with one resource (System labels are excluded). See https://goo.gl/xmQnxf for more information and examples of labels. System reserved label keys are prefixed with `apigeeregistry.googleapis.com/` and cannot be changed.
*/
@JvmName("mdipgymabhggoysx")
public fun labels(vararg values: Pair) {
val toBeMapped = values.toMap()
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.labels = mapped
}
/**
* @param value
*/
@JvmName("xxnnflgnufdpukww")
public suspend fun location(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.location = mapped
}
/**
* @param value Resource name.
*/
@JvmName("nlhvsngsbnkpmjai")
public suspend fun name(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.name = mapped
}
/**
* @param value
*/
@JvmName("hkawsifchdaqgswg")
public suspend fun project(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.project = mapped
}
internal fun build(): DeploymentArgs = DeploymentArgs(
accessGuidance = accessGuidance,
annotations = annotations,
apiDeploymentId = apiDeploymentId,
apiId = apiId,
apiSpecRevision = apiSpecRevision,
description = description,
displayName = displayName,
endpointUri = endpointUri,
externalChannelUri = externalChannelUri,
intendedAudience = intendedAudience,
labels = labels,
location = location,
name = name,
project = project,
)
}