Reference documentation and code samples for the Cloud Asset V1 API class Google::Cloud::Asset::V1::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.
Inherits
Object
Extended By
Google::Protobuf::MessageExts::ClassMethods
Includes
Google::Protobuf::MessageExts
Methods
#action
defaction()->::String
Returns
(::String) — The detail of the relationship, e.g. contains, attaches
#action=
defaction=(value)->::String
Parameter
value (::String) — The detail of the relationship, e.g. contains, attaches
Returns
(::String) — The detail of the relationship, e.g. contains, attaches
#source_resource_type
defsource_resource_type()->::String
Returns
(::String) — The source asset type. Example: compute.googleapis.com/Instance
#source_resource_type=
defsource_resource_type=(value)->::String
Parameter
value (::String) — The source asset type. Example: compute.googleapis.com/Instance
Returns
(::String) — The source asset type. Example: compute.googleapis.com/Instance
#target_resource_type
deftarget_resource_type()->::String
Returns
(::String) — The target asset type. Example: compute.googleapis.com/Disk
#target_resource_type=
deftarget_resource_type=(value)->::String
Parameter
value (::String) — The target asset type. Example: compute.googleapis.com/Disk
Returns
(::String) — The target asset type. Example: compute.googleapis.com/Disk
#type
deftype()->::String
Returns
(::String) — The unique identifier of the relationship type. Example:
INSTANCE_TO_INSTANCEGROUP
#type=
deftype=(value)->::String
Parameter
value (::String) — The unique identifier of the relationship type. Example:
INSTANCE_TO_INSTANCEGROUP
Returns
(::String) — The unique identifier of the relationship type. Example:
INSTANCE_TO_INSTANCEGROUP
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-09 UTC."],[],[],null,["# Cloud Asset V1 API - Class Google::Cloud::Asset::V1::RelationshipAttributes (v1.4.1)\n\nVersion latestkeyboard_arrow_down\n\n- [1.4.1 (latest)](/ruby/docs/reference/google-cloud-asset-v1/latest/Google-Cloud-Asset-V1-RelationshipAttributes)\n- [1.4.0](/ruby/docs/reference/google-cloud-asset-v1/1.4.0/Google-Cloud-Asset-V1-RelationshipAttributes)\n- [1.3.1](/ruby/docs/reference/google-cloud-asset-v1/1.3.1/Google-Cloud-Asset-V1-RelationshipAttributes)\n- [1.2.0](/ruby/docs/reference/google-cloud-asset-v1/1.2.0/Google-Cloud-Asset-V1-RelationshipAttributes)\n- [1.1.0](/ruby/docs/reference/google-cloud-asset-v1/1.1.0/Google-Cloud-Asset-V1-RelationshipAttributes)\n- [1.0.2](/ruby/docs/reference/google-cloud-asset-v1/1.0.2/Google-Cloud-Asset-V1-RelationshipAttributes)\n- [0.32.0](/ruby/docs/reference/google-cloud-asset-v1/0.32.0/Google-Cloud-Asset-V1-RelationshipAttributes)\n- [0.31.0](/ruby/docs/reference/google-cloud-asset-v1/0.31.0/Google-Cloud-Asset-V1-RelationshipAttributes)\n- [0.30.0](/ruby/docs/reference/google-cloud-asset-v1/0.30.0/Google-Cloud-Asset-V1-RelationshipAttributes)\n- [0.29.3](/ruby/docs/reference/google-cloud-asset-v1/0.29.3/Google-Cloud-Asset-V1-RelationshipAttributes)\n- [0.28.1](/ruby/docs/reference/google-cloud-asset-v1/0.28.1/Google-Cloud-Asset-V1-RelationshipAttributes)\n- [0.27.0](/ruby/docs/reference/google-cloud-asset-v1/0.27.0/Google-Cloud-Asset-V1-RelationshipAttributes)\n- [0.26.1](/ruby/docs/reference/google-cloud-asset-v1/0.26.1/Google-Cloud-Asset-V1-RelationshipAttributes)\n- [0.25.0](/ruby/docs/reference/google-cloud-asset-v1/0.25.0/Google-Cloud-Asset-V1-RelationshipAttributes)\n- [0.24.0](/ruby/docs/reference/google-cloud-asset-v1/0.24.0/Google-Cloud-Asset-V1-RelationshipAttributes)\n- [0.23.0](/ruby/docs/reference/google-cloud-asset-v1/0.23.0/Google-Cloud-Asset-V1-RelationshipAttributes)\n- [0.22.0](/ruby/docs/reference/google-cloud-asset-v1/0.22.0/Google-Cloud-Asset-V1-RelationshipAttributes)\n- [0.21.1](/ruby/docs/reference/google-cloud-asset-v1/0.21.1/Google-Cloud-Asset-V1-RelationshipAttributes)\n- [0.20.1](/ruby/docs/reference/google-cloud-asset-v1/0.20.1/Google-Cloud-Asset-V1-RelationshipAttributes)\n- [0.19.0](/ruby/docs/reference/google-cloud-asset-v1/0.19.0/Google-Cloud-Asset-V1-RelationshipAttributes)\n- [0.18.0](/ruby/docs/reference/google-cloud-asset-v1/0.18.0/Google-Cloud-Asset-V1-RelationshipAttributes)\n- [0.17.3](/ruby/docs/reference/google-cloud-asset-v1/0.17.3/Google-Cloud-Asset-V1-RelationshipAttributes) \nReference documentation and code samples for the Cloud Asset V1 API class Google::Cloud::Asset::V1::RelationshipAttributes.\n\nDEPRECATED. This message only presents for the purpose of\nbackward-compatibility. The server will never populate this message in\nresponses.\nThe relationship attributes which include `type`, `source_resource_type`,\n`target_resource_type` and `action`. \n\nInherits\n--------\n\n- Object \n\nExtended By\n-----------\n\n- Google::Protobuf::MessageExts::ClassMethods \n\nIncludes\n--------\n\n- Google::Protobuf::MessageExts\n\nMethods\n-------\n\n### #action\n\n def action() -\u003e ::String\n\n**Returns**\n\n- (::String) --- The detail of the relationship, e.g. `contains`, `attaches`\n\n### #action=\n\n def action=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::String) --- The detail of the relationship, e.g. `contains`, `attaches` \n**Returns**\n\n- (::String) --- The detail of the relationship, e.g. `contains`, `attaches`\n\n### #source_resource_type\n\n def source_resource_type() -\u003e ::String\n\n**Returns**\n\n- (::String) --- The source asset type. Example: `compute.googleapis.com/Instance`\n\n### #source_resource_type=\n\n def source_resource_type=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::String) --- The source asset type. Example: `compute.googleapis.com/Instance` \n**Returns**\n\n- (::String) --- The source asset type. Example: `compute.googleapis.com/Instance`\n\n### #target_resource_type\n\n def target_resource_type() -\u003e ::String\n\n**Returns**\n\n- (::String) --- The target asset type. Example: `compute.googleapis.com/Disk`\n\n### #target_resource_type=\n\n def target_resource_type=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::String) --- The target asset type. Example: `compute.googleapis.com/Disk` \n**Returns**\n\n- (::String) --- The target asset type. Example: `compute.googleapis.com/Disk`\n\n### #type\n\n def type() -\u003e ::String\n\n**Returns**\n\n- (::String) --- The unique identifier of the relationship type. Example: `INSTANCE_TO_INSTANCEGROUP`\n\n### #type=\n\n def type=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::String) --- The unique identifier of the relationship type. Example: `INSTANCE_TO_INSTANCEGROUP` \n**Returns**\n\n- (::String) --- The unique identifier of the relationship type. Example: `INSTANCE_TO_INSTANCEGROUP`"]]