com.pulumi.kubernetes.events.v1beta1.kotlin.outputs.Event.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-kubernetes-kotlin Show documentation
Show all versions of pulumi-kubernetes-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
The newest version!
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.kubernetes.events.v1beta1.kotlin.outputs
import com.pulumi.kubernetes.core.v1.kotlin.outputs.EventSource
import com.pulumi.kubernetes.core.v1.kotlin.outputs.ObjectReference
import com.pulumi.kubernetes.meta.v1.kotlin.outputs.ObjectMeta
import kotlin.Int
import kotlin.String
import kotlin.Suppress
/**
* Event is a report of an event somewhere in the cluster. It generally denotes some state change in the system.
* @property action What action was taken/failed regarding to the regarding object.
* @property apiVersion APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
* @property deprecatedCount Deprecated field assuring backward compatibility with core.v1 Event type
* @property deprecatedFirstTimestamp Deprecated field assuring backward compatibility with core.v1 Event type
* @property deprecatedLastTimestamp Deprecated field assuring backward compatibility with core.v1 Event type
* @property deprecatedSource Deprecated field assuring backward compatibility with core.v1 Event type
* @property eventTime Required. Time when this Event was first observed.
* @property kind Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
* @property metadata
* @property note Optional. A human-readable description of the status of this operation. Maximal length of the note is 1kB, but libraries should be prepared to handle values up to 64kB.
* @property reason Why the action was taken.
* @property regarding The object this Event is about. In most cases it's an Object reporting controller implements. E.g. ReplicaSetController implements ReplicaSets and this event is emitted because it acts on some changes in a ReplicaSet object.
* @property related Optional secondary object for more complex actions. E.g. when regarding object triggers a creation or deletion of related object.
* @property reportingController Name of the controller that emitted this Event, e.g. `kubernetes.io/kubelet`.
* @property reportingInstance ID of the controller instance, e.g. `kubelet-xyzf`.
* @property series Data about the Event series this event represents or nil if it's a singleton Event.
* @property type Type of this event (Normal, Warning), new types could be added in the future.
*/
public data class Event(
public val action: String? = null,
public val apiVersion: String? = null,
public val deprecatedCount: Int? = null,
public val deprecatedFirstTimestamp: String? = null,
public val deprecatedLastTimestamp: String? = null,
public val deprecatedSource: EventSource? = null,
public val eventTime: String,
public val kind: String? = null,
public val metadata: ObjectMeta? = null,
public val note: String? = null,
public val reason: String? = null,
public val regarding: ObjectReference? = null,
public val related: ObjectReference? = null,
public val reportingController: String? = null,
public val reportingInstance: String? = null,
public val series: EventSeries? = null,
public val type: String? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.kubernetes.events.v1beta1.outputs.Event): Event =
Event(
action = javaType.action().map({ args0 -> args0 }).orElse(null),
apiVersion = javaType.apiVersion().map({ args0 -> args0 }).orElse(null),
deprecatedCount = javaType.deprecatedCount().map({ args0 -> args0 }).orElse(null),
deprecatedFirstTimestamp = javaType.deprecatedFirstTimestamp().map({ args0 -> args0 }).orElse(null),
deprecatedLastTimestamp = javaType.deprecatedLastTimestamp().map({ args0 -> args0 }).orElse(null),
deprecatedSource = javaType.deprecatedSource().map({ args0 ->
args0.let({ args0 ->
com.pulumi.kubernetes.core.v1.kotlin.outputs.EventSource.Companion.toKotlin(args0)
})
}).orElse(null),
eventTime = javaType.eventTime(),
kind = javaType.kind().map({ args0 -> args0 }).orElse(null),
metadata = javaType.metadata().map({ args0 ->
args0.let({ args0 ->
com.pulumi.kubernetes.meta.v1.kotlin.outputs.ObjectMeta.Companion.toKotlin(args0)
})
}).orElse(null),
note = javaType.note().map({ args0 -> args0 }).orElse(null),
reason = javaType.reason().map({ args0 -> args0 }).orElse(null),
regarding = javaType.regarding().map({ args0 ->
args0.let({ args0 ->
com.pulumi.kubernetes.core.v1.kotlin.outputs.ObjectReference.Companion.toKotlin(args0)
})
}).orElse(null),
related = javaType.related().map({ args0 ->
args0.let({ args0 ->
com.pulumi.kubernetes.core.v1.kotlin.outputs.ObjectReference.Companion.toKotlin(args0)
})
}).orElse(null),
reportingController = javaType.reportingController().map({ args0 -> args0 }).orElse(null),
reportingInstance = javaType.reportingInstance().map({ args0 -> args0 }).orElse(null),
series = javaType.series().map({ args0 ->
args0.let({ args0 ->
com.pulumi.kubernetes.events.v1beta1.kotlin.outputs.EventSeries.Companion.toKotlin(args0)
})
}).orElse(null),
type = javaType.type().map({ args0 -> args0 }).orElse(null),
)
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy