NAME

Google::Cloud::Securitycenter::V2::SecurityPosture - Compiled Protocol Buffers messages for google/cloud/securitycenter/v2/security_posture.proto

SYNOPSIS

use Google::Cloud::Securitycenter::V2::SecurityPosture;

my $msg = Google::Cloud::Securitycenter::V2::SecurityPosture::SecurityPosture->new({
    name => $name,
    revision_id => $revision_id,
    posture_deployment_resource => $posture_deployment_resource,
    posture_deployment => $posture_deployment,
});

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

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

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

DESCRIPTION

Auto-generated Protobuf message classes compiled from google/cloud/securitycenter/v2/security_posture.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::SecurityPosture::SecurityPosture

Represents a posture that is deployed on Google Cloud by the Security Command Center Posture Management service. A posture contains one or more policy sets. A policy set is a group of policies that enforce a set of security rules on Google Cloud.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Name of the posture, for example, `CIS-Posture`.

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

    Type: String

    The version of the posture, for example, `c7cfa2a8`.

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

    Type: String

    The project, folder, or organization on which the posture is deployed, for example, `projects/{project_number}`.

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

    Type: String

    The name of the posture deployment, for example, `organizations/{org_id}/posturedeployments/{posture_deployment_id}`.

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

    Type: String

    The name of the updated policy, for example, `projects/{project_id}/policies/{constraint_name}`.

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

    Type: String

    The name of the updated policy set, for example, `cis-policyset`.

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

    Type: String

    The ID of the updated policy, for example, `compute-policy-1`.

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

    Type: Message (Google::Cloud::Securitycenter::V2::SecurityPosture::SecurityPosture::PolicyDriftDetails)

    The details about a change in an updated policy that violates the deployed posture.

SEE ALSO

Protobuf, Protobuf::Message, Google::Cloud::Securitycenter::V2::SecurityPosture::Types, https://protobuf.dev/

LICENSE AND COPYRIGHT

Copyright (C) 2026 Google LLC

This program is released under the Apache 2.0 license.