Class: Google::Apis::MerchantapiDatasourcesV1beta::Issue
- Inherits:
-
Object
- Object
- Google::Apis::MerchantapiDatasourcesV1beta::Issue
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/merchantapi_datasources_v1beta/classes.rb,
lib/google/apis/merchantapi_datasources_v1beta/representations.rb,
lib/google/apis/merchantapi_datasources_v1beta/representations.rb
Overview
An error occurring in the data source, like "invalid price".
Instance Attribute Summary collapse
-
#code ⇒ String
Output only.
-
#count ⇒ Fixnum
Output only.
-
#description ⇒ String
Output only.
-
#documentation_uri ⇒ String
Output only.
-
#severity ⇒ String
Output only.
-
#title ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Issue
constructor
A new instance of Issue.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Issue
Returns a new instance of Issue.
424 425 426 |
# File 'lib/google/apis/merchantapi_datasources_v1beta/classes.rb', line 424 def initialize(**args) update!(**args) end |
Instance Attribute Details
#code ⇒ String
Output only. The code of the error, for example, "validation/invalid_value".
Returns "?" if the code is unknown.
Corresponds to the JSON property code
394 395 396 |
# File 'lib/google/apis/merchantapi_datasources_v1beta/classes.rb', line 394 def code @code end |
#count ⇒ Fixnum
Output only. The number of occurrences of the error in the file upload.
Corresponds to the JSON property count
399 400 401 |
# File 'lib/google/apis/merchantapi_datasources_v1beta/classes.rb', line 399 def count @count end |
#description ⇒ String
Output only. The error description, for example, "Your data source contains
items which have too many attributes, or are too big. These items will be
dropped".
Corresponds to the JSON property description
406 407 408 |
# File 'lib/google/apis/merchantapi_datasources_v1beta/classes.rb', line 406 def description @description end |
#documentation_uri ⇒ String
Output only. Link to the documentation explaining the issue in more details,
if available.
Corresponds to the JSON property documentationUri
412 413 414 |
# File 'lib/google/apis/merchantapi_datasources_v1beta/classes.rb', line 412 def documentation_uri @documentation_uri end |
#severity ⇒ String
Output only. The severity of the issue.
Corresponds to the JSON property severity
417 418 419 |
# File 'lib/google/apis/merchantapi_datasources_v1beta/classes.rb', line 417 def severity @severity end |
#title ⇒ String
Output only. The title of the issue, for example, "Item too big".
Corresponds to the JSON property title
422 423 424 |
# File 'lib/google/apis/merchantapi_datasources_v1beta/classes.rb', line 422 def title @title end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
429 430 431 432 433 434 435 436 |
# File 'lib/google/apis/merchantapi_datasources_v1beta/classes.rb', line 429 def update!(**args) @code = args[:code] if args.key?(:code) @count = args[:count] if args.key?(:count) @description = args[:description] if args.key?(:description) @documentation_uri = args[:documentation_uri] if args.key?(:documentation_uri) @severity = args[:severity] if args.key?(:severity) @title = args[:title] if args.key?(:title) end |