Google Cloud Asset V1 Client - Class RelatedAssets (1.10.2)

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

DEPRECATED. This message only presents for the purpose of backward-compatibility. The server will never populate this message in responses.

The detailed related assets with the relationship_type.

Generated from protobuf message google.cloud.asset.v1.RelatedAssets

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ relationship_attributes Google\Cloud\Asset\V1\RelationshipAttributes

The detailed relationship attributes.

↳ assets array<Google\Cloud\Asset\V1\RelatedAsset>

The peer resources of the relationship.

getRelationshipAttributes

The detailed relationship attributes.

Returns
TypeDescription
Google\Cloud\Asset\V1\RelationshipAttributes|null

hasRelationshipAttributes

clearRelationshipAttributes

setRelationshipAttributes

The detailed relationship attributes.

Parameter
NameDescription
var Google\Cloud\Asset\V1\RelationshipAttributes
Returns
TypeDescription
$this

getAssets

The peer resources of the relationship.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setAssets

The peer resources of the relationship.

Parameter
NameDescription
var array<Google\Cloud\Asset\V1\RelatedAsset>
Returns
TypeDescription
$this