com.pulumi.digitalocean.kotlin.outputs.GetProjectResult.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.digitalocean.kotlin.outputs
import kotlin.Boolean
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
/**
* A collection of values returned by getProject.
* @property createdAt The date and time when the project was created, (ISO8601)
* @property description The description of the project
* @property environment The environment of the project's resources. The possible values are: `Development`, `Staging`, `Production`.
* @property id
* @property isDefault
* @property name
* @property ownerId The ID of the project owner.
* @property ownerUuid The unique universal identifier of the project owner.
* @property purpose The purpose of the project, (Default: "Web Application")
* @property resources A set of uniform resource names (URNs) for the resources associated with the project
* @property updatedAt The date and time when the project was last updated, (ISO8601)
*/
public data class GetProjectResult(
public val createdAt: String,
public val description: String,
public val environment: String,
public val id: String,
public val isDefault: Boolean,
public val name: String,
public val ownerId: Int,
public val ownerUuid: String,
public val purpose: String,
public val resources: List,
public val updatedAt: String,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.digitalocean.outputs.GetProjectResult): GetProjectResult = GetProjectResult(
createdAt = javaType.createdAt(),
description = javaType.description(),
environment = javaType.environment(),
id = javaType.id(),
isDefault = javaType.isDefault(),
name = javaType.name(),
ownerId = javaType.ownerId(),
ownerUuid = javaType.ownerUuid(),
purpose = javaType.purpose(),
resources = javaType.resources().map({ args0 -> args0 }),
updatedAt = javaType.updatedAt(),
)
}
}