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. This determines the plan (basic or professional) and the available CPU and memory. The list of available instance sizes can be [found with the API](https://docs.digitalocean.com/reference/api/api-reference/#operation/list_instance_sizes) or using the [doctl CLI](https://docs.digitalocean.com/reference/doctl/) (`doctl apps tier instance-size list`). Default: `basic-xxs`
* @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 AppSpecWorker(
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: AppSpecWorkerGit? = null,
public val github: AppSpecWorkerGithub? = null,
public val gitlab: AppSpecWorkerGitlab? = null,
public val image: AppSpecWorkerImage? = 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.AppSpecWorker): AppSpecWorker =
AppSpecWorker(
alerts = javaType.alerts().map({ args0 ->
args0.let({ args0 ->
com.pulumi.digitalocean.kotlin.outputs.AppSpecWorkerAlert.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.AppSpecWorkerEnv.Companion.toKotlin(args0)
})
}),
git = javaType.git().map({ args0 ->
args0.let({ args0 ->
com.pulumi.digitalocean.kotlin.outputs.AppSpecWorkerGit.Companion.toKotlin(args0)
})
}).orElse(null),
github = javaType.github().map({ args0 ->
args0.let({ args0 ->
com.pulumi.digitalocean.kotlin.outputs.AppSpecWorkerGithub.Companion.toKotlin(args0)
})
}).orElse(null),
gitlab = javaType.gitlab().map({ args0 ->
args0.let({ args0 ->
com.pulumi.digitalocean.kotlin.outputs.AppSpecWorkerGitlab.Companion.toKotlin(args0)
})
}).orElse(null),
image = javaType.image().map({ args0 ->
args0.let({ args0 ->
com.pulumi.digitalocean.kotlin.outputs.AppSpecWorkerImage.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.AppSpecWorkerLogDestination.Companion.toKotlin(args0)
})
}),
name = javaType.name(),
runCommand = javaType.runCommand().map({ args0 -> args0 }).orElse(null),
sourceDir = javaType.sourceDir().map({ args0 -> args0 }).orElse(null),
)
}
}