Google Cloud Asset V1 Client - Class RelatedAssets (1.9.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.

Generated from protobuf field .google.cloud.asset.v1.RelationshipAttributes relationship_attributes = 1;

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

hasRelationshipAttributes

clearRelationshipAttributes

setRelationshipAttributes

The detailed relationship attributes.

Generated from protobuf field .google.cloud.asset.v1.RelationshipAttributes relationship_attributes = 1;

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

getAssets

The peer resources of the relationship.

Generated from protobuf field repeated .google.cloud.asset.v1.RelatedAsset assets = 2;

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setAssets

The peer resources of the relationship.

Generated from protobuf field repeated .google.cloud.asset.v1.RelatedAsset assets = 2;

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