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

com.pulumi.gitlab.kotlin.outputs.GetProjectEnvironmentsResult.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: 8.4.2.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.gitlab.kotlin.outputs

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

/**
 * A collection of values returned by getProjectEnvironments.
 * @property environments The list of environments.
 * @property id
 * @property name Return the environment with this name. Mutually exclusive with search.
 * @property project The ID or full path of the project.
 * @property search Return list of environments matching the search criteria. Mutually exclusive with name. Must be at least 3 characters long.
 * @property states List all environments that match the specified state. Valid values are `available`, `stopping`, `stopped`. Returns all environments if not set.
 */
public data class GetProjectEnvironmentsResult(
    public val environments: List,
    public val id: String,
    public val name: String? = null,
    public val project: String,
    public val search: String? = null,
    public val states: String? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.gitlab.outputs.GetProjectEnvironmentsResult): GetProjectEnvironmentsResult = GetProjectEnvironmentsResult(
            environments = javaType.environments().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.gitlab.kotlin.outputs.GetProjectEnvironmentsEnvironment.Companion.toKotlin(args0)
                })
            }),
            id = javaType.id(),
            name = javaType.name().map({ args0 -> args0 }).orElse(null),
            project = javaType.project(),
            search = javaType.search().map({ args0 -> args0 }).orElse(null),
            states = javaType.states().map({ args0 -> args0 }).orElse(null),
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy