Class: Google::Apis::WebsecurityscannerV1beta::ScanConfigError
- Inherits:
-
Object
- Object
- Google::Apis::WebsecurityscannerV1beta::ScanConfigError
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/websecurityscanner_v1beta/classes.rb,
generated/google/apis/websecurityscanner_v1beta/representations.rb,
generated/google/apis/websecurityscanner_v1beta/representations.rb
Overview
Defines a custom error message used by CreateScanConfig and UpdateScanConfig APIs when scan configuration validation fails. It is also reported as part of a ScanRunErrorTrace message if scan validation fails due to a scan configuration error.
Instance Attribute Summary collapse
-
#code ⇒ String
Indicates the reason code for a configuration failure.
-
#field_name ⇒ String
Indicates the full name of the ScanConfig field that triggers this error, for example "scan_config.max_qps".
Instance Method Summary collapse
-
#initialize(**args) ⇒ ScanConfigError
constructor
A new instance of ScanConfigError.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ScanConfigError
Returns a new instance of ScanConfigError.
687 688 689 |
# File 'generated/google/apis/websecurityscanner_v1beta/classes.rb', line 687 def initialize(**args) update!(**args) end |
Instance Attribute Details
#code ⇒ String
Indicates the reason code for a configuration failure.
Corresponds to the JSON property code
678 679 680 |
# File 'generated/google/apis/websecurityscanner_v1beta/classes.rb', line 678 def code @code end |
#field_name ⇒ String
Indicates the full name of the ScanConfig field that triggers this error, for
example "scan_config.max_qps". This field is provided for troubleshooting
purposes only and its actual value can change in the future.
Corresponds to the JSON property fieldName
685 686 687 |
# File 'generated/google/apis/websecurityscanner_v1beta/classes.rb', line 685 def field_name @field_name end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
692 693 694 695 |
# File 'generated/google/apis/websecurityscanner_v1beta/classes.rb', line 692 def update!(**args) @code = args[:code] if args.key?(:code) @field_name = args[:field_name] if args.key?(:field_name) end |