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

com.pulumi.googlenative.osconfig.v1alpha.kotlin.outputs.OSPolicyResourceFileResourceResponse.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.googlenative.osconfig.v1alpha.kotlin.outputs

import kotlin.String
import kotlin.Suppress

/**
 * A resource that manages the state of a file.
 * @property content A a file with this content. The size of the content is limited to 32KiB.
 * @property file A remote or local source.
 * @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.
 */
public data class OSPolicyResourceFileResourceResponse(
    public val content: String,
    public val `file`: OSPolicyResourceFileResponse,
    public val path: String,
    public val permissions: String,
    public val state: String,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.googlenative.osconfig.v1alpha.outputs.OSPolicyResourceFileResourceResponse): OSPolicyResourceFileResourceResponse = OSPolicyResourceFileResourceResponse(
            content = javaType.content(),
            `file` = javaType.`file`().let({ args0 ->
                com.pulumi.googlenative.osconfig.v1alpha.kotlin.outputs.OSPolicyResourceFileResponse.Companion.toKotlin(args0)
            }),
            path = javaType.path(),
            permissions = javaType.permissions(),
            state = javaType.state(),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy