Class: Google::Apis::DatamanagerV1::FieldWarning

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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

#descriptionString

The detailed warning message describing the issue. Corresponds to the JSON property description

Returns:

  • (String)


1290
1291
1292
# File 'lib/google/apis/datamanager_v1/classes.rb', line 1290

def description
  @description
end

#fieldString

The field path that triggered the warning. Uses the same format as google.rpc. BadRequest.FieldViolation.field. Corresponds to the JSON property field

Returns:

  • (String)


1296
1297
1298
# File 'lib/google/apis/datamanager_v1/classes.rb', line 1296

def field
  @field
end

#reasonString

The warning reason. Corresponds to the JSON property reason

Returns:

  • (String)


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