Class: Google::Cloud::PolicySimulator::V1::OrgPolicyViolation

Inherits:
Object
  • Object
show all
Extended by:
Protobuf::MessageExts::ClassMethods
Includes:
Protobuf::MessageExts
Defined in:
proto_docs/google/cloud/policysimulator/v1/orgpolicy.rb

Overview

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

Instance Attribute Summary collapse

Instance Attribute Details

#custom_constraint::Google::Cloud::OrgPolicy::V2::CustomConstraint

Returns The custom constraint being violated.

Returns:



121
122
123
124
# File 'proto_docs/google/cloud/policysimulator/v1/orgpolicy.rb', line 121

class OrgPolicyViolation
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#error::Google::Rpc::Status

Returns Any error encountered during the evaluation.

Returns:



121
122
123
124
# File 'proto_docs/google/cloud/policysimulator/v1/orgpolicy.rb', line 121

class OrgPolicyViolation
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#name::String

Returns 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`



121
122
123
124
# File 'proto_docs/google/cloud/policysimulator/v1/orgpolicy.rb', line 121

class OrgPolicyViolation
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#resource::Google::Cloud::PolicySimulator::V1::ResourceContext

Returns The resource violating the constraint.

Returns:



121
122
123
124
# File 'proto_docs/google/cloud/policysimulator/v1/orgpolicy.rb', line 121

class OrgPolicyViolation
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end