Class: Google::Apis::ServicecontrolV2::RabPolicyViolationInfo

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/servicecontrol_v2/classes.rb,
lib/google/apis/servicecontrol_v2/representations.rb,
lib/google/apis/servicecontrol_v2/representations.rb

Overview

Represents Regional Access Boundary (RAB) Policy Violation information.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ RabPolicyViolationInfo

Returns a new instance of RabPolicyViolationInfo.



870
871
872
# File 'lib/google/apis/servicecontrol_v2/classes.rb', line 870

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#error_messageString

Optional. Error message detailing what triggered the violation. The error message content originates from the authz library e.g., google3/cloud/security/ iam/cap/deny_explanation/internal/make_error_msg.cc. This will be the same ( canonical) error message provided by the http error code. Corresponds to the JSON property errorMessage

Returns:

  • (String)


863
864
865
# File 'lib/google/apis/servicecontrol_v2/classes.rb', line 863

def error_message
  @error_message
end

#resource_locationsArray<String>

Optional. The list of target locations of the resource. Corresponds to the JSON property resourceLocations

Returns:

  • (Array<String>)


868
869
870
# File 'lib/google/apis/servicecontrol_v2/classes.rb', line 868

def resource_locations
  @resource_locations
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



875
876
877
878
# File 'lib/google/apis/servicecontrol_v2/classes.rb', line 875

def update!(**args)
  @error_message = args[:error_message] if args.key?(:error_message)
  @resource_locations = args[:resource_locations] if args.key?(:resource_locations)
end