Cloud Security Command Center V1 API - Class Google::Cloud::SecurityCenter::V1::SecurityPosture (v1.0.0)

Reference documentation and code samples for the Cloud Security Command Center V1 API class Google::Cloud::SecurityCenter::V1::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

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#changed_policy

def changed_policy() -> ::String
Returns
  • (::String) — The name of the updated policy, for example, projects/{project_id}/policies/{constraint_name}.

#changed_policy=

def changed_policy=(value) -> ::String
Parameter
  • value (::String) — The name of the updated policy, for example, projects/{project_id}/policies/{constraint_name}.
Returns
  • (::String) — The name of the updated policy, for example, projects/{project_id}/policies/{constraint_name}.

#name

def name() -> ::String
Returns
  • (::String) — Name of the posture, for example, CIS-Posture.

#name=

def name=(value) -> ::String
Parameter
  • value (::String) — Name of the posture, for example, CIS-Posture.
Returns
  • (::String) — Name of the posture, for example, CIS-Posture.

#policy

def policy() -> ::String
Returns
  • (::String) — The ID of the updated policy, for example, compute-policy-1.

#policy=

def policy=(value) -> ::String
Parameter
  • value (::String) — The ID of the updated policy, for example, compute-policy-1.
Returns
  • (::String) — The ID of the updated policy, for example, compute-policy-1.

#policy_drift_details

def policy_drift_details() -> ::Array<::Google::Cloud::SecurityCenter::V1::SecurityPosture::PolicyDriftDetails>
Returns

#policy_drift_details=

def policy_drift_details=(value) -> ::Array<::Google::Cloud::SecurityCenter::V1::SecurityPosture::PolicyDriftDetails>
Parameter
Returns

#policy_set

def policy_set() -> ::String
Returns
  • (::String) — The name of the updated policyset, for example, cis-policyset.

#policy_set=

def policy_set=(value) -> ::String
Parameter
  • value (::String) — The name of the updated policyset, for example, cis-policyset.
Returns
  • (::String) — The name of the updated policyset, for example, cis-policyset.

#posture_deployment

def posture_deployment() -> ::String
Returns
  • (::String) — The name of the posture deployment, for example, organizations/{org_id}/posturedeployments/{posture_deployment_id}.

#posture_deployment=

def posture_deployment=(value) -> ::String
Parameter
  • value (::String) — The name of the posture deployment, for example, organizations/{org_id}/posturedeployments/{posture_deployment_id}.
Returns
  • (::String) — The name of the posture deployment, for example, organizations/{org_id}/posturedeployments/{posture_deployment_id}.

#posture_deployment_resource

def posture_deployment_resource() -> ::String
Returns
  • (::String) — The project, folder, or organization on which the posture is deployed, for example, projects/{project_number}.

#posture_deployment_resource=

def posture_deployment_resource=(value) -> ::String
Parameter
  • value (::String) — The project, folder, or organization on which the posture is deployed, for example, projects/{project_number}.
Returns
  • (::String) — The project, folder, or organization on which the posture is deployed, for example, projects/{project_number}.

#revision_id

def revision_id() -> ::String
Returns
  • (::String) — The version of the posture, for example, c7cfa2a8.

#revision_id=

def revision_id=(value) -> ::String
Parameter
  • value (::String) — The version of the posture, for example, c7cfa2a8.
Returns
  • (::String) — The version of the posture, for example, c7cfa2a8.