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

com.pulumi.azure.hpc.kotlin.outputs.CacheDefaultAccessPolicyAccessRule.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: 6.15.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azure.hpc.kotlin.outputs

import kotlin.Boolean
import kotlin.Int
import kotlin.String
import kotlin.Suppress

/**
 *
 * @property access The access level for this rule. Possible values are: `rw`, `ro`, `no`.
 * @property anonymousGid The anonymous GID used when `root_squash_enabled` is `true`.
 * @property anonymousUid The anonymous UID used when `root_squash_enabled` is `true`.
 * @property filter The filter applied to the `scope` for this rule. The filter's format depends on its scope: `default` scope matches all clients and has no filter value; `network` scope takes a CIDR format; `host` takes an IP address or fully qualified domain name. If a client does not match any filter rule and there is no default rule, access is denied.
 * @property rootSquashEnabled Whether to enable [root squash](https://docs.microsoft.com/azure/hpc-cache/access-policies#root-squash)?
 * @property scope The scope of this rule. The `scope` and (potentially) the `filter` determine which clients match the rule. Possible values are: `default`, `network`, `host`.
 * > **Note:** Each `access_rule` should set a unique `scope`.
 * @property submountAccessEnabled Whether allow access to subdirectories under the root export?
 * @property suidEnabled Whether [SUID](https://docs.microsoft.com/azure/hpc-cache/access-policies#suid) is allowed?
 */
public data class CacheDefaultAccessPolicyAccessRule(
    public val access: String,
    public val anonymousGid: Int? = null,
    public val anonymousUid: Int? = null,
    public val filter: String? = null,
    public val rootSquashEnabled: Boolean? = null,
    public val scope: String,
    public val submountAccessEnabled: Boolean? = null,
    public val suidEnabled: Boolean? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.azure.hpc.outputs.CacheDefaultAccessPolicyAccessRule): CacheDefaultAccessPolicyAccessRule = CacheDefaultAccessPolicyAccessRule(
            access = javaType.access(),
            anonymousGid = javaType.anonymousGid().map({ args0 -> args0 }).orElse(null),
            anonymousUid = javaType.anonymousUid().map({ args0 -> args0 }).orElse(null),
            filter = javaType.filter().map({ args0 -> args0 }).orElse(null),
            rootSquashEnabled = javaType.rootSquashEnabled().map({ args0 -> args0 }).orElse(null),
            scope = javaType.scope(),
            submountAccessEnabled = javaType.submountAccessEnabled().map({ args0 -> args0 }).orElse(null),
            suidEnabled = javaType.suidEnabled().map({ args0 -> args0 }).orElse(null),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy