From c9a75bb33428e30b2c85809276ac008ec40400f3 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Sun, 1 Mar 2026 09:49:55 +0000 Subject: [PATCH] feat: Automated regeneration of merchantapi reports_v1beta client --- api_names_out.yaml | 11 ++ .../CHANGELOG.md | 4 + .../merchantapi_reports_v1beta/classes.rb | 106 ++++++++++++++---- .../merchantapi_reports_v1beta/gem_version.rb | 4 +- .../representations.rb | 19 ++++ 5 files changed, 123 insertions(+), 21 deletions(-) diff --git a/api_names_out.yaml b/api_names_out.yaml index 067143ef921..b3781e68e71 100644 --- a/api_names_out.yaml +++ b/api_names_out.yaml @@ -307772,7 +307772,10 @@ "/merchantapi:reports_v1beta/ProductView/productTypeL3": product_type_l3 "/merchantapi:reports_v1beta/ProductView/productTypeL4": product_type_l4 "/merchantapi:reports_v1beta/ProductView/productTypeL5": product_type_l5 +"/merchantapi:reports_v1beta/ProductView/reportingContext": reporting_context "/merchantapi:reports_v1beta/ProductView/shippingLabel": shipping_label +"/merchantapi:reports_v1beta/ProductView/statusPerReportingContext": status_per_reporting_context +"/merchantapi:reports_v1beta/ProductView/statusPerReportingContext/status_per_reporting_context": status_per_reporting_context "/merchantapi:reports_v1beta/ProductView/thumbnailLink": thumbnail_link "/merchantapi:reports_v1beta/ProductView/title": title "/merchantapi:reports_v1beta/ReportRow": report_row @@ -307794,6 +307797,14 @@ "/merchantapi:reports_v1beta/SearchResponse/nextPageToken": next_page_token "/merchantapi:reports_v1beta/SearchResponse/results": results "/merchantapi:reports_v1beta/SearchResponse/results/result": result +"/merchantapi:reports_v1beta/StatusPerReportingContext": status_per_reporting_context +"/merchantapi:reports_v1beta/StatusPerReportingContext/approvedCountries": approved_countries +"/merchantapi:reports_v1beta/StatusPerReportingContext/approvedCountries/approved_country": approved_country +"/merchantapi:reports_v1beta/StatusPerReportingContext/disapprovedCountries": disapproved_countries +"/merchantapi:reports_v1beta/StatusPerReportingContext/disapprovedCountries/disapproved_country": disapproved_country +"/merchantapi:reports_v1beta/StatusPerReportingContext/pendingCountries": pending_countries +"/merchantapi:reports_v1beta/StatusPerReportingContext/pendingCountries/pending_country": pending_country +"/merchantapi:reports_v1beta/StatusPerReportingContext/reportingContext": reporting_context "/merchantapi:reports_v1beta/fields": fields "/merchantapi:reports_v1beta/key": key "/merchantapi:reports_v1beta/merchantapi.accounts.reports.search": search_report diff --git a/generated/google-apis-merchantapi_reports_v1beta/CHANGELOG.md b/generated/google-apis-merchantapi_reports_v1beta/CHANGELOG.md index 8cc41f46461..99f30829f9d 100644 --- a/generated/google-apis-merchantapi_reports_v1beta/CHANGELOG.md +++ b/generated/google-apis-merchantapi_reports_v1beta/CHANGELOG.md @@ -1,5 +1,9 @@ # Release history for google-apis-merchantapi_reports_v1beta +### v0.11.0 (2026-03-01) + +* Regenerated from discovery document revision 20260223 + ### v0.10.0 (2026-01-11) * Regenerated from discovery document revision 20260106 diff --git a/generated/google-apis-merchantapi_reports_v1beta/lib/google/apis/merchantapi_reports_v1beta/classes.rb b/generated/google-apis-merchantapi_reports_v1beta/lib/google/apis/merchantapi_reports_v1beta/classes.rb index 787bee2713a..85fd2853353 100644 --- a/generated/google-apis-merchantapi_reports_v1beta/lib/google/apis/merchantapi_reports_v1beta/classes.rb +++ b/generated/google-apis-merchantapi_reports_v1beta/lib/google/apis/merchantapi_reports_v1beta/classes.rb @@ -667,13 +667,16 @@ def update!(**args) class ItemIssueSeverity include Google::Apis::Core::Hashable - # Aggregated severity of the issue for all reporting contexts it affects. **This - # field can be used for filtering the results.** + # Aggregated severity of the issue for all reporting contexts it affects. + # Reporting contexts included in the computation of the aggregated severity can + # be restricted using a filter on the `reporting_context` field. **This field + # can be used for filtering the results.** # Corresponds to the JSON property `aggregatedSeverity` # @return [String] attr_accessor :aggregated_severity - # Issue severity per reporting context. + # Issue severity per reporting context. Reporting contexts included in this list + # can be restricted using a filter on the `reporting_context` field. # Corresponds to the JSON property `severityPerReportingContext` # @return [Array] attr_accessor :severity_per_reporting_context @@ -1445,16 +1448,20 @@ def update!(**args) end # Fields available for query in `product_view` table. Products in the current - # inventory. Products in this table are the same as in Products sub-API but not - # all product attributes from Products sub-API are available for query in this - # table. In contrast to Products sub-API, this table allows to filter the - # returned list of products by product attributes. To retrieve a single product - # by `id` or list all products, Products sub-API should be used. Values are only - # set for fields requested explicitly in the request's search query. + # inventory. Products in this table are the same as a [Product resource in + # Products sub-API](https://developers.google.com/merchant/api/reference/rest/ + # products_v1/accounts.products) but not all product attributes from Products + # sub-API are available for query in this table. In contrast to Products sub-API, + # this table allows to filter the returned list of products by product + # attributes. To retrieve a single product by `id` or list all products, + # Products sub-API should be used. Values are only set for fields requested + # explicitly in the request's search query. class ProductView include Google::Apis::Core::Hashable - # Aggregated status. + # Aggregated status across all reporting contexts. Reporting contexts included + # in the computation of the aggregated status can be restricted using a filter + # on the `reporting_context` field. # Corresponds to the JSON property `aggregatedReportingContextStatus` # @return [String] attr_accessor :aggregated_reporting_context_status @@ -1615,12 +1622,28 @@ class ProductView # @return [String] attr_accessor :product_type_l5 + # Reporting context to restrict the query to. Restricts the reporting contexts + # returned in `status_per_reporting_context` and `item_issues`, and used to + # compute `aggregated_reporting_context_status`. **This field can only be used + # in the `WHERE` clause and cannot be selected in the `SELECT` clause.** + # Corresponds to the JSON property `reportingContext` + # @return [String] + attr_accessor :reporting_context + # Normalized [shipping label](https://support.google.com/merchants/answer/ # 6324504) specified in the data source. # Corresponds to the JSON property `shippingLabel` # @return [String] attr_accessor :shipping_label + # Detailed product status per reporting context. Reporting contexts included in + # this list can be restricted using a filter on the `reporting_context` field. + # Equivalent to `ProductStatus.destination_statuses` in Products API. **This + # field cannot be used for sorting or filtering the results.** + # Corresponds to the JSON property `statusPerReportingContext` + # @return [Array] + attr_accessor :status_per_reporting_context + # Link to the processed image of the product, hosted on the Google # infrastructure. # Corresponds to the JSON property `thumbnailLink` @@ -1665,7 +1688,9 @@ def update!(**args) @product_type_l3 = args[:product_type_l3] if args.key?(:product_type_l3) @product_type_l4 = args[:product_type_l4] if args.key?(:product_type_l4) @product_type_l5 = args[:product_type_l5] if args.key?(:product_type_l5) + @reporting_context = args[:reporting_context] if args.key?(:reporting_context) @shipping_label = args[:shipping_label] if args.key?(:shipping_label) + @status_per_reporting_context = args[:status_per_reporting_context] if args.key?(:status_per_reporting_context) @thumbnail_link = args[:thumbnail_link] if args.key?(:thumbnail_link) @title = args[:title] if args.key?(:title) end @@ -1757,12 +1782,14 @@ class ReportRow attr_accessor :product_performance_view # Fields available for query in `product_view` table. Products in the current - # inventory. Products in this table are the same as in Products sub-API but not - # all product attributes from Products sub-API are available for query in this - # table. In contrast to Products sub-API, this table allows to filter the - # returned list of products by product attributes. To retrieve a single product - # by `id` or list all products, Products sub-API should be used. Values are only - # set for fields requested explicitly in the request's search query. + # inventory. Products in this table are the same as a [Product resource in + # Products sub-API](https://developers.google.com/merchant/api/reference/rest/ + # products_v1/accounts.products) but not all product attributes from Products + # sub-API are available for query in this table. In contrast to Products sub-API, + # this table allows to filter the returned list of products by product + # attributes. To retrieve a single product by `id` or list all products, + # Products sub-API should be used. Values are only set for fields requested + # explicitly in the request's search query. # Corresponds to the JSON property `productView` # @return [Google::Apis::MerchantapiReportsV1beta::ProductView] attr_accessor :product_view @@ -1791,7 +1818,7 @@ class SearchRequest include Google::Apis::Core::Hashable # Optional. Number of `ReportRows` to retrieve in a single page. Defaults to - # 1000. Values above 5000 are coerced to 5000. + # 1000. Values above 100,000 are coerced to 100,000. # Corresponds to the JSON property `pageSize` # @return [Fixnum] attr_accessor :page_size @@ -1806,8 +1833,7 @@ class SearchRequest # Required. Query that defines a report to be retrieved. For details on how to # construct your query, see the [Query Language guide](/merchant/api/guides/ # reports/query-language). For the full list of available tables and fields, see - # the [Available fields](/merchant/api/reference/rest/reports_`api_version`/ - # accounts.reports). + # the Available fields. # Corresponds to the JSON property `query` # @return [String] attr_accessor :query @@ -1849,6 +1875,48 @@ def update!(**args) @results = args[:results] if args.key?(:results) end end + + # Status of the product for a specific reporting context. Equivalent to ` + # DestinationStatus` in Products API. + class StatusPerReportingContext + include Google::Apis::Core::Hashable + + # List of approved countries in the reporting context, represented in [ISO 3166]( + # https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format, for example, `US`. + # Corresponds to the JSON property `approvedCountries` + # @return [Array] + attr_accessor :approved_countries + + # List of disapproved countries in the reporting context, represented in [ISO + # 3166](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format, for example, ` + # US`. + # Corresponds to the JSON property `disapprovedCountries` + # @return [Array] + attr_accessor :disapproved_countries + + # List of pending countries in the reporting context, represented in [ISO 3166]( + # https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format, for example, `US`. + # Corresponds to the JSON property `pendingCountries` + # @return [Array] + attr_accessor :pending_countries + + # Reporting context the status applies to. + # Corresponds to the JSON property `reportingContext` + # @return [String] + attr_accessor :reporting_context + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @approved_countries = args[:approved_countries] if args.key?(:approved_countries) + @disapproved_countries = args[:disapproved_countries] if args.key?(:disapproved_countries) + @pending_countries = args[:pending_countries] if args.key?(:pending_countries) + @reporting_context = args[:reporting_context] if args.key?(:reporting_context) + end + end end end end diff --git a/generated/google-apis-merchantapi_reports_v1beta/lib/google/apis/merchantapi_reports_v1beta/gem_version.rb b/generated/google-apis-merchantapi_reports_v1beta/lib/google/apis/merchantapi_reports_v1beta/gem_version.rb index 4ef2c7e9d24..0917147adc5 100644 --- a/generated/google-apis-merchantapi_reports_v1beta/lib/google/apis/merchantapi_reports_v1beta/gem_version.rb +++ b/generated/google-apis-merchantapi_reports_v1beta/lib/google/apis/merchantapi_reports_v1beta/gem_version.rb @@ -16,13 +16,13 @@ module Google module Apis module MerchantapiReportsV1beta # Version of the google-apis-merchantapi_reports_v1beta gem - GEM_VERSION = "0.10.0" + GEM_VERSION = "0.11.0" # Version of the code generator used to generate this client GENERATOR_VERSION = "0.18.0" # Revision of the discovery document this client was generated from - REVISION = "20260106" + REVISION = "20260223" end end end diff --git a/generated/google-apis-merchantapi_reports_v1beta/lib/google/apis/merchantapi_reports_v1beta/representations.rb b/generated/google-apis-merchantapi_reports_v1beta/lib/google/apis/merchantapi_reports_v1beta/representations.rb index 34bcdbb1811..7354e31e44b 100644 --- a/generated/google-apis-merchantapi_reports_v1beta/lib/google/apis/merchantapi_reports_v1beta/representations.rb +++ b/generated/google-apis-merchantapi_reports_v1beta/lib/google/apis/merchantapi_reports_v1beta/representations.rb @@ -148,6 +148,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end + class StatusPerReportingContext + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class BestSellersBrandView # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -455,7 +461,10 @@ class Representation < Google::Apis::Core::JsonRepresentation property :product_type_l3, as: 'productTypeL3' property :product_type_l4, as: 'productTypeL4' property :product_type_l5, as: 'productTypeL5' + property :reporting_context, as: 'reportingContext' property :shipping_label, as: 'shippingLabel' + collection :status_per_reporting_context, as: 'statusPerReportingContext', class: Google::Apis::MerchantapiReportsV1beta::StatusPerReportingContext, decorator: Google::Apis::MerchantapiReportsV1beta::StatusPerReportingContext::Representation + property :thumbnail_link, as: 'thumbnailLink' property :title, as: 'title' end @@ -504,6 +513,16 @@ class Representation < Google::Apis::Core::JsonRepresentation end end + + class StatusPerReportingContext + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :approved_countries, as: 'approvedCountries' + collection :disapproved_countries, as: 'disapprovedCountries' + collection :pending_countries, as: 'pendingCountries' + property :reporting_context, as: 'reportingContext' + end + end end end end