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:
StringOutput only. Server-defined resource path for the target of the operation.
$msg->verb()/$msg->verb($value)Type:
StringOutput only. Name of the verb executed by the operation.
$msg->status_message()/$msg->status_message($value)Type:
StringOutput only. Human-readable status of the operation, if any.
$msg->requested_cancellation()/$msg->requested_cancellation($value)Type:
BoolOutput 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:
StringOutput only. API version used to start the operation.
$msg->error_message()/$msg->error_message($value)Type:
StringOutput 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:
StringRequired. 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:
StringOutput 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:
StringOptional. 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:
StringOptional. 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:
BoolOutput only. Whether or not this Posture is in the process of being updated.
Enum: Posture::State
STATE_UNSPECIFIED=>0DEPRECATED=>1DRAFT=>2ACTIVE=>3
Google::Cloud::Securityposture::V1::Securityposture::PolicySet
PolicySet representation.
Inherits from Protobuf::Message.
Accessors
$msg->policy_set_id()/$msg->policy_set_id($value)Type:
StringRequired. ID of the Policy set.
$msg->description()/$msg->description($value)Type:
StringOptional. 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
$msg->policy_id()/$msg->policy_id($value)Type:
StringRequired. ID of the Policy that is user generated, immutable and unique within the scope of a policy set.
$msg->compliance_standards()/$msg->compliance_standards($value)Type:
Message(Google::Cloud::Securityposture::V1::Securityposture::Policy::ComplianceStandard)Optional. Contains list of mapping for a Policy to a standard and control.
$msg->constraint()/$msg->constraint($value)Type:
Message(Google::Cloud::Securityposture::V1::Securityposture::Constraint)Required. Constraint details.
$msg->description()/$msg->description($value)Type:
StringOptional. Description of the Policy.
Google::Cloud::Securityposture::V1::Securityposture::Constraint
Representation of a Constraint.
Inherits from Protobuf::Message.
Accessors
$msg->security_health_analytics_module()/$msg->security_health_analytics_module($value)Type:
Message(Google::Cloud::Securityposture::V1::ShaConstraints::SecurityHealthAnalyticsModule)Optional. SHA built-in detector.
$msg->security_health_analytics_custom_module()/$msg->security_health_analytics_custom_module($value)Type:
Message(Google::Cloud::Securityposture::V1::ShaConstraints::SecurityHealthAnalyticsCustomModule)Optional. SHA custom detector.
$msg->org_policy_constraint()/$msg->org_policy_constraint($value)Type:
Message(Google::Cloud::Securityposture::V1::OrgPolicyConstraints::OrgPolicyConstraint)Optional. Org Policy builtin constraint.
$msg->org_policy_constraint_custom()/$msg->org_policy_constraint_custom($value)Type:
Message(Google::Cloud::Securityposture::V1::OrgPolicyConstraints::OrgPolicyConstraintCustom)Optional. Org Policy custom constraint.
Google::Cloud::Securityposture::V1::Securityposture::ListPosturesRequest
Message for requesting list of Postures.
Inherits from Protobuf::Message.
Accessors
$msg->parent()/$msg->parent($value)Type:
StringRequired. Parent value for ListPosturesRequest.
$msg->page_size()/$msg->page_size($value)Type:
Int32Requested 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:
StringA 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:
StringA token identifying a page of results the server should return.
$msg->unreachable()/$msg->unreachable($value)Type:
StringUnreachable 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:
StringRequired. Name value for ListPostureRevisionsRequest.
$msg->page_size()/$msg->page_size($value)Type:
Int32Optional. 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:
StringOptional. 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
$msg->revisions()/$msg->revisions($value)Type:
Message(Google::Cloud::Securityposture::V1::Securityposture::Posture)The list of Posture revisions.
$msg->next_page_token()/$msg->next_page_token($value)Type:
StringA token identifying a page of results the server should return.
Google::Cloud::Securityposture::V1::Securityposture::GetPostureRequest
Message for getting a Posture.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. Name of the resource.
$msg->revision_id()/$msg->revision_id($value)Type:
StringOptional. 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:
StringRequired. Value for parent.
$msg->posture_id()/$msg->posture_id($value)Type:
StringRequired. 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:
StringRequired. 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:
StringRequired. Name of the resource.
$msg->etag()/$msg->etag($value)Type:
StringOptional. 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:
StringRequired. The parent resource name. The format of this value is as follows: `organizations/{organization}/locations/{location}`
$msg->posture_id()/$msg->posture_id($value)Type:
StringRequired. User provided identifier. It should be unique in scope of an Organization and location.
$msg->workload()/$msg->workload($value)Type:
StringRequired. 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:
StringRequired. 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:
StringRequired. 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:
StringRequired. 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:
StringRequired. 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:
StringOptional. User provided description of the PostureDeployment.
$msg->etag()/$msg->etag($value)Type:
StringOptional. 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:
BoolOutput only. Whether or not this Posture is in the process of being updated.
$msg->desired_posture_id()/$msg->desired_posture_id($value)Type:
StringOutput 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:
StringOutput only. Output only optional field which provides revision_id of the desired_posture_id.
$msg->failure_message()/$msg->failure_message($value)Type:
StringOutput 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=>0CREATING=>1DELETING=>2UPDATING=>3ACTIVE=>4CREATE_FAILED=>5UPDATE_FAILED=>6DELETE_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:
StringRequired. Parent value for ListPostureDeploymentsRequest.
$msg->page_size()/$msg->page_size($value)Type:
Int32Optional. 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:
StringOptional. A token identifying a page of results the server should return.
$msg->filter()/$msg->filter($value)Type:
StringOptional. 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:
StringA token identifying a page of results the server should return.
$msg->unreachable()/$msg->unreachable($value)Type:
StringLocations 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:
StringRequired. 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:
StringRequired. Value for parent. Format: organizations/{org_id}/locations/{location}
$msg->posture_deployment_id()/$msg->posture_deployment_id($value)Type:
StringRequired. 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:
StringRequired. Name of the resource.
$msg->etag()/$msg->etag($value)Type:
StringOptional. 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:
StringOutput 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:
StringOutput only. The revision_id of a PostureTemplate.
$msg->description()/$msg->description($value)Type:
StringOutput 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=>0ACTIVE=>1DEPRECATED=>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:
StringRequired. Parent value for ListPostureTemplatesRequest.
$msg->page_size()/$msg->page_size($value)Type:
Int32Optional. 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:
StringOptional. A token identifying a page of results the server should return.
$msg->filter()/$msg->filter($value)Type:
StringOptional. 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
$msg->posture_templates()/$msg->posture_templates($value)Type:
Message(Google::Cloud::Securityposture::V1::Securityposture::PostureTemplate)The list of PostureTemplate.
$msg->next_page_token()/$msg->next_page_token($value)Type:
StringA token identifying a page of results the server should return.
Google::Cloud::Securityposture::V1::Securityposture::GetPostureTemplateRequest
Message for getting a Posture Template.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. Name of the resource.
$msg->revision_id()/$msg->revision_id($value)Type:
StringOptional. 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.