Class: Google::Apis::SecuritycenterV1::CustomModuleValidationError
- Inherits:
-
Object
- Object
- Google::Apis::SecuritycenterV1::CustomModuleValidationError
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/securitycenter_v1/classes.rb,
lib/google/apis/securitycenter_v1/representations.rb,
lib/google/apis/securitycenter_v1/representations.rb
Overview
An error encountered while validating the uploaded configuration of an Event Threat Detection Custom Module.
Instance Attribute Summary collapse
-
#description ⇒ String
A description of the error, suitable for human consumption.
-
#end ⇒ Google::Apis::SecuritycenterV1::Position
A position in the uploaded text version of a module.
-
#field_path ⇒ String
The path, in RFC 8901 JSON Pointer format, to the field that failed validation.
-
#start ⇒ Google::Apis::SecuritycenterV1::Position
A position in the uploaded text version of a module.
Instance Method Summary collapse
-
#initialize(**args) ⇒ CustomModuleValidationError
constructor
A new instance of CustomModuleValidationError.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ CustomModuleValidationError
Returns a new instance of CustomModuleValidationError.
1492 1493 1494 |
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 1492 def initialize(**args) update!(**args) end |
Instance Attribute Details
#description ⇒ String
A description of the error, suitable for human consumption. Required.
Corresponds to the JSON property description
1474 1475 1476 |
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 1474 def description @description end |
#end ⇒ Google::Apis::SecuritycenterV1::Position
A position in the uploaded text version of a module.
Corresponds to the JSON property end
1479 1480 1481 |
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 1479 def end @end end |
#field_path ⇒ String
The path, in RFC 8901 JSON Pointer format, to the field that failed validation.
This may be left empty if no specific field is affected.
Corresponds to the JSON property fieldPath
1485 1486 1487 |
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 1485 def field_path @field_path end |
#start ⇒ Google::Apis::SecuritycenterV1::Position
A position in the uploaded text version of a module.
Corresponds to the JSON property start
1490 1491 1492 |
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 1490 def start @start end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1497 1498 1499 1500 1501 1502 |
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 1497 def update!(**args) @description = args[:description] if args.key?(:description) @end = args[:end] if args.key?(:end) @field_path = args[:field_path] if args.key?(:field_path) @start = args[:start] if args.key?(:start) end |