Google Cloud Migration Center V1 Client - Class Asset (0.2.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
NameDescription
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
TypeDescription
string

setName

Output only. The full name of the asset.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getCreateTime

Output only. The timestamp when the asset was created.

Returns
TypeDescription
Google\Protobuf\Timestamp|null

hasCreateTime

clearCreateTime

setCreateTime

Output only. The timestamp when the asset was created.

Parameter
NameDescription
var Google\Protobuf\Timestamp
Returns
TypeDescription
$this

getUpdateTime

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

Returns
TypeDescription
Google\Protobuf\Timestamp|null

hasUpdateTime

clearUpdateTime

setUpdateTime

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

Parameter
NameDescription
var Google\Protobuf\Timestamp
Returns
TypeDescription
$this

getLabels

Labels as key value pairs.

Returns
TypeDescription
Google\Protobuf\Internal\MapField

setLabels

Labels as key value pairs.

Parameter
NameDescription
var array|Google\Protobuf\Internal\MapField
Returns
TypeDescription
$this

getAttributes

Generic asset attributes.

Returns
TypeDescription
Google\Protobuf\Internal\MapField

setAttributes

Generic asset attributes.

Parameter
NameDescription
var array|Google\Protobuf\Internal\MapField
Returns
TypeDescription
$this

getMachineDetails

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

Returns
TypeDescription
Google\Cloud\MigrationCenter\V1\MachineDetails|null

hasMachineDetails

setMachineDetails

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

Parameter
NameDescription
var Google\Cloud\MigrationCenter\V1\MachineDetails
Returns
TypeDescription
$this

getInsightList

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

Returns
TypeDescription
Google\Cloud\MigrationCenter\V1\InsightList|null

hasInsightList

clearInsightList

setInsightList

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

Parameter
NameDescription
var Google\Cloud\MigrationCenter\V1\InsightList
Returns
TypeDescription
$this

getPerformanceData

Output only. Performance data for the asset.

Returns
TypeDescription
Google\Cloud\MigrationCenter\V1\AssetPerformanceData|null

hasPerformanceData

clearPerformanceData

setPerformanceData

Output only. Performance data for the asset.

Parameter
NameDescription
var Google\Cloud\MigrationCenter\V1\AssetPerformanceData
Returns
TypeDescription
$this

getSources

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

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setSources

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

Parameter
NameDescription
var string[]
Returns
TypeDescription
$this

getAssignedGroups

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

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setAssignedGroups

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

Parameter
NameDescription
var string[]
Returns
TypeDescription
$this

getAssetDetails

Returns
TypeDescription
string