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

com.pulumi.digitalocean.kotlin.outputs.GetFirewallResult.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: 4.35.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.digitalocean.kotlin.outputs

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

/**
 * A collection of values returned by getFirewall.
 * @property createdAt A time value given in ISO8601 combined date and time format
 * that represents when the Firewall was created.
 * @property dropletIds The list of the IDs of the Droplets assigned to
 * the Firewall.
 * @property firewallId
 * @property id The provider-assigned unique ID for this managed resource.
 * @property inboundRules
 * @property name The name of the Firewall.
 * @property outboundRules
 * @property pendingChanges A set of object containing the fields, `droplet_id`,
 * `removing`, and `status`.  It is provided to detail exactly which Droplets
 * are having their security policies updated.  When empty, all changes
 * have been successfully applied.
 * @property status A status string indicating the current state of the Firewall.
 * This can be "waiting", "succeeded", or "failed".
 * @property tags The names of the Tags assigned to the Firewall.
 */
public data class GetFirewallResult(
    public val createdAt: String,
    public val dropletIds: List,
    public val firewallId: String,
    public val id: String,
    public val inboundRules: List,
    public val name: String,
    public val outboundRules: List,
    public val pendingChanges: List,
    public val status: String,
    public val tags: List,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.digitalocean.outputs.GetFirewallResult): GetFirewallResult = GetFirewallResult(
            createdAt = javaType.createdAt(),
            dropletIds = javaType.dropletIds().map({ args0 -> args0 }),
            firewallId = javaType.firewallId(),
            id = javaType.id(),
            inboundRules = javaType.inboundRules().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.digitalocean.kotlin.outputs.GetFirewallInboundRule.Companion.toKotlin(args0)
                })
            }),
            name = javaType.name(),
            outboundRules = javaType.outboundRules().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.digitalocean.kotlin.outputs.GetFirewallOutboundRule.Companion.toKotlin(args0)
                })
            }),
            pendingChanges = javaType.pendingChanges().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.digitalocean.kotlin.outputs.GetFirewallPendingChange.Companion.toKotlin(args0)
                })
            }),
            status = javaType.status(),
            tags = javaType.tags().map({ args0 -> args0 }),
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy