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.
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.run.v2.kotlin
import com.pulumi.core.Output
import com.pulumi.googlenative.run.v2.kotlin.outputs.GoogleCloudRunV2BinaryAuthorizationResponse
import com.pulumi.googlenative.run.v2.kotlin.outputs.GoogleCloudRunV2ConditionResponse
import com.pulumi.googlenative.run.v2.kotlin.outputs.GoogleCloudRunV2RevisionTemplateResponse
import com.pulumi.googlenative.run.v2.kotlin.outputs.GoogleCloudRunV2TrafficTargetResponse
import com.pulumi.googlenative.run.v2.kotlin.outputs.GoogleCloudRunV2TrafficTargetStatusResponse
import com.pulumi.kotlin.KotlinCustomResource
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.ResourceMapper
import com.pulumi.kotlin.options.CustomResourceOptions
import com.pulumi.kotlin.options.CustomResourceOptionsBuilder
import com.pulumi.resources.Resource
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.collections.Map
import com.pulumi.googlenative.run.v2.kotlin.outputs.GoogleCloudRunV2BinaryAuthorizationResponse.Companion.toKotlin as googleCloudRunV2BinaryAuthorizationResponseToKotlin
import com.pulumi.googlenative.run.v2.kotlin.outputs.GoogleCloudRunV2ConditionResponse.Companion.toKotlin as googleCloudRunV2ConditionResponseToKotlin
import com.pulumi.googlenative.run.v2.kotlin.outputs.GoogleCloudRunV2RevisionTemplateResponse.Companion.toKotlin as googleCloudRunV2RevisionTemplateResponseToKotlin
import com.pulumi.googlenative.run.v2.kotlin.outputs.GoogleCloudRunV2TrafficTargetResponse.Companion.toKotlin as googleCloudRunV2TrafficTargetResponseToKotlin
import com.pulumi.googlenative.run.v2.kotlin.outputs.GoogleCloudRunV2TrafficTargetStatusResponse.Companion.toKotlin as googleCloudRunV2TrafficTargetStatusResponseToKotlin
/**
* Builder for [Service].
*/
@PulumiTagMarker
public class ServiceResourceBuilder internal constructor() {
public var name: String? = null
public var args: ServiceArgs = ServiceArgs()
public var opts: CustomResourceOptions = CustomResourceOptions()
/**
* @param name The _unique_ name of the resulting resource.
*/
public fun name(`value`: String) {
this.name = value
}
/**
* @param block The arguments to use to populate this resource's properties.
*/
public suspend fun args(block: suspend ServiceArgsBuilder.() -> Unit) {
val builder = ServiceArgsBuilder()
block(builder)
this.args = builder.build()
}
/**
* @param block A bag of options that control this resource's behavior.
*/
public suspend fun opts(block: suspend CustomResourceOptionsBuilder.() -> Unit) {
this.opts = com.pulumi.kotlin.options.CustomResourceOptions.opts(block)
}
internal fun build(): Service {
val builtJavaResource = com.pulumi.googlenative.run.v2.Service(
this.name,
this.args.toJava(),
this.opts.toJava(),
)
return Service(builtJavaResource)
}
}
/**
* Creates a new Service in a given project and location.
*/
public class Service internal constructor(
override val javaResource: com.pulumi.googlenative.run.v2.Service,
) : KotlinCustomResource(javaResource, ServiceMapper) {
/**
* Unstructured key value map that may be set by external tools to store and arbitrary metadata. They are not queryable and should be preserved when modifying objects. Cloud Run API v2 does not support annotations with `run.googleapis.com`, `cloud.googleapis.com`, `serving.knative.dev`, or `autoscaling.knative.dev` namespaces, and they will be rejected in new resources. All system annotations in v1 now have a corresponding field in v2 Service. This field follows Kubernetes annotations' namespacing, limits, and rules.
*/
public val annotations: Output