@@ -503,6 +503,14 @@ message ResourceSearchResult {
503503 // as to allow users to search on them.
504504 repeated AttachedResource attached_resources = 20 ;
505505
506+ // A map of related resources of this resource, keyed by the
507+ // relationship type. A relationship type is in the format of
508+ // {SourceType}_{ACTION}_{DestType}. Example: `DISK_TO_INSTANCE`,
509+ // `DISK_TO_NETWORK`, `INSTANCE_TO_INSTANCEGROUP`.
510+ // See [supported relationship
511+ // types](https://cloud.google.com/asset-inventory/docs/supported-asset-types#supported_relationship_types).
512+ map <string , RelatedResources > relationships = 21 ;
513+
506514 // The type of this resource's immediate parent, if there is one.
507515 //
508516 // To search against the `parent_asset_type`:
@@ -558,6 +566,22 @@ message AttachedResource {
558566 repeated VersionedResource versioned_resources = 3 ;
559567}
560568
569+ // The related resources of the primary resource.
570+ message RelatedResources {
571+ // The detailed related resources of the primary resource.
572+ repeated RelatedResource related_resources = 1 ;
573+ }
574+
575+ // The detailed related resource.
576+ message RelatedResource {
577+ // The type of the asset. Example: `compute.googleapis.com/Instance`
578+ string asset_type = 1 ;
579+
580+ // The full resource name of the related resource. Example:
581+ // `//compute.googleapis.com/projects/my_proj_123/zones/instance/instance123`
582+ string full_resource_name = 2 ;
583+ }
584+
561585// A result of IAM Policy search, containing information of an IAM policy.
562586message IamPolicySearchResult {
563587 // Explanation about the IAM policy search result.
0 commit comments