NAME

Google::Cloud::Securitycenter::V1::Resource - Compiled Protocol Buffers messages for google/cloud/securitycenter/v1/resource.proto

SYNOPSIS

use Google::Cloud::Securitycenter::V1::Resource;

my $msg = Google::Cloud::Securitycenter::V1::Resource::Resource->new({
    name => $name,
    display_name => $display_name,
    type => $type,
    project => $project,
});

# Read or update a field
my $val = $msg->name();

# Binary wire-format roundtrip
my $bytes   = $msg->serialize();
my $decoded = Google::Cloud::Securitycenter::V1::Resource::Resource->parse($bytes);

# Canonical ProtoJSON
my $json = $msg->to_json();

DESCRIPTION

Auto-generated Protobuf message classes compiled from google/cloud/securitycenter/v1/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::V1::Resource::Resource

Information related to the Google Cloud resource.

Inherits from Protobuf::Message.

Accessors

  • $msg->name() / $msg->name($value)

    Type: String

    The 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: String

    The human readable name of the resource.

  • $msg->type() / $msg->type($value)

    Type: String

    The full resource type of the resource.

  • $msg->project() / $msg->project($value)

    Type: String

    The full resource name of project that the resource belongs to.

  • $msg->project_display_name() / $msg->project_display_name($value)

    Type: String

    The project ID that the resource belongs to.

  • $msg->parent() / $msg->parent($value)

    Type: String

    The full resource name of resource's parent.

  • $msg->parent_display_name() / $msg->parent_display_name($value)

    Type: String

    The human readable name of resource's parent.

  • $msg->folders() / $msg->folders($value)

    Type: Message (Google::Cloud::Securitycenter::V1::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->cloud_provider() / $msg->cloud_provider($value)

    Type: Enum (Google::Cloud::Securitycenter::V1::CloudProvider)

    Indicates which cloud provider the resource resides in.

  • $msg->organization() / $msg->organization($value)

    Type: String

    Indicates which organization or tenant in the cloud provider the finding applies to.

  • $msg->service() / $msg->service($value)

    Type: String

    The parent service or product from which the resource is provided, for example, GKE or SNS.

  • $msg->location() / $msg->location($value)

    Type: String

    The region or location of the service (if applicable).

  • $msg->aws_metadata() / $msg->aws_metadata($value)

    Type: Message (Google::Cloud::Securitycenter::V1::Resource::AwsMetadata)

    The AWS metadata associated with the finding.

  • $msg->azure_metadata() / $msg->azure_metadata($value)

    Type: Message (Google::Cloud::Securitycenter::V1::Resource::AzureMetadata)

    The Azure metadata associated with the finding.

  • $msg->resource_path() / $msg->resource_path($value)

    Type: Message (Google::Cloud::Securitycenter::V1::Resource::ResourcePath)

    Provides the path to the resource within the resource hierarchy.

  • $msg->resource_path_string() / $msg->resource_path_string($value)

    Type: String

    A 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::V1::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

Google::Cloud::Securitycenter::V1::Resource::AzureMetadata

Azure metadata associated with the resource, only applicable if the finding's cloud provider is Microsoft Azure.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Securitycenter::V1::Resource::ResourcePath

Represents the path of resources leading up to the resource this finding is about.

Inherits from Protobuf::Message.

Accessors

Enum: ResourcePath::ResourcePathNodeType

  • RESOURCE_PATH_NODE_TYPE_UNSPECIFIED => 0

  • GCP_ORGANIZATION => 1

  • GCP_FOLDER => 2

  • GCP_PROJECT => 3

  • AWS_ORGANIZATION => 4

  • AWS_ORGANIZATIONAL_UNIT => 5

  • AWS_ACCOUNT => 6

  • AZURE_MANAGEMENT_GROUP => 7

  • AZURE_SUBSCRIPTION => 8

  • AZURE_RESOURCE_GROUP => 9

SEE ALSO

Protobuf, Protobuf::Message, Google::Cloud::Securitycenter::V1::Resource::Types, https://protobuf.dev/

LICENSE AND COPYRIGHT

Copyright (C) 2026 Google LLC

This program is released under the Apache 2.0 license.