Asset class abstract
Asset
Properties:
- id - JSON object with the asset Id. Specify this field to update the asset. Referencing non-existing asset Id will cause error. Omit this field to create new asset.
- createdTime - Timestamp of the asset creation, in milliseconds
- additionalInfo - Additional parameters of the asset. May include: 'description' (string).
- tenantId - JSON object with Tenant Id.
- customerId - JSON object with Customer Id. Optional on create: when omitted, defaults to the owner of the target Entity Group or to the current Customer user. Cannot be changed on update via this endpoint; use the Owner API (changeOwnerToCustomer) to re-assign an existing Asset.
- name - Unique Asset Name in scope of Tenant
- type - Asset type
- label - Label that may be used in widgets
- assetProfileId - JSON object with Asset Profile Id.
- version
- ownerId - JSON object with Customer or Tenant Id
- Annotations
-
- @BuiltValue.new()
Constructors
- Asset([void updates(AssetBuilder b)])
-
factory
Properties
- additionalInfo → JsonObject?
-
Additional parameters of the asset. May include: 'description' (string).
no setter
- assetProfileId → AssetProfileId?
-
JSON object with Asset Profile Id.
no setter
- createdTime → int?
-
Timestamp of the asset creation, in milliseconds
no setter
- customerId → CustomerId?
-
JSON object with Customer Id. Optional on create: when omitted, defaults to the owner of the target Entity Group or to the current Customer user. Cannot be changed on update via this endpoint; use the Owner API (changeOwnerToCustomer) to re-assign an existing Asset.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → AssetId?
-
JSON object with the asset Id. Specify this field to update the asset. Referencing non-existing asset Id will cause error. Omit this field to create new asset.
no setter
- label → String?
-
Label that may be used in widgets
no setter
- name → String
-
Unique Asset Name in scope of Tenant
no setter
- ownerId → EntityId?
-
JSON object with Customer or Tenant Id
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- tenantId → TenantId?
-
JSON object with Tenant Id.
no setter
- type → String?
-
Asset type
no setter
- version → int?
-
no setter
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
rebuild(
dynamic updates(AssetBuilder)) → Asset -
Rebuilds the instance.
inherited
-
toBuilder(
) → AssetBuilder -
Converts the instance to a builder
B.inherited -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
-
serializer
→ Serializer<
Asset> -
no setter