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

com.pulumi.azure.cosmosdb.kotlin.outputs.GetSqlRoleDefinitionResult.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.cosmosdb.kotlin.outputs

import kotlin.String
import kotlin.Suppress
import kotlin.collections.List

/**
 * A collection of values returned by getSqlRoleDefinition.
 * @property accountName
 * @property assignableScopes A list of fully qualified scopes at or below which Role Assignments may be created using this Cosmos DB SQL Role Definition.
 * @property id The provider-assigned unique ID for this managed resource.
 * @property name The role name of the Cosmos DB SQL Role Definition.
 * @property permissions A `permissions` block as defined below.
 * @property resourceGroupName
 * @property roleDefinitionId
 * @property type The type of the Cosmos DB SQL Role Definition.
 */
public data class GetSqlRoleDefinitionResult(
    public val accountName: String,
    public val assignableScopes: List,
    public val id: String,
    public val name: String,
    public val permissions: List,
    public val resourceGroupName: String,
    public val roleDefinitionId: String,
    public val type: String,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.azure.cosmosdb.outputs.GetSqlRoleDefinitionResult):
            GetSqlRoleDefinitionResult = GetSqlRoleDefinitionResult(
            accountName = javaType.accountName(),
            assignableScopes = javaType.assignableScopes().map({ args0 -> args0 }),
            id = javaType.id(),
            name = javaType.name(),
            permissions = javaType.permissions().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.azure.cosmosdb.kotlin.outputs.GetSqlRoleDefinitionPermission.Companion.toKotlin(args0)
                })
            }),
            resourceGroupName = javaType.resourceGroupName(),
            roleDefinitionId = javaType.roleDefinitionId(),
            type = javaType.type(),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy