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

com.pulumi.gcp.osconfig.kotlin.outputs.OsPolicyAssignmentOsPolicyResourceGroupResource.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.10.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.gcp.osconfig.kotlin.outputs

import kotlin.String
import kotlin.Suppress

/**
 *
 * @property exec Exec resource Structure is
 * documented below.
 * @property file File resource Structure is
 * documented below.
 * @property id The id of the resource with the following restrictions:
 * *   Must contain only lowercase letters, numbers, and hyphens.
 * *   Must start with a letter.
 * *   Must be between 1-63 characters.
 * *   Must end with a number or a letter.
 * *   Must be unique within the OS policy.
 * @property pkg Package resource Structure is
 * documented below.
 * @property repository Package repository resource Structure is
 * documented below.
 */
public data class OsPolicyAssignmentOsPolicyResourceGroupResource(
    public val exec: OsPolicyAssignmentOsPolicyResourceGroupResourceExec? = null,
    public val `file`: OsPolicyAssignmentOsPolicyResourceGroupResourceFile? = null,
    public val id: String,
    public val pkg: OsPolicyAssignmentOsPolicyResourceGroupResourcePkg? = null,
    public val repository: OsPolicyAssignmentOsPolicyResourceGroupResourceRepository? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.gcp.osconfig.outputs.OsPolicyAssignmentOsPolicyResourceGroupResource): OsPolicyAssignmentOsPolicyResourceGroupResource =
            OsPolicyAssignmentOsPolicyResourceGroupResource(
                exec = javaType.exec().map({ args0 ->
                    args0.let({ args0 ->
                        com.pulumi.gcp.osconfig.kotlin.outputs.OsPolicyAssignmentOsPolicyResourceGroupResourceExec.Companion.toKotlin(args0)
                    })
                }).orElse(null),
                `file` = javaType.`file`().map({ args0 ->
                    args0.let({ args0 ->
                        com.pulumi.gcp.osconfig.kotlin.outputs.OsPolicyAssignmentOsPolicyResourceGroupResourceFile.Companion.toKotlin(args0)
                    })
                }).orElse(null),
                id = javaType.id(),
                pkg = javaType.pkg().map({ args0 ->
                    args0.let({ args0 ->
                        com.pulumi.gcp.osconfig.kotlin.outputs.OsPolicyAssignmentOsPolicyResourceGroupResourcePkg.Companion.toKotlin(args0)
                    })
                }).orElse(null),
                repository = javaType.repository().map({ args0 ->
                    args0.let({ args0 ->
                        com.pulumi.gcp.osconfig.kotlin.outputs.OsPolicyAssignmentOsPolicyResourceGroupResourceRepository.Companion.toKotlin(args0)
                    })
                }).orElse(null),
            )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy