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 | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ type |
string
The unique identifier of the relationship type. Example: |
↳ source_resource_type |
string
The source asset type. Example: |
↳ target_resource_type |
string
The target asset type. Example: |
↳ action |
string
The detail of the relationship, e.g. |
getType
The unique identifier of the relationship type. Example:
INSTANCE_TO_INSTANCEGROUP
Generated from protobuf field string type = 4;
| Returns | |
|---|---|
| Type | Description |
string |
|
setType
The unique identifier of the relationship type. Example:
INSTANCE_TO_INSTANCEGROUP
Generated from protobuf field string type = 4;
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getSourceResourceType
The source asset type. Example: compute.googleapis.com/Instance
Generated from protobuf field string source_resource_type = 1;
| Returns | |
|---|---|
| Type | Description |
string |
|
setSourceResourceType
The source asset type. Example: compute.googleapis.com/Instance
Generated from protobuf field string source_resource_type = 1;
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getTargetResourceType
The target asset type. Example: compute.googleapis.com/Disk
Generated from protobuf field string target_resource_type = 2;
| Returns | |
|---|---|
| Type | Description |
string |
|
setTargetResourceType
The target asset type. Example: compute.googleapis.com/Disk
Generated from protobuf field string target_resource_type = 2;
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getAction
The detail of the relationship, e.g. contains, attaches
Generated from protobuf field string action = 3;
| Returns | |
|---|---|
| Type | Description |
string |
|
setAction
The detail of the relationship, e.g. contains, attaches
Generated from protobuf field string action = 3;
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|