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

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

package com.pulumi.azure.authorization.kotlin.outputs

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

/**
 * A collection of values returned by getRoleDefinition.
 * @property assignableScopes One or more assignable scopes for this Role Definition, such as `/subscriptions/0b1f6471-1bf0-4dda-aec3-111122223333`, `/subscriptions/0b1f6471-1bf0-4dda-aec3-111122223333/resourceGroups/myGroup`, or `/subscriptions/0b1f6471-1bf0-4dda-aec3-111122223333/resourceGroups/myGroup/providers/Microsoft.Compute/virtualMachines/myVM`.
 * @property description The Description of the built-in Role.
 * @property id The provider-assigned unique ID for this managed resource.
 * @property name
 * @property permissions A `permissions` block as documented below.
 * @property roleDefinitionId
 * @property scope
 * @property type The Type of the Role.
 */
public data class GetRoleDefinitionResult(
    public val assignableScopes: List,
    public val description: String,
    public val id: String,
    public val name: String,
    public val permissions: List,
    public val roleDefinitionId: String,
    public val scope: String? = null,
    public val type: String,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.azure.authorization.outputs.GetRoleDefinitionResult):
            GetRoleDefinitionResult = GetRoleDefinitionResult(
            assignableScopes = javaType.assignableScopes().map({ args0 -> args0 }),
            description = javaType.description(),
            id = javaType.id(),
            name = javaType.name(),
            permissions = javaType.permissions().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.azure.authorization.kotlin.outputs.GetRoleDefinitionPermission.Companion.toKotlin(args0)
                })
            }),
            roleDefinitionId = javaType.roleDefinitionId(),
            scope = javaType.scope().map({ args0 -> args0 }).orElse(null),
            type = javaType.type(),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy