Skip to content
This repository has been archived by the owner on Jul 13, 2023. It is now read-only.

feat: Release of relationships in v1, Add content type Relationship to support relationship search Committer: yuwangyw@ #551

Merged
merged 2 commits into from
Sep 3, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions protos/google/cloud/asset/v1/assets.proto
Original file line number Diff line number Diff line change
Expand Up @@ -503,6 +503,14 @@ message ResourceSearchResult {
// as to allow users to search on them.
repeated AttachedResource attached_resources = 20;

// A map of related resources of this resource, keyed by the
// relationship type. A relationship type is in the format of
// {SourceType}_{ACTION}_{DestType}. Example: `DISK_TO_INSTANCE`,
// `DISK_TO_NETWORK`, `INSTANCE_TO_INSTANCEGROUP`.
// See [supported relationship
// types](https://cloud.google.com/asset-inventory/docs/supported-asset-types#supported_relationship_types).
map<string, RelatedResources> relationships = 21;

// The type of this resource's immediate parent, if there is one.
//
// To search against the `parent_asset_type`:
Expand Down Expand Up @@ -558,6 +566,22 @@ message AttachedResource {
repeated VersionedResource versioned_resources = 3;
}

// The related resources of the primary resource.
message RelatedResources {
// The detailed related resources of the primary resource.
repeated RelatedResource related_resources = 1;
}

// The detailed related resource.
message RelatedResource {
// The type of the asset. Example: `compute.googleapis.com/Instance`
string asset_type = 1;

// The full resource name of the related resource. Example:
// `//compute.googleapis.com/projects/my_proj_123/zones/instance/instance123`
string full_resource_name = 2;
}

// A result of IAM Policy search, containing information of an IAM policy.
message IamPolicySearchResult {
// Explanation about the IAM policy search result.
Expand Down
192 changes: 192 additions & 0 deletions protos/protos.d.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading