Skip to content

Commit

Permalink
feat: Release of relationships in v1, Add content type Relationship t…
Browse files Browse the repository at this point in the history
…o 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>
  • Loading branch information
gcf-owl-bot[bot] and gcf-owl-bot[bot] authored Sep 3, 2021
1 parent 0c670d8 commit e6bef54
Show file tree
Hide file tree
Showing 4 changed files with 725 additions and 1 deletion.
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 packages/google-cloud-asset/protos/protos.d.ts

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

Loading

0 comments on commit e6bef54

Please sign in to comment.