# Class Asset (0.4.1)

0.4.1 (latest) 0.4.0 0.3.0 0.2.0 0.1.15

    Asset(mapping=None, *, ignore_unknown_fields=False, **kwargs)

An asset represents a resource in your environment. Asset
types include virtual machines and databases.

.. _oneof: <https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields>

| ## Attributes ||
|---|---|
| **Name** | **Description** |
| `name` | `str` Output only. The full name of the asset. |
| `create_time` | `google.protobuf.timestamp_pb2.Timestamp` Output only. The timestamp when the asset was created. |
| `update_time` | `google.protobuf.timestamp_pb2.Timestamp` Output only. The timestamp when the asset was last updated. |
| `labels` | `MutableMapping[str, str]` Labels as key value pairs. |
| `attributes` | `MutableMapping[str, str]` Generic asset attributes. |
| `machine_details` | `https://docs.cloud.google.com/python/docs/reference/migrationcenter/latest/google.cloud.migrationcenter_v1.types.MachineDetails` Output only. Asset information specific for virtual and physical machines. This field is a member of `oneof`_ `AssetDetails`. |
| `insight_list` | `https://docs.cloud.google.com/python/docs/reference/migrationcenter/latest/google.cloud.migrationcenter_v1.types.InsightList` Output only. The list of insights associated with the asset. |
| `performance_data` | `https://docs.cloud.google.com/python/docs/reference/migrationcenter/latest/google.cloud.migrationcenter_v1.types.AssetPerformanceData` Output only. Performance data for the asset. |
| `sources` | `MutableSequence[str]` Output only. The list of sources contributing to the asset. |
| `assigned_groups` | `MutableSequence[str]` Output only. The list of groups that the asset is assigned to. |

## Classes

### AttributesEntry

    AttributesEntry(mapping=None, *, ignore_unknown_fields=False, **kwargs)

The abstract base class for a message.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `kwargs` | `dict` Keys and values corresponding to the fields of the message. |
| `mapping` | ``Union[dict, `.Message`]`` A dictionary or message to be used to determine the values for this message. |
| `ignore_unknown_fields` | `Optional(bool)` If True, do not raise errors for unknown fields. Only applied if `mapping` is a mapping type or there are keyword parameters. |

### LabelsEntry

    LabelsEntry(mapping=None, *, ignore_unknown_fields=False, **kwargs)

The abstract base class for a message.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `kwargs` | `dict` Keys and values corresponding to the fields of the message. |
| `mapping` | ``Union[dict, `.Message`]`` A dictionary or message to be used to determine the values for this message. |
| `ignore_unknown_fields` | `Optional(bool)` If True, do not raise errors for unknown fields. Only applied if `mapping` is a mapping type or there are keyword parameters. |