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
- (::Google::Cloud::OrgPolicy::V2::CustomConstraint) — The custom constraint being violated.
#custom_constraint=
def custom_constraint=(value) -> ::Google::Cloud::OrgPolicy::V2::CustomConstraint
Parameter
- value (::Google::Cloud::OrgPolicy::V2::CustomConstraint) — The custom constraint being violated.
Returns
- (::Google::Cloud::OrgPolicy::V2::CustomConstraint) — The custom constraint being violated.
#error
def error() -> ::Google::Rpc::Status
Returns
- (::Google::Rpc::Status) — Any error encountered during the evaluation.
#error=
def error=(value) -> ::Google::Rpc::Status
Parameter
- value (::Google::Rpc::Status) — Any error encountered during the evaluation.
Returns
- (::Google::Rpc::Status) — Any error encountered during the evaluation.
#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
- (::Google::Cloud::PolicySimulator::V1::ResourceContext) — The resource violating the constraint.
#resource=
def resource=(value) -> ::Google::Cloud::PolicySimulator::V1::ResourceContext
Parameter
- value (::Google::Cloud::PolicySimulator::V1::ResourceContext) — The resource violating the constraint.
Returns
- (::Google::Cloud::PolicySimulator::V1::ResourceContext) — The resource violating the constraint.