Class: Google::Apis::DatamanagerV1::ErrorCount

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

The error count for a given error reason.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ErrorCount

Returns a new instance of ErrorCount.



986
987
988
# File 'lib/google/apis/datamanager_v1/classes.rb', line 986

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

Instance Attribute Details

#reasonString

The error reason of the failed records. Corresponds to the JSON property reason

Returns:

  • (String)


979
980
981
# File 'lib/google/apis/datamanager_v1/classes.rb', line 979

def reason
  @reason
end

#record_countFixnum

The count of records that failed to upload for a given reason. Corresponds to the JSON property recordCount

Returns:

  • (Fixnum)


984
985
986
# File 'lib/google/apis/datamanager_v1/classes.rb', line 984

def record_count
  @record_count
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



991
992
993
994
# File 'lib/google/apis/datamanager_v1/classes.rb', line 991

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