Skip to content

Commit cee6857

Browse files
feat: Release of relationships in v1, Add content type Relationship to support relationship search Committer: yuwangyw@ (#551)
* feat: Release of relationships in v1, Add content type Relationship to support relationship search Committer: yuwangyw@ PiperOrigin-RevId: 394579113 Source-Link: googleapis/googleapis@9c7eb1f Source-Link: googleapis/googleapis-gen@5934384 * 🦉 Updates from OwlBot See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
1 parent b04098e commit cee6857

File tree

4 files changed

+725
-1
lines changed

4 files changed

+725
-1
lines changed

packages/google-cloud-asset/protos/google/cloud/asset/v1/assets.proto

+24
Original file line numberDiff line numberDiff line change
@@ -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.
562586
message IamPolicySearchResult {
563587
// Explanation about the IAM policy search result.

packages/google-cloud-asset/protos/protos.d.ts

+192
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)