Service Client: Google::Cloud::Securityposture::V1::Securityposture::SecurityPostureClient

Client stub representing the remote SecurityPosture gRPC service. Delegates call dispatching to Google::gRPC::Client.

target

The endpoint target address. Defaults to securityposture.googleapis.com:443.

credentials

The authentication credentials provider. Defaults to application default credentials via Google::Auth.

NAME

Google::Cloud::Securityposture::V1::Securityposture - Compiled Protocol Buffers messages for google/cloud/securityposture/v1/securityposture.proto

SYNOPSIS

use Google::Cloud::Securityposture::V1::Securityposture;

my $msg = Google::Cloud::Securityposture::V1::Securityposture::OperationMetadata->new({
    create_time => $create_time,
    end_time => $end_time,
    target => $target,
    verb => $verb,
});

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

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

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

DESCRIPTION

Auto-generated Protobuf message classes compiled from google/cloud/securityposture/v1/securityposture.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::Securityposture::V1::Securityposture::OperationMetadata

Represents the metadata of the long-running operation.

Inherits from Protobuf::Message.

Accessors

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

    Type: Message (Google::Protobuf::Timestamp::Timestamp)

    Output only. The time the operation was created.

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

    Type: Message (Google::Protobuf::Timestamp::Timestamp)

    Output only. The time the operation finished running.

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

    Type: String

    Output only. Server-defined resource path for the target of the operation.

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

    Type: String

    Output only. Name of the verb executed by the operation.

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

    Type: String

    Output only. Human-readable status of the operation, if any.

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

    Type: Bool

    Output only. Identifies whether the user has requested cancellation of the operation. Operations that have been cancelled successfully have [Operation.error][] value with a [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to `Code.CANCELLED`.

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

    Type: String

    Output only. API version used to start the operation.

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

    Type: String

    Output only. This is a output only optional field which will be filled only in cases where PostureDeployments enter failure states like UPDATE_FAILED or CREATE_FAILED or DELETE_FAILED.

Google::Cloud::Securityposture::V1::Securityposture::Posture

Postures Definition of a Posture.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. Identifier. The name of this Posture resource, in the format of organizations/{org_id}/locations/{location_id}/postures/{posture}.

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

    Type: Enum (Google::Cloud::Securityposture::V1::Posture::State)

    Required. State of Posture resource.

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

    Type: String

    Output only. Immutable. The revision ID of the posture. The format is an 8-character hexadecimal string. https://google.aip.dev/162

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

    Type: Message (Google::Protobuf::Timestamp::Timestamp)

    Output only. The timestamp that the posture was created.

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

    Type: Message (Google::Protobuf::Timestamp::Timestamp)

    Output only. The timestamp that the posture was updated.

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

    Type: String

    Optional. User provided description of the posture.

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

    Type: Message (Google::Cloud::Securityposture::V1::Securityposture::PolicySet)

    Required. List of Policy sets.

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

    Type: String

    Optional. An opaque tag indicating the current version of the Posture, used for concurrency control. When the `Posture` is returned from either a `GetPosture` or a `ListPostures` request, this `etag` indicates the version of the current `Posture` to use when executing a read-modify-write loop.

    When the `Posture` is used in a `UpdatePosture` method, use the `etag` value that was returned from a `GetPosture` request as part of a read-modify-write loop for concurrency control. Not setting the `etag` in a `UpdatePosture` request will result in an unconditional write of the `Posture`.

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

    Type: Message (Google::Cloud::Securityposture::V1::Securityposture::Posture::AnnotationsEntry)

    Optional. User annotations. These attributes can only be set and used by the user, and not by Google Security Postures. .

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

    Type: Bool

    Output only. Whether or not this Posture is in the process of being updated.

Enum: Posture::State

  • STATE_UNSPECIFIED => 0

  • DEPRECATED => 1

  • DRAFT => 2

  • ACTIVE => 3

Google::Cloud::Securityposture::V1::Securityposture::PolicySet

PolicySet representation.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. ID of the Policy set.

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

    Type: String

    Optional. Description of the Policy set.

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

    Type: Message (Google::Cloud::Securityposture::V1::Securityposture::Policy)

    Required. List of policies.

Google::Cloud::Securityposture::V1::Securityposture::Policy

Policy representation.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Securityposture::V1::Securityposture::Constraint

Representation of a Constraint.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Securityposture::V1::Securityposture::ListPosturesRequest

Message for requesting list of Postures.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. Parent value for ListPosturesRequest.

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

    Type: Int32

    Requested page size. Server may return fewer items than requested. If unspecified, server will pick an appropriate default.

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

    Type: String

    A token identifying a page of results the server should return.

Google::Cloud::Securityposture::V1::Securityposture::ListPosturesResponse

Message for response to listing Postures.

Inherits from Protobuf::Message.

Accessors

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

    Type: Message (Google::Cloud::Securityposture::V1::Securityposture::Posture)

    The list of Posture.

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

    Type: String

    A token identifying a page of results the server should return.

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

    Type: String

    Unreachable resources.

Google::Cloud::Securityposture::V1::Securityposture::ListPostureRevisionsRequest

Message for requesting list of Posture revisions.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. Name value for ListPostureRevisionsRequest.

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

    Type: Int32

    Optional. Requested page size. Server may return fewer items than requested. If unspecified, server will pick 100 as default.

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

    Type: String

    Optional. A token identifying a page of results the server should return.

Google::Cloud::Securityposture::V1::Securityposture::ListPostureRevisionsResponse

Message for response to listing PostureRevisions.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Securityposture::V1::Securityposture::GetPostureRequest

Message for getting a Posture.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. Name of the resource.

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

    Type: String

    Optional. Posture revision which needs to be retrieved.

Google::Cloud::Securityposture::V1::Securityposture::CreatePostureRequest

Message for creating a Posture.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. Value for parent.

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

    Type: String

    Required. User provided identifier. It should be unique in scope of an Organization and location.

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

    Type: Message (Google::Cloud::Securityposture::V1::Securityposture::Posture)

    Required. The resource being created.

Google::Cloud::Securityposture::V1::Securityposture::UpdatePostureRequest

Message for updating a Posture.

Inherits from Protobuf::Message.

Accessors

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

    Type: Message (Google::Protobuf::FieldMask::FieldMask)

    Required. Field mask is used to specify the fields to be overwritten in the Posture resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten.

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

    Type: Message (Google::Cloud::Securityposture::V1::Securityposture::Posture)

    Required. The resource being updated.

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

    Type: String

    Required. Posture revision which needs to be updated.

Google::Cloud::Securityposture::V1::Securityposture::DeletePostureRequest

Message for deleting a Posture.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. Name of the resource.

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

    Type: String

    Optional. Etag value of the Posture to be deleted.

Google::Cloud::Securityposture::V1::Securityposture::ExtractPostureRequest

Message for extracting existing policies on a workload as a Posture.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. The parent resource name. The format of this value is as follows: `organizations/{organization}/locations/{location}`

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

    Type: String

    Required. User provided identifier. It should be unique in scope of an Organization and location.

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

    Type: String

    Required. Workload from which the policies are to be extracted, it should belong to the same organization defined in parent. The format of this value varies depending on the scope of the request: - `folder/folderNumber` - `project/projectNumber` - `organization/organizationNumber`

Google::Cloud::Securityposture::V1::Securityposture::PostureDeployment

========================== PostureDeployments ==========================
Message describing PostureDeployment resource.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. The name of this PostureDeployment resource, in the format of organizations/{organization}/locations/{location_id}/postureDeployments/{postureDeployment}.

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

    Type: String

    Required. Target resource where the Posture will be deployed. Currently supported resources are of types: projects/projectNumber, folders/folderNumber, organizations/organizationNumber.

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

    Type: Enum (Google::Cloud::Securityposture::V1::PostureDeployment::State)

    Output only. State of PostureDeployment resource.

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

    Type: String

    Required. Posture that needs to be deployed. Format: organizations/{org_id}/locations/{location_id}/postures/<posture> Example: organizations/99/locations/global/postures/les-miserables.

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

    Type: String

    Required. Revision_id of the Posture that is to be deployed.

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

    Type: Message (Google::Protobuf::Timestamp::Timestamp)

    Output only. The timestamp that the PostureDeployment was created.

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

    Type: Message (Google::Protobuf::Timestamp::Timestamp)

    Output only. The timestamp that the PostureDeployment was updated.

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

    Type: String

    Optional. User provided description of the PostureDeployment.

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

    Type: String

    Optional. An opaque tag indicating the current version of the PostureDeployment, used for concurrency control. When the `PostureDeployment` is returned from either a `GetPostureDeployment` or a `ListPostureDeployments` request, this `etag` indicates the version of the current `PostureDeployment` to use when executing a read-modify-write loop.

    When the `PostureDeployment` is used in a `UpdatePostureDeployment` method, use the `etag` value that was returned from a `GetPostureDeployment` request as part of a read-modify-write loop for concurrency control. Not setting the `etag` in a `UpdatePostureDeployment` request will result in an unconditional write of the `PostureDeployment`.

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

    Type: Message (Google::Cloud::Securityposture::V1::Securityposture::PostureDeployment::AnnotationsEntry)

    Optional. User annotations. These attributes can only be set and used by the user, and not by Google Security Postures. .

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

    Type: Bool

    Output only. Whether or not this Posture is in the process of being updated.

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

    Type: String

    Output only. This is a output only optional field which will be filled in case where PostureDeployment state is UPDATE_FAILED or CREATE_FAILED or DELETE_FAILED. It denotes the desired Posture.

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

    Type: String

    Output only. Output only optional field which provides revision_id of the desired_posture_id.

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

    Type: String

    Output only. This is a output only optional field which will be filled in case where PostureDeployment enters a failure state like UPDATE_FAILED or CREATE_FAILED or DELETE_FAILED.

Enum: PostureDeployment::State

  • STATE_UNSPECIFIED => 0

  • CREATING => 1

  • DELETING => 2

  • UPDATING => 3

  • ACTIVE => 4

  • CREATE_FAILED => 5

  • UPDATE_FAILED => 6

  • DELETE_FAILED => 7

Google::Cloud::Securityposture::V1::Securityposture::ListPostureDeploymentsRequest

Message for requesting list of PostureDeployments.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. Parent value for ListPostureDeploymentsRequest.

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

    Type: Int32

    Optional. Requested page size. Server may return fewer items than requested. If unspecified, server will pick an appropriate default.

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

    Type: String

    Optional. A token identifying a page of results the server should return.

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

    Type: String

    Optional. Filter to be applied on the resource, defined by EBNF grammar https://google.aip.dev/assets/misc/ebnf-filtering.txt.

Google::Cloud::Securityposture::V1::Securityposture::ListPostureDeploymentsResponse

Message for response to listing PostureDeployments.

Inherits from Protobuf::Message.

Accessors

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

    Type: Message (Google::Cloud::Securityposture::V1::Securityposture::PostureDeployment)

    The list of PostureDeployment.

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

    Type: String

    A token identifying a page of results the server should return.

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

    Type: String

    Locations that could not be reached.

Google::Cloud::Securityposture::V1::Securityposture::GetPostureDeploymentRequest

Message for getting a PostureDeployment.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. Name of the resource.

Google::Cloud::Securityposture::V1::Securityposture::CreatePostureDeploymentRequest

Message for creating a PostureDeployment.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. Value for parent. Format: organizations/{org_id}/locations/{location}

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

    Type: String

    Required. User provided identifier. It should be unique in scope of an Organization and location.

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

    Type: Message (Google::Cloud::Securityposture::V1::Securityposture::PostureDeployment)

    Required. The resource being created.

Google::Cloud::Securityposture::V1::Securityposture::UpdatePostureDeploymentRequest

Message for updating a PostureDeployment.

Inherits from Protobuf::Message.

Accessors

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

    Type: Message (Google::Protobuf::FieldMask::FieldMask)

    Required. Field mask is used to specify the fields to be overwritten in the PostureDeployment resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten.

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

    Type: Message (Google::Cloud::Securityposture::V1::Securityposture::PostureDeployment)

    Required. The resource being updated.

Google::Cloud::Securityposture::V1::Securityposture::DeletePostureDeploymentRequest

Message for deleting a PostureDeployment.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. Name of the resource.

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

    Type: String

    Optional. Etag value of the PostureDeployment to be deleted.

Google::Cloud::Securityposture::V1::Securityposture::PostureTemplate

PostureTemplates Message describing PostureTemplate object.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Output only. Identifier. The name of the Posture template will be of the format organizations/{organization}/locations/{location}/postureTemplates/{postureTemplate}

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

    Type: String

    Output only. The revision_id of a PostureTemplate.

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

    Type: String

    Output only. Description of the Posture template.

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

    Type: Enum (Google::Cloud::Securityposture::V1::PostureTemplate::State)

    Output only. State of PostureTemplate resource.

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

    Type: Message (Google::Cloud::Securityposture::V1::Securityposture::PolicySet)

    Output only. Policy_sets to be used by the user.

Enum: PostureTemplate::State

  • STATE_UNSPECIFIED => 0

  • ACTIVE => 1

  • DEPRECATED => 2

Google::Cloud::Securityposture::V1::Securityposture::ListPostureTemplatesRequest

Message for requesting list of Posture Templates.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. Parent value for ListPostureTemplatesRequest.

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

    Type: Int32

    Optional. Requested page size. Server may return fewer items than requested. If unspecified, server will pick an appropriate default.

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

    Type: String

    Optional. A token identifying a page of results the server should return.

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

    Type: String

    Optional. Filter to be applied on the resource, defined by EBNF grammar https://google.aip.dev/assets/misc/ebnf-filtering.txt.

Google::Cloud::Securityposture::V1::Securityposture::ListPostureTemplatesResponse

Message for response to listing PostureTemplates.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Securityposture::V1::Securityposture::GetPostureTemplateRequest

Message for getting a Posture Template.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. Name of the resource.

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

    Type: String

    Optional. Specific revision_id of a Posture Template. PostureTemplate revision_id which needs to be retrieved.

SEE ALSO

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

LICENSE AND COPYRIGHT

Copyright (C) 2026 Google LLC

This program is released under the Apache 2.0 license.