com.pulumi.gcp.compute.kotlin.outputs.GetResourcePolicyResult.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-gcp-kotlin Show documentation
Show all versions of pulumi-gcp-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.gcp.compute.kotlin.outputs
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
/**
* A collection of values returned by getResourcePolicy.
* @property description Description of this Resource Policy.
* @property diskConsistencyGroupPolicies
* @property groupPlacementPolicies
* @property id The provider-assigned unique ID for this managed resource.
* @property instanceSchedulePolicies
* @property name
* @property project
* @property region
* @property selfLink The URI of the resource.
* @property snapshotSchedulePolicies
*/
public data class GetResourcePolicyResult(
public val description: String,
public val diskConsistencyGroupPolicies: List,
public val groupPlacementPolicies: List,
public val id: String,
public val instanceSchedulePolicies: List,
public val name: String,
public val project: String? = null,
public val region: String? = null,
public val selfLink: String,
public val snapshotSchedulePolicies: List,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.gcp.compute.outputs.GetResourcePolicyResult): GetResourcePolicyResult = GetResourcePolicyResult(
description = javaType.description(),
diskConsistencyGroupPolicies = javaType.diskConsistencyGroupPolicies().map({ args0 ->
args0.let({ args0 ->
com.pulumi.gcp.compute.kotlin.outputs.GetResourcePolicyDiskConsistencyGroupPolicy.Companion.toKotlin(args0)
})
}),
groupPlacementPolicies = javaType.groupPlacementPolicies().map({ args0 ->
args0.let({ args0 ->
com.pulumi.gcp.compute.kotlin.outputs.GetResourcePolicyGroupPlacementPolicy.Companion.toKotlin(args0)
})
}),
id = javaType.id(),
instanceSchedulePolicies = javaType.instanceSchedulePolicies().map({ args0 ->
args0.let({ args0 ->
com.pulumi.gcp.compute.kotlin.outputs.GetResourcePolicyInstanceSchedulePolicy.Companion.toKotlin(args0)
})
}),
name = javaType.name(),
project = javaType.project().map({ args0 -> args0 }).orElse(null),
region = javaType.region().map({ args0 -> args0 }).orElse(null),
selfLink = javaType.selfLink(),
snapshotSchedulePolicies = javaType.snapshotSchedulePolicies().map({ args0 ->
args0.let({ args0 ->
com.pulumi.gcp.compute.kotlin.outputs.GetResourcePolicySnapshotSchedulePolicy.Companion.toKotlin(args0)
})
}),
)
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy