@@ -503,6 +503,14 @@ message ResourceSearchResult {
503
503
// as to allow users to search on them.
504
504
repeated AttachedResource attached_resources = 20 ;
505
505
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
+
506
514
// The type of this resource's immediate parent, if there is one.
507
515
//
508
516
// To search against the `parent_asset_type`:
@@ -558,6 +566,22 @@ message AttachedResource {
558
566
repeated VersionedResource versioned_resources = 3 ;
559
567
}
560
568
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
+
561
585
// A result of IAM Policy search, containing information of an IAM policy.
562
586
message IamPolicySearchResult {
563
587
// Explanation about the IAM policy search result.
0 commit comments