Class: Google::Apis::DatamanagerV1::FieldWarning
- Inherits:
-
Object
- Object
- Google::Apis::DatamanagerV1::FieldWarning
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/datamanager_v1/classes.rb,
lib/google/apis/datamanager_v1/representations.rb,
lib/google/apis/datamanager_v1/representations.rb
Overview
Detailed row-level warning with field paths.
Instance Attribute Summary collapse
-
#description ⇒ String
The detailed warning message describing the issue.
-
#field ⇒ String
The field path that triggered the warning.
-
#reason ⇒ String
The warning reason.
Instance Method Summary collapse
-
#initialize(**args) ⇒ FieldWarning
constructor
A new instance of FieldWarning.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ FieldWarning
Returns a new instance of FieldWarning.
1303 1304 1305 |
# File 'lib/google/apis/datamanager_v1/classes.rb', line 1303 def initialize(**args) update!(**args) end |
Instance Attribute Details
#description ⇒ String
The detailed warning message describing the issue.
Corresponds to the JSON property description
1290 1291 1292 |
# File 'lib/google/apis/datamanager_v1/classes.rb', line 1290 def description @description end |
#field ⇒ String
The field path that triggered the warning. Uses the same format as google.rpc.
BadRequest.FieldViolation.field.
Corresponds to the JSON property field
1296 1297 1298 |
# File 'lib/google/apis/datamanager_v1/classes.rb', line 1296 def field @field end |
#reason ⇒ String
The warning reason.
Corresponds to the JSON property reason
1301 1302 1303 |
# File 'lib/google/apis/datamanager_v1/classes.rb', line 1301 def reason @reason end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1308 1309 1310 1311 1312 |
# File 'lib/google/apis/datamanager_v1/classes.rb', line 1308 def update!(**args) @description = args[:description] if args.key?(:description) @field = args[:field] if args.key?(:field) @reason = args[:reason] if args.key?(:reason) end |