![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.azurenative.deviceregistry.kotlin.outputs.GetAssetResult.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-azure-native-kotlin Show documentation
Show all versions of pulumi-azure-native-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.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azurenative.deviceregistry.kotlin.outputs
import kotlin.Any
import kotlin.Boolean
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.collections.Map
/**
* Asset definition.
* @property assetEndpointProfileUri A reference to the asset endpoint profile (connection information) used by brokers to connect to an endpoint that provides data points for this asset. Must have the format /.
* @property assetType Resource path to asset type (model) definition.
* @property attributes A set of key-value pairs that contain custom attributes set by the customer.
* @property dataPoints Array of data points that are part of the asset. Each data point can reference an asset type capability and have per-data point configuration. See below for more details for the definition of the dataPoints element.
* @property defaultDataPointsConfiguration Protocol-specific default configuration for all data points. Each data point can have its own configuration that overrides the default settings here. This assumes that each asset instance has one protocol.
* @property defaultEventsConfiguration Protocol-specific default configuration for all events. Each event can have its own configuration that overrides the default settings here. This assumes that each asset instance has one protocol.
* @property description Human-readable description of the asset.
* @property displayName Human-readable display name.
* @property documentationUri Reference to the documentation.
* @property enabled Enabled/Disabled status of the asset.
* @property events Array of events that are part of the asset. Each event can reference an asset type capability and have per-event configuration. See below for more details about the definition of the events element.
* @property extendedLocation The extended location.
* @property externalAssetId Asset id provided by the customer.
* @property hardwareRevision Revision number of the hardware.
* @property id Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
* @property location The geo-location where the resource lives
* @property manufacturer Asset manufacturer name.
* @property manufacturerUri Asset manufacturer URI.
* @property model Asset model name.
* @property name The name of the resource
* @property productCode Asset product code.
* @property provisioningState Provisioning state of the resource.
* @property serialNumber Asset serial number.
* @property softwareRevision Revision number of the software.
* @property status Read only object to reflect changes that have occurred on the Edge. Similar to Kubernetes status property for custom resources.
* @property systemData Azure Resource Manager metadata containing createdBy and modifiedBy information.
* @property tags Resource tags.
* @property type The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
* @property uuid Globally unique, immutable, non-reusable id.
* @property version An integer that is incremented each time the resource is modified.
*/
public data class GetAssetResult(
public val assetEndpointProfileUri: String,
public val assetType: String? = null,
public val attributes: Any? = null,
public val dataPoints: List? = null,
public val defaultDataPointsConfiguration: String? = null,
public val defaultEventsConfiguration: String? = null,
public val description: String? = null,
public val displayName: String? = null,
public val documentationUri: String? = null,
public val enabled: Boolean? = null,
public val events: List? = null,
public val extendedLocation: ExtendedLocationResponse,
public val externalAssetId: String? = null,
public val hardwareRevision: String? = null,
public val id: String,
public val location: String,
public val manufacturer: String? = null,
public val manufacturerUri: String? = null,
public val model: String? = null,
public val name: String,
public val productCode: String? = null,
public val provisioningState: String,
public val serialNumber: String? = null,
public val softwareRevision: String? = null,
public val status: AssetStatusResponse,
public val systemData: SystemDataResponse,
public val tags: Map? = null,
public val type: String,
public val uuid: String,
public val version: Int,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.azurenative.deviceregistry.outputs.GetAssetResult): GetAssetResult = GetAssetResult(
assetEndpointProfileUri = javaType.assetEndpointProfileUri(),
assetType = javaType.assetType().map({ args0 -> args0 }).orElse(null),
attributes = javaType.attributes().map({ args0 -> args0 }).orElse(null),
dataPoints = javaType.dataPoints().map({ args0 ->
args0.let({ args0 ->
com.pulumi.azurenative.deviceregistry.kotlin.outputs.DataPointResponse.Companion.toKotlin(args0)
})
}),
defaultDataPointsConfiguration = javaType.defaultDataPointsConfiguration().map({ args0 ->
args0
}).orElse(null),
defaultEventsConfiguration = javaType.defaultEventsConfiguration().map({ args0 ->
args0
}).orElse(null),
description = javaType.description().map({ args0 -> args0 }).orElse(null),
displayName = javaType.displayName().map({ args0 -> args0 }).orElse(null),
documentationUri = javaType.documentationUri().map({ args0 -> args0 }).orElse(null),
enabled = javaType.enabled().map({ args0 -> args0 }).orElse(null),
events = javaType.events().map({ args0 ->
args0.let({ args0 ->
com.pulumi.azurenative.deviceregistry.kotlin.outputs.EventResponse.Companion.toKotlin(args0)
})
}),
extendedLocation = javaType.extendedLocation().let({ args0 ->
com.pulumi.azurenative.deviceregistry.kotlin.outputs.ExtendedLocationResponse.Companion.toKotlin(args0)
}),
externalAssetId = javaType.externalAssetId().map({ args0 -> args0 }).orElse(null),
hardwareRevision = javaType.hardwareRevision().map({ args0 -> args0 }).orElse(null),
id = javaType.id(),
location = javaType.location(),
manufacturer = javaType.manufacturer().map({ args0 -> args0 }).orElse(null),
manufacturerUri = javaType.manufacturerUri().map({ args0 -> args0 }).orElse(null),
model = javaType.model().map({ args0 -> args0 }).orElse(null),
name = javaType.name(),
productCode = javaType.productCode().map({ args0 -> args0 }).orElse(null),
provisioningState = javaType.provisioningState(),
serialNumber = javaType.serialNumber().map({ args0 -> args0 }).orElse(null),
softwareRevision = javaType.softwareRevision().map({ args0 -> args0 }).orElse(null),
status = javaType.status().let({ args0 ->
com.pulumi.azurenative.deviceregistry.kotlin.outputs.AssetStatusResponse.Companion.toKotlin(args0)
}),
systemData = javaType.systemData().let({ args0 ->
com.pulumi.azurenative.deviceregistry.kotlin.outputs.SystemDataResponse.Companion.toKotlin(args0)
}),
tags = javaType.tags().map({ args0 -> args0.key.to(args0.value) }).toMap(),
type = javaType.type(),
uuid = javaType.uuid(),
version = javaType.version(),
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy