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

com.pulumi.azure.mssql.kotlin.outputs.ServerAzureadAdministrator.kt Maven / Gradle / Ivy

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

package com.pulumi.azure.mssql.kotlin.outputs

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

/**
 *
 * @property azureadAuthenticationOnly Specifies whether only AD Users and administrators (e.g. `azuread_administrator[0].login_username`) can be used to login, or also local database users (e.g. `administrator_login`). When `true`, the `administrator_login` and `administrator_login_password` properties can be omitted.
 * @property loginUsername The login username of the Azure AD Administrator of this SQL Server.
 * @property objectId The object id of the Azure AD Administrator of this SQL Server.
 * @property tenantId The tenant id of the Azure AD Administrator of this SQL Server.
 */
public data class ServerAzureadAdministrator(
    public val azureadAuthenticationOnly: Boolean? = null,
    public val loginUsername: String,
    public val objectId: String,
    public val tenantId: String? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.azure.mssql.outputs.ServerAzureadAdministrator): ServerAzureadAdministrator = ServerAzureadAdministrator(
            azureadAuthenticationOnly = javaType.azureadAuthenticationOnly().map({ args0 ->
                args0
            }).orElse(null),
            loginUsername = javaType.loginUsername(),
            objectId = javaType.objectId(),
            tenantId = javaType.tenantId().map({ args0 -> args0 }).orElse(null),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy