NAME
Google::Cloud::Asset::V1 - Client library for Google Cloud Services
SYNOPSIS
use Google::Cloud::Asset::V1;
use Google::Auth;
my $auth = Google::Auth->default();
# 1. High-performance gRPC Transport (Default)
my $grpc_client = Google::Cloud::Asset::V1->new(
credentials => $auth,
transport => 'grpc', # Optional: 'grpc' is default
);
# 2. HTTP/REST Transport
my $rest_client = Google::Cloud::Asset::V1->new(
credentials => $auth,
transport => 'rest',
);
# Execute service methods
my $res = $grpc_client->some_method( %params );
DESCRIPTION
Google::Cloud::Asset::V1 is an auto-generated client library for Google Cloud Services.
It provides a unified client interface supporting both high-performance HTTP/2 gRPC and HTTP/REST transports, with automatic Google Cloud Application Default Credentials (ADC) resolution and typed Protocol Buffers message handling.
SOURCE
Generated from the following Protocol Buffers schemas:
googleapis/google/cloud/asset/v1/asset_enrichment_resourceowners.protogoogleapis/google/cloud/asset/v1/asset_service.protogoogleapis/google/cloud/asset/v1/assets.proto
CONSTRUCTOR
new
my $client = Google::Cloud::Asset::V1->new(
credentials => $auth, # Optional: Google::Auth object (defaults to ADC)
transport => 'grpc', # Optional: 'grpc' (default) or 'rest'
);
ATTRIBUTES
credentials
Returns or accepts the Google::Auth credentials object.
transport
Returns or accepts the active transport object (Google::gRPC::Client or Google::Cloud::REST::Client).
METHODS
METHODS
The following RPC methods are available in this client:
export_assets
my $response = $client->export_assets( parent => $parent, read_time => $read_time, asset_types => [ ... ], content_type => $content_type, output_config => $output_config, relationship_types => [ ... ], );Calls the RPC method
ExportAssetsongoogle.cloud.asset.v1.AssetService.Request: Google::Cloud::Asset::V1::AssetService::ExportAssetsRequest
Returns: Google::Longrunning::Operations::Operation
Parameters:
parent-stringread_time- Google::Protobuf::Timestamp::Timestampasset_types- ArrayRef ofstringcontent_type- Google::Cloud::Asset::V1::AssetService::ContentTypeoutput_config- Google::Cloud::Asset::V1::AssetService::OutputConfigrelationship_types- ArrayRef ofstring
batch_get_assets_history
my $response = $client->batch_get_assets_history( parent => $parent, asset_names => [ ... ], content_type => $content_type, read_time_window => $read_time_window, relationship_types => [ ... ], );Calls the RPC method
BatchGetAssetsHistoryongoogle.cloud.asset.v1.AssetService.Request: Google::Cloud::Asset::V1::AssetService::BatchGetAssetsHistoryRequest
Returns: Google::Cloud::Asset::V1::AssetService::BatchGetAssetsHistoryResponse
Parameters:
parent-stringasset_names- ArrayRef ofstringcontent_type- Google::Cloud::Asset::V1::AssetService::ContentTyperead_time_window- Google::Cloud::Asset::V1::Assets::TimeWindowrelationship_types- ArrayRef ofstring
get_feed
my $response = $client->get_feed( name => $name, );Calls the RPC method
GetFeedongoogle.cloud.asset.v1.AssetService.Request: Google::Cloud::Asset::V1::AssetService::GetFeedRequest
Returns: Google::Cloud::Asset::V1::AssetService::Feed
Parameters:
name-string
update_feed
my $response = $client->update_feed( feed => $feed, update_mask => $update_mask, );Calls the RPC method
UpdateFeedongoogle.cloud.asset.v1.AssetService.Request: Google::Cloud::Asset::V1::AssetService::UpdateFeedRequest
Returns: Google::Cloud::Asset::V1::AssetService::Feed
Parameters:
update_mask- Google::Protobuf::FieldMask::FieldMask
search_all_iam_policies
my $response = $client->search_all_iam_policies( scope => $scope, query => $query, page_size => $page_size, page_token => $page_token, asset_types => [ ... ], order_by => $order_by, );Calls the RPC method
SearchAllIamPoliciesongoogle.cloud.asset.v1.AssetService.Request: Google::Cloud::Asset::V1::AssetService::SearchAllIamPoliciesRequest
Returns: Google::Cloud::Asset::V1::AssetService::SearchAllIamPoliciesResponse
Parameters:
scope-stringquery-stringpage_size-int32page_token-stringasset_types- ArrayRef ofstringorder_by-string
analyze_iam_policy_longrunning
my $response = $client->analyze_iam_policy_longrunning( analysis_query => $analysis_query, saved_analysis_query => $saved_analysis_query, output_config => $output_config, );Calls the RPC method
AnalyzeIamPolicyLongrunningongoogle.cloud.asset.v1.AssetService.Request: Google::Cloud::Asset::V1::AssetService::AnalyzeIamPolicyLongrunningRequest
Returns: Google::Longrunning::Operations::Operation
Parameters:
analysis_query- Google::Cloud::Asset::V1::AssetService::IamPolicyAnalysisQuerysaved_analysis_query-stringoutput_config- Google::Cloud::Asset::V1::AssetService::IamPolicyAnalysisOutputConfig
query_assets
my $response = $client->query_assets( parent => $parent, page_size => $page_size, page_token => $page_token, timeout => $timeout, output_config => $output_config, );Calls the RPC method
QueryAssetsongoogle.cloud.asset.v1.AssetService.Request: Google::Cloud::Asset::V1::AssetService::QueryAssetsRequest
Returns: Google::Cloud::Asset::V1::AssetService::QueryAssetsResponse
Parameters:
parent-stringpage_size-int32page_token-stringtimeout- Google::Protobuf::Duration::Durationoutput_config- Google::Cloud::Asset::V1::AssetService::QueryAssetsOutputConfig
get_saved_query
my $response = $client->get_saved_query( name => $name, );Calls the RPC method
GetSavedQueryongoogle.cloud.asset.v1.AssetService.Request: Google::Cloud::Asset::V1::AssetService::GetSavedQueryRequest
Returns: Google::Cloud::Asset::V1::AssetService::SavedQuery
Parameters:
name-string
update_saved_query
my $response = $client->update_saved_query( saved_query => $saved_query, update_mask => $update_mask, );Calls the RPC method
UpdateSavedQueryongoogle.cloud.asset.v1.AssetService.Request: Google::Cloud::Asset::V1::AssetService::UpdateSavedQueryRequest
Returns: Google::Cloud::Asset::V1::AssetService::SavedQuery
Parameters:
saved_query- Google::Cloud::Asset::V1::AssetService::SavedQueryupdate_mask- Google::Protobuf::FieldMask::FieldMask
analyze_org_policies
my $response = $client->analyze_org_policies( scope => $scope, constraint => $constraint, filter => $filter, page_size => $page_size, page_token => $page_token, );Calls the RPC method
AnalyzeOrgPoliciesongoogle.cloud.asset.v1.AssetService.Request: Google::Cloud::Asset::V1::AssetService::AnalyzeOrgPoliciesRequest
Returns: Google::Cloud::Asset::V1::AssetService::AnalyzeOrgPoliciesResponse
Parameters:
scope-stringconstraint-stringfilter-stringpage_size-int32page_token-string
analyze_org_policy_governed_assets
my $response = $client->analyze_org_policy_governed_assets( scope => $scope, constraint => $constraint, filter => $filter, page_size => $page_size, page_token => $page_token, );Calls the RPC method
AnalyzeOrgPolicyGovernedAssetsongoogle.cloud.asset.v1.AssetService.Request: Google::Cloud::Asset::V1::AssetService::AnalyzeOrgPolicyGovernedAssetsRequest
Returns: Google::Cloud::Asset::V1::AssetService::AnalyzeOrgPolicyGovernedAssetsResponse
Parameters:
scope-stringconstraint-stringfilter-stringpage_size-int32page_token-string
LICENSE AND COPYRIGHT
Copyright (C) 2026 Google LLC
This program is released under the Apache 2.0 license.