From c896572c777355fbae29e344efb066527ca565ff Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Tue, 12 Jan 2021 02:28:04 -0800 Subject: [PATCH] feat: Automated regeneration of content v2.1 client (#2353) This PR was generated using Autosynth. :rainbow:
Log from Synthtool ``` 2021-01-12 02:13:22,080 synthtool [DEBUG] > Executing /home/kbuilder/.cache/synthtool/google-api-ruby-client/synth.py. On branch autosynth-content-v2.1 nothing to commit, working tree clean 2021-01-12 02:13:22,154 synthtool [DEBUG] > Running: docker run --rm -v/home/kbuilder/.cache/synthtool/google-api-ruby-client:/workspace -v/var/run/docker.sock:/var/run/docker.sock -w /workspace --entrypoint script/synth.rb gcr.io/cloud-devrel-kokoro-resources/yoshi-ruby/autosynth content v2.1 DEBUG:synthtool:Running: docker run --rm -v/home/kbuilder/.cache/synthtool/google-api-ruby-client:/workspace -v/var/run/docker.sock:/var/run/docker.sock -w /workspace --entrypoint script/synth.rb gcr.io/cloud-devrel-kokoro-resources/yoshi-ruby/autosynth content v2.1 git clean -df bundle install Don't run Bundler as root. Bundler can ask for sudo if it is needed, and installing your bundle as root will break this application for all non-root users on this machine. The dependency jruby-openssl (>= 0) will be unused by any of the platforms Bundler is installing for. Bundler is installing for ruby but the dependency is only for java. To add those platforms to the bundle, run `bundle lock --add-platform java`. Fetching gem metadata from https://rubygems.org/......... Fetching gem metadata from https://rubygems.org/. Resolving dependencies... Fetching rake 11.3.0 Installing rake 11.3.0 Fetching concurrent-ruby 1.1.7 Installing concurrent-ruby 1.1.7 Fetching i18n 1.8.7 Installing i18n 1.8.7 Fetching minitest 5.14.3 Installing minitest 5.14.3 Fetching tzinfo 2.0.4 Installing tzinfo 2.0.4 Fetching zeitwerk 2.4.2 Installing zeitwerk 2.4.2 Fetching activesupport 6.1.1 Installing activesupport 6.1.1 Fetching public_suffix 4.0.6 Installing public_suffix 4.0.6 Fetching addressable 2.7.0 Installing addressable 2.7.0 Fetching ast 2.4.1 Installing ast 2.4.1 Using bundler 2.1.4 Fetching byebug 11.1.3 Installing byebug 11.1.3 with native extensions Fetching coderay 1.1.3 Installing coderay 1.1.3 Fetching json 2.5.1 Installing json 2.5.1 with native extensions Fetching docile 1.3.4 Installing docile 1.3.4 Fetching simplecov-html 0.10.2 Installing simplecov-html 0.10.2 Fetching simplecov 0.16.1 Installing simplecov 0.16.1 Using sync 0.5.0 Fetching tins 1.28.0 Installing tins 1.28.0 Fetching term-ansicolor 1.7.1 Installing term-ansicolor 1.7.1 Fetching thor 0.20.3 Installing thor 0.20.3 Fetching coveralls 0.8.23 Installing coveralls 0.8.23 Fetching rexml 3.2.4 Installing rexml 3.2.4 Fetching crack 0.4.5 Installing crack 0.4.5 Fetching declarative 0.0.20 Installing declarative 0.0.20 Fetching declarative-option 0.1.0 Installing declarative-option 0.1.0 Fetching diff-lcs 1.4.4 Installing diff-lcs 1.4.4 Fetching dotenv 2.7.6 Installing dotenv 2.7.6 Fetching fakefs 0.20.1 Installing fakefs 0.20.1 Fetching faraday-net_http 1.0.0 Installing faraday-net_http 1.0.0 Fetching multipart-post 2.1.1 Installing multipart-post 2.1.1 Fetching ruby2_keywords 0.0.2 Installing ruby2_keywords 0.0.2 Fetching faraday 1.3.0 Installing faraday 1.3.0 Fetching gems 1.2.0 Installing gems 1.2.0 Fetching github-markup 1.7.0 Installing github-markup 1.7.0 Fetching jwt 2.2.2 Installing jwt 2.2.2 Fetching memoist 0.16.2 Installing memoist 0.16.2 Fetching multi_json 1.15.0 Installing multi_json 1.15.0 Fetching os 0.9.6 Installing os 0.9.6 Fetching signet 0.14.0 Installing signet 0.14.0 Fetching googleauth 0.14.0 Installing googleauth 0.14.0 Fetching httpclient 2.8.3 Installing httpclient 2.8.3 Fetching mini_mime 1.0.2 Installing mini_mime 1.0.2 Fetching uber 0.1.0 Installing uber 0.1.0 Fetching representable 3.0.4 Installing representable 3.0.4 Fetching retriable 3.1.2 Installing retriable 3.1.2 Fetching google-apis-core 0.2.0 Installing google-apis-core 0.2.0 Fetching google-apis-discovery_v1 0.1.0 Installing google-apis-discovery_v1 0.1.0 Using google-apis-generator 0.1.1 from source at `.` Fetching google-id-token 1.4.2 Installing google-id-token 1.4.2 Fetching hashdiff 1.0.1 Installing hashdiff 1.0.1 Fetching mime-types-data 3.2020.1104 Installing mime-types-data 3.2020.1104 Fetching mime-types 3.3.1 Installing mime-types 3.3.1 Fetching multi_xml 0.6.0 Installing multi_xml 0.6.0 Fetching httparty 0.18.1 Installing httparty 0.18.1 Fetching rspec-support 3.10.1 Installing rspec-support 3.10.1 Fetching rspec-core 3.10.1 Installing rspec-core 3.10.1 Fetching rspec-expectations 3.10.1 Installing rspec-expectations 3.10.1 Fetching rspec-mocks 3.10.1 Installing rspec-mocks 3.10.1 Fetching rspec 3.10.0 Installing rspec 3.10.0 Fetching json_spec 1.1.5 Installing json_spec 1.1.5 Fetching launchy 2.5.0 Installing launchy 2.5.0 Fetching little-plugger 1.1.4 Installing little-plugger 1.1.4 Fetching logging 2.3.0 Installing logging 2.3.0 Fetching method_source 1.0.0 Installing method_source 1.0.0 Fetching opencensus 0.5.0 Installing opencensus 0.5.0 Fetching parallel 1.20.1 Installing parallel 1.20.1 Fetching parser 2.7.2.0 Installing parser 2.7.2.0 Fetching powerpack 0.1.3 Installing powerpack 0.1.3 Fetching pry 0.13.1 Installing pry 0.13.1 Fetching pry-byebug 3.9.0 Installing pry-byebug 3.9.0 Fetching yard 0.9.26 Installing yard 0.9.26 Fetching pry-doc 0.13.5 Installing pry-doc 0.13.5 Fetching rainbow 2.2.2 Installing rainbow 2.2.2 with native extensions Fetching redcarpet 3.5.1 Installing redcarpet 3.5.1 with native extensions Fetching redis 3.3.5 Installing redis 3.3.5 Fetching rmail 1.1.4 Installing rmail 1.1.4 Fetching ruby-progressbar 1.11.0 Installing ruby-progressbar 1.11.0 Fetching unicode-display_width 1.7.0 Installing unicode-display_width 1.7.0 Fetching rubocop 0.49.1 Installing rubocop 0.49.1 Fetching webmock 2.3.2 Installing webmock 2.3.2 Bundle complete! 25 Gemfile dependencies, 81 gems now installed. Use `bundle info [gemname]` to see where a bundled gem is installed. Post-install message from i18n: HEADS UP! i18n 1.1 changed fallbacks to exclude default locale. But that may break your application. If you are upgrading your Rails application from an older version of Rails: Please check your Rails app for 'config.i18n.fallbacks = true'. If you're using I18n (>= 1.1.0) and Rails (< 5.2.2), this should be 'config.i18n.fallbacks = [I18n.default_locale]'. If not, fallbacks will be broken in your app by I18n 1.1.x. If you are starting a NEW Rails application, you can ignore this notice. For more info see: https://github.com/svenfuchs/i18n/releases/tag/v1.1.0 Post-install message from httparty: When you HTTParty, you must party hard! echo a | bundle exec bin/generate-api gen /workspace/generated --api=content.v2.1 --names=/workspace/api_names.yaml --names-out=/workspace/api_names_out.yaml --spot-check Loading content, version v2.1 from https://raw.githubusercontent.com/googleapis/discovery-artifact-manager/master/discoveries/content.v2.1.json W, [2021-01-12T10:13:45.070200 #239] WARN -- : Found reserved property 'method' W, [2021-01-12T10:13:45.070281 #239] WARN -- : Changed to 'method_prop' W, [2021-01-12T10:13:45.071406 #239] WARN -- : Found reserved property 'method' W, [2021-01-12T10:13:45.071436 #239] WARN -- : Changed to 'method_prop' W, [2021-01-12T10:13:45.071882 #239] WARN -- : Found reserved property 'method' W, [2021-01-12T10:13:45.071936 #239] WARN -- : Changed to 'method_prop' W, [2021-01-12T10:13:45.075153 #239] WARN -- : Found reserved property 'method' W, [2021-01-12T10:13:45.075238 #239] WARN -- : Changed to 'method_prop' W, [2021-01-12T10:13:45.075804 #239] WARN -- : Found reserved property 'method' W, [2021-01-12T10:13:45.075822 #239] WARN -- : Changed to 'method_prop' W, [2021-01-12T10:13:45.078779 #239] WARN -- : Found reserved property 'method' W, [2021-01-12T10:13:45.078812 #239] WARN -- : Changed to 'method_prop' W, [2021-01-12T10:13:45.081315 #239] WARN -- : Found reserved property 'method' W, [2021-01-12T10:13:45.081347 #239] WARN -- : Changed to 'method_prop' W, [2021-01-12T10:13:45.141125 #239] WARN -- : Found reserved property 'method' W, [2021-01-12T10:13:45.141183 #239] WARN -- : Changed to 'method_prop' W, [2021-01-12T10:13:45.148253 #239] WARN -- : Found reserved property 'method' W, [2021-01-12T10:13:45.148302 #239] WARN -- : Changed to 'method_prop' W, [2021-01-12T10:13:45.152851 #239] WARN -- : Found reserved property 'method' W, [2021-01-12T10:13:45.152891 #239] WARN -- : Changed to 'method_prop' W, [2021-01-12T10:13:45.153471 #239] WARN -- : Found reserved property 'method' W, [2021-01-12T10:13:45.153496 #239] WARN -- : Changed to 'method_prop' W, [2021-01-12T10:13:45.154742 #239] WARN -- : Found reserved property 'method' W, [2021-01-12T10:13:45.154767 #239] WARN -- : Changed to 'method_prop' W, [2021-01-12T10:13:45.157227 #239] WARN -- : Found reserved property 'method' W, [2021-01-12T10:13:45.157254 #239] WARN -- : Changed to 'method_prop' W, [2021-01-12T10:13:45.157659 #239] WARN -- : Found reserved property 'method' W, [2021-01-12T10:13:45.157672 #239] WARN -- : Changed to 'method_prop' W, [2021-01-12T10:13:45.159423 #239] WARN -- : Found reserved property 'method' W, [2021-01-12T10:13:45.159449 #239] WARN -- : Changed to 'method_prop' conflict google-apis-content_v2_1/lib/google/apis/content_v2_1/classes.rb = 0) will be unused by any of the platforms Bundler is installing for. Bundler is installing for ruby but the dependency is only for java. To add those platforms to the bundle, run `bundle lock --add-platform java`. Fetching gem metadata from https://rubygems.org/......... Fetching gem metadata from https://rubygems.org/. Resolving dependencies... Fetching rake 13.0.3 Installing rake 13.0.3 Using public_suffix 4.0.6 Using addressable 2.7.0 Using bundler 2.1.4 Using declarative 0.0.20 Using declarative-option 0.1.0 Using diff-lcs 1.4.4 Using faraday-net_http 1.0.0 Using multipart-post 2.1.1 Using ruby2_keywords 0.0.2 Using faraday 1.3.0 Using jwt 2.2.2 Using memoist 0.16.2 Using multi_json 1.15.0 Fetching os 1.1.1 Installing os 1.1.1 Using signet 0.14.0 Using googleauth 0.14.0 Using httpclient 2.8.3 Using mini_mime 1.0.2 Using uber 0.1.0 Using representable 3.0.4 Using retriable 3.1.2 Using rexml 3.2.4 Using google-apis-core 0.2.0 Using google-apis-content_v2_1 0.2.0 from source at `.` Using opencensus 0.5.0 Using redcarpet 3.5.1 Using rspec-support 3.10.1 Using rspec-core 3.10.1 Using rspec-expectations 3.10.1 Using rspec-mocks 3.10.1 Using rspec 3.10.0 Using yard 0.9.26 Bundle complete! 8 Gemfile dependencies, 33 gems now installed. Use `bundle info [gemname]` to see where a bundled gem is installed. /root/.rbenv/versions/2.6.6/bin/ruby -I/root/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/gems/rspec-core-3.10.1/lib:/root/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/gems/rspec-support-3.10.1/lib /root/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/gems/rspec-core-3.10.1/exe/rspec --pattern spec/\*\*\{,/\*/\*\*\}/\*_spec.rb Google::Apis::ContentV2_1 should load Finished in 0.4595 seconds (files took 0.10533 seconds to load) 1 example, 0 failures Files: 4 Modules: 3 ( 1 undocumented) Classes: 346 ( 250 undocumented) Constants: 5 ( 0 undocumented) Attributes: 608 ( 0 undocumented) Methods: 830 ( 0 undocumented) 85.99% documented google-apis-content_v2_1 0.2.0 built to pkg/google-apis-content_v2_1-0.2.0.gem. conflict /workspace/api_names_out.yaml force /workspace/api_names_out.yaml 2021-01-12 02:14:25,128 synthtool [DEBUG] > Wrote metadata to generated/google-apis-content_v2_1/synth.metadata. DEBUG:synthtool:Wrote metadata to generated/google-apis-content_v2_1/synth.metadata. ```
Full log will be available here: https://source.cloud.google.com/results/invocations/599da873-9f74-403d-9a28-9e4afc554432/targets - [ ] To automatically regenerate this PR, check this box. --- api_names_out.yaml | 89 ++++ .../google-apis-content_v2_1/CHANGELOG.md | 4 + .../lib/google/apis/content_v2_1/classes.rb | 403 +++++++++++++++++- .../google/apis/content_v2_1/gem_version.rb | 4 +- .../apis/content_v2_1/representations.rb | 156 +++++++ .../lib/google/apis/content_v2_1/service.rb | 353 +++++++++++++++ .../google-apis-content_v2_1/synth.metadata | 2 +- 7 files changed, 1005 insertions(+), 6 deletions(-) diff --git a/api_names_out.yaml b/api_names_out.yaml index 64b3441d8..f78dd2d04 100644 --- a/api_names_out.yaml +++ b/api_names_out.yaml @@ -57084,6 +57084,8 @@ "/content:v2.1/Account/adsLinks": ads_links "/content:v2.1/Account/adsLinks/ads_link": ads_link "/content:v2.1/Account/adultContent": adult_content +"/content:v2.1/Account/automaticLabelIds": automatic_label_ids +"/content:v2.1/Account/automaticLabelIds/automatic_label_id": automatic_label_id "/content:v2.1/Account/businessInformation": business_information "/content:v2.1/Account/cssId": css_id "/content:v2.1/Account/googleMyBusinessLink": google_my_business_link @@ -57126,7 +57128,13 @@ "/content:v2.1/AccountLabel/accountId": account_id "/content:v2.1/AccountLabel/description": description "/content:v2.1/AccountLabel/labelId": label_id +"/content:v2.1/AccountLabel/labelType": label_type "/content:v2.1/AccountLabel/name": name +"/content:v2.1/AccountReturnCarrier": account_return_carrier +"/content:v2.1/AccountReturnCarrier/carrierAccountId": carrier_account_id +"/content:v2.1/AccountReturnCarrier/carrierAccountName": carrier_account_name +"/content:v2.1/AccountReturnCarrier/carrierAccountNumber": carrier_account_number +"/content:v2.1/AccountReturnCarrier/carrierCode": carrier_code "/content:v2.1/AccountStatus": account_status "/content:v2.1/AccountStatus/accountId": account_id "/content:v2.1/AccountStatus/accountLevelIssues": account_level_issues @@ -57309,6 +57317,47 @@ "/content:v2.1/CarriersCarrier/name": name "/content:v2.1/CarriersCarrier/services": services "/content:v2.1/CarriersCarrier/services/service": service +"/content:v2.1/Collection": collection +"/content:v2.1/Collection/customLabel0": custom_label0 +"/content:v2.1/Collection/customLabel1": custom_label1 +"/content:v2.1/Collection/customLabel2": custom_label2 +"/content:v2.1/Collection/customLabel3": custom_label3 +"/content:v2.1/Collection/customLabel4": custom_label4 +"/content:v2.1/Collection/featuredProduct": featured_product +"/content:v2.1/Collection/featuredProduct/featured_product": featured_product +"/content:v2.1/Collection/headline": headline +"/content:v2.1/Collection/headline/headline": headline +"/content:v2.1/Collection/id": id +"/content:v2.1/Collection/imageLink": image_link +"/content:v2.1/Collection/imageLink/image_link": image_link +"/content:v2.1/Collection/language": language +"/content:v2.1/Collection/link": link +"/content:v2.1/Collection/mobileLink": mobile_link +"/content:v2.1/Collection/productCountry": product_country +"/content:v2.1/CollectionFeaturedProduct": collection_featured_product +"/content:v2.1/CollectionFeaturedProduct/offerId": offer_id +"/content:v2.1/CollectionFeaturedProduct/x": x +"/content:v2.1/CollectionFeaturedProduct/y": y +"/content:v2.1/CollectionStatus": collection_status +"/content:v2.1/CollectionStatus/collectionLevelIssuses": collection_level_issuses +"/content:v2.1/CollectionStatus/collectionLevelIssuses/collection_level_issuse": collection_level_issuse +"/content:v2.1/CollectionStatus/creationDate": creation_date +"/content:v2.1/CollectionStatus/destinationStatuses": destination_statuses +"/content:v2.1/CollectionStatus/destinationStatuses/destination_status": destination_status +"/content:v2.1/CollectionStatus/id": id +"/content:v2.1/CollectionStatus/lastUpdateDate": last_update_date +"/content:v2.1/CollectionStatusDestinationStatus": collection_status_destination_status +"/content:v2.1/CollectionStatusDestinationStatus/destination": destination +"/content:v2.1/CollectionStatusDestinationStatus/status": status +"/content:v2.1/CollectionStatusItemLevelIssue": collection_status_item_level_issue +"/content:v2.1/CollectionStatusItemLevelIssue/attributeName": attribute_name +"/content:v2.1/CollectionStatusItemLevelIssue/code": code +"/content:v2.1/CollectionStatusItemLevelIssue/description": description +"/content:v2.1/CollectionStatusItemLevelIssue/destination": destination +"/content:v2.1/CollectionStatusItemLevelIssue/detail": detail +"/content:v2.1/CollectionStatusItemLevelIssue/documentation": documentation +"/content:v2.1/CollectionStatusItemLevelIssue/resolution": resolution +"/content:v2.1/CollectionStatusItemLevelIssue/servability": servability "/content:v2.1/Css": css "/content:v2.1/Css/cssDomainId": css_domain_id "/content:v2.1/Css/cssGroupId": css_group_id @@ -57606,6 +57655,17 @@ "/content:v2.1/ListAccountLabelsResponse/accountLabels": account_labels "/content:v2.1/ListAccountLabelsResponse/accountLabels/account_label": account_label "/content:v2.1/ListAccountLabelsResponse/nextPageToken": next_page_token +"/content:v2.1/ListAccountReturnCarrierResponse": list_account_return_carrier_response +"/content:v2.1/ListAccountReturnCarrierResponse/accountReturnCarriers": account_return_carriers +"/content:v2.1/ListAccountReturnCarrierResponse/accountReturnCarriers/account_return_carrier": account_return_carrier +"/content:v2.1/ListCollectionStatusesResponse": list_collection_statuses_response +"/content:v2.1/ListCollectionStatusesResponse/nextPageToken": next_page_token +"/content:v2.1/ListCollectionStatusesResponse/resources": resources +"/content:v2.1/ListCollectionStatusesResponse/resources/resource": resource +"/content:v2.1/ListCollectionsResponse": list_collections_response +"/content:v2.1/ListCollectionsResponse/nextPageToken": next_page_token +"/content:v2.1/ListCollectionsResponse/resources": resources +"/content:v2.1/ListCollectionsResponse/resources/resource": resource "/content:v2.1/ListCssesResponse": list_csses_response "/content:v2.1/ListCssesResponse/csses": csses "/content:v2.1/ListCssesResponse/csses/css": css @@ -59080,6 +59140,16 @@ "/content:v2.1/content.accounts.listlinks/maxResults": max_results "/content:v2.1/content.accounts.listlinks/merchantId": merchant_id "/content:v2.1/content.accounts.listlinks/pageToken": page_token +"/content:v2.1/content.accounts.returncarrier.create": create_account_returncarrier +"/content:v2.1/content.accounts.returncarrier.create/accountId": account_id +"/content:v2.1/content.accounts.returncarrier.delete": delete_account_returncarrier +"/content:v2.1/content.accounts.returncarrier.delete/accountId": account_id +"/content:v2.1/content.accounts.returncarrier.delete/carrierAccountId": carrier_account_id +"/content:v2.1/content.accounts.returncarrier.list": list_account_returncarriers +"/content:v2.1/content.accounts.returncarrier.list/accountId": account_id +"/content:v2.1/content.accounts.returncarrier.patch": patch_account_returncarrier +"/content:v2.1/content.accounts.returncarrier.patch/accountId": account_id +"/content:v2.1/content.accounts.returncarrier.patch/carrierAccountId": carrier_account_id "/content:v2.1/content.accounts.update": update_account "/content:v2.1/content.accounts.update/accountId": account_id "/content:v2.1/content.accounts.update/merchantId": merchant_id @@ -59107,6 +59177,25 @@ "/content:v2.1/content.accounttax.update": update_accounttax "/content:v2.1/content.accounttax.update/accountId": account_id "/content:v2.1/content.accounttax.update/merchantId": merchant_id +"/content:v2.1/content.collections.create": create_collection +"/content:v2.1/content.collections.create/merchantId": merchant_id +"/content:v2.1/content.collections.delete": delete_collection +"/content:v2.1/content.collections.delete/collectionId": collection_id +"/content:v2.1/content.collections.delete/merchantId": merchant_id +"/content:v2.1/content.collections.get": get_collection +"/content:v2.1/content.collections.get/collectionId": collection_id +"/content:v2.1/content.collections.get/merchantId": merchant_id +"/content:v2.1/content.collections.list": list_collections +"/content:v2.1/content.collections.list/merchantId": merchant_id +"/content:v2.1/content.collections.list/pageSize": page_size +"/content:v2.1/content.collections.list/pageToken": page_token +"/content:v2.1/content.collectionstatuses.get": get_collectionstatus +"/content:v2.1/content.collectionstatuses.get/collectionId": collection_id +"/content:v2.1/content.collectionstatuses.get/merchantId": merchant_id +"/content:v2.1/content.collectionstatuses.list": list_collectionstatuses +"/content:v2.1/content.collectionstatuses.list/merchantId": merchant_id +"/content:v2.1/content.collectionstatuses.list/pageSize": page_size +"/content:v2.1/content.collectionstatuses.list/pageToken": page_token "/content:v2.1/content.csses.get": get_css "/content:v2.1/content.csses.get/cssDomainId": css_domain_id "/content:v2.1/content.csses.get/cssGroupId": css_group_id diff --git a/generated/google-apis-content_v2_1/CHANGELOG.md b/generated/google-apis-content_v2_1/CHANGELOG.md index 889d75230..22c5048cf 100644 --- a/generated/google-apis-content_v2_1/CHANGELOG.md +++ b/generated/google-apis-content_v2_1/CHANGELOG.md @@ -1,5 +1,9 @@ # Release history for google-apis-content_v2_1 +### v0.2.0 (2021-01-12) + +* Regenerated from discovery document revision 20210106 + ### v0.1.0 (2021-01-07) * Regenerated using generator version 0.1.1 diff --git a/generated/google-apis-content_v2_1/lib/google/apis/content_v2_1/classes.rb b/generated/google-apis-content_v2_1/lib/google/apis/content_v2_1/classes.rb index 854547ee8..7e99bd424 100644 --- a/generated/google-apis-content_v2_1/lib/google/apis/content_v2_1/classes.rb +++ b/generated/google-apis-content_v2_1/lib/google/apis/content_v2_1/classes.rb @@ -43,6 +43,12 @@ module Google attr_accessor :adult_content alias_method :adult_content?, :adult_content + # List of automatically created label IDs that are assigned to the account by + # CSS Center. + # Corresponds to the JSON property `automaticLabelIds` + # @return [Array] + attr_accessor :automatic_label_ids + # The business information of the account. # Corresponds to the JSON property `businessInformation` # @return [Google::Apis::ContentV2_1::AccountBusinessInformation] @@ -70,7 +76,7 @@ module Google # @return [String] attr_accessor :kind - # List of label IDs that are assigned to the account by CSS. + # List of manually created label IDs that are assigned to the account by CSS. # Corresponds to the JSON property `labelIds` # @return [Array] attr_accessor :label_ids @@ -113,6 +119,7 @@ module Google def update!(**args) @ads_links = args[:ads_links] if args.key?(:ads_links) @adult_content = args[:adult_content] if args.key?(:adult_content) + @automatic_label_ids = args[:automatic_label_ids] if args.key?(:automatic_label_ids) @business_information = args[:business_information] if args.key?(:business_information) @css_id = args[:css_id] if args.key?(:css_id) @google_my_business_link = args[:google_my_business_link] if args.key?(:google_my_business_link) @@ -349,6 +356,11 @@ module Google # @return [Fixnum] attr_accessor :label_id + # Output only. The type of this label. + # Corresponds to the JSON property `labelType` + # @return [String] + attr_accessor :label_type + # The display name of this label. # Corresponds to the JSON property `name` # @return [String] @@ -363,10 +375,50 @@ module Google @account_id = args[:account_id] if args.key?(:account_id) @description = args[:description] if args.key?(:description) @label_id = args[:label_id] if args.key?(:label_id) + @label_type = args[:label_type] if args.key?(:label_type) @name = args[:name] if args.key?(:name) end end + # The return carrier information. This service is designed for merchants + # enrolled in the Buy on Google program. + class AccountReturnCarrier + include Google::Apis::Core::Hashable + + # Output only. Immutable. The Google-provided unique carrier ID, used to update + # the resource. + # Corresponds to the JSON property `carrierAccountId` + # @return [Fixnum] + attr_accessor :carrier_account_id + + # Name of the carrier account. + # Corresponds to the JSON property `carrierAccountName` + # @return [String] + attr_accessor :carrier_account_name + + # Number of the carrier account. + # Corresponds to the JSON property `carrierAccountNumber` + # @return [String] + attr_accessor :carrier_account_number + + # The carrier code enum. Accepts the values FEDEX or UPS. + # Corresponds to the JSON property `carrierCode` + # @return [String] + attr_accessor :carrier_code + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @carrier_account_id = args[:carrier_account_id] if args.key?(:carrier_account_id) + @carrier_account_name = args[:carrier_account_name] if args.key?(:carrier_account_name) + @carrier_account_number = args[:carrier_account_number] if args.key?(:carrier_account_number) + @carrier_code = args[:carrier_code] if args.key?(:carrier_code) + end + end + # The status of an account, i.e., information about its products, which is # computed offline and not returned immediately at insertion time. class AccountStatus @@ -1051,7 +1103,9 @@ module Google # @return [String] attr_accessor :linked_account_id - # List of provided services. + # Acceptable values are: - "`shoppingAdsProductManagement`" - "` + # shoppingAdsOther`" - "`shoppingActionsProductManagement`" - "` + # shoppingActionsOrderManagement`" - "`shoppingActionsOther`" # Corresponds to the JSON property `services` # @return [Array] attr_accessor :services @@ -1636,6 +1690,275 @@ module Google end end + # The collection message. + class Collection + include Google::Apis::Core::Hashable + + # Label that you assign to a collection to help organize bidding and reporting + # in Shopping campaigns. Custom label + # Corresponds to the JSON property `customLabel0` + # @return [String] + attr_accessor :custom_label0 + + # Label that you assign to a collection to help organize bidding and reporting + # in Shopping campaigns. + # Corresponds to the JSON property `customLabel1` + # @return [String] + attr_accessor :custom_label1 + + # Label that you assign to a collection to help organize bidding and reporting + # in Shopping campaigns. + # Corresponds to the JSON property `customLabel2` + # @return [String] + attr_accessor :custom_label2 + + # Label that you assign to a collection to help organize bidding and reporting + # in Shopping campaigns. + # Corresponds to the JSON property `customLabel3` + # @return [String] + attr_accessor :custom_label3 + + # Label that you assign to a collection to help organize bidding and reporting + # in Shopping campaigns. + # Corresponds to the JSON property `customLabel4` + # @return [String] + attr_accessor :custom_label4 + + # This identifies one or more products associated with the collection. Used as a + # lookup to the corresponding product ID in your product feeds. Provide a + # maximum of 100 featuredProduct (for collections). Provide up to 10 + # featuredProduct (for Shoppable Images only) with ID and X and Y coordinates. + # featured_product attribute + # Corresponds to the JSON property `featuredProduct` + # @return [Array] + attr_accessor :featured_product + + # Your collection's name. headline attribute + # Corresponds to the JSON property `headline` + # @return [Array] + attr_accessor :headline + + # Required. The REST ID of the collection. Content API methods that operate on + # collections take this as their collectionId parameter. The REST ID for a + # collection is of the form collectionId. id attribute + # Corresponds to the JSON property `id` + # @return [String] + attr_accessor :id + + # The URL of a collection’s image. image_link attribute + # Corresponds to the JSON property `imageLink` + # @return [Array] + attr_accessor :image_link + + # The language of a collection and the language of any featured products linked + # to the collection. language attribute + # Corresponds to the JSON property `language` + # @return [String] + attr_accessor :language + + # A collection’s landing page. URL directly linking to your collection's page on + # your website. link attribute + # Corresponds to the JSON property `link` + # @return [String] + attr_accessor :link + + # A collection’s mobile-optimized landing page when you have a different URL for + # mobile and desktop traffic. mobile_link attribute + # Corresponds to the JSON property `mobileLink` + # @return [String] + attr_accessor :mobile_link + + # product_country attribute + # Corresponds to the JSON property `productCountry` + # @return [String] + attr_accessor :product_country + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @custom_label0 = args[:custom_label0] if args.key?(:custom_label0) + @custom_label1 = args[:custom_label1] if args.key?(:custom_label1) + @custom_label2 = args[:custom_label2] if args.key?(:custom_label2) + @custom_label3 = args[:custom_label3] if args.key?(:custom_label3) + @custom_label4 = args[:custom_label4] if args.key?(:custom_label4) + @featured_product = args[:featured_product] if args.key?(:featured_product) + @headline = args[:headline] if args.key?(:headline) + @id = args[:id] if args.key?(:id) + @image_link = args[:image_link] if args.key?(:image_link) + @language = args[:language] if args.key?(:language) + @link = args[:link] if args.key?(:link) + @mobile_link = args[:mobile_link] if args.key?(:mobile_link) + @product_country = args[:product_country] if args.key?(:product_country) + end + end + + # The message for FeaturedProduct. FeaturedProduct + class CollectionFeaturedProduct + include Google::Apis::Core::Hashable + + # The unique identifier for the product item. + # Corresponds to the JSON property `offerId` + # @return [String] + attr_accessor :offer_id + + # Required. X-coordinate of the product callout on the Shoppable Image. + # Corresponds to the JSON property `x` + # @return [Float] + attr_accessor :x + + # Required. Y-coordinate of the product callout on the Shoppable Image. + # Corresponds to the JSON property `y` + # @return [Float] + attr_accessor :y + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @offer_id = args[:offer_id] if args.key?(:offer_id) + @x = args[:x] if args.key?(:x) + @y = args[:y] if args.key?(:y) + end + end + + # The collectionstatus message. + class CollectionStatus + include Google::Apis::Core::Hashable + + # A list of all issues associated with the collection. + # Corresponds to the JSON property `collectionLevelIssuses` + # @return [Array] + attr_accessor :collection_level_issuses + + # Date on which the collection has been created in [ISO 8601](http://en. + # wikipedia.org/wiki/ISO_8601) format: Date, time, and offset, e.g. "2020-01- + # 02T09:00:00+01:00" or "2020-01-02T09:00:00Z" + # Corresponds to the JSON property `creationDate` + # @return [String] + attr_accessor :creation_date + + # The intended destinations for the collection. + # Corresponds to the JSON property `destinationStatuses` + # @return [Array] + attr_accessor :destination_statuses + + # Required. The ID of the collection for which status is reported. + # Corresponds to the JSON property `id` + # @return [String] + attr_accessor :id + + # Date on which the collection has been last updated in [ISO 8601](http://en. + # wikipedia.org/wiki/ISO_8601) format: Date, time, and offset, e.g. "2020-01- + # 02T09:00:00+01:00" or "2020-01-02T09:00:00Z" + # Corresponds to the JSON property `lastUpdateDate` + # @return [String] + attr_accessor :last_update_date + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @collection_level_issuses = args[:collection_level_issuses] if args.key?(:collection_level_issuses) + @creation_date = args[:creation_date] if args.key?(:creation_date) + @destination_statuses = args[:destination_statuses] if args.key?(:destination_statuses) + @id = args[:id] if args.key?(:id) + @last_update_date = args[:last_update_date] if args.key?(:last_update_date) + end + end + + # Destination status message. + class CollectionStatusDestinationStatus + include Google::Apis::Core::Hashable + + # The name of the destination + # Corresponds to the JSON property `destination` + # @return [String] + attr_accessor :destination + + # The status for the specified destination. + # Corresponds to the JSON property `status` + # @return [String] + attr_accessor :status + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @destination = args[:destination] if args.key?(:destination) + @status = args[:status] if args.key?(:status) + end + end + + # Issue associated with the collection. + class CollectionStatusItemLevelIssue + include Google::Apis::Core::Hashable + + # The attribute's name, if the issue is caused by a single attribute. + # Corresponds to the JSON property `attributeName` + # @return [String] + attr_accessor :attribute_name + + # The error code of the issue. + # Corresponds to the JSON property `code` + # @return [String] + attr_accessor :code + + # A short issue description in English. + # Corresponds to the JSON property `description` + # @return [String] + attr_accessor :description + + # The destination the issue applies to. + # Corresponds to the JSON property `destination` + # @return [String] + attr_accessor :destination + + # A detailed issue description in English. + # Corresponds to the JSON property `detail` + # @return [String] + attr_accessor :detail + + # The URL of a web page to help with resolving this issue. + # Corresponds to the JSON property `documentation` + # @return [String] + attr_accessor :documentation + + # Whether the issue can be resolved by the merchant. + # Corresponds to the JSON property `resolution` + # @return [String] + attr_accessor :resolution + + # How this issue affects the serving of the collection. + # Corresponds to the JSON property `servability` + # @return [String] + attr_accessor :servability + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @attribute_name = args[:attribute_name] if args.key?(:attribute_name) + @code = args[:code] if args.key?(:code) + @description = args[:description] if args.key?(:description) + @destination = args[:destination] if args.key?(:destination) + @detail = args[:detail] if args.key?(:detail) + @documentation = args[:documentation] if args.key?(:documentation) + @resolution = args[:resolution] if args.key?(:resolution) + @servability = args[:servability] if args.key?(:servability) + end + end + # Information about CSS domain. class Css include Google::Apis::Core::Hashable @@ -3751,6 +4074,77 @@ module Google end end + # Response for listing account return carriers. + class ListAccountReturnCarrierResponse + include Google::Apis::Core::Hashable + + # List of all available account return carriers for the merchant. + # Corresponds to the JSON property `accountReturnCarriers` + # @return [Array] + attr_accessor :account_return_carriers + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @account_return_carriers = args[:account_return_carriers] if args.key?(:account_return_carriers) + end + end + + # Response message for the ListCollectionStatuses method. + class ListCollectionStatusesResponse + include Google::Apis::Core::Hashable + + # A token, which can be sent as `page_token` to retrieve the next page. If this + # field is omitted, there are no subsequent pages. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + # The collectionstatuses listed. + # Corresponds to the JSON property `resources` + # @return [Array] + attr_accessor :resources + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @resources = args[:resources] if args.key?(:resources) + end + end + + # Response message for the ListCollections method. + class ListCollectionsResponse + include Google::Apis::Core::Hashable + + # A token, which can be sent as `page_token` to retrieve the next page. If this + # field is omitted, there are no subsequent pages. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + # The collections listed. + # Corresponds to the JSON property `resources` + # @return [Array] + attr_accessor :resources + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @resources = args[:resources] if args.key?(:resources) + end + end + # The response message for the `ListCsses` method class ListCssesResponse include Google::Apis::Core::Hashable @@ -9258,7 +9652,10 @@ module Google # @return [String] attr_accessor :gender - # Google's category of the item (see Google product taxonomy). + # Google's category of the item (see [Google product taxonomy](https://support. + # google.com/merchants/answer/1705911)). When querying products, this field will + # contain the user provided value. There is currently no way to get back the + # auto assigned google product categories through the API. # Corresponds to the JSON property `googleProductCategory` # @return [String] attr_accessor :google_product_category diff --git a/generated/google-apis-content_v2_1/lib/google/apis/content_v2_1/gem_version.rb b/generated/google-apis-content_v2_1/lib/google/apis/content_v2_1/gem_version.rb index 0238567d9..617b4a1eb 100644 --- a/generated/google-apis-content_v2_1/lib/google/apis/content_v2_1/gem_version.rb +++ b/generated/google-apis-content_v2_1/lib/google/apis/content_v2_1/gem_version.rb @@ -16,13 +16,13 @@ module Google module Apis module ContentV2_1 # Version of the google-apis-content_v2_1 gem - GEM_VERSION = "0.1.0" + GEM_VERSION = "0.2.0" # Version of the code generator used to generate this client GENERATOR_VERSION = "0.1.1" # Revision of the discovery document this client was generated from - REVISION = "20201211" + REVISION = "20210106" end end end diff --git a/generated/google-apis-content_v2_1/lib/google/apis/content_v2_1/representations.rb b/generated/google-apis-content_v2_1/lib/google/apis/content_v2_1/representations.rb index 28802a197..565812c62 100644 --- a/generated/google-apis-content_v2_1/lib/google/apis/content_v2_1/representations.rb +++ b/generated/google-apis-content_v2_1/lib/google/apis/content_v2_1/representations.rb @@ -70,6 +70,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class AccountReturnCarrier + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class AccountStatus class Representation < Google::Apis::Core::JsonRepresentation; end @@ -286,6 +292,36 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class Collection + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class CollectionFeaturedProduct + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class CollectionStatus + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class CollectionStatusDestinationStatus + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class CollectionStatusItemLevelIssue + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class Css class Representation < Google::Apis::Core::JsonRepresentation; end @@ -628,6 +664,24 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class ListAccountReturnCarrierResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ListCollectionStatusesResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ListCollectionsResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class ListCssesResponse class Representation < Google::Apis::Core::JsonRepresentation; end @@ -2044,6 +2098,7 @@ module Google collection :ads_links, as: 'adsLinks', class: Google::Apis::ContentV2_1::AccountAdsLink, decorator: Google::Apis::ContentV2_1::AccountAdsLink::Representation property :adult_content, as: 'adultContent' + collection :automatic_label_ids, as: 'automaticLabelIds' property :business_information, as: 'businessInformation', class: Google::Apis::ContentV2_1::AccountBusinessInformation, decorator: Google::Apis::ContentV2_1::AccountBusinessInformation::Representation property :css_id, :numeric_string => true, as: 'cssId' @@ -2124,10 +2179,21 @@ module Google property :account_id, :numeric_string => true, as: 'accountId' property :description, as: 'description' property :label_id, :numeric_string => true, as: 'labelId' + property :label_type, as: 'labelType' property :name, as: 'name' end end + class AccountReturnCarrier + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :carrier_account_id, :numeric_string => true, as: 'carrierAccountId' + property :carrier_account_name, as: 'carrierAccountName' + property :carrier_account_number, as: 'carrierAccountNumber' + property :carrier_code, as: 'carrierCode' + end + end + class AccountStatus # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -2494,6 +2560,70 @@ module Google end end + class Collection + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :custom_label0, as: 'customLabel0' + property :custom_label1, as: 'customLabel1' + property :custom_label2, as: 'customLabel2' + property :custom_label3, as: 'customLabel3' + property :custom_label4, as: 'customLabel4' + collection :featured_product, as: 'featuredProduct', class: Google::Apis::ContentV2_1::CollectionFeaturedProduct, decorator: Google::Apis::ContentV2_1::CollectionFeaturedProduct::Representation + + collection :headline, as: 'headline' + property :id, as: 'id' + collection :image_link, as: 'imageLink' + property :language, as: 'language' + property :link, as: 'link' + property :mobile_link, as: 'mobileLink' + property :product_country, as: 'productCountry' + end + end + + class CollectionFeaturedProduct + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :offer_id, as: 'offerId' + property :x, as: 'x' + property :y, as: 'y' + end + end + + class CollectionStatus + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :collection_level_issuses, as: 'collectionLevelIssuses', class: Google::Apis::ContentV2_1::CollectionStatusItemLevelIssue, decorator: Google::Apis::ContentV2_1::CollectionStatusItemLevelIssue::Representation + + property :creation_date, as: 'creationDate' + collection :destination_statuses, as: 'destinationStatuses', class: Google::Apis::ContentV2_1::CollectionStatusDestinationStatus, decorator: Google::Apis::ContentV2_1::CollectionStatusDestinationStatus::Representation + + property :id, as: 'id' + property :last_update_date, as: 'lastUpdateDate' + end + end + + class CollectionStatusDestinationStatus + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :destination, as: 'destination' + property :status, as: 'status' + end + end + + class CollectionStatusItemLevelIssue + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :attribute_name, as: 'attributeName' + property :code, as: 'code' + property :description, as: 'description' + property :destination, as: 'destination' + property :detail, as: 'detail' + property :documentation, as: 'documentation' + property :resolution, as: 'resolution' + property :servability, as: 'servability' + end + end + class Css # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -3088,6 +3218,32 @@ module Google end end + class ListAccountReturnCarrierResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :account_return_carriers, as: 'accountReturnCarriers', class: Google::Apis::ContentV2_1::AccountReturnCarrier, decorator: Google::Apis::ContentV2_1::AccountReturnCarrier::Representation + + end + end + + class ListCollectionStatusesResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :next_page_token, as: 'nextPageToken' + collection :resources, as: 'resources', class: Google::Apis::ContentV2_1::CollectionStatus, decorator: Google::Apis::ContentV2_1::CollectionStatus::Representation + + end + end + + class ListCollectionsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :next_page_token, as: 'nextPageToken' + collection :resources, as: 'resources', class: Google::Apis::ContentV2_1::Collection, decorator: Google::Apis::ContentV2_1::Collection::Representation + + end + end + class ListCssesResponse # @private class Representation < Google::Apis::Core::JsonRepresentation diff --git a/generated/google-apis-content_v2_1/lib/google/apis/content_v2_1/service.rb b/generated/google-apis-content_v2_1/lib/google/apis/content_v2_1/service.rb index b2c1f02ba..826211b1c 100644 --- a/generated/google-apis-content_v2_1/lib/google/apis/content_v2_1/service.rb +++ b/generated/google-apis-content_v2_1/lib/google/apis/content_v2_1/service.rb @@ -594,6 +594,140 @@ module Google execute_or_queue_command(command, &block) end + # Links return carrier to a merchant account. + # @param [Fixnum] account_id + # Required. The Merchant Center Account Id under which the Return Carrier is to + # be linked. + # @param [Google::Apis::ContentV2_1::AccountReturnCarrier] account_return_carrier_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ContentV2_1::AccountReturnCarrier] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ContentV2_1::AccountReturnCarrier] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def create_account_returncarrier(account_id, account_return_carrier_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'content/v2.1/accounts/{accountId}/returncarrier', options) + command.request_representation = Google::Apis::ContentV2_1::AccountReturnCarrier::Representation + command.request_object = account_return_carrier_object + command.response_representation = Google::Apis::ContentV2_1::AccountReturnCarrier::Representation + command.response_class = Google::Apis::ContentV2_1::AccountReturnCarrier + command.params['accountId'] = account_id unless account_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Delete a return carrier in the merchant account. + # @param [Fixnum] account_id + # Required. The Merchant Center Account Id under which the Return Carrier is to + # be linked. + # @param [Fixnum] carrier_account_id + # Required. The Google-provided unique carrier ID, used to update the resource. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [NilClass] No result returned for this method + # @yieldparam err [StandardError] error object if request failed + # + # @return [void] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def delete_account_returncarrier(account_id, carrier_account_id, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'content/v2.1/accounts/{accountId}/returncarrier/{carrierAccountId}', options) + command.params['accountId'] = account_id unless account_id.nil? + command.params['carrierAccountId'] = carrier_account_id unless carrier_account_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Lists available return carriers in the merchant account. + # @param [Fixnum] account_id + # Required. The Merchant Center Account Id under which the Return Carrier is to + # be linked. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ContentV2_1::ListAccountReturnCarrierResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ContentV2_1::ListAccountReturnCarrierResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def list_account_returncarriers(account_id, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'content/v2.1/accounts/{accountId}/returncarrier', options) + command.response_representation = Google::Apis::ContentV2_1::ListAccountReturnCarrierResponse::Representation + command.response_class = Google::Apis::ContentV2_1::ListAccountReturnCarrierResponse + command.params['accountId'] = account_id unless account_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Updates a return carrier in the merchant account. + # @param [Fixnum] account_id + # Required. The Merchant Center Account Id under which the Return Carrier is to + # be linked. + # @param [Fixnum] carrier_account_id + # Required. The Google-provided unique carrier ID, used to update the resource. + # @param [Google::Apis::ContentV2_1::AccountReturnCarrier] account_return_carrier_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ContentV2_1::AccountReturnCarrier] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ContentV2_1::AccountReturnCarrier] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def patch_account_returncarrier(account_id, carrier_account_id, account_return_carrier_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:patch, 'content/v2.1/accounts/{accountId}/returncarrier/{carrierAccountId}', options) + command.request_representation = Google::Apis::ContentV2_1::AccountReturnCarrier::Representation + command.request_object = account_return_carrier_object + command.response_representation = Google::Apis::ContentV2_1::AccountReturnCarrier::Representation + command.response_class = Google::Apis::ContentV2_1::AccountReturnCarrier + command.params['accountId'] = account_id unless account_id.nil? + command.params['carrierAccountId'] = carrier_account_id unless carrier_account_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + # Retrieves multiple Merchant Center account statuses in a single request. # @param [Google::Apis::ContentV2_1::AccountstatusesCustomBatchRequest] accountstatuses_custom_batch_request_object # @param [String] fields @@ -845,6 +979,225 @@ module Google execute_or_queue_command(command, &block) end + # Uploads a collection to your Merchant Center account. If a collection with the + # same collectionId already exists, this method updates that entry. In each + # update, the collection is completely replaced by the fields in the body of the + # update request. + # @param [Fixnum] merchant_id + # Required. The ID of the account that contains the collection. This account + # cannot be a multi-client account. + # @param [Google::Apis::ContentV2_1::Collection] collection_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ContentV2_1::Collection] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ContentV2_1::Collection] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def create_collection(merchant_id, collection_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'content/v2.1/{merchantId}/collections', options) + command.request_representation = Google::Apis::ContentV2_1::Collection::Representation + command.request_object = collection_object + command.response_representation = Google::Apis::ContentV2_1::Collection::Representation + command.response_class = Google::Apis::ContentV2_1::Collection + command.params['merchantId'] = merchant_id unless merchant_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Deletes a collection from your Merchant Center account. + # @param [Fixnum] merchant_id + # Required. The ID of the account that contains the collection. This account + # cannot be a multi-client account. + # @param [String] collection_id + # Required. The collectionId of the collection. CollectionId is the same as the + # REST ID of the collection. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [NilClass] No result returned for this method + # @yieldparam err [StandardError] error object if request failed + # + # @return [void] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def delete_collection(merchant_id, collection_id, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'content/v2.1/{merchantId}/collections/{collectionId}', options) + command.params['merchantId'] = merchant_id unless merchant_id.nil? + command.params['collectionId'] = collection_id unless collection_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Retrieves a collection from your Merchant Center account. + # @param [Fixnum] merchant_id + # Required. The ID of the account that contains the collection. This account + # cannot be a multi-client account. + # @param [String] collection_id + # Required. The REST ID of the collection. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ContentV2_1::Collection] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ContentV2_1::Collection] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def get_collection(merchant_id, collection_id, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'content/v2.1/{merchantId}/collections/{collectionId}', options) + command.response_representation = Google::Apis::ContentV2_1::Collection::Representation + command.response_class = Google::Apis::ContentV2_1::Collection + command.params['merchantId'] = merchant_id unless merchant_id.nil? + command.params['collectionId'] = collection_id unless collection_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Lists the collections in your Merchant Center account. The response might + # contain fewer items than specified by page_size. Rely on next_page_token to + # determine if there are more items to be requested. + # @param [Fixnum] merchant_id + # Required. The ID of the account that contains the collection. This account + # cannot be a multi-client account. + # @param [Fixnum] page_size + # The maximum number of collections to return in the response, used for paging. + # Defaults to 50; values above 1000 will be coerced to 1000. + # @param [String] page_token + # Token (if provided) to retrieve the subsequent page. All other parameters must + # match the original call that provided the page token. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ContentV2_1::ListCollectionsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ContentV2_1::ListCollectionsResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def list_collections(merchant_id, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'content/v2.1/{merchantId}/collections', options) + command.response_representation = Google::Apis::ContentV2_1::ListCollectionsResponse::Representation + command.response_class = Google::Apis::ContentV2_1::ListCollectionsResponse + command.params['merchantId'] = merchant_id unless merchant_id.nil? + command.query['pageSize'] = page_size unless page_size.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Gets the status of a collection from your Merchant Center account. + # @param [Fixnum] merchant_id + # Required. The ID of the account that contains the collection. This account + # cannot be a multi-client account. + # @param [String] collection_id + # Required. The collectionId of the collection. CollectionId is the same as the + # REST ID of the collection. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ContentV2_1::CollectionStatus] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ContentV2_1::CollectionStatus] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def get_collectionstatus(merchant_id, collection_id, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'content/v2.1/{merchantId}/collectionstatuses/{collectionId}', options) + command.response_representation = Google::Apis::ContentV2_1::CollectionStatus::Representation + command.response_class = Google::Apis::ContentV2_1::CollectionStatus + command.params['merchantId'] = merchant_id unless merchant_id.nil? + command.params['collectionId'] = collection_id unless collection_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Lists the statuses of the collections in your Merchant Center account. + # @param [Fixnum] merchant_id + # Required. The ID of the account that contains the collection. This account + # cannot be a multi-client account. + # @param [Fixnum] page_size + # The maximum number of collection statuses to return in the response, used for + # paging. Defaults to 50; values above 1000 will be coerced to 1000. + # @param [String] page_token + # Token (if provided) to retrieve the subsequent page. All other parameters must + # match the original call that provided the page token. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ContentV2_1::ListCollectionStatusesResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ContentV2_1::ListCollectionStatusesResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def list_collectionstatuses(merchant_id, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'content/v2.1/{merchantId}/collectionstatuses', options) + command.response_representation = Google::Apis::ContentV2_1::ListCollectionStatusesResponse::Representation + command.response_class = Google::Apis::ContentV2_1::ListCollectionStatusesResponse + command.params['merchantId'] = merchant_id unless merchant_id.nil? + command.query['pageSize'] = page_size unless page_size.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + # Retrieves a single CSS domain by ID. # @param [Fixnum] css_group_id # Required. The ID of the managing account. If this parameter is not the same as diff --git a/generated/google-apis-content_v2_1/synth.metadata b/generated/google-apis-content_v2_1/synth.metadata index fc3cff037..3fe89600a 100644 --- a/generated/google-apis-content_v2_1/synth.metadata +++ b/generated/google-apis-content_v2_1/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/google-api-ruby-client.git", - "sha": "8629207422003a3377099b7f10716c4cdb61c5d4" + "sha": "cf129fb0465e1f165bd1773a27355c62e6406ccf" } } ]