NAME
Google::Cloud::Securitycenter::V2::Resource - Compiled Protocol Buffers messages for google/cloud/securitycenter/v2/resource.proto
SYNOPSIS
use Google::Cloud::Securitycenter::V2::Resource;
my $msg = Google::Cloud::Securitycenter::V2::Resource::Resource->new({
name => $name,
display_name => $display_name,
type => $type,
cloud_provider => $cloud_provider,
});
# Read or update a field
my $val = $msg->name();
# Binary wire-format roundtrip
my $bytes = $msg->serialize();
my $decoded = Google::Cloud::Securitycenter::V2::Resource::Resource->parse($bytes);
# Canonical ProtoJSON
my $json = $msg->to_json();
DESCRIPTION
Auto-generated Protobuf message classes compiled from google/cloud/securitycenter/v2/resource.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::Securitycenter::V2::Resource::Resource
Information related to the Google Cloud resource.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringThe full resource name of the resource. See: https://cloud.google.com/apis/design/resource_names#full_resource_name
$msg->display_name()/$msg->display_name($value)Type:
StringThe human readable name of the resource.
$msg->type()/$msg->type($value)Type:
StringThe full resource type of the resource.
$msg->cloud_provider()/$msg->cloud_provider($value)Type:
Enum(Google::Cloud::Securitycenter::V2::CloudProvider)Indicates which cloud provider the finding is from.
$msg->service()/$msg->service($value)Type:
StringThe service or resource provider associated with the resource.
$msg->location()/$msg->location($value)Type:
StringThe region or location of the service (if applicable).
$msg->gcp_metadata()/$msg->gcp_metadata($value)Type:
Message(Google::Cloud::Securitycenter::V2::Resource::GcpMetadata)The GCP metadata associated with the finding.
$msg->aws_metadata()/$msg->aws_metadata($value)Type:
Message(Google::Cloud::Securitycenter::V2::Resource::AwsMetadata)The AWS metadata associated with the finding.
$msg->azure_metadata()/$msg->azure_metadata($value)Type:
Message(Google::Cloud::Securitycenter::V2::Resource::AzureMetadata)The Azure metadata associated with the finding.
$msg->resource_path()/$msg->resource_path($value)Type:
Message(Google::Cloud::Securitycenter::V2::Resource::ResourcePath)Provides the path to the resource within the resource hierarchy.
$msg->resource_path_string()/$msg->resource_path_string($value)Type:
StringA string representation of the resource path. For Google Cloud, it has the format of `organizations/{organization_id}/folders/{folder_id}/folders/{folder_id}/projects/{project_id}` where there can be any number of folders. For AWS, it has the format of `org/{organization_id}/ou/{organizational_unit_id}/ou/{organizational_unit_id}/account/{account_id}` where there can be any number of organizational units. For Azure, it has the format of `mg/{management_group_id}/mg/{management_group_id}/subscription/{subscription_id}/rg/{resource_group_name}` where there can be any number of management groups.
Google::Cloud::Securitycenter::V2::Resource::GcpMetadata
Google Cloud metadata associated with the resource. Only applicable if the finding's cloud provider is Google Cloud.
Inherits from Protobuf::Message.
Accessors
$msg->project()/$msg->project($value)Type:
StringThe full resource name of project that the resource belongs to.
$msg->project_display_name()/$msg->project_display_name($value)Type:
StringThe project ID that the resource belongs to.
$msg->parent()/$msg->parent($value)Type:
StringThe full resource name of resource's parent.
$msg->parent_display_name()/$msg->parent_display_name($value)Type:
StringThe human readable name of resource's parent.
$msg->folders()/$msg->folders($value)Type:
Message(Google::Cloud::Securitycenter::V2::Folder::Folder)Output only. Contains a Folder message for each folder in the assets ancestry. The first folder is the deepest nested folder, and the last folder is the folder directly under the Organization.
$msg->organization()/$msg->organization($value)Type:
StringThe name of the organization that the resource belongs to.
Google::Cloud::Securitycenter::V2::Resource::AwsMetadata
AWS metadata associated with the resource, only applicable if the finding's cloud provider is Amazon Web Services.
Inherits from Protobuf::Message.
Accessors
$msg->organization()/$msg->organization($value)Type:
Message(Google::Cloud::Securitycenter::V2::Resource::AwsMetadata::AwsOrganization)The AWS organization associated with the resource.
$msg->organizational_units()/$msg->organizational_units($value)Type:
Message(Google::Cloud::Securitycenter::V2::Resource::AwsMetadata::AwsOrganizationalUnit)A list of AWS organizational units associated with the resource, ordered from lowest level (closest to the account) to highest level.
$msg->account()/$msg->account($value)Type:
Message(Google::Cloud::Securitycenter::V2::Resource::AwsMetadata::AwsAccount)The AWS account associated with the resource.
Google::Cloud::Securitycenter::V2::Resource::AzureMetadata
Azure metadata associated with the resource, only applicable if the finding's cloud provider is Microsoft Azure.
Inherits from Protobuf::Message.
Accessors
$msg->management_groups()/$msg->management_groups($value)Type:
Message(Google::Cloud::Securitycenter::V2::Resource::AzureMetadata::AzureManagementGroup)A list of Azure management groups associated with the resource, ordered from lowest level (closest to the subscription) to highest level.
$msg->subscription()/$msg->subscription($value)Type:
Message(Google::Cloud::Securitycenter::V2::Resource::AzureMetadata::AzureSubscription)The Azure subscription associated with the resource.
$msg->resource_group()/$msg->resource_group($value)Type:
Message(Google::Cloud::Securitycenter::V2::Resource::AzureMetadata::AzureResourceGroup)The Azure resource group associated with the resource.
$msg->tenant()/$msg->tenant($value)Type:
Message(Google::Cloud::Securitycenter::V2::Resource::AzureMetadata::AzureTenant)The Azure Entra tenant associated with the resource.
Google::Cloud::Securitycenter::V2::Resource::ResourcePath
Represents the path of resources leading up to the resource this finding is about.
Inherits from Protobuf::Message.
Accessors
$msg->nodes()/$msg->nodes($value)Type:
Message(Google::Cloud::Securitycenter::V2::Resource::ResourcePath::ResourcePathNode)The list of nodes that make the up resource path, ordered from lowest level to highest level.
Enum: ResourcePath::ResourcePathNodeType
RESOURCE_PATH_NODE_TYPE_UNSPECIFIED=>0GCP_ORGANIZATION=>1GCP_FOLDER=>2GCP_PROJECT=>3AWS_ORGANIZATION=>4AWS_ORGANIZATIONAL_UNIT=>5AWS_ACCOUNT=>6AZURE_MANAGEMENT_GROUP=>7AZURE_SUBSCRIPTION=>8AZURE_RESOURCE_GROUP=>9
SEE ALSO
Protobuf, Protobuf::Message, Google::Cloud::Securitycenter::V2::Resource::Types, https://protobuf.dev/
LICENSE AND COPYRIGHT
Copyright (C) 2026 Google LLC
This program is released under the Apache 2.0 license.