Policy Simulator V1 API - Class Google::Cloud::PolicySimulator::V1::OrgPolicyViolation (v1.4.0)

Reference documentation and code samples for the Policy Simulator V1 API class Google::Cloud::PolicySimulator::V1::OrgPolicyViolation.

OrgPolicyViolation is a resource representing a single resource violating a single OrgPolicy constraint.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#custom_constraint

def custom_constraint() -> ::Google::Cloud::OrgPolicy::V2::CustomConstraint
Returns

#custom_constraint=

def custom_constraint=(value) -> ::Google::Cloud::OrgPolicy::V2::CustomConstraint
Parameter
Returns

#error

def error() -> ::Google::Rpc::Status
Returns

#error=

def error=(value) -> ::Google::Rpc::Status
Parameter
Returns

#name

def name() -> ::String
Returns
  • (::String) — The name of the OrgPolicyViolation. Example: organizations/my-example-org/locations/global/orgPolicyViolationsPreviews/506a5f7f/orgPolicyViolations/38ce`

#name=

def name=(value) -> ::String
Parameter
  • value (::String) — The name of the OrgPolicyViolation. Example: organizations/my-example-org/locations/global/orgPolicyViolationsPreviews/506a5f7f/orgPolicyViolations/38ce`
Returns
  • (::String) — The name of the OrgPolicyViolation. Example: organizations/my-example-org/locations/global/orgPolicyViolationsPreviews/506a5f7f/orgPolicyViolations/38ce`

#resource

def resource() -> ::Google::Cloud::PolicySimulator::V1::ResourceContext
Returns

#resource=

def resource=(value) -> ::Google::Cloud::PolicySimulator::V1::ResourceContext
Parameter
Returns