Class: Google::Apis::ManufacturersV1::Issue

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/manufacturers_v1/classes.rb,
lib/google/apis/manufacturers_v1/representations.rb,
lib/google/apis/manufacturers_v1/representations.rb

Overview

Product issue.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Issue

Returns a new instance of Issue.



768
769
770
# File 'lib/google/apis/manufacturers_v1/classes.rb', line 768

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

Instance Attribute Details

#applicable_countriesArray<String>

Output only. List of country codes (ISO 3166-1 alpha-2) where issue applies to the manufacturer product. Corresponds to the JSON property applicableCountries

Returns:

  • (Array<String>)


724
725
726
# File 'lib/google/apis/manufacturers_v1/classes.rb', line 724

def applicable_countries
  @applicable_countries
end

#attributeString

If present, the attribute that triggered the issue. For more information about attributes, see https://support.google.com/manufacturers/answer/6124116. Corresponds to the JSON property attribute

Returns:

  • (String)


730
731
732
# File 'lib/google/apis/manufacturers_v1/classes.rb', line 730

def attribute
  @attribute
end

#descriptionString

Longer description of the issue focused on how to resolve it. Corresponds to the JSON property description

Returns:

  • (String)


735
736
737
# File 'lib/google/apis/manufacturers_v1/classes.rb', line 735

def description
  @description
end

#destinationString

The destination this issue applies to. Corresponds to the JSON property destination

Returns:

  • (String)


740
741
742
# File 'lib/google/apis/manufacturers_v1/classes.rb', line 740

def destination
  @destination
end

#resolutionString

What needs to happen to resolve the issue. Corresponds to the JSON property resolution

Returns:

  • (String)


745
746
747
# File 'lib/google/apis/manufacturers_v1/classes.rb', line 745

def resolution
  @resolution
end

#severityString

The severity of the issue. Corresponds to the JSON property severity

Returns:

  • (String)


750
751
752
# File 'lib/google/apis/manufacturers_v1/classes.rb', line 750

def severity
  @severity
end

#timestampString

The timestamp when this issue appeared. Corresponds to the JSON property timestamp

Returns:

  • (String)


755
756
757
# File 'lib/google/apis/manufacturers_v1/classes.rb', line 755

def timestamp
  @timestamp
end

#titleString

Short title describing the nature of the issue. Corresponds to the JSON property title

Returns:

  • (String)


760
761
762
# File 'lib/google/apis/manufacturers_v1/classes.rb', line 760

def title
  @title
end

#typeString

The server-generated type of the issue, for example, “ INCORRECT_TEXT_FORMATTING”, “IMAGE_NOT_SERVEABLE”, etc. Corresponds to the JSON property type

Returns:

  • (String)


766
767
768
# File 'lib/google/apis/manufacturers_v1/classes.rb', line 766

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



773
774
775
776
777
778
779
780
781
782
783
# File 'lib/google/apis/manufacturers_v1/classes.rb', line 773

def update!(**args)
  @applicable_countries = args[:applicable_countries] if args.key?(:applicable_countries)
  @attribute = args[:attribute] if args.key?(:attribute)
  @description = args[:description] if args.key?(:description)
  @destination = args[:destination] if args.key?(:destination)
  @resolution = args[:resolution] if args.key?(:resolution)
  @severity = args[:severity] if args.key?(:severity)
  @timestamp = args[:timestamp] if args.key?(:timestamp)
  @title = args[:title] if args.key?(:title)
  @type = args[:type] if args.key?(:type)
end