Cloud Security Command Center V1 API - Class Google::Cloud::SecurityCenter::V1::SecurityPosture::PolicyDriftDetails (v0.40.0)

Reference documentation and code samples for the Cloud Security Command Center V1 API class Google::Cloud::SecurityCenter::V1::SecurityPosture::PolicyDriftDetails.

The policy field that violates the deployed posture and its expected and detected values.

Inherits

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#detected_value

def detected_value() -> ::String
Returns
  • (::String) — The detected value that violates the deployed posture, for example, false or allowed_values={"projects/22831892"}.

#detected_value=

def detected_value=(value) -> ::String
Parameter
  • value (::String) — The detected value that violates the deployed posture, for example, false or allowed_values={"projects/22831892"}.
Returns
  • (::String) — The detected value that violates the deployed posture, for example, false or allowed_values={"projects/22831892"}.

#expected_value

def expected_value() -> ::String
Returns
  • (::String) — The value of this field that was configured in a posture, for example, true or allowed_values={"projects/29831892"}.

#expected_value=

def expected_value=(value) -> ::String
Parameter
  • value (::String) — The value of this field that was configured in a posture, for example, true or allowed_values={"projects/29831892"}.
Returns
  • (::String) — The value of this field that was configured in a posture, for example, true or allowed_values={"projects/29831892"}.

#field

def field() -> ::String
Returns
  • (::String) — The name of the updated field, for example constraint.implementation.policy_rules[0].enforce

#field=

def field=(value) -> ::String
Parameter
  • value (::String) — The name of the updated field, for example constraint.implementation.policy_rules[0].enforce
Returns
  • (::String) — The name of the updated field, for example constraint.implementation.policy_rules[0].enforce