Google Cloud Asset V1 Client - Class RelationshipAttributes (1.10.2)

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

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

The relationship attributes which include type, source_resource_type, target_resource_type and action.

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

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ type string

The unique identifier of the relationship type. Example: INSTANCE_TO_INSTANCEGROUP

↳ source_resource_type string

The source asset type. Example: compute.googleapis.com/Instance

↳ target_resource_type string

The target asset type. Example: compute.googleapis.com/Disk

↳ action string

The detail of the relationship, e.g. contains, attaches

getType

The unique identifier of the relationship type. Example: INSTANCE_TO_INSTANCEGROUP

Returns
TypeDescription
string

setType

The unique identifier of the relationship type. Example: INSTANCE_TO_INSTANCEGROUP

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getSourceResourceType

The source asset type. Example: compute.googleapis.com/Instance

Returns
TypeDescription
string

setSourceResourceType

The source asset type. Example: compute.googleapis.com/Instance

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getTargetResourceType

The target asset type. Example: compute.googleapis.com/Disk

Returns
TypeDescription
string

setTargetResourceType

The target asset type. Example: compute.googleapis.com/Disk

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getAction

The detail of the relationship, e.g. contains, attaches

Returns
TypeDescription
string

setAction

The detail of the relationship, e.g. contains, attaches

Parameter
NameDescription
var string
Returns
TypeDescription
$this