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.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.digitalocean.kotlin.outputs
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
/**
*
* @property alerts Describes an alert policy for the component.
* @property buildCommand An optional build command to run while building this component from source.
* @property dockerfilePath The path to a Dockerfile relative to the root of the repo. If set, overrides usage of buildpacks.
* @property environmentSlug An environment slug describing the type of this app.
* @property envs Describes an environment variable made available to an app competent.
* @property git A Git repo to use as the component's source. The repository must be able to be cloned without authentication. Only one of `git`, `github` or `gitlab` may be set.
* @property github A GitHub repo to use as the component's source. DigitalOcean App Platform must have [access to the repository](https://cloud.digitalocean.com/apps/github/install). Only one of `git`, `github`, `gitlab`, or `image` may be set.
* @property gitlab A Gitlab repo to use as the component's source. DigitalOcean App Platform must have [access to the repository](https://cloud.digitalocean.com/apps/gitlab/install). Only one of `git`, `github`, `gitlab`, or `image` may be set.
* @property image An image to use as the component's source. Only one of `git`, `github`, `gitlab`, or `image` may be set.
* @property instanceCount The amount of instances that this component should be scaled to.
* @property instanceSizeSlug The instance size to use for this component.
* @property logDestinations Describes a log forwarding destination.
* @property name The name of the component.
* @property runCommand An optional run command to override the component's default.
* @property sourceDir An optional path to the working directory to use for the build.
*/
public data class GetAppSpecWorker(
public val alerts: List? = null,
public val buildCommand: String? = null,
public val dockerfilePath: String? = null,
public val environmentSlug: String? = null,
public val envs: List? = null,
public val git: GetAppSpecWorkerGit? = null,
public val github: GetAppSpecWorkerGithub? = null,
public val gitlab: GetAppSpecWorkerGitlab? = null,
public val image: GetAppSpecWorkerImage? = null,
public val instanceCount: Int? = null,
public val instanceSizeSlug: String? = null,
public val logDestinations: List? = null,
public val name: String,
public val runCommand: String? = null,
public val sourceDir: String? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.digitalocean.outputs.GetAppSpecWorker): GetAppSpecWorker = GetAppSpecWorker(
alerts = javaType.alerts().map({ args0 ->
args0.let({ args0 ->
com.pulumi.digitalocean.kotlin.outputs.GetAppSpecWorkerAlert.Companion.toKotlin(args0)
})
}),
buildCommand = javaType.buildCommand().map({ args0 -> args0 }).orElse(null),
dockerfilePath = javaType.dockerfilePath().map({ args0 -> args0 }).orElse(null),
environmentSlug = javaType.environmentSlug().map({ args0 -> args0 }).orElse(null),
envs = javaType.envs().map({ args0 ->
args0.let({ args0 ->
com.pulumi.digitalocean.kotlin.outputs.GetAppSpecWorkerEnv.Companion.toKotlin(args0)
})
}),
git = javaType.git().map({ args0 ->
args0.let({ args0 ->
com.pulumi.digitalocean.kotlin.outputs.GetAppSpecWorkerGit.Companion.toKotlin(args0)
})
}).orElse(null),
github = javaType.github().map({ args0 ->
args0.let({ args0 ->
com.pulumi.digitalocean.kotlin.outputs.GetAppSpecWorkerGithub.Companion.toKotlin(args0)
})
}).orElse(null),
gitlab = javaType.gitlab().map({ args0 ->
args0.let({ args0 ->
com.pulumi.digitalocean.kotlin.outputs.GetAppSpecWorkerGitlab.Companion.toKotlin(args0)
})
}).orElse(null),
image = javaType.image().map({ args0 ->
args0.let({ args0 ->
com.pulumi.digitalocean.kotlin.outputs.GetAppSpecWorkerImage.Companion.toKotlin(args0)
})
}).orElse(null),
instanceCount = javaType.instanceCount().map({ args0 -> args0 }).orElse(null),
instanceSizeSlug = javaType.instanceSizeSlug().map({ args0 -> args0 }).orElse(null),
logDestinations = javaType.logDestinations().map({ args0 ->
args0.let({ args0 ->
com.pulumi.digitalocean.kotlin.outputs.GetAppSpecWorkerLogDestination.Companion.toKotlin(args0)
})
}),
name = javaType.name(),
runCommand = javaType.runCommand().map({ args0 -> args0 }).orElse(null),
sourceDir = javaType.sourceDir().map({ args0 -> args0 }).orElse(null),
)
}
}