Class: Google::Apis::MerchantapiReportsV1beta::IssueSeverityPerReportingContext

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

Overview

Issue severity per reporting context.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ IssueSeverityPerReportingContext

Returns a new instance of IssueSeverityPerReportingContext.



623
624
625
# File 'lib/google/apis/merchantapi_reports_v1beta/classes.rb', line 623

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

Instance Attribute Details

#demoted_countriesArray<String>

List of demoted countries in the reporting context, represented in ISO 3166 format. Corresponds to the JSON property demotedCountries

Returns:

  • (Array<String>)


610
611
612
# File 'lib/google/apis/merchantapi_reports_v1beta/classes.rb', line 610

def demoted_countries
  @demoted_countries
end

#disapproved_countriesArray<String>

List of disapproved countries in the reporting context, represented in ISO 3166 format. Corresponds to the JSON property disapprovedCountries

Returns:

  • (Array<String>)


616
617
618
# File 'lib/google/apis/merchantapi_reports_v1beta/classes.rb', line 616

def disapproved_countries
  @disapproved_countries
end

#reporting_contextString

Reporting context the issue applies to. Corresponds to the JSON property reportingContext

Returns:

  • (String)


621
622
623
# File 'lib/google/apis/merchantapi_reports_v1beta/classes.rb', line 621

def reporting_context
  @reporting_context
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



628
629
630
631
632
# File 'lib/google/apis/merchantapi_reports_v1beta/classes.rb', line 628

def update!(**args)
  @demoted_countries = args[:demoted_countries] if args.key?(:demoted_countries)
  @disapproved_countries = args[:disapproved_countries] if args.key?(:disapproved_countries)
  @reporting_context = args[:reporting_context] if args.key?(:reporting_context)
end