Google Cloud Migration Center V1 Client - Class Asset (1.0.0)

Reference documentation and code samples for the Google Cloud Migration Center V1 Client class Asset.

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

Generated from protobuf message google.cloud.migrationcenter.v1.Asset

Namespace

Google \ Cloud \ MigrationCenter \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ name string

Output only. The full name of the asset.

↳ create_time Google\Protobuf\Timestamp

Output only. The timestamp when the asset was created.

↳ update_time Google\Protobuf\Timestamp

Output only. The timestamp when the asset was last updated.

↳ labels array|Google\Protobuf\Internal\MapField

Labels as key value pairs.

↳ attributes array|Google\Protobuf\Internal\MapField

Generic asset attributes.

↳ machine_details Google\Cloud\MigrationCenter\V1\MachineDetails

Output only. Asset information specific for virtual and physical machines.

↳ insight_list Google\Cloud\MigrationCenter\V1\InsightList

Output only. The list of insights associated with the asset.

↳ performance_data Google\Cloud\MigrationCenter\V1\AssetPerformanceData

Output only. Performance data for the asset.

↳ sources array

Output only. The list of sources contributing to the asset.

↳ assigned_groups array

Output only. The list of groups that the asset is assigned to.

getName

Output only. The full name of the asset.

Returns
Type Description
string

setName

Output only. The full name of the asset.

Parameter
Name Description
var string
Returns
Type Description
$this

getCreateTime

Output only. The timestamp when the asset was created.

Returns
Type Description
Google\Protobuf\Timestamp|null

hasCreateTime

clearCreateTime

setCreateTime

Output only. The timestamp when the asset was created.

Parameter
Name Description
var Google\Protobuf\Timestamp
Returns
Type Description
$this

getUpdateTime

Output only. The timestamp when the asset was last updated.

Returns
Type Description
Google\Protobuf\Timestamp|null

hasUpdateTime

clearUpdateTime

setUpdateTime

Output only. The timestamp when the asset was last updated.

Parameter
Name Description
var Google\Protobuf\Timestamp
Returns
Type Description
$this

getLabels

Labels as key value pairs.

Returns
Type Description
Google\Protobuf\Internal\MapField

setLabels

Labels as key value pairs.

Parameter
Name Description
var array|Google\Protobuf\Internal\MapField
Returns
Type Description
$this

getAttributes

Generic asset attributes.

Returns
Type Description
Google\Protobuf\Internal\MapField

setAttributes

Generic asset attributes.

Parameter
Name Description
var array|Google\Protobuf\Internal\MapField
Returns
Type Description
$this

getMachineDetails

Output only. Asset information specific for virtual and physical machines.

Returns
Type Description
Google\Cloud\MigrationCenter\V1\MachineDetails|null

hasMachineDetails

setMachineDetails

Output only. Asset information specific for virtual and physical machines.

Parameter
Name Description
var Google\Cloud\MigrationCenter\V1\MachineDetails
Returns
Type Description
$this

getInsightList

Output only. The list of insights associated with the asset.

Returns
Type Description
Google\Cloud\MigrationCenter\V1\InsightList|null

hasInsightList

clearInsightList

setInsightList

Output only. The list of insights associated with the asset.

Parameter
Name Description
var Google\Cloud\MigrationCenter\V1\InsightList
Returns
Type Description
$this

getPerformanceData

Output only. Performance data for the asset.

Returns
Type Description
Google\Cloud\MigrationCenter\V1\AssetPerformanceData|null

hasPerformanceData

clearPerformanceData

setPerformanceData

Output only. Performance data for the asset.

Parameter
Name Description
var Google\Cloud\MigrationCenter\V1\AssetPerformanceData
Returns
Type Description
$this

getSources

Output only. The list of sources contributing to the asset.

Returns
Type Description
Google\Protobuf\Internal\RepeatedField

setSources

Output only. The list of sources contributing to the asset.

Parameter
Name Description
var string[]
Returns
Type Description
$this

getAssignedGroups

Output only. The list of groups that the asset is assigned to.

Returns
Type Description
Google\Protobuf\Internal\RepeatedField

setAssignedGroups

Output only. The list of groups that the asset is assigned to.

Parameter
Name Description
var string[]
Returns
Type Description
$this

getAssetDetails

Returns
Type Description
string