com.pulumi.gcp.projects.kotlin.outputs.GetOrganizationPolicyResult.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.gcp.projects.kotlin.outputs
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
/**
* A collection of values returned by getOrganizationPolicy.
* @property booleanPolicies
* @property constraint
* @property etag
* @property id The provider-assigned unique ID for this managed resource.
* @property listPolicies
* @property project
* @property restorePolicies
* @property updateTime
* @property version
*/
public data class GetOrganizationPolicyResult(
public val booleanPolicies: List,
public val constraint: String,
public val etag: String,
public val id: String,
public val listPolicies: List,
public val project: String,
public val restorePolicies: List,
public val updateTime: String,
public val version: Int,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.gcp.projects.outputs.GetOrganizationPolicyResult): GetOrganizationPolicyResult = GetOrganizationPolicyResult(
booleanPolicies = javaType.booleanPolicies().map({ args0 ->
args0.let({ args0 ->
com.pulumi.gcp.projects.kotlin.outputs.GetOrganizationPolicyBooleanPolicy.Companion.toKotlin(args0)
})
}),
constraint = javaType.constraint(),
etag = javaType.etag(),
id = javaType.id(),
listPolicies = javaType.listPolicies().map({ args0 ->
args0.let({ args0 ->
com.pulumi.gcp.projects.kotlin.outputs.GetOrganizationPolicyListPolicy.Companion.toKotlin(args0)
})
}),
project = javaType.project(),
restorePolicies = javaType.restorePolicies().map({ args0 ->
args0.let({ args0 ->
com.pulumi.gcp.projects.kotlin.outputs.GetOrganizationPolicyRestorePolicy.Companion.toKotlin(args0)
})
}),
updateTime = javaType.updateTime(),
version = javaType.version(),
)
}
}