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

com.pulumi.gcp.osconfig.kotlin.outputs.OsPolicyAssignmentOsPolicyResourceGroupResourceFile.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 content A a file with this content. The size of the content
 * is limited to 1024 characters.
 * @property file A remote or local source. Structure is
 * documented below.
 * @property path The absolute path of the file within the VM.
 * @property permissions Consists of three octal digits which represent, in
 * order, the permissions of the owner, group, and other users for the file
 * (similarly to the numeric mode used in the linux chmod utility). Each digit
 * represents a three bit number with the 4 bit corresponding to the read
 * permissions, the 2 bit corresponds to the write bit, and the one bit
 * corresponds to the execute permission. Default behavior is 755. Below are
 * some examples of permissions and their associated values: read, write, and
 * execute: 7 read and execute: 5 read and write: 6 read only: 4
 * @property state Desired state of the file. Possible values are:
 * `DESIRED_STATE_UNSPECIFIED`, `PRESENT`, `ABSENT`, `CONTENTS_MATCH`.
 */
public data class OsPolicyAssignmentOsPolicyResourceGroupResourceFile(
    public val content: String? = null,
    public val `file`: OsPolicyAssignmentOsPolicyResourceGroupResourceFileFile? = null,
    public val path: String,
    public val permissions: String? = null,
    public val state: String,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.gcp.osconfig.outputs.OsPolicyAssignmentOsPolicyResourceGroupResourceFile): OsPolicyAssignmentOsPolicyResourceGroupResourceFile =
            OsPolicyAssignmentOsPolicyResourceGroupResourceFile(
                content = javaType.content().map({ args0 -> args0 }).orElse(null),
                `file` = javaType.`file`().map({ args0 ->
                    args0.let({ args0 ->
                        com.pulumi.gcp.osconfig.kotlin.outputs.OsPolicyAssignmentOsPolicyResourceGroupResourceFileFile.Companion.toKotlin(args0)
                    })
                }).orElse(null),
                path = javaType.path(),
                permissions = javaType.permissions().map({ args0 -> args0 }).orElse(null),
                state = javaType.state(),
            )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy