NAME
Google::Cloud::Asset::V1::Assets - Compiled Protocol Buffers messages for google/cloud/asset/v1/assets.proto
SYNOPSIS
use Google::Cloud::Asset::V1::Assets;
my $msg = Google::Cloud::Asset::V1::Assets::TemporalAsset->new({
window => $window,
deleted => $deleted,
asset => $asset,
prior_asset_state => $prior_asset_state,
});
# Read or update a field
my $val = $msg->window();
# Binary wire-format roundtrip
my $bytes = $msg->serialize();
my $decoded = Google::Cloud::Asset::V1::Assets::TemporalAsset->parse($bytes);
# Canonical ProtoJSON
my $json = $msg->to_json();
DESCRIPTION
Auto-generated Protobuf message classes compiled from google/cloud/asset/v1/assets.proto. All message classes inherit from Protobuf::Message and support new(), serialize(), parse(), to_json(), from_json(), to_text(), and to_perl().
MESSAGES
Google::Cloud::Asset::V1::Assets::TemporalAsset
An asset in Google Cloud and its temporal metadata, including the time window when it was observed and its status during that window.
Inherits from Protobuf::Message.
Accessors
$msg->window()/$msg->window($value)Type:
Message(Google::Cloud::Asset::V1::Assets::TimeWindow)The time window when the asset data and state was observed.
$msg->deleted()/$msg->deleted($value)Type:
BoolWhether the asset has been deleted or not.
$msg->asset()/$msg->asset($value)Type:
Message(Google::Cloud::Asset::V1::Assets::Asset)An asset in Google Cloud.
$msg->prior_asset_state()/$msg->prior_asset_state($value)Type:
Enum(Google::Cloud::Asset::V1::TemporalAsset::PriorAssetState)State of prior_asset.
$msg->prior_asset()/$msg->prior_asset($value)Type:
Message(Google::Cloud::Asset::V1::Assets::Asset)Prior copy of the asset. Populated if prior_asset_state is PRESENT. Currently this is only set for responses in Real-Time Feed.
Enum: TemporalAsset::PriorAssetState
PRIOR_ASSET_STATE_UNSPECIFIED=>0PRESENT=>1INVALID=>2DOES_NOT_EXIST=>3DELETED=>4
Google::Cloud::Asset::V1::Assets::TimeWindow
A time window specified by its `start_time` and `end_time`.
Inherits from Protobuf::Message.
Accessors
$msg->start_time()/$msg->start_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Start time of the time window (exclusive).
$msg->end_time()/$msg->end_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)End time of the time window (inclusive). If not specified, the current timestamp is used instead.
Google::Cloud::Asset::V1::Assets::AssetEnrichment
The enhanced metadata information for a resource.
Inherits from Protobuf::Message.
Accessors
$msg->resource_owners()/$msg->resource_owners($value)Type:
Message(Google::Cloud::Asset::V1::AssetEnrichmentResourceowners::ResourceOwners)The resource owners for a resource.
Note that this field only contains the members that have "roles/owner" role in the resource's IAM Policy.
Google::Cloud::Asset::V1::Assets::Asset
An asset in Google Cloud. An asset can be any resource in the Google Cloud [resource hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy), a resource outside the Google Cloud resource hierarchy (such as Google Kubernetes Engine clusters and objects), or a policy (e.g. IAM policy), or a relationship (e.g. an INSTANCE_TO_INSTANCEGROUP relationship). See [Supported asset types](https://cloud.google.com/asset-inventory/docs/supported-asset-types) for more information.
Inherits from Protobuf::Message.
Accessors
$msg->update_time()/$msg->update_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)The last update timestamp of an asset. update_time is updated when create/update/delete operation is performed.
$msg->name()/$msg->name($value)Type:
StringThe full name of the asset. Example: `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`
See [Resource names](https://cloud.google.com/apis/design/resource_names#full_resource_name) for more information.
$msg->asset_type()/$msg->asset_type($value)Type:
StringThe type of the asset. Example: `compute.googleapis.com/Disk`
See [Supported asset types](https://cloud.google.com/asset-inventory/docs/supported-asset-types) for more information.
$msg->resource()/$msg->resource($value)Type:
Message(Google::Cloud::Asset::V1::Assets::Resource)A representation of the resource.
$msg->iam_policy()/$msg->iam_policy($value)Type:
Message(Google::Iam::V1::Policy::Policy)A representation of the IAM policy set on a Google Cloud resource. There can be a maximum of one IAM policy set on any given resource. In addition, IAM policies inherit their granted access scope from any policies set on parent resources in the resource hierarchy. Therefore, the effectively policy is the union of both the policy set on this resource and each policy set on all of the resource's ancestry resource levels in the hierarchy. See [this topic](https://cloud.google.com/iam/help/allow-policies/inheritance) for more information.
$msg->org_policy()/$msg->org_policy($value)Type:
Message(Google::Cloud::Orgpolicy::V1::Orgpolicy::Policy)A representation of an [organization policy](https://cloud.google.com/resource-manager/docs/organization-policy/overview#organization_policy). There can be more than one organization policy with different constraints set on a given resource.
$msg->access_policy()/$msg->access_policy($value)Type:
Message(Google::Identity::Accesscontextmanager::V1::AccessPolicy::AccessPolicy)Also refer to the [access policy user guide](https://cloud.google.com/access-context-manager/docs/overview#access-policies).
$msg->access_level()/$msg->access_level($value)Type:
Message(Google::Identity::Accesscontextmanager::V1::AccessLevel::AccessLevel)Also refer to the [access level user guide](https://cloud.google.com/access-context-manager/docs/overview#access-levels).
$msg->service_perimeter()/$msg->service_perimeter($value)Type:
Message(Google::Identity::Accesscontextmanager::V1::ServicePerimeter::ServicePerimeter)Also refer to the [service perimeter user guide](https://cloud.google.com/vpc-service-controls/docs/overview).
$msg->os_inventory()/$msg->os_inventory($value)Type:
Message(Google::Cloud::Osconfig::V1::Inventory::Inventory)A representation of runtime OS Inventory information. See [this topic](https://cloud.google.com/compute/docs/instances/os-inventory-management) for more information.
$msg->related_assets()/$msg->related_assets($value)Type:
Message(Google::Cloud::Asset::V1::Assets::RelatedAssets)DEPRECATED. This field only presents for the purpose of backward-compatibility. The server will never generate responses with this field. The related assets of the asset of one relationship type. One asset only represents one type of relationship.
$msg->related_asset()/$msg->related_asset($value)Type:
Message(Google::Cloud::Asset::V1::Assets::RelatedAsset)One related asset of the current asset.
$msg->ancestors()/$msg->ancestors($value)Type:
StringThe ancestry path of an asset in Google Cloud [resource hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy), represented as a list of relative resource names. An ancestry path starts with the closest ancestor in the hierarchy and ends at root. If the asset is a project, folder, or organization, the ancestry path starts from the asset itself.
Example: `["projects/123456789", "folders/5432", "organizations/1234"]`
Google::Cloud::Asset::V1::Assets::Resource
A representation of a Google Cloud resource.
Inherits from Protobuf::Message.
Accessors
$msg->version()/$msg->version($value)Type:
StringThe API version. Example: `v1`
$msg->discovery_document_uri()/$msg->discovery_document_uri($value)Type:
StringThe URL of the discovery document containing the resource's JSON schema. Example: `https://www.googleapis.com/discovery/v1/apis/compute/v1/rest`
This value is unspecified for resources that do not have an API based on a discovery document, such as Cloud Bigtable.
$msg->discovery_name()/$msg->discovery_name($value)Type:
StringThe JSON schema name listed in the discovery document. Example: `Project`
This value is unspecified for resources that do not have an API based on a discovery document, such as Cloud Bigtable.
$msg->resource_url()/$msg->resource_url($value)Type:
StringThe REST URL for accessing the resource. An HTTP `GET` request using this URL returns the resource itself. Example: `https://cloudresourcemanager.googleapis.com/v1/projects/my-project-123`
This value is unspecified for resources without a REST API.
$msg->parent()/$msg->parent($value)Type:
StringThe full name of the immediate parent of this resource. See [Resource Names](https://cloud.google.com/apis/design/resource_names#full_resource_name) for more information.
For Google Cloud assets, this value is the parent resource defined in the [IAM policy hierarchy](https://cloud.google.com/iam/docs/overview#policy_hierarchy). Example: `//cloudresourcemanager.googleapis.com/projects/my_project_123`
$msg->data()/$msg->data($value)Type:
Message(Google::Protobuf::Struct::Struct)The content of the resource, in which some sensitive fields are removed and may not be present.
$msg->location()/$msg->location($value)Type:
StringThe location of the resource in Google Cloud, such as its zone and region. For more information, see https://cloud.google.com/about/locations/.
Google::Cloud::Asset::V1::Assets::RelatedAssets
DEPRECATED. This message only presents for the purpose of backward-compatibility. The server will never populate this message in responses. The detailed related assets with the `relationship_type`.
Inherits from Protobuf::Message.
Accessors
$msg->relationship_attributes()/$msg->relationship_attributes($value)Type:
Message(Google::Cloud::Asset::V1::Assets::RelationshipAttributes)The detailed relationship attributes.
$msg->assets()/$msg->assets($value)Type:
Message(Google::Cloud::Asset::V1::Assets::RelatedAsset)The peer resources of the relationship.
Google::Cloud::Asset::V1::Assets::RelationshipAttributes
DEPRECATED. This message only presents for the purpose of backward-compatibility. The server will never populate this message in responses. The relationship attributes which include `type`, `source_resource_type`, `target_resource_type` and `action`.
Inherits from Protobuf::Message.
Accessors
$msg->type()/$msg->type($value)Type:
StringThe unique identifier of the relationship type. Example: `INSTANCE_TO_INSTANCEGROUP`
$msg->source_resource_type()/$msg->source_resource_type($value)Type:
StringThe source asset type. Example: `compute.googleapis.com/Instance`
$msg->target_resource_type()/$msg->target_resource_type($value)Type:
StringThe target asset type. Example: `compute.googleapis.com/Disk`
$msg->action()/$msg->action($value)Type:
StringThe detail of the relationship, e.g. `contains`, `attaches`
Google::Cloud::Asset::V1::Assets::RelatedAsset
An asset identifier in Google Cloud which contains its name, type and ancestors. An asset can be any resource in the Google Cloud [resource hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy), a resource outside the Google Cloud resource hierarchy (such as Google Kubernetes Engine clusters and objects), or a policy (e.g. IAM policy). See [Supported asset types](https://cloud.google.com/asset-inventory/docs/supported-asset-types) for more information.
Inherits from Protobuf::Message.
Accessors
$msg->asset()/$msg->asset($value)Type:
StringThe full name of the asset. Example: `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`
See [Resource names](https://cloud.google.com/apis/design/resource_names#full_resource_name) for more information.
$msg->asset_type()/$msg->asset_type($value)Type:
StringThe type of the asset. Example: `compute.googleapis.com/Disk`
See [Supported asset types](https://cloud.google.com/asset-inventory/docs/supported-asset-types) for more information.
$msg->ancestors()/$msg->ancestors($value)Type:
StringThe ancestors of an asset in Google Cloud [resource hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy), represented as a list of relative resource names. An ancestry path starts with the closest ancestor in the hierarchy and ends at root.
Example: `["projects/123456789", "folders/5432", "organizations/1234"]`
$msg->relationship_type()/$msg->relationship_type($value)Type:
StringThe unique identifier of the relationship type. Example: `INSTANCE_TO_INSTANCEGROUP`
Google::Cloud::Asset::V1::Assets::Tag
The key and value for a [tag](https://cloud.google.com/resource-manager/docs/tags/tags-overview).
Inherits from Protobuf::Message.
Accessors
$msg->tag_key()/$msg->tag_key($value)Type:
StringTagKey namespaced name, in the format of {ORG_ID}/{TAG_KEY_SHORT_NAME}.
$msg->tag_key_id()/$msg->tag_key_id($value)Type:
StringTagKey ID, in the format of tagKeys/{TAG_KEY_ID}.
$msg->tag_value()/$msg->tag_value($value)Type:
StringTagValue namespaced name, in the format of {ORG_ID}/{TAG_KEY_SHORT_NAME}/{TAG_VALUE_SHORT_NAME}.
$msg->tag_value_id()/$msg->tag_value_id($value)Type:
StringTagValue ID, in the format of tagValues/{TAG_VALUE_ID}.
Google::Cloud::Asset::V1::Assets::EffectiveTagDetails
The effective tags and the ancestor resources from which they were inherited.
Inherits from Protobuf::Message.
Accessors
$msg->attached_resource()/$msg->attached_resource($value)Type:
StringThe [full resource name](https://cloud.google.com/asset-inventory/docs/resource-name-format) of the ancestor from which [effective_tags][google.cloud.asset.v1.EffectiveTagDetails.effective_tags] are inherited, according to [tag inheritance](https://cloud.google.com/resource-manager/docs/tags/tags-overview#inheritance).
$msg->effective_tags()/$msg->effective_tags($value)Type:
Message(Google::Cloud::Asset::V1::Assets::Tag)The effective tags inherited from the [attached_resource][google.cloud.asset.v1.EffectiveTagDetails.attached_resource]. Note that tags with the same key but different values may attach to resources at a different hierarchy levels. The lower hierarchy tag value will overwrite the higher hierarchy tag value of the same tag key. In this case, the tag value at the higher hierarchy level will be removed. For more information, see [tag inheritance](https://cloud.google.com/resource-manager/docs/tags/tags-overview#inheritance).
Google::Cloud::Asset::V1::Assets::ResourceSearchResult
A result of Resource Search, containing information of a cloud resource.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringThe full resource name of this resource. Example: `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`. See [Cloud Asset Inventory Resource Name Format](https://cloud.google.com/asset-inventory/docs/resource-name-format) for more information.
To search against the `name`:
* Use a field query. Example: `name:instance1` * Use a free text query. Example: `instance1`
$msg->asset_type()/$msg->asset_type($value)Type:
StringThe type of this resource. Example: `compute.googleapis.com/Disk`.
To search against the `asset_type`:
* Specify the `asset_type` field in your search request.
$msg->project()/$msg->project($value)Type:
StringThe project that this resource belongs to, in the form of projects/{PROJECT_NUMBER}. This field is available when the resource belongs to a project.
To search against `project`:
* Use a field query. Example: `project:12345` * Use a free text query. Example: `12345` * Specify the `scope` field as this project in your search request.
$msg->folders()/$msg->folders($value)Type:
StringThe folder(s) that this resource belongs to, in the form of folders/{FOLDER_NUMBER}. This field is available when the resource belongs to one or more folders.
To search against `folders`:
* Use a field query. Example: `folders:(123 OR 456)` * Use a free text query. Example: `123` * Specify the `scope` field as this folder in your search request.
$msg->organization()/$msg->organization($value)Type:
StringThe organization that this resource belongs to, in the form of organizations/{ORGANIZATION_NUMBER}. This field is available when the resource belongs to an organization.
To search against `organization`:
* Use a field query. Example: `organization:123` * Use a free text query. Example: `123` * Specify the `scope` field as this organization in your search request.
$msg->display_name()/$msg->display_name($value)Type:
StringThe display name of this resource. This field is available only when the resource's Protobuf contains it.
To search against the `display_name`:
* Use a field query. Example: `displayName:"My Instance"` * Use a free text query. Example: `"My Instance"`
$msg->description()/$msg->description($value)Type:
StringOne or more paragraphs of text description of this resource. Maximum length could be up to 1M bytes. This field is available only when the resource's Protobuf contains it.
To search against the `description`:
* Use a field query. Example: `description:"important instance"` * Use a free text query. Example: `"important instance"`
$msg->location()/$msg->location($value)Type:
StringLocation can be `global`, regional like `us-east1`, or zonal like `us-west1-b`. This field is available only when the resource's Protobuf contains it.
To search against the `location`:
* Use a field query. Example: `location:us-west*` * Use a free text query. Example: `us-west*`
$msg->labels()/$msg->labels($value)Type:
Message(Google::Cloud::Asset::V1::Assets::ResourceSearchResult::LabelsEntry)User labels associated with this resource. See [Labelling and grouping Google Cloud resources](https://cloud.google.com/blog/products/gcp/labelling-and-grouping-your-google-cloud-platform-resources) for more information. This field is available only when the resource's Protobuf contains it.
To search against the `labels`:
* Use a field query: - query on any label's key or value. Example: `labels:prod` - query by a given label. Example: `labels.env:prod` - query by a given label's existence. Example: `labels.env:*` * Use a free text query. Example: `prod`
$msg->network_tags()/$msg->network_tags($value)Type:
StringNetwork tags associated with this resource. Like labels, network tags are a type of annotations used to group Google Cloud resources. See [Labelling Google Cloud resources](https://cloud.google.com/blog/products/gcp/labelling-and-grouping-your-google-cloud-platform-resources) for more information. This field is available only when the resource's Protobuf contains it.
To search against the `network_tags`:
* Use a field query. Example: `networkTags:internal` * Use a free text query. Example: `internal`
$msg->kms_key()/$msg->kms_key($value)Type:
StringThe Cloud KMS [CryptoKey](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys) name or [CryptoKeyVersion](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys.cryptoKeyVersions) name.
This field only presents for the purpose of backward compatibility. Use the `kms_keys` field to retrieve Cloud KMS key information. This field is available only when the resource's Protobuf contains it and will only be populated for [these resource types](https://cloud.google.com/asset-inventory/docs/legacy-field-names#resource_types_with_the_to_be_deprecated_kmskey_field) for backward compatible purposes.
To search against the `kms_key`:
* Use a field query. Example: `kmsKey:key` * Use a free text query. Example: `key`
$msg->kms_keys()/$msg->kms_keys($value)Type:
StringThe Cloud KMS [CryptoKey](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys) names or [CryptoKeyVersion](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys.cryptoKeyVersions) names. This field is available only when the resource's Protobuf contains it.
To search against the `kms_keys`:
* Use a field query. Example: `kmsKeys:key` * Use a free text query. Example: `key`
$msg->create_time()/$msg->create_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)The create timestamp of this resource, at which the resource was created. The granularity is in seconds. Timestamp.nanos will always be 0. This field is available only when the resource's Protobuf contains it.
To search against `create_time`:
* Use a field query. - value in seconds since unix epoch. Example: `createTime > 1609459200` - value in date string. Example: `createTime > 2021-01-01` - value in date-time string (must be quoted). Example: `createTime > "2021-01-01T00:00:00"`
$msg->update_time()/$msg->update_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)The last update timestamp of this resource, at which the resource was last modified or deleted. The granularity is in seconds. Timestamp.nanos will always be 0. This field is available only when the resource's Protobuf contains it.
To search against `update_time`:
* Use a field query. - value in seconds since unix epoch. Example: `updateTime < 1609459200` - value in date string. Example: `updateTime < 2021-01-01` - value in date-time string (must be quoted). Example: `updateTime < "2021-01-01T00:00:00"`
$msg->state()/$msg->state($value)Type:
StringThe state of this resource. Different resources types have different state definitions that are mapped from various fields of different resource types. This field is available only when the resource's Protobuf contains it.
Example: If the resource is an instance provided by Compute Engine, its state will include PROVISIONING, STAGING, RUNNING, STOPPING, SUSPENDING, SUSPENDED, REPAIRING, and TERMINATED. See `status` definition in [API Reference](https://cloud.google.com/compute/docs/reference/rest/v1/instances). If the resource is a project provided by Resource Manager, its state will include LIFECYCLE_STATE_UNSPECIFIED, ACTIVE, DELETE_REQUESTED and DELETE_IN_PROGRESS. See `lifecycleState` definition in [API Reference](https://cloud.google.com/resource-manager/reference/rest/v1/projects).
To search against the `state`:
* Use a field query. Example: `state:RUNNING` * Use a free text query. Example: `RUNNING`
$msg->additional_attributes()/$msg->additional_attributes($value)Type:
Message(Google::Protobuf::Struct::Struct)The additional searchable attributes of this resource. The attributes may vary from one resource type to another. Examples: `projectId` for Project, `dnsName` for DNS ManagedZone. This field contains a subset of the resource metadata fields that are returned by the List or Get APIs provided by the corresponding Google Cloud service (e.g., Compute Engine). see [API references and supported searchable attributes](https://cloud.google.com/asset-inventory/docs/supported-asset-types) to see which fields are included.
You can search values of these fields through free text search. However, you should not consume the field programically as the field names and values may change as the Google Cloud service updates to a new incompatible API version.
To search against the `additional_attributes`:
* Use a free text query to match the attributes values. Example: to search `additional_attributes = { dnsName: "foobar" }`, you can issue a query `foobar`.
$msg->parent_full_resource_name()/$msg->parent_full_resource_name($value)Type:
StringThe full resource name of this resource's parent, if it has one. To search against the `parent_full_resource_name`:
* Use a field query. Example: `parentFullResourceName:"project-name"` * Use a free text query. Example: `project-name`
$msg->versioned_resources()/$msg->versioned_resources($value)Type:
Message(Google::Cloud::Asset::V1::Assets::VersionedResource)Versioned resource representations of this resource. This is repeated because there could be multiple versions of resource representations during version migration.
This `versioned_resources` field is not searchable. Some attributes of the resource representations are exposed in `additional_attributes` field, so as to allow users to search on them.
$msg->attached_resources()/$msg->attached_resources($value)Type:
Message(Google::Cloud::Asset::V1::Assets::AttachedResource)Attached resources of this resource. For example, an OSConfig Inventory is an attached resource of a Compute Instance. This field is repeated because a resource could have multiple attached resources.
This `attached_resources` field is not searchable. Some attributes of the attached resources are exposed in `additional_attributes` field, so as to allow users to search on them.
$msg->relationships()/$msg->relationships($value)Type:
Message(Google::Cloud::Asset::V1::Assets::ResourceSearchResult::RelationshipsEntry)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).
$msg->tag_keys()/$msg->tag_keys($value)Type:
StringThis field is only present for the purpose of backward compatibility. Use the `tags` field instead.
TagKey namespaced names, in the format of {ORG_ID}/{TAG_KEY_SHORT_NAME}. To search against the `tagKeys`:
* Use a field query. Example: - `tagKeys:"123456789/env*"` - `tagKeys="123456789/env"` - `tagKeys:"env"`
* Use a free text query. Example: - `env`
$msg->tag_values()/$msg->tag_values($value)Type:
StringThis field is only present for the purpose of backward compatibility. Use the `tags` field instead.
TagValue namespaced names, in the format of {ORG_ID}/{TAG_KEY_SHORT_NAME}/{TAG_VALUE_SHORT_NAME}. To search against the `tagValues`:
* Use a field query. Example: - `tagValues:"env"` - `tagValues:"env/prod"` - `tagValues:"123456789/env/prod*"` - `tagValues="123456789/env/prod"`
* Use a free text query. Example: - `prod`
$msg->tag_value_ids()/$msg->tag_value_ids($value)Type:
StringThis field is only present for the purpose of backward compatibility. Use the `tags` field instead.
TagValue IDs, in the format of tagValues/{TAG_VALUE_ID}. To search against the `tagValueIds`:
* Use a field query. Example: - `tagValueIds="tagValues/456"`
* Use a free text query. Example: - `456`
$msg->tags()/$msg->tags($value)Type:
Message(Google::Cloud::Asset::V1::Assets::Tag)The tags directly attached to this resource.
To search against the `tags`:
* Use a field query. Example: - `tagKeys:"123456789/env*"` - `tagKeys="123456789/env"` - `tagKeys:"env"` - `tagKeyIds="tagKeys/123"` - `tagValues:"env"` - `tagValues:"env/prod"` - `tagValues:"123456789/env/prod*"` - `tagValues="123456789/env/prod"` - `tagValueIds="tagValues/456"`
* Use a free text query. Example: - `env/prod`
$msg->effective_tags()/$msg->effective_tags($value)Type:
Message(Google::Cloud::Asset::V1::Assets::EffectiveTagDetails)The effective tags on this resource. All of the tags that are both attached to and inherited by a resource are collectively called the effective tags. For more information, see [tag inheritance](https://cloud.google.com/resource-manager/docs/tags/tags-overview#inheritance).
To search against the `effective_tags`:
* Use a field query. Example: - `effectiveTagKeys:"123456789/env*"` - `effectiveTagKeys="123456789/env"` - `effectiveTagKeys:"env"` - `effectiveTagKeyIds="tagKeys/123"` - `effectiveTagValues:"env"` - `effectiveTagValues:"env/prod"` - `effectiveTagValues:"123456789/env/prod*"` - `effectiveTagValues="123456789/env/prod"` - `effectiveTagValueIds="tagValues/456"`
$msg->enrichments()/$msg->enrichments($value)Type:
Message(Google::Cloud::Asset::V1::Assets::AssetEnrichment)Enrichments of the asset. Currently supported enrichment types with SearchAllResources API:
* RESOURCE_OWNERS
The corresponding read masks in order to get the enrichment:
* enrichments.resource_owners
The corresponding required permissions:
* cloudasset.assets.searchEnrichmentResourceOwners
Example query to get resource owner enrichment: ``` scope: "projects/my-project" query: "name: my-project" assetTypes: "cloudresourcemanager.googleapis.com/Project" readMask: { paths: "asset_type" paths: "name" paths: "enrichments.resource_owners" } ```
$msg->parent_asset_type()/$msg->parent_asset_type($value)Type:
StringThe type of this resource's immediate parent, if there is one.
To search against the `parent_asset_type`:
* Use a field query. Example: `parentAssetType:"cloudresourcemanager.googleapis.com/Project"` * Use a free text query. Example: `cloudresourcemanager.googleapis.com/Project`
$msg->scc_security_marks()/$msg->scc_security_marks($value)Type:
Message(Google::Cloud::Asset::V1::Assets::ResourceSearchResult::SccSecurityMarksEntry)The actual content of Security Command Center security marks associated with the asset.
To search against SCC SecurityMarks field:
* Use a field query: - query by a given key value pair. Example: `sccSecurityMarks.foo=bar` - query by a given key's existence. Example: `sccSecurityMarks.foo:*`
Google::Cloud::Asset::V1::Assets::VersionedResource
Resource representation as defined by the corresponding service providing the resource for a given API version.
Inherits from Protobuf::Message.
Accessors
$msg->version()/$msg->version($value)Type:
StringAPI version of the resource.
Example: If the resource is an instance provided by Compute Engine v1 API as defined in `https://cloud.google.com/compute/docs/reference/rest/v1/instances`, version will be "v1".
$msg->resource()/$msg->resource($value)Type:
Message(Google::Protobuf::Struct::Struct)JSON representation of the resource as defined by the corresponding service providing this resource.
Example: If the resource is an instance provided by Compute Engine, this field will contain the JSON representation of the instance as defined by Compute Engine: `https://cloud.google.com/compute/docs/reference/rest/v1/instances`.
You can find the resource definition for each supported resource type in this table: `https://cloud.google.com/asset-inventory/docs/supported-asset-types`
Google::Cloud::Asset::V1::Assets::AttachedResource
Attached resource representation, which is defined by the corresponding service provider. It represents an attached resource's payload.
Inherits from Protobuf::Message.
Accessors
$msg->asset_type()/$msg->asset_type($value)Type:
StringThe type of this attached resource.
Example: `osconfig.googleapis.com/Inventory`
You can find the supported attached asset types of each resource in this table: `https://cloud.google.com/asset-inventory/docs/supported-asset-types`
$msg->versioned_resources()/$msg->versioned_resources($value)Type:
Message(Google::Cloud::Asset::V1::Assets::VersionedResource)Versioned resource representations of this attached resource. This is repeated because there could be multiple versions of the attached resource representations during version migration.
Google::Cloud::Asset::V1::Assets::RelatedResources
The related resources of the primary resource.
Inherits from Protobuf::Message.
Accessors
$msg->related_resources()/$msg->related_resources($value)Type:
Message(Google::Cloud::Asset::V1::Assets::RelatedResource)The detailed related resources of the primary resource.
Google::Cloud::Asset::V1::Assets::RelatedResource
The detailed related resource.
Inherits from Protobuf::Message.
Accessors
$msg->asset_type()/$msg->asset_type($value)Type:
StringThe type of the asset. Example: `compute.googleapis.com/Instance`
$msg->full_resource_name()/$msg->full_resource_name($value)Type:
StringThe full resource name of the related resource. Example: `//compute.googleapis.com/projects/my_proj_123/zones/instance/instance123`
Google::Cloud::Asset::V1::Assets::IamPolicySearchResult
A result of IAM Policy search, containing information of an IAM policy.
Inherits from Protobuf::Message.
Accessors
$msg->resource()/$msg->resource($value)Type:
StringThe full resource name of the resource associated with this IAM policy. Example: `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`. See [Cloud Asset Inventory Resource Name Format](https://cloud.google.com/asset-inventory/docs/resource-name-format) for more information.
To search against the `resource`:
* use a field query. Example: `resource:organizations/123`
$msg->asset_type()/$msg->asset_type($value)Type:
StringThe type of the resource associated with this IAM policy. Example: `compute.googleapis.com/Disk`.
To search against the `asset_type`:
* specify the `asset_types` field in your search request.
$msg->project()/$msg->project($value)Type:
StringThe project that the associated Google Cloud resource belongs to, in the form of projects/{PROJECT_NUMBER}. If an IAM policy is set on a resource (like VM instance, Cloud Storage bucket), the project field will indicate the project that contains the resource. If an IAM policy is set on a folder or organization, this field will be empty.
To search against the `project`:
* specify the `scope` field as this project in your search request.
$msg->folders()/$msg->folders($value)Type:
StringThe folder(s) that the IAM policy belongs to, in the form of folders/{FOLDER_NUMBER}. This field is available when the IAM policy belongs to one or more folders.
To search against `folders`:
* use a field query. Example: `folders:(123 OR 456)` * use a free text query. Example: `123` * specify the `scope` field as this folder in your search request.
$msg->organization()/$msg->organization($value)Type:
StringThe organization that the IAM policy belongs to, in the form of organizations/{ORGANIZATION_NUMBER}. This field is available when the IAM policy belongs to an organization.
To search against `organization`:
* use a field query. Example: `organization:123` * use a free text query. Example: `123` * specify the `scope` field as this organization in your search request.
$msg->policy()/$msg->policy($value)Type:
Message(Google::Iam::V1::Policy::Policy)The IAM policy directly set on the given resource. Note that the original IAM policy can contain multiple bindings. This only contains the bindings that match the given query. For queries that don't contain a constrain on policies (e.g., an empty query), this contains all the bindings.
To search against the `policy` bindings:
* use a field query: - query by the policy contained members. Example: `policy:amy@gmail.com` - query by the policy contained roles. Example: `policy:roles/compute.admin` - query by the policy contained roles' included permissions. Example: `policy.role.permissions:compute.instances.create`
$msg->explanation()/$msg->explanation($value)Type:
Message(Google::Cloud::Asset::V1::Assets::IamPolicySearchResult::Explanation)Explanation about the IAM policy search result. It contains additional information to explain why the search result matches the query.
Google::Cloud::Asset::V1::Assets::IamPolicyAnalysisState
Represents the detailed state of an entity under analysis, such as a resource, an identity or an access.
Inherits from Protobuf::Message.
Accessors
$msg->code()/$msg->code($value)Type:
Enum(Google::Rpc::Code)The Google standard error code that best describes the state. For example: - OK means the analysis on this entity has been successfully finished; - PERMISSION_DENIED means an access denied error is encountered; - DEADLINE_EXCEEDED means the analysis on this entity hasn't been started in time;
$msg->cause()/$msg->cause($value)Type:
StringThe human-readable description of the cause of failure.
Google::Cloud::Asset::V1::Assets::ConditionEvaluation
The condition evaluation.
Inherits from Protobuf::Message.
Accessors
$msg->evaluation_value()/$msg->evaluation_value($value)Type:
Enum(Google::Cloud::Asset::V1::ConditionEvaluation::EvaluationValue)The evaluation result.
Enum: ConditionEvaluation::EvaluationValue
EVALUATION_VALUE_UNSPECIFIED=>0TRUE=>1FALSE=>2CONDITIONAL=>3
Google::Cloud::Asset::V1::Assets::IamPolicyAnalysisResult
IAM Policy analysis result, consisting of one IAM policy binding and derived access control lists.
Inherits from Protobuf::Message.
Accessors
$msg->attached_resource_full_name()/$msg->attached_resource_full_name($value)Type:
StringThe [full resource name](https://cloud.google.com/asset-inventory/docs/resource-name-format) of the resource to which the [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding] policy attaches.
$msg->iam_binding()/$msg->iam_binding($value)Type:
Message(Google::Iam::V1::Policy::Binding)The IAM policy binding under analysis.
$msg->access_control_lists()/$msg->access_control_lists($value)Type:
Message(Google::Cloud::Asset::V1::Assets::IamPolicyAnalysisResult::AccessControlList)The access control lists derived from the [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding] that match or potentially match resource and access selectors specified in the request.
$msg->identity_list()/$msg->identity_list($value)Type:
Message(Google::Cloud::Asset::V1::Assets::IamPolicyAnalysisResult::IdentityList)The identity list derived from members of the [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding] that match or potentially match identity selector specified in the request.
$msg->fully_explored()/$msg->fully_explored($value)Type:
BoolRepresents whether all analyses on the [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding] have successfully finished.
SEE ALSO
Protobuf, Protobuf::Message, Google::Cloud::Asset::V1::Assets::Types, https://protobuf.dev/
LICENSE AND COPYRIGHT
Copyright (C) 2026 Google LLC
This program is released under the Apache 2.0 license.