feat: Automated regeneration of retail v2 client (#2263)

This PR was generated using Autosynth. 🌈


<details><summary>Log from Synthtool</summary>

```
2021-01-09 03:16:31,252 synthtool [DEBUG] > Executing /home/kbuilder/.cache/synthtool/google-api-ruby-client/synth.py.
On branch autosynth-retail-v2
nothing to commit, working tree clean
2021-01-09 03:16:31,322 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 retail v2
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 retail v2
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.26.0
Installing tins 1.26.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=retail.v2 --names=/workspace/api_names.yaml --names-out=/workspace/api_names_out.yaml --spot-check
Loading retail, version v2 from https://raw.githubusercontent.com/googleapis/discovery-artifact-manager/master/discoveries/retail.v2.json
      create  google-apis-retail_v2/.rspec
      create  google-apis-retail_v2/.yardopts
      create  google-apis-retail_v2/Gemfile
      create  google-apis-retail_v2/google-apis-retail_v2.gemspec
      create  google-apis-retail_v2/LICENSE.md
      create  google-apis-retail_v2/OVERVIEW.md
      create  google-apis-retail_v2/Rakefile
      create  google-apis-retail_v2/lib/google-apis-retail_v2.rb
      create  google-apis-retail_v2/lib/google/apis/retail_v2.rb
      create  google-apis-retail_v2/lib/google/apis/retail_v2/classes.rb
      create  google-apis-retail_v2/lib/google/apis/retail_v2/representations.rb
      create  google-apis-retail_v2/lib/google/apis/retail_v2/service.rb
      create  google-apis-retail_v2/spec/generated_spec.rb
      create  google-apis-retail_v2/lib/google/apis/retail_v2/gem_version.rb
      create  google-apis-retail_v2/CHANGELOG.md
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 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-retail_v2 0.1.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::RetailV2
  should load

Finished in 0.32127 seconds (files took 0.11116 seconds to load)
1 example, 0 failures

Files:           4
Modules:         3 (    1 undocumented)
Classes:        84 (    0 undocumented)
Constants:       5 (    0 undocumented)
Attributes:    115 (    0 undocumented)
Methods:       185 (    0 undocumented)
 99.74% documented
google-apis-retail_v2 0.1.0 built to pkg/google-apis-retail_v2-0.1.0.gem.
    conflict  /workspace/api_names_out.yaml
Overwrite /workspace/api_names_out.yaml? (enter "h" for help) [Ynaqdhm] a
       force  /workspace/api_names_out.yaml
2021-01-09 03:17:06,394 synthtool [DEBUG] > Wrote metadata to generated/google-apis-retail_v2/synth.metadata.
DEBUG:synthtool:Wrote metadata to generated/google-apis-retail_v2/synth.metadata.

```
</details>

Full log will be available here:
https://source.cloud.google.com/results/invocations/2fec3e68-c8da-44a7-8bac-3218258fd2a0/targets

- [ ] To automatically regenerate this PR, check this box.
This commit is contained in:
Yoshi Automation Bot 2021-01-09 03:30:03 -08:00 committed by GitHub
parent 6a65c71c44
commit f1e3d9b34a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
17 changed files with 5704 additions and 0 deletions

View File

@ -135680,6 +135680,386 @@
"/resourceviews:v1beta2/resourceviews.zoneViews.setService/resourceView": resource_view
"/resourceviews:v1beta2/resourceviews.zoneViews.setService/zone": zone
"/resourceviews:v1beta2/userIp": user_ip
"/retail:v2/GoogleApiHttpBody": google_api_http_body
"/retail:v2/GoogleApiHttpBody/contentType": content_type
"/retail:v2/GoogleApiHttpBody/data": data
"/retail:v2/GoogleApiHttpBody/extensions": extensions
"/retail:v2/GoogleApiHttpBody/extensions/extension": extension
"/retail:v2/GoogleApiHttpBody/extensions/extension/extension": extension
"/retail:v2/GoogleCloudRetailLoggingErrorContext": google_cloud_retail_logging_error_context
"/retail:v2/GoogleCloudRetailLoggingErrorContext/httpRequest": http_request
"/retail:v2/GoogleCloudRetailLoggingErrorContext/reportLocation": report_location
"/retail:v2/GoogleCloudRetailLoggingErrorLog": google_cloud_retail_logging_error_log
"/retail:v2/GoogleCloudRetailLoggingErrorLog/context": context
"/retail:v2/GoogleCloudRetailLoggingErrorLog/importPayload": import_payload
"/retail:v2/GoogleCloudRetailLoggingErrorLog/message": message
"/retail:v2/GoogleCloudRetailLoggingErrorLog/requestPayload": request_payload
"/retail:v2/GoogleCloudRetailLoggingErrorLog/requestPayload/request_payload": request_payload
"/retail:v2/GoogleCloudRetailLoggingErrorLog/responsePayload": response_payload
"/retail:v2/GoogleCloudRetailLoggingErrorLog/responsePayload/response_payload": response_payload
"/retail:v2/GoogleCloudRetailLoggingErrorLog/serviceContext": service_context
"/retail:v2/GoogleCloudRetailLoggingErrorLog/status": status
"/retail:v2/GoogleCloudRetailLoggingHttpRequestContext": google_cloud_retail_logging_http_request_context
"/retail:v2/GoogleCloudRetailLoggingHttpRequestContext/responseStatusCode": response_status_code
"/retail:v2/GoogleCloudRetailLoggingImportErrorContext": google_cloud_retail_logging_import_error_context
"/retail:v2/GoogleCloudRetailLoggingImportErrorContext/catalogItem": catalog_item
"/retail:v2/GoogleCloudRetailLoggingImportErrorContext/gcsPath": gcs_path
"/retail:v2/GoogleCloudRetailLoggingImportErrorContext/lineNumber": line_number
"/retail:v2/GoogleCloudRetailLoggingImportErrorContext/operationName": operation_name
"/retail:v2/GoogleCloudRetailLoggingImportErrorContext/product": product
"/retail:v2/GoogleCloudRetailLoggingImportErrorContext/userEvent": user_event
"/retail:v2/GoogleCloudRetailLoggingServiceContext": google_cloud_retail_logging_service_context
"/retail:v2/GoogleCloudRetailLoggingServiceContext/service": service
"/retail:v2/GoogleCloudRetailLoggingSourceLocation": google_cloud_retail_logging_source_location
"/retail:v2/GoogleCloudRetailLoggingSourceLocation/functionName": function_name
"/retail:v2/GoogleCloudRetailV2BigQuerySource": google_cloud_retail_v2_big_query_source
"/retail:v2/GoogleCloudRetailV2BigQuerySource/dataSchema": data_schema
"/retail:v2/GoogleCloudRetailV2BigQuerySource/datasetId": dataset_id
"/retail:v2/GoogleCloudRetailV2BigQuerySource/gcsStagingDir": gcs_staging_dir
"/retail:v2/GoogleCloudRetailV2BigQuerySource/projectId": project_id
"/retail:v2/GoogleCloudRetailV2BigQuerySource/tableId": table_id
"/retail:v2/GoogleCloudRetailV2Catalog": google_cloud_retail_v2_catalog
"/retail:v2/GoogleCloudRetailV2Catalog/displayName": display_name
"/retail:v2/GoogleCloudRetailV2Catalog/name": name
"/retail:v2/GoogleCloudRetailV2Catalog/productLevelConfig": product_level_config
"/retail:v2/GoogleCloudRetailV2CustomAttribute": google_cloud_retail_v2_custom_attribute
"/retail:v2/GoogleCloudRetailV2CustomAttribute/numbers": numbers
"/retail:v2/GoogleCloudRetailV2CustomAttribute/numbers/number": number
"/retail:v2/GoogleCloudRetailV2CustomAttribute/text": text
"/retail:v2/GoogleCloudRetailV2CustomAttribute/text/text": text
"/retail:v2/GoogleCloudRetailV2GcsSource": google_cloud_retail_v2_gcs_source
"/retail:v2/GoogleCloudRetailV2GcsSource/dataSchema": data_schema
"/retail:v2/GoogleCloudRetailV2GcsSource/inputUris": input_uris
"/retail:v2/GoogleCloudRetailV2GcsSource/inputUris/input_uri": input_uri
"/retail:v2/GoogleCloudRetailV2Image": google_cloud_retail_v2_image
"/retail:v2/GoogleCloudRetailV2Image/height": height
"/retail:v2/GoogleCloudRetailV2Image/uri": uri
"/retail:v2/GoogleCloudRetailV2Image/width": width
"/retail:v2/GoogleCloudRetailV2ImportErrorsConfig": google_cloud_retail_v2_import_errors_config
"/retail:v2/GoogleCloudRetailV2ImportErrorsConfig/gcsPrefix": gcs_prefix
"/retail:v2/GoogleCloudRetailV2ImportMetadata": google_cloud_retail_v2_import_metadata
"/retail:v2/GoogleCloudRetailV2ImportMetadata/createTime": create_time
"/retail:v2/GoogleCloudRetailV2ImportMetadata/failureCount": failure_count
"/retail:v2/GoogleCloudRetailV2ImportMetadata/successCount": success_count
"/retail:v2/GoogleCloudRetailV2ImportMetadata/updateTime": update_time
"/retail:v2/GoogleCloudRetailV2ImportProductsRequest": google_cloud_retail_v2_import_products_request
"/retail:v2/GoogleCloudRetailV2ImportProductsRequest/errorsConfig": errors_config
"/retail:v2/GoogleCloudRetailV2ImportProductsRequest/inputConfig": input_config
"/retail:v2/GoogleCloudRetailV2ImportProductsRequest/updateMask": update_mask
"/retail:v2/GoogleCloudRetailV2ImportProductsResponse": google_cloud_retail_v2_import_products_response
"/retail:v2/GoogleCloudRetailV2ImportProductsResponse/errorSamples": error_samples
"/retail:v2/GoogleCloudRetailV2ImportProductsResponse/errorSamples/error_sample": error_sample
"/retail:v2/GoogleCloudRetailV2ImportProductsResponse/errorsConfig": errors_config
"/retail:v2/GoogleCloudRetailV2ImportUserEventsRequest": google_cloud_retail_v2_import_user_events_request
"/retail:v2/GoogleCloudRetailV2ImportUserEventsRequest/errorsConfig": errors_config
"/retail:v2/GoogleCloudRetailV2ImportUserEventsRequest/inputConfig": input_config
"/retail:v2/GoogleCloudRetailV2ImportUserEventsResponse": google_cloud_retail_v2_import_user_events_response
"/retail:v2/GoogleCloudRetailV2ImportUserEventsResponse/errorSamples": error_samples
"/retail:v2/GoogleCloudRetailV2ImportUserEventsResponse/errorSamples/error_sample": error_sample
"/retail:v2/GoogleCloudRetailV2ImportUserEventsResponse/errorsConfig": errors_config
"/retail:v2/GoogleCloudRetailV2ImportUserEventsResponse/importSummary": import_summary
"/retail:v2/GoogleCloudRetailV2ListCatalogsResponse": google_cloud_retail_v2_list_catalogs_response
"/retail:v2/GoogleCloudRetailV2ListCatalogsResponse/catalogs": catalogs
"/retail:v2/GoogleCloudRetailV2ListCatalogsResponse/catalogs/catalog": catalog
"/retail:v2/GoogleCloudRetailV2ListCatalogsResponse/nextPageToken": next_page_token
"/retail:v2/GoogleCloudRetailV2PredictRequest": google_cloud_retail_v2_predict_request
"/retail:v2/GoogleCloudRetailV2PredictRequest/filter": filter
"/retail:v2/GoogleCloudRetailV2PredictRequest/labels": labels
"/retail:v2/GoogleCloudRetailV2PredictRequest/labels/label": label
"/retail:v2/GoogleCloudRetailV2PredictRequest/pageSize": page_size
"/retail:v2/GoogleCloudRetailV2PredictRequest/pageToken": page_token
"/retail:v2/GoogleCloudRetailV2PredictRequest/params": params
"/retail:v2/GoogleCloudRetailV2PredictRequest/params/param": param
"/retail:v2/GoogleCloudRetailV2PredictRequest/userEvent": user_event
"/retail:v2/GoogleCloudRetailV2PredictRequest/validateOnly": validate_only
"/retail:v2/GoogleCloudRetailV2PredictResponse": google_cloud_retail_v2_predict_response
"/retail:v2/GoogleCloudRetailV2PredictResponse/attributionToken": attribution_token
"/retail:v2/GoogleCloudRetailV2PredictResponse/missingIds": missing_ids
"/retail:v2/GoogleCloudRetailV2PredictResponse/missingIds/missing_id": missing_id
"/retail:v2/GoogleCloudRetailV2PredictResponse/results": results
"/retail:v2/GoogleCloudRetailV2PredictResponse/results/result": result
"/retail:v2/GoogleCloudRetailV2PredictResponse/validateOnly": validate_only
"/retail:v2/GoogleCloudRetailV2PredictResponsePredictionResult": google_cloud_retail_v2_predict_response_prediction_result
"/retail:v2/GoogleCloudRetailV2PredictResponsePredictionResult/id": id
"/retail:v2/GoogleCloudRetailV2PredictResponsePredictionResult/metadata": metadata
"/retail:v2/GoogleCloudRetailV2PredictResponsePredictionResult/metadata/metadatum": metadatum
"/retail:v2/GoogleCloudRetailV2PriceInfo": google_cloud_retail_v2_price_info
"/retail:v2/GoogleCloudRetailV2PriceInfo/cost": cost
"/retail:v2/GoogleCloudRetailV2PriceInfo/currencyCode": currency_code
"/retail:v2/GoogleCloudRetailV2PriceInfo/originalPrice": original_price
"/retail:v2/GoogleCloudRetailV2PriceInfo/price": price
"/retail:v2/GoogleCloudRetailV2Product": google_cloud_retail_v2_product
"/retail:v2/GoogleCloudRetailV2Product/attributes": attributes
"/retail:v2/GoogleCloudRetailV2Product/attributes/attribute": attribute
"/retail:v2/GoogleCloudRetailV2Product/availability": availability
"/retail:v2/GoogleCloudRetailV2Product/availableQuantity": available_quantity
"/retail:v2/GoogleCloudRetailV2Product/availableTime": available_time
"/retail:v2/GoogleCloudRetailV2Product/categories": categories
"/retail:v2/GoogleCloudRetailV2Product/categories/category": category
"/retail:v2/GoogleCloudRetailV2Product/description": description
"/retail:v2/GoogleCloudRetailV2Product/id": id
"/retail:v2/GoogleCloudRetailV2Product/images": images
"/retail:v2/GoogleCloudRetailV2Product/images/image": image
"/retail:v2/GoogleCloudRetailV2Product/name": name
"/retail:v2/GoogleCloudRetailV2Product/priceInfo": price_info
"/retail:v2/GoogleCloudRetailV2Product/primaryProductId": primary_product_id
"/retail:v2/GoogleCloudRetailV2Product/tags": tags
"/retail:v2/GoogleCloudRetailV2Product/tags/tag": tag
"/retail:v2/GoogleCloudRetailV2Product/title": title
"/retail:v2/GoogleCloudRetailV2Product/type": type
"/retail:v2/GoogleCloudRetailV2Product/uri": uri
"/retail:v2/GoogleCloudRetailV2ProductDetail": google_cloud_retail_v2_product_detail
"/retail:v2/GoogleCloudRetailV2ProductDetail/product": product
"/retail:v2/GoogleCloudRetailV2ProductDetail/quantity": quantity
"/retail:v2/GoogleCloudRetailV2ProductInlineSource": google_cloud_retail_v2_product_inline_source
"/retail:v2/GoogleCloudRetailV2ProductInlineSource/products": products
"/retail:v2/GoogleCloudRetailV2ProductInlineSource/products/product": product
"/retail:v2/GoogleCloudRetailV2ProductInputConfig": google_cloud_retail_v2_product_input_config
"/retail:v2/GoogleCloudRetailV2ProductInputConfig/bigQuerySource": big_query_source
"/retail:v2/GoogleCloudRetailV2ProductInputConfig/gcsSource": gcs_source
"/retail:v2/GoogleCloudRetailV2ProductInputConfig/productInlineSource": product_inline_source
"/retail:v2/GoogleCloudRetailV2ProductLevelConfig": google_cloud_retail_v2_product_level_config
"/retail:v2/GoogleCloudRetailV2ProductLevelConfig/ingestionProductType": ingestion_product_type
"/retail:v2/GoogleCloudRetailV2ProductLevelConfig/merchantCenterProductIdField": merchant_center_product_id_field
"/retail:v2/GoogleCloudRetailV2PurchaseTransaction": google_cloud_retail_v2_purchase_transaction
"/retail:v2/GoogleCloudRetailV2PurchaseTransaction/cost": cost
"/retail:v2/GoogleCloudRetailV2PurchaseTransaction/currencyCode": currency_code
"/retail:v2/GoogleCloudRetailV2PurchaseTransaction/id": id
"/retail:v2/GoogleCloudRetailV2PurchaseTransaction/revenue": revenue
"/retail:v2/GoogleCloudRetailV2PurchaseTransaction/tax": tax
"/retail:v2/GoogleCloudRetailV2PurgeMetadata": google_cloud_retail_v2_purge_metadata
"/retail:v2/GoogleCloudRetailV2PurgeUserEventsRequest": google_cloud_retail_v2_purge_user_events_request
"/retail:v2/GoogleCloudRetailV2PurgeUserEventsRequest/filter": filter
"/retail:v2/GoogleCloudRetailV2PurgeUserEventsRequest/force": force
"/retail:v2/GoogleCloudRetailV2PurgeUserEventsResponse": google_cloud_retail_v2_purge_user_events_response
"/retail:v2/GoogleCloudRetailV2PurgeUserEventsResponse/purgedEventsCount": purged_events_count
"/retail:v2/GoogleCloudRetailV2RejoinUserEventsMetadata": google_cloud_retail_v2_rejoin_user_events_metadata
"/retail:v2/GoogleCloudRetailV2RejoinUserEventsRequest": google_cloud_retail_v2_rejoin_user_events_request
"/retail:v2/GoogleCloudRetailV2RejoinUserEventsRequest/userEventRejoinScope": user_event_rejoin_scope
"/retail:v2/GoogleCloudRetailV2RejoinUserEventsResponse": google_cloud_retail_v2_rejoin_user_events_response
"/retail:v2/GoogleCloudRetailV2RejoinUserEventsResponse/rejoinedUserEventsCount": rejoined_user_events_count
"/retail:v2/GoogleCloudRetailV2UserEvent": google_cloud_retail_v2_user_event
"/retail:v2/GoogleCloudRetailV2UserEvent/attributes": attributes
"/retail:v2/GoogleCloudRetailV2UserEvent/attributes/attribute": attribute
"/retail:v2/GoogleCloudRetailV2UserEvent/attributionToken": attribution_token
"/retail:v2/GoogleCloudRetailV2UserEvent/cartId": cart_id
"/retail:v2/GoogleCloudRetailV2UserEvent/eventTime": event_time
"/retail:v2/GoogleCloudRetailV2UserEvent/eventType": event_type
"/retail:v2/GoogleCloudRetailV2UserEvent/experimentIds": experiment_ids
"/retail:v2/GoogleCloudRetailV2UserEvent/experimentIds/experiment_id": experiment_id
"/retail:v2/GoogleCloudRetailV2UserEvent/pageCategories": page_categories
"/retail:v2/GoogleCloudRetailV2UserEvent/pageCategories/page_category": page_category
"/retail:v2/GoogleCloudRetailV2UserEvent/pageViewId": page_view_id
"/retail:v2/GoogleCloudRetailV2UserEvent/productDetails": product_details
"/retail:v2/GoogleCloudRetailV2UserEvent/productDetails/product_detail": product_detail
"/retail:v2/GoogleCloudRetailV2UserEvent/purchaseTransaction": purchase_transaction
"/retail:v2/GoogleCloudRetailV2UserEvent/referrerUri": referrer_uri
"/retail:v2/GoogleCloudRetailV2UserEvent/searchQuery": search_query
"/retail:v2/GoogleCloudRetailV2UserEvent/uri": uri
"/retail:v2/GoogleCloudRetailV2UserEvent/userInfo": user_info
"/retail:v2/GoogleCloudRetailV2UserEvent/visitorId": visitor_id
"/retail:v2/GoogleCloudRetailV2UserEventImportSummary": google_cloud_retail_v2_user_event_import_summary
"/retail:v2/GoogleCloudRetailV2UserEventImportSummary/joinedEventsCount": joined_events_count
"/retail:v2/GoogleCloudRetailV2UserEventImportSummary/unjoinedEventsCount": unjoined_events_count
"/retail:v2/GoogleCloudRetailV2UserEventInlineSource": google_cloud_retail_v2_user_event_inline_source
"/retail:v2/GoogleCloudRetailV2UserEventInlineSource/userEvents": user_events
"/retail:v2/GoogleCloudRetailV2UserEventInlineSource/userEvents/user_event": user_event
"/retail:v2/GoogleCloudRetailV2UserEventInputConfig": google_cloud_retail_v2_user_event_input_config
"/retail:v2/GoogleCloudRetailV2UserEventInputConfig/bigQuerySource": big_query_source
"/retail:v2/GoogleCloudRetailV2UserEventInputConfig/gcsSource": gcs_source
"/retail:v2/GoogleCloudRetailV2UserEventInputConfig/userEventInlineSource": user_event_inline_source
"/retail:v2/GoogleCloudRetailV2UserInfo": google_cloud_retail_v2_user_info
"/retail:v2/GoogleCloudRetailV2UserInfo/directUserRequest": direct_user_request
"/retail:v2/GoogleCloudRetailV2UserInfo/ipAddress": ip_address
"/retail:v2/GoogleCloudRetailV2UserInfo/userAgent": user_agent
"/retail:v2/GoogleCloudRetailV2UserInfo/userId": user_id
"/retail:v2/GoogleCloudRetailV2alphaExportErrorsConfig": google_cloud_retail_v2alpha_export_errors_config
"/retail:v2/GoogleCloudRetailV2alphaExportErrorsConfig/gcsPrefix": gcs_prefix
"/retail:v2/GoogleCloudRetailV2alphaExportMetadata": google_cloud_retail_v2alpha_export_metadata
"/retail:v2/GoogleCloudRetailV2alphaExportMetadata/createTime": create_time
"/retail:v2/GoogleCloudRetailV2alphaExportMetadata/updateTime": update_time
"/retail:v2/GoogleCloudRetailV2alphaExportProductsResponse": google_cloud_retail_v2alpha_export_products_response
"/retail:v2/GoogleCloudRetailV2alphaExportProductsResponse/errorSamples": error_samples
"/retail:v2/GoogleCloudRetailV2alphaExportProductsResponse/errorSamples/error_sample": error_sample
"/retail:v2/GoogleCloudRetailV2alphaExportProductsResponse/errorsConfig": errors_config
"/retail:v2/GoogleCloudRetailV2alphaExportUserEventsResponse": google_cloud_retail_v2alpha_export_user_events_response
"/retail:v2/GoogleCloudRetailV2alphaExportUserEventsResponse/errorSamples": error_samples
"/retail:v2/GoogleCloudRetailV2alphaExportUserEventsResponse/errorSamples/error_sample": error_sample
"/retail:v2/GoogleCloudRetailV2alphaExportUserEventsResponse/errorsConfig": errors_config
"/retail:v2/GoogleCloudRetailV2alphaImportErrorsConfig": google_cloud_retail_v2alpha_import_errors_config
"/retail:v2/GoogleCloudRetailV2alphaImportErrorsConfig/gcsPrefix": gcs_prefix
"/retail:v2/GoogleCloudRetailV2alphaImportMetadata": google_cloud_retail_v2alpha_import_metadata
"/retail:v2/GoogleCloudRetailV2alphaImportMetadata/createTime": create_time
"/retail:v2/GoogleCloudRetailV2alphaImportMetadata/failureCount": failure_count
"/retail:v2/GoogleCloudRetailV2alphaImportMetadata/successCount": success_count
"/retail:v2/GoogleCloudRetailV2alphaImportMetadata/updateTime": update_time
"/retail:v2/GoogleCloudRetailV2alphaImportProductsResponse": google_cloud_retail_v2alpha_import_products_response
"/retail:v2/GoogleCloudRetailV2alphaImportProductsResponse/errorSamples": error_samples
"/retail:v2/GoogleCloudRetailV2alphaImportProductsResponse/errorSamples/error_sample": error_sample
"/retail:v2/GoogleCloudRetailV2alphaImportProductsResponse/errorsConfig": errors_config
"/retail:v2/GoogleCloudRetailV2alphaImportUserEventsResponse": google_cloud_retail_v2alpha_import_user_events_response
"/retail:v2/GoogleCloudRetailV2alphaImportUserEventsResponse/errorSamples": error_samples
"/retail:v2/GoogleCloudRetailV2alphaImportUserEventsResponse/errorSamples/error_sample": error_sample
"/retail:v2/GoogleCloudRetailV2alphaImportUserEventsResponse/errorsConfig": errors_config
"/retail:v2/GoogleCloudRetailV2alphaImportUserEventsResponse/importSummary": import_summary
"/retail:v2/GoogleCloudRetailV2alphaPurgeMetadata": google_cloud_retail_v2alpha_purge_metadata
"/retail:v2/GoogleCloudRetailV2alphaPurgeUserEventsResponse": google_cloud_retail_v2alpha_purge_user_events_response
"/retail:v2/GoogleCloudRetailV2alphaPurgeUserEventsResponse/purgedEventsCount": purged_events_count
"/retail:v2/GoogleCloudRetailV2alphaRejoinUserEventsMetadata": google_cloud_retail_v2alpha_rejoin_user_events_metadata
"/retail:v2/GoogleCloudRetailV2alphaRejoinUserEventsResponse": google_cloud_retail_v2alpha_rejoin_user_events_response
"/retail:v2/GoogleCloudRetailV2alphaRejoinUserEventsResponse/rejoinedUserEventsCount": rejoined_user_events_count
"/retail:v2/GoogleCloudRetailV2alphaUserEventImportSummary": google_cloud_retail_v2alpha_user_event_import_summary
"/retail:v2/GoogleCloudRetailV2alphaUserEventImportSummary/joinedEventsCount": joined_events_count
"/retail:v2/GoogleCloudRetailV2alphaUserEventImportSummary/unjoinedEventsCount": unjoined_events_count
"/retail:v2/GoogleCloudRetailV2betaExportErrorsConfig": google_cloud_retail_v2beta_export_errors_config
"/retail:v2/GoogleCloudRetailV2betaExportErrorsConfig/gcsPrefix": gcs_prefix
"/retail:v2/GoogleCloudRetailV2betaExportMetadata": google_cloud_retail_v2beta_export_metadata
"/retail:v2/GoogleCloudRetailV2betaExportMetadata/createTime": create_time
"/retail:v2/GoogleCloudRetailV2betaExportMetadata/updateTime": update_time
"/retail:v2/GoogleCloudRetailV2betaExportProductsResponse": google_cloud_retail_v2beta_export_products_response
"/retail:v2/GoogleCloudRetailV2betaExportProductsResponse/errorSamples": error_samples
"/retail:v2/GoogleCloudRetailV2betaExportProductsResponse/errorSamples/error_sample": error_sample
"/retail:v2/GoogleCloudRetailV2betaExportProductsResponse/errorsConfig": errors_config
"/retail:v2/GoogleCloudRetailV2betaExportUserEventsResponse": google_cloud_retail_v2beta_export_user_events_response
"/retail:v2/GoogleCloudRetailV2betaExportUserEventsResponse/errorSamples": error_samples
"/retail:v2/GoogleCloudRetailV2betaExportUserEventsResponse/errorSamples/error_sample": error_sample
"/retail:v2/GoogleCloudRetailV2betaExportUserEventsResponse/errorsConfig": errors_config
"/retail:v2/GoogleCloudRetailV2betaImportErrorsConfig": google_cloud_retail_v2beta_import_errors_config
"/retail:v2/GoogleCloudRetailV2betaImportErrorsConfig/gcsPrefix": gcs_prefix
"/retail:v2/GoogleCloudRetailV2betaImportMetadata": google_cloud_retail_v2beta_import_metadata
"/retail:v2/GoogleCloudRetailV2betaImportMetadata/createTime": create_time
"/retail:v2/GoogleCloudRetailV2betaImportMetadata/failureCount": failure_count
"/retail:v2/GoogleCloudRetailV2betaImportMetadata/successCount": success_count
"/retail:v2/GoogleCloudRetailV2betaImportMetadata/updateTime": update_time
"/retail:v2/GoogleCloudRetailV2betaImportProductsResponse": google_cloud_retail_v2beta_import_products_response
"/retail:v2/GoogleCloudRetailV2betaImportProductsResponse/errorSamples": error_samples
"/retail:v2/GoogleCloudRetailV2betaImportProductsResponse/errorSamples/error_sample": error_sample
"/retail:v2/GoogleCloudRetailV2betaImportProductsResponse/errorsConfig": errors_config
"/retail:v2/GoogleCloudRetailV2betaImportUserEventsResponse": google_cloud_retail_v2beta_import_user_events_response
"/retail:v2/GoogleCloudRetailV2betaImportUserEventsResponse/errorSamples": error_samples
"/retail:v2/GoogleCloudRetailV2betaImportUserEventsResponse/errorSamples/error_sample": error_sample
"/retail:v2/GoogleCloudRetailV2betaImportUserEventsResponse/errorsConfig": errors_config
"/retail:v2/GoogleCloudRetailV2betaImportUserEventsResponse/importSummary": import_summary
"/retail:v2/GoogleCloudRetailV2betaPurgeMetadata": google_cloud_retail_v2beta_purge_metadata
"/retail:v2/GoogleCloudRetailV2betaPurgeUserEventsResponse": google_cloud_retail_v2beta_purge_user_events_response
"/retail:v2/GoogleCloudRetailV2betaPurgeUserEventsResponse/purgedEventsCount": purged_events_count
"/retail:v2/GoogleCloudRetailV2betaRejoinUserEventsMetadata": google_cloud_retail_v2beta_rejoin_user_events_metadata
"/retail:v2/GoogleCloudRetailV2betaRejoinUserEventsResponse": google_cloud_retail_v2beta_rejoin_user_events_response
"/retail:v2/GoogleCloudRetailV2betaRejoinUserEventsResponse/rejoinedUserEventsCount": rejoined_user_events_count
"/retail:v2/GoogleCloudRetailV2betaUserEventImportSummary": google_cloud_retail_v2beta_user_event_import_summary
"/retail:v2/GoogleCloudRetailV2betaUserEventImportSummary/joinedEventsCount": joined_events_count
"/retail:v2/GoogleCloudRetailV2betaUserEventImportSummary/unjoinedEventsCount": unjoined_events_count
"/retail:v2/GoogleCloudRetailV2mainExportErrorsConfig": google_cloud_retail_v2main_export_errors_config
"/retail:v2/GoogleCloudRetailV2mainExportErrorsConfig/gcsPrefix": gcs_prefix
"/retail:v2/GoogleCloudRetailV2mainExportMetadata": google_cloud_retail_v2main_export_metadata
"/retail:v2/GoogleCloudRetailV2mainExportMetadata/createTime": create_time
"/retail:v2/GoogleCloudRetailV2mainExportMetadata/updateTime": update_time
"/retail:v2/GoogleCloudRetailV2mainExportProductsResponse": google_cloud_retail_v2main_export_products_response
"/retail:v2/GoogleCloudRetailV2mainExportProductsResponse/errorSamples": error_samples
"/retail:v2/GoogleCloudRetailV2mainExportProductsResponse/errorSamples/error_sample": error_sample
"/retail:v2/GoogleCloudRetailV2mainExportProductsResponse/errorsConfig": errors_config
"/retail:v2/GoogleCloudRetailV2mainExportUserEventsResponse": google_cloud_retail_v2main_export_user_events_response
"/retail:v2/GoogleCloudRetailV2mainExportUserEventsResponse/errorSamples": error_samples
"/retail:v2/GoogleCloudRetailV2mainExportUserEventsResponse/errorSamples/error_sample": error_sample
"/retail:v2/GoogleCloudRetailV2mainExportUserEventsResponse/errorsConfig": errors_config
"/retail:v2/GoogleCloudRetailV2mainImportErrorsConfig": google_cloud_retail_v2main_import_errors_config
"/retail:v2/GoogleCloudRetailV2mainImportErrorsConfig/gcsPrefix": gcs_prefix
"/retail:v2/GoogleCloudRetailV2mainImportMetadata": google_cloud_retail_v2main_import_metadata
"/retail:v2/GoogleCloudRetailV2mainImportMetadata/createTime": create_time
"/retail:v2/GoogleCloudRetailV2mainImportMetadata/failureCount": failure_count
"/retail:v2/GoogleCloudRetailV2mainImportMetadata/successCount": success_count
"/retail:v2/GoogleCloudRetailV2mainImportMetadata/updateTime": update_time
"/retail:v2/GoogleCloudRetailV2mainImportProductsResponse": google_cloud_retail_v2main_import_products_response
"/retail:v2/GoogleCloudRetailV2mainImportProductsResponse/errorSamples": error_samples
"/retail:v2/GoogleCloudRetailV2mainImportProductsResponse/errorSamples/error_sample": error_sample
"/retail:v2/GoogleCloudRetailV2mainImportProductsResponse/errorsConfig": errors_config
"/retail:v2/GoogleCloudRetailV2mainImportUserEventsResponse": google_cloud_retail_v2main_import_user_events_response
"/retail:v2/GoogleCloudRetailV2mainImportUserEventsResponse/errorSamples": error_samples
"/retail:v2/GoogleCloudRetailV2mainImportUserEventsResponse/errorSamples/error_sample": error_sample
"/retail:v2/GoogleCloudRetailV2mainImportUserEventsResponse/errorsConfig": errors_config
"/retail:v2/GoogleCloudRetailV2mainImportUserEventsResponse/importSummary": import_summary
"/retail:v2/GoogleCloudRetailV2mainPurgeMetadata": google_cloud_retail_v2main_purge_metadata
"/retail:v2/GoogleCloudRetailV2mainPurgeUserEventsResponse": google_cloud_retail_v2main_purge_user_events_response
"/retail:v2/GoogleCloudRetailV2mainPurgeUserEventsResponse/purgedEventsCount": purged_events_count
"/retail:v2/GoogleCloudRetailV2mainRejoinUserEventsMetadata": google_cloud_retail_v2main_rejoin_user_events_metadata
"/retail:v2/GoogleCloudRetailV2mainRejoinUserEventsResponse": google_cloud_retail_v2main_rejoin_user_events_response
"/retail:v2/GoogleCloudRetailV2mainRejoinUserEventsResponse/rejoinedUserEventsCount": rejoined_user_events_count
"/retail:v2/GoogleCloudRetailV2mainUserEventImportSummary": google_cloud_retail_v2main_user_event_import_summary
"/retail:v2/GoogleCloudRetailV2mainUserEventImportSummary/joinedEventsCount": joined_events_count
"/retail:v2/GoogleCloudRetailV2mainUserEventImportSummary/unjoinedEventsCount": unjoined_events_count
"/retail:v2/GoogleLongrunningListOperationsResponse": google_longrunning_list_operations_response
"/retail:v2/GoogleLongrunningListOperationsResponse/nextPageToken": next_page_token
"/retail:v2/GoogleLongrunningListOperationsResponse/operations": operations
"/retail:v2/GoogleLongrunningListOperationsResponse/operations/operation": operation
"/retail:v2/GoogleLongrunningOperation": google_longrunning_operation
"/retail:v2/GoogleLongrunningOperation/done": done
"/retail:v2/GoogleLongrunningOperation/error": error
"/retail:v2/GoogleLongrunningOperation/metadata": metadata
"/retail:v2/GoogleLongrunningOperation/metadata/metadatum": metadatum
"/retail:v2/GoogleLongrunningOperation/name": name
"/retail:v2/GoogleLongrunningOperation/response": response
"/retail:v2/GoogleLongrunningOperation/response/response": response
"/retail:v2/GoogleProtobufEmpty": google_protobuf_empty
"/retail:v2/GoogleRpcStatus": google_rpc_status
"/retail:v2/GoogleRpcStatus/code": code
"/retail:v2/GoogleRpcStatus/details": details
"/retail:v2/GoogleRpcStatus/details/detail": detail
"/retail:v2/GoogleRpcStatus/details/detail/detail": detail
"/retail:v2/GoogleRpcStatus/message": message
"/retail:v2/fields": fields
"/retail:v2/key": key
"/retail:v2/quotaUser": quota_user
"/retail:v2/retail.projects.locations.catalogs.branches.operations.get": get_project_location_catalog_branch_operation
"/retail:v2/retail.projects.locations.catalogs.branches.operations.get/name": name
"/retail:v2/retail.projects.locations.catalogs.branches.products.create": create_project_location_catalog_branch_product
"/retail:v2/retail.projects.locations.catalogs.branches.products.create/parent": parent
"/retail:v2/retail.projects.locations.catalogs.branches.products.create/productId": product_id
"/retail:v2/retail.projects.locations.catalogs.branches.products.delete": delete_project_location_catalog_branch_product
"/retail:v2/retail.projects.locations.catalogs.branches.products.delete/name": name
"/retail:v2/retail.projects.locations.catalogs.branches.products.get": get_project_location_catalog_branch_product
"/retail:v2/retail.projects.locations.catalogs.branches.products.get/name": name
"/retail:v2/retail.projects.locations.catalogs.branches.products.import": import_project_location_catalog_branch_product
"/retail:v2/retail.projects.locations.catalogs.branches.products.import/parent": parent
"/retail:v2/retail.projects.locations.catalogs.branches.products.patch": patch_project_location_catalog_branch_product
"/retail:v2/retail.projects.locations.catalogs.branches.products.patch/allowMissing": allow_missing
"/retail:v2/retail.projects.locations.catalogs.branches.products.patch/name": name
"/retail:v2/retail.projects.locations.catalogs.branches.products.patch/updateMask": update_mask
"/retail:v2/retail.projects.locations.catalogs.list": list_project_location_catalogs
"/retail:v2/retail.projects.locations.catalogs.list/pageSize": page_size
"/retail:v2/retail.projects.locations.catalogs.list/pageToken": page_token
"/retail:v2/retail.projects.locations.catalogs.list/parent": parent
"/retail:v2/retail.projects.locations.catalogs.operations.get": get_project_location_catalog_operation
"/retail:v2/retail.projects.locations.catalogs.operations.get/name": name
"/retail:v2/retail.projects.locations.catalogs.operations.list": list_project_location_catalog_operations
"/retail:v2/retail.projects.locations.catalogs.operations.list/filter": filter
"/retail:v2/retail.projects.locations.catalogs.operations.list/name": name
"/retail:v2/retail.projects.locations.catalogs.operations.list/pageSize": page_size
"/retail:v2/retail.projects.locations.catalogs.operations.list/pageToken": page_token
"/retail:v2/retail.projects.locations.catalogs.patch": patch_project_location_catalog
"/retail:v2/retail.projects.locations.catalogs.patch/name": name
"/retail:v2/retail.projects.locations.catalogs.patch/updateMask": update_mask
"/retail:v2/retail.projects.locations.catalogs.placements.predict": predict_project_location_catalog_placement
"/retail:v2/retail.projects.locations.catalogs.placements.predict/placement": placement
"/retail:v2/retail.projects.locations.catalogs.userEvents.collect": collect_project_location_catalog_user_event
"/retail:v2/retail.projects.locations.catalogs.userEvents.collect/ets": ets
"/retail:v2/retail.projects.locations.catalogs.userEvents.collect/parent": parent
"/retail:v2/retail.projects.locations.catalogs.userEvents.collect/uri": uri
"/retail:v2/retail.projects.locations.catalogs.userEvents.collect/userEvent": user_event
"/retail:v2/retail.projects.locations.catalogs.userEvents.import": import_project_location_catalog_user_event
"/retail:v2/retail.projects.locations.catalogs.userEvents.import/parent": parent
"/retail:v2/retail.projects.locations.catalogs.userEvents.purge": purge_project_location_catalog_user_event
"/retail:v2/retail.projects.locations.catalogs.userEvents.purge/parent": parent
"/retail:v2/retail.projects.locations.catalogs.userEvents.rejoin": rejoin_project_location_catalog_user_event
"/retail:v2/retail.projects.locations.catalogs.userEvents.rejoin/parent": parent
"/retail:v2/retail.projects.locations.catalogs.userEvents.write": write_project_location_catalog_user_event
"/retail:v2/retail.projects.locations.catalogs.userEvents.write/parent": parent
"/retail:v2/retail.projects.locations.operations.get": get_project_location_operation
"/retail:v2/retail.projects.locations.operations.get/name": name
"/retail:v2/retail.projects.locations.operations.list": list_project_location_operations
"/retail:v2/retail.projects.locations.operations.list/filter": filter
"/retail:v2/retail.projects.locations.operations.list/name": name
"/retail:v2/retail.projects.locations.operations.list/pageSize": page_size
"/retail:v2/retail.projects.locations.operations.list/pageToken": page_token
"/run:v1/Addressable": addressable
"/run:v1/Addressable/url": url
"/run:v1/AuditConfig": audit_config

View File

@ -0,0 +1,2 @@
--color
--format documentation

View File

@ -0,0 +1,13 @@
--hide-void-return
--no-private
--verbose
--title=google-apis-retail_v2
--markup-provider=redcarpet
--markup=markdown
--main OVERVIEW.md
lib/google/apis/retail_v2/*.rb
lib/google/apis/retail_v2.rb
-
OVERVIEW.md
CHANGELOG.md
LICENSE.md

View File

@ -0,0 +1,7 @@
# Release history for google-apis-retail_v2
### v0.1.0 (2021-01-09)
* Regenerated from discovery document revision 20210105
* Regenerated using generator version 0.1.1

View File

@ -0,0 +1,23 @@
source 'https://rubygems.org'
gemspec
group :development do
gem "bundler", ">= 1.17"
gem "rake", ">= 12.0"
gem "rspec", "~> 3.9"
gem "opencensus", "~> 0.5"
end
platforms :jruby do
group :development do
gem "jruby-openssl"
end
end
platforms :ruby do
group :development do
gem "yard", "~> 0.9", ">= 0.9.25"
gem "redcarpet", "~> 3.5"
end
end

View File

@ -0,0 +1,202 @@
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction,
and distribution as defined by Sections 1 through 9 of this document.
"Licensor" shall mean the copyright owner or entity authorized by
the copyright owner that is granting the License.
"Legal Entity" shall mean the union of the acting entity and all
other entities that control, are controlled by, or are under common
control with that entity. For the purposes of this definition,
"control" means (i) the power, direct or indirect, to cause the
direction or management of such entity, whether by contract or
otherwise, or (ii) ownership of fifty percent (50%) or more of the
outstanding shares, or (iii) beneficial ownership of such entity.
"You" (or "Your") shall mean an individual or Legal Entity
exercising permissions granted by this License.
"Source" form shall mean the preferred form for making modifications,
including but not limited to software source code, documentation
source, and configuration files.
"Object" form shall mean any form resulting from mechanical
transformation or translation of a Source form, including but
not limited to compiled object code, generated documentation,
and conversions to other media types.
"Work" shall mean the work of authorship, whether in Source or
Object form, made available under the License, as indicated by a
copyright notice that is included in or attached to the work
(an example is provided in the Appendix below).
"Derivative Works" shall mean any work, whether in Source or Object
form, that is based on (or derived from) the Work and for which the
editorial revisions, annotations, elaborations, or other modifications
represent, as a whole, an original work of authorship. For the purposes
of this License, Derivative Works shall not include works that remain
separable from, or merely link (or bind by name) to the interfaces of,
the Work and Derivative Works thereof.
"Contribution" shall mean any work of authorship, including
the original version of the Work and any modifications or additions
to that Work or Derivative Works thereof, that is intentionally
submitted to Licensor for inclusion in the Work by the copyright owner
or by an individual or Legal Entity authorized to submit on behalf of
the copyright owner. For the purposes of this definition, "submitted"
means any form of electronic, verbal, or written communication sent
to the Licensor or its representatives, including but not limited to
communication on electronic mailing lists, source code control systems,
and issue tracking systems that are managed by, or on behalf of, the
Licensor for the purpose of discussing and improving the Work, but
excluding communication that is conspicuously marked or otherwise
designated in writing by the copyright owner as "Not a Contribution."
"Contributor" shall mean Licensor and any individual or Legal Entity
on behalf of whom a Contribution has been received by Licensor and
subsequently incorporated within the Work.
2. Grant of Copyright License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
copyright license to reproduce, prepare Derivative Works of,
publicly display, publicly perform, sublicense, and distribute the
Work and such Derivative Works in Source or Object form.
3. Grant of Patent License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
(except as stated in this section) patent license to make, have made,
use, offer to sell, sell, import, and otherwise transfer the Work,
where such license applies only to those patent claims licensable
by such Contributor that are necessarily infringed by their
Contribution(s) alone or by combination of their Contribution(s)
with the Work to which such Contribution(s) was submitted. If You
institute patent litigation against any entity (including a
cross-claim or counterclaim in a lawsuit) alleging that the Work
or a Contribution incorporated within the Work constitutes direct
or contributory patent infringement, then any patent licenses
granted to You under this License for that Work shall terminate
as of the date such litigation is filed.
4. Redistribution. You may reproduce and distribute copies of the
Work or Derivative Works thereof in any medium, with or without
modifications, and in Source or Object form, provided that You
meet the following conditions:
(a) You must give any other recipients of the Work or
Derivative Works a copy of this License; and
(b) You must cause any modified files to carry prominent notices
stating that You changed the files; and
(c) You must retain, in the Source form of any Derivative Works
that You distribute, all copyright, patent, trademark, and
attribution notices from the Source form of the Work,
excluding those notices that do not pertain to any part of
the Derivative Works; and
(d) If the Work includes a "NOTICE" text file as part of its
distribution, then any Derivative Works that You distribute must
include a readable copy of the attribution notices contained
within such NOTICE file, excluding those notices that do not
pertain to any part of the Derivative Works, in at least one
of the following places: within a NOTICE text file distributed
as part of the Derivative Works; within the Source form or
documentation, if provided along with the Derivative Works; or,
within a display generated by the Derivative Works, if and
wherever such third-party notices normally appear. The contents
of the NOTICE file are for informational purposes only and
do not modify the License. You may add Your own attribution
notices within Derivative Works that You distribute, alongside
or as an addendum to the NOTICE text from the Work, provided
that such additional attribution notices cannot be construed
as modifying the License.
You may add Your own copyright statement to Your modifications and
may provide additional or different license terms and conditions
for use, reproduction, or distribution of Your modifications, or
for any such Derivative Works as a whole, provided Your use,
reproduction, and distribution of the Work otherwise complies with
the conditions stated in this License.
5. Submission of Contributions. Unless You explicitly state otherwise,
any Contribution intentionally submitted for inclusion in the Work
by You to the Licensor shall be under the terms and conditions of
this License, without any additional terms or conditions.
Notwithstanding the above, nothing herein shall supersede or modify
the terms of any separate license agreement you may have executed
with Licensor regarding such Contributions.
6. Trademarks. This License does not grant permission to use the trade
names, trademarks, service marks, or product names of the Licensor,
except as required for reasonable and customary use in describing the
origin of the Work and reproducing the content of the NOTICE file.
7. Disclaimer of Warranty. Unless required by applicable law or
agreed to in writing, Licensor provides the Work (and each
Contributor provides its Contributions) on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied, including, without limitation, any warranties or conditions
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
PARTICULAR PURPOSE. You are solely responsible for determining the
appropriateness of using or redistributing the Work and assume any
risks associated with Your exercise of permissions under this License.
8. Limitation of Liability. In no event and under no legal theory,
whether in tort (including negligence), contract, or otherwise,
unless required by applicable law (such as deliberate and grossly
negligent acts) or agreed to in writing, shall any Contributor be
liable to You for damages, including any direct, indirect, special,
incidental, or consequential damages of any character arising as a
result of this License or out of the use or inability to use the
Work (including but not limited to damages for loss of goodwill,
work stoppage, computer failure or malfunction, or any and all
other commercial damages or losses), even if such Contributor
has been advised of the possibility of such damages.
9. Accepting Warranty or Additional Liability. While redistributing
the Work or Derivative Works thereof, You may choose to offer,
and charge a fee for, acceptance of support, warranty, indemnity,
or other liability obligations and/or rights consistent with this
License. However, in accepting such obligations, You may act only
on Your own behalf and on Your sole responsibility, not on behalf
of any other Contributor, and only if You agree to indemnify,
defend, and hold each Contributor harmless for any liability
incurred by, or claims asserted against, such Contributor by reason
of your accepting any such warranty or additional liability.
END OF TERMS AND CONDITIONS
APPENDIX: How to apply the Apache License to your work.
To apply the Apache License to your work, attach the following
boilerplate notice, with the fields enclosed by brackets "[]"
replaced with your own identifying information. (Don't include
the brackets!) The text should be enclosed in the appropriate
comment syntax for the file format. We also recommend that a
file or class name and description of purpose be included on the
same "printed page" as the copyright notice for easier
identification within third-party archives.
Copyright [yyyy] [name of copyright owner]
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

View File

@ -0,0 +1,96 @@
# Simple REST client for version V2 of the Retail API
This is a simple client library for version V2 of the Retail API. It provides:
* A client object that connects to the HTTP/JSON REST endpoint for the service.
* Ruby objects for data structures related to the service.
* Integration with the googleauth gem for authentication using OAuth, API keys, and service accounts.
* Control of retry, pagination, and timeouts.
Note that although this client library is supported and will continue to be updated to track changes to the service, it is otherwise considered complete and not under active development. Many Google services, especially Google Cloud Platform services, may provide a more modern client that is under more active development and improvement. See the section below titled *Which client should I use?* for more information.
## Getting started
### Before you begin
There are a few setup steps you need to complete before you can use this library:
1. If you don't already have a Google account, [sign up](https://www.google.com/accounts).
2. If you have never created a Google APIs Console project, read about [Managing Projects](https://cloud.google.com/resource-manager/docs/creating-managing-projects) and create a project in the [Google API Console](https://console.cloud.google.com/).
3. Most APIs need to be enabled for your project. [Enable it](https://console.cloud.google.com/apis/library/retail.googleapis.com) in the console.
### Installation
Add this line to your application's Gemfile:
```ruby
gem 'google-apis-retail_v2', '~> 0.1'
```
And then execute:
```
$ bundle
```
Or install it yourself as:
```
$ gem install google-apis-retail_v2
```
### Creating a client object
Once the gem is installed, you can load the client code and instantiate a client.
```ruby
# Load the client
require "google/apis/retail_v2"
# Create a client object
client = Google::Apis::RetailV2::CloudRetailService.new
# Authenticate calls
client.authentication = # ... use the googleauth gem to create credentials
```
See the class reference docs for information on the methods you can call from a client.
## Documentation
More detailed descriptions of the Google simple REST clients are available in two documents.
* The [Usage Guide](https://github.com/googleapis/google-api-ruby-client/blob/master/docs/usage-guide.md) discusses how to make API calls, how to use the provided data structures, and how to work the various features of the client library, including media upload and download, error handling, retries, pagination, and logging.
* The [Auth Guide](https://github.com/googleapis/google-api-ruby-client/blob/master/docs/auth-guide.md) discusses authentication in the client libraries, including API keys, OAuth 2.0, service accounts, and environment variables.
(Note: the above documents are written for the simple REST clients in general, and their examples may not reflect the Retail service in particular.)
For reference information on specific calls in the Retail API, see the {Google::Apis::RetailV2::CloudRetailService class reference docs}.
## Which client should I use?
Google provides two types of Ruby API client libraries: **simple REST clients** and **modern clients**.
This library, `google-apis-retail_v2`, is a simple REST client. You can identify these clients by their gem names, which are always in the form `google-apis-<servicename>_<serviceversion>`. The simple REST clients connect to HTTP/JSON REST endpoints and are automatically generated from service discovery documents. They support most API functionality, but their class interfaces are sometimes awkward.
Modern clients are produced by a modern code generator, sometimes combined with hand-crafted functionality. Most modern clients connect to high-performance gRPC endpoints, although a few are backed by REST services. Modern clients are available for many Google services, especially Google Cloud Platform services, but do not yet support all the services covered by the simple clients.
Gem names for modern clients are often of the form `google-cloud-<service_name>`. (For example, [google-cloud-pubsub](https://rubygems.org/gems/google-cloud-pubsub).) Note that most modern clients also have corresponding "versioned" gems with names like `google-cloud-<service_name>-<version>`. (For example, [google-cloud-pubsub-v1](https://rubygems.org/gems/google-cloud-pubsub-v1).) The "versioned" gems can be used directly, but often provide lower-level interfaces. In most cases, the main gem is recommended.
**For most users, we recommend the modern client, if one is available.** Compared with simple clients, modern clients are generally much easier to use and more Ruby-like, support more advanced features such as streaming and long-running operations, and often provide much better performance. You may consider using a simple client instead, if a modern client is not yet available for the service you want to use, or if you are not able to use gRPC on your infrastructure.
The [product documentation](https://cloud.google.com/recommendations) may provide guidance regarding the preferred client library to use.
## Supported Ruby versions
This library is supported on Ruby 2.5+.
Google provides official support for Ruby versions that are actively supported by Ruby Core -- that is, Ruby versions that are either in normal maintenance or in security maintenance, and not end of life. Currently, this means Ruby 2.5 and later. Older versions of Ruby _may_ still work, but are unsupported and not recommended. See https://www.ruby-lang.org/en/downloads/branches/ for details about the Ruby support schedule.
## License
This library is licensed under Apache 2.0. Full license text is available in the {file:LICENSE.md LICENSE}.
## Support
Please [report bugs at the project on Github](https://github.com/google/google-api-ruby-client/issues). Don't hesitate to [ask questions](http://stackoverflow.com/questions/tagged/google-api-ruby-client) about the client or APIs on [StackOverflow](http://stackoverflow.com).

View File

@ -0,0 +1,28 @@
require "bundler/gem_tasks"
task :release_gem do
Rake::Task["build"].invoke
Rake::Task["release:rubygem_push"].invoke
end
require 'rake/clean'
CLOBBER.include('coverage', 'doc')
CLEAN.include('.yardoc')
require 'rspec/core/rake_task'
RSpec::Core::RakeTask.new(:spec)
begin
require 'yard'
require 'yard/rake/yardoc_task'
YARD::Rake::YardocTask.new do |t|
t.files = ['lib/**/*.rb', 'generated/**/*.rb']
t.options = ['--verbose', '--markup', 'markdown']
end
rescue LoadError
task :yard
puts "YARD not available"
end
task :ci => [:spec, :yard, :build]
task :default => :ci

View File

@ -0,0 +1,32 @@
require File.expand_path("lib/google/apis/retail_v2/gem_version", __dir__)
Gem::Specification.new do |gem|
gem.name = "google-apis-retail_v2"
gem.version = Google::Apis::RetailV2::GEM_VERSION
gem.authors = ["Google LLC"]
gem.email = "googleapis-packages@google.com"
gem.summary = "Simple REST client for Retail API V2"
gem.description =
"This is the simple REST client for Retail API V2." \
" Simple REST clients are Ruby client libraries that provide access to" \
" Google services via their HTTP REST API endpoints. These libraries are" \
" generated and updated automatically based on the discovery documents" \
" published by the service, and they handle most concerns such as" \
" authentication, pagination, retry, timeouts, and logging. You can use" \
" this client to access the Retail API, but note that some" \
" services may provide a separate modern client that is easier to use."
gem.homepage = "https://github.com/google/google-api-ruby-client"
gem.license = "Apache-2.0"
gem.metadata = {
"bug_tracker_uri" => "https://github.com/googleapis/google-api-ruby-client/issues",
"changelog_uri" => "https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-retail_v2/CHANGELOG.md",
"documentation_uri" => "https://googleapis.dev/ruby/google-apis-retail_v2/v#{Google::Apis::RetailV2::GEM_VERSION}",
"source_code_uri" => "https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-retail_v2"
}
gem.files = Dir.glob("lib/**/*.rb") + Dir.glob("*.md") + [".yardopts"]
gem.require_paths = ["lib"]
gem.required_ruby_version = '>= 2.4'
gem.add_runtime_dependency "google-apis-core", "~> 0.1"
end

View File

@ -0,0 +1,15 @@
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
require "google/apis/retail_v2"

View File

@ -0,0 +1,38 @@
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
require 'google/apis/retail_v2/service.rb'
require 'google/apis/retail_v2/classes.rb'
require 'google/apis/retail_v2/representations.rb'
require 'google/apis/retail_v2/gem_version.rb'
module Google
module Apis
# Retail API
#
# Cloud Retail service enables customers to build end-to-end personalized
# recommendation systems without requiring a high level of expertise in machine
# learning, recommendation system, or Google Cloud.
#
# @see https://cloud.google.com/recommendations
module RetailV2
# Version of the Retail API this client connects to.
# This is NOT the gem version.
VERSION = 'V2'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
end
end
end

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,28 @@
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
module Google
module Apis
module RetailV2
# Version of the google-apis-retail_v2 gem
GEM_VERSION = "0.1.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 = "20210105"
end
end
end

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,776 @@
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
require 'google/apis/core/base_service'
require 'google/apis/core/json_representation'
require 'google/apis/core/hashable'
require 'google/apis/errors'
module Google
module Apis
module RetailV2
# Retail API
#
# Cloud Retail service enables customers to build end-to-end personalized
# recommendation systems without requiring a high level of expertise in machine
# learning, recommendation system, or Google Cloud.
#
# @example
# require 'google/apis/retail_v2'
#
# Retail = Google::Apis::RetailV2 # Alias the module
# service = Retail::CloudRetailService.new
#
# @see https://cloud.google.com/recommendations
class CloudRetailService < Google::Apis::Core::BaseService
# @return [String]
# API key. Your API key identifies your project and provides you with API access,
# quota, and reports. Required unless you provide an OAuth 2.0 token.
attr_accessor :key
# @return [String]
# 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.
attr_accessor :quota_user
def initialize
super('https://retail.googleapis.com/', '',
client_name: 'google-apis-retail_v2',
client_version: Google::Apis::RetailV2::GEM_VERSION)
@batch_path = 'batch'
end
# Lists all the Catalogs associated with the project.
# @param [String] parent
# Required. The account resource name with an associated location. If the caller
# does not have permission to list Catalogs under this location, regardless of
# whether or not this location exists, a PERMISSION_DENIED error is returned.
# @param [Fixnum] page_size
# Maximum number of Catalogs to return. If unspecified, defaults to 50. The
# maximum allowed value is 1000. Values above 1000 will be coerced to 1000. If
# this field is negative, an INVALID_ARGUMENT is returned.
# @param [String] page_token
# A page token ListCatalogsResponse.next_page_token, received from a previous
# CatalogService.ListCatalogs call. Provide this to retrieve the subsequent page.
# When paginating, all other parameters provided to CatalogService.ListCatalogs
# must match the call that provided the page token. Otherwise, an
# INVALID_ARGUMENT error is returned.
# @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::RetailV2::GoogleCloudRetailV2ListCatalogsResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::RetailV2::GoogleCloudRetailV2ListCatalogsResponse]
#
# @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_project_location_catalogs(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v2/{+parent}/catalogs', options)
command.response_representation = Google::Apis::RetailV2::GoogleCloudRetailV2ListCatalogsResponse::Representation
command.response_class = Google::Apis::RetailV2::GoogleCloudRetailV2ListCatalogsResponse
command.params['parent'] = parent unless parent.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
# Updates the Catalogs.
# @param [String] name
# Required. Immutable. The fully qualified resource name of the catalog.
# @param [Google::Apis::RetailV2::GoogleCloudRetailV2Catalog] google_cloud_retail_v2_catalog_object
# @param [String] update_mask
# Indicates which fields in the provided Catalog to update. If not set, will
# only update the Catalog.product_level_config field, which is also the only
# currently supported field to update. If an unsupported or unknown field is
# provided, an INVALID_ARGUMENT error is returned.
# @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::RetailV2::GoogleCloudRetailV2Catalog] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::RetailV2::GoogleCloudRetailV2Catalog]
#
# @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_project_location_catalog(name, google_cloud_retail_v2_catalog_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:patch, 'v2/{+name}', options)
command.request_representation = Google::Apis::RetailV2::GoogleCloudRetailV2Catalog::Representation
command.request_object = google_cloud_retail_v2_catalog_object
command.response_representation = Google::Apis::RetailV2::GoogleCloudRetailV2Catalog::Representation
command.response_class = Google::Apis::RetailV2::GoogleCloudRetailV2Catalog
command.params['name'] = name unless name.nil?
command.query['updateMask'] = update_mask unless update_mask.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 latest state of a long-running operation. Clients can use this method
# to poll the operation result at intervals as recommended by the API service.
# @param [String] name
# The name of the operation 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 [Google::Apis::RetailV2::GoogleLongrunningOperation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::RetailV2::GoogleLongrunningOperation]
#
# @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_project_location_catalog_branch_operation(name, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v2/{+name}', options)
command.response_representation = Google::Apis::RetailV2::GoogleLongrunningOperation::Representation
command.response_class = Google::Apis::RetailV2::GoogleLongrunningOperation
command.params['name'] = name unless name.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Creates a Product.
# @param [String] parent
# Required. The parent catalog resource name, such as `projects/*/locations/
# global/catalogs/default_catalog/branches/default_branch`.
# @param [Google::Apis::RetailV2::GoogleCloudRetailV2Product] google_cloud_retail_v2_product_object
# @param [String] product_id
# Required. The ID to use for the Product, which will become the final component
# of the Product.name. If the caller does not have permission to create the
# Product, regardless of whether or not it exists, a PERMISSION_DENIED error is
# returned. This field must be unique among all Products with the same parent.
# Otherwise, an ALREADY_EXISTS error is returned. This field must be a UTF-8
# encoded string with a length limit of 128 characters. Otherwise, an
# INVALID_ARGUMENT error is returned.
# @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::RetailV2::GoogleCloudRetailV2Product] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::RetailV2::GoogleCloudRetailV2Product]
#
# @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_project_location_catalog_branch_product(parent, google_cloud_retail_v2_product_object = nil, product_id: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v2/{+parent}/products', options)
command.request_representation = Google::Apis::RetailV2::GoogleCloudRetailV2Product::Representation
command.request_object = google_cloud_retail_v2_product_object
command.response_representation = Google::Apis::RetailV2::GoogleCloudRetailV2Product::Representation
command.response_class = Google::Apis::RetailV2::GoogleCloudRetailV2Product
command.params['parent'] = parent unless parent.nil?
command.query['productId'] = product_id unless product_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 Product.
# @param [String] name
# Required. Full resource name of Product, such as `projects/*/locations/global/
# catalogs/default_catalog/branches/default_branch/products/some_product_id`. If
# the caller does not have permission to delete the Product, regardless of
# whether or not it exists, a PERMISSION_DENIED error is returned. If the
# Product to delete does not exist, a NOT_FOUND error is returned. The Product
# to delete can neither be a Product.Type.COLLECTION Product member nor a
# Product.Type.PRIMARY Product with more than one variants. Otherwise, an
# INVALID_ARGUMENT error is returned.
# @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::RetailV2::GoogleProtobufEmpty] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::RetailV2::GoogleProtobufEmpty]
#
# @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_project_location_catalog_branch_product(name, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:delete, 'v2/{+name}', options)
command.response_representation = Google::Apis::RetailV2::GoogleProtobufEmpty::Representation
command.response_class = Google::Apis::RetailV2::GoogleProtobufEmpty
command.params['name'] = name unless name.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 a Product.
# @param [String] name
# Required. Full resource name of Product, such as `projects/*/locations/global/
# catalogs/default_catalog/branches/default_branch/products/some_product_id`. If
# the caller does not have permission to access the Product, regardless of
# whether or not it exists, a PERMISSION_DENIED error is returned. If the
# requested Product does not exist, a NOT_FOUND error is returned.
# @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::RetailV2::GoogleCloudRetailV2Product] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::RetailV2::GoogleCloudRetailV2Product]
#
# @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_project_location_catalog_branch_product(name, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v2/{+name}', options)
command.response_representation = Google::Apis::RetailV2::GoogleCloudRetailV2Product::Representation
command.response_class = Google::Apis::RetailV2::GoogleCloudRetailV2Product
command.params['name'] = name unless name.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Bulk import of multiple Products. Request processing may be synchronous. No
# partial updating is supported. Non-existing items are created. Note that it is
# possible for a subset of the Products to be successfully updated.
# @param [String] parent
# Required. `projects/1234/locations/global/catalogs/default_catalog/branches/
# default_branch` If no updateMask is specified, requires products.create
# permission. If updateMask is specified, requires products.update permission.
# @param [Google::Apis::RetailV2::GoogleCloudRetailV2ImportProductsRequest] google_cloud_retail_v2_import_products_request_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::RetailV2::GoogleLongrunningOperation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::RetailV2::GoogleLongrunningOperation]
#
# @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 import_project_location_catalog_branch_product(parent, google_cloud_retail_v2_import_products_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v2/{+parent}/products:import', options)
command.request_representation = Google::Apis::RetailV2::GoogleCloudRetailV2ImportProductsRequest::Representation
command.request_object = google_cloud_retail_v2_import_products_request_object
command.response_representation = Google::Apis::RetailV2::GoogleLongrunningOperation::Representation
command.response_class = Google::Apis::RetailV2::GoogleLongrunningOperation
command.params['parent'] = parent unless parent.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 Product.
# @param [String] name
# Immutable. Full resource name of the product, such as `projects/*/locations/
# global/catalogs/default_catalog/branches/default_branch/products/product_id`.
# The branch ID must be "default_branch".
# @param [Google::Apis::RetailV2::GoogleCloudRetailV2Product] google_cloud_retail_v2_product_object
# @param [Boolean] allow_missing
# If set to true, and the Product is not found, a new Product will be created.
# In this situation, `update_mask` is ignored.
# @param [String] update_mask
# Indicates which fields in the provided Product to update. The immutable and
# output only fields are NOT supported. If not set, all supported fields (the
# fields that are neither immutable nor output only) are updated. If an
# unsupported or unknown field is provided, an INVALID_ARGUMENT error is
# returned.
# @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::RetailV2::GoogleCloudRetailV2Product] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::RetailV2::GoogleCloudRetailV2Product]
#
# @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_project_location_catalog_branch_product(name, google_cloud_retail_v2_product_object = nil, allow_missing: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:patch, 'v2/{+name}', options)
command.request_representation = Google::Apis::RetailV2::GoogleCloudRetailV2Product::Representation
command.request_object = google_cloud_retail_v2_product_object
command.response_representation = Google::Apis::RetailV2::GoogleCloudRetailV2Product::Representation
command.response_class = Google::Apis::RetailV2::GoogleCloudRetailV2Product
command.params['name'] = name unless name.nil?
command.query['allowMissing'] = allow_missing unless allow_missing.nil?
command.query['updateMask'] = update_mask unless update_mask.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 latest state of a long-running operation. Clients can use this method
# to poll the operation result at intervals as recommended by the API service.
# @param [String] name
# The name of the operation 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 [Google::Apis::RetailV2::GoogleLongrunningOperation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::RetailV2::GoogleLongrunningOperation]
#
# @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_project_location_catalog_operation(name, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v2/{+name}', options)
command.response_representation = Google::Apis::RetailV2::GoogleLongrunningOperation::Representation
command.response_class = Google::Apis::RetailV2::GoogleLongrunningOperation
command.params['name'] = name unless name.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 operations that match the specified filter in the request. If the server
# doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name`
# binding allows API services to override the binding to use different resource
# name schemes, such as `users/*/operations`. To override the binding, API
# services can add a binding such as `"/v1/`name=users/*`/operations"` to their
# service configuration. For backwards compatibility, the default name includes
# the operations collection id, however overriding users must ensure the name
# binding is the parent resource, without the operations collection id.
# @param [String] name
# The name of the operation's parent resource.
# @param [String] filter
# The standard list filter.
# @param [Fixnum] page_size
# The standard list page size.
# @param [String] page_token
# The standard list 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::RetailV2::GoogleLongrunningListOperationsResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::RetailV2::GoogleLongrunningListOperationsResponse]
#
# @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_project_location_catalog_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v2/{+name}/operations', options)
command.response_representation = Google::Apis::RetailV2::GoogleLongrunningListOperationsResponse::Representation
command.response_class = Google::Apis::RetailV2::GoogleLongrunningListOperationsResponse
command.params['name'] = name unless name.nil?
command.query['filter'] = filter unless filter.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
# Makes a recommendation prediction.
# @param [String] placement
# Required. Full resource name of the format: `name=projects/*/locations/global/
# catalogs/default_catalog/placements/*` The id of the recommendation engine
# placement. This id is used to identify the set of models that will be used to
# make the prediction. We currently support three placements with the following
# IDs by default: * `shopping_cart`: Predicts products frequently bought
# together with one or more products in the same shopping session. Commonly
# displayed after `add-to-cart` events, on product detail pages, or on the
# shopping cart page. * `home_page`: Predicts the next product that a user will
# most likely engage with or purchase based on the shopping or viewing history
# of the specified `userId` or `visitorId`. For example - Recommendations for
# you. * `product_detail`: Predicts the next product that a user will most
# likely engage with or purchase. The prediction is based on the shopping or
# viewing history of the specified `userId` or `visitorId` and its relevance to
# a specified `CatalogItem`. Typically used on product detail pages. For example
# - More products like this. * `recently_viewed_default`: Returns up to 75
# products recently viewed by the specified `userId` or `visitorId`, most recent
# ones first. Returns nothing if neither of them has viewed any products yet.
# For example - Recently viewed. The full list of available placements can be
# seen at https://console.cloud.google.com/recommendation/catalogs/
# default_catalog/placements
# @param [Google::Apis::RetailV2::GoogleCloudRetailV2PredictRequest] google_cloud_retail_v2_predict_request_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::RetailV2::GoogleCloudRetailV2PredictResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::RetailV2::GoogleCloudRetailV2PredictResponse]
#
# @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 predict_project_location_catalog_placement(placement, google_cloud_retail_v2_predict_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v2/{+placement}:predict', options)
command.request_representation = Google::Apis::RetailV2::GoogleCloudRetailV2PredictRequest::Representation
command.request_object = google_cloud_retail_v2_predict_request_object
command.response_representation = Google::Apis::RetailV2::GoogleCloudRetailV2PredictResponse::Representation
command.response_class = Google::Apis::RetailV2::GoogleCloudRetailV2PredictResponse
command.params['placement'] = placement unless placement.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Writes a single user event from the browser. This uses a GET request to due to
# browser restriction of POST-ing to a 3rd party domain. This method is used
# only by the Retail API JavaScript pixel and Google Tag Manager. Users should
# not call this method directly.
# @param [String] parent
# Required. The parent catalog name, such as `projects/1234/locations/global/
# catalogs/default_catalog`.
# @param [Fixnum] ets
# The event timestamp in milliseconds. This prevents browser caching of
# otherwise identical get requests. The name is abbreviated to reduce the
# payload bytes.
# @param [String] uri
# The URL including cgi-parameters but excluding the hash fragment with a length
# limit of 5,000 characters. This is often more useful than the referer URL,
# because many browsers only send the domain for 3rd party requests.
# @param [String] user_event
# Required. URL encoded UserEvent proto with a length limit of 2,000,000
# characters.
# @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::RetailV2::GoogleApiHttpBody] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::RetailV2::GoogleApiHttpBody]
#
# @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 collect_project_location_catalog_user_event(parent, ets: nil, uri: nil, user_event: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v2/{+parent}/userEvents:collect', options)
command.response_representation = Google::Apis::RetailV2::GoogleApiHttpBody::Representation
command.response_class = Google::Apis::RetailV2::GoogleApiHttpBody
command.params['parent'] = parent unless parent.nil?
command.query['ets'] = ets unless ets.nil?
command.query['uri'] = uri unless uri.nil?
command.query['userEvent'] = user_event unless user_event.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Bulk import of User events. Request processing might be synchronous. Events
# that already exist are skipped. Use this method for backfilling historical
# user events. Operation.response is of type ImportResponse. Note that it is
# possible for a subset of the items to be successfully inserted. Operation.
# metadata is of type ImportMetadata.
# @param [String] parent
# Required. `projects/1234/locations/global/catalogs/default_catalog`
# @param [Google::Apis::RetailV2::GoogleCloudRetailV2ImportUserEventsRequest] google_cloud_retail_v2_import_user_events_request_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::RetailV2::GoogleLongrunningOperation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::RetailV2::GoogleLongrunningOperation]
#
# @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 import_project_location_catalog_user_event(parent, google_cloud_retail_v2_import_user_events_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v2/{+parent}/userEvents:import', options)
command.request_representation = Google::Apis::RetailV2::GoogleCloudRetailV2ImportUserEventsRequest::Representation
command.request_object = google_cloud_retail_v2_import_user_events_request_object
command.response_representation = Google::Apis::RetailV2::GoogleLongrunningOperation::Representation
command.response_class = Google::Apis::RetailV2::GoogleLongrunningOperation
command.params['parent'] = parent unless parent.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 permanently all user events specified by the filter provided.
# Depending on the number of events specified by the filter, this operation
# could take hours or days to complete. To test a filter, use the list command
# first.
# @param [String] parent
# Required. The resource name of the catalog under which the events are created.
# The format is `projects/$`projectId`/locations/global/catalogs/$`catalogId``
# @param [Google::Apis::RetailV2::GoogleCloudRetailV2PurgeUserEventsRequest] google_cloud_retail_v2_purge_user_events_request_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::RetailV2::GoogleLongrunningOperation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::RetailV2::GoogleLongrunningOperation]
#
# @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 purge_project_location_catalog_user_event(parent, google_cloud_retail_v2_purge_user_events_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v2/{+parent}/userEvents:purge', options)
command.request_representation = Google::Apis::RetailV2::GoogleCloudRetailV2PurgeUserEventsRequest::Representation
command.request_object = google_cloud_retail_v2_purge_user_events_request_object
command.response_representation = Google::Apis::RetailV2::GoogleLongrunningOperation::Representation
command.response_class = Google::Apis::RetailV2::GoogleLongrunningOperation
command.params['parent'] = parent unless parent.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Triggers a user event rejoin operation with latest product catalog. Events
# will not be annotated with detailed product information if product is missing
# from the catalog at the time the user event is ingested, and these events are
# stored as unjoined events with a limited usage on training and serving. This
# API can be used to trigger a 'join' operation on specified events with latest
# version of product catalog. It can also be used to correct events joined with
# wrong product catalog.
# @param [String] parent
# Required. The parent catalog resource name, such as `projects/1234/locations/
# global/catalogs/default_catalog`.
# @param [Google::Apis::RetailV2::GoogleCloudRetailV2RejoinUserEventsRequest] google_cloud_retail_v2_rejoin_user_events_request_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::RetailV2::GoogleLongrunningOperation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::RetailV2::GoogleLongrunningOperation]
#
# @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 rejoin_project_location_catalog_user_event(parent, google_cloud_retail_v2_rejoin_user_events_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v2/{+parent}/userEvents:rejoin', options)
command.request_representation = Google::Apis::RetailV2::GoogleCloudRetailV2RejoinUserEventsRequest::Representation
command.request_object = google_cloud_retail_v2_rejoin_user_events_request_object
command.response_representation = Google::Apis::RetailV2::GoogleLongrunningOperation::Representation
command.response_class = Google::Apis::RetailV2::GoogleLongrunningOperation
command.params['parent'] = parent unless parent.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Writes a single user event.
# @param [String] parent
# Required. The parent catalog resource name, such as `projects/1234/locations/
# global/catalogs/default_catalog`.
# @param [Google::Apis::RetailV2::GoogleCloudRetailV2UserEvent] google_cloud_retail_v2_user_event_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::RetailV2::GoogleCloudRetailV2UserEvent] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::RetailV2::GoogleCloudRetailV2UserEvent]
#
# @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 write_project_location_catalog_user_event(parent, google_cloud_retail_v2_user_event_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v2/{+parent}/userEvents:write', options)
command.request_representation = Google::Apis::RetailV2::GoogleCloudRetailV2UserEvent::Representation
command.request_object = google_cloud_retail_v2_user_event_object
command.response_representation = Google::Apis::RetailV2::GoogleCloudRetailV2UserEvent::Representation
command.response_class = Google::Apis::RetailV2::GoogleCloudRetailV2UserEvent
command.params['parent'] = parent unless parent.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 latest state of a long-running operation. Clients can use this method
# to poll the operation result at intervals as recommended by the API service.
# @param [String] name
# The name of the operation 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 [Google::Apis::RetailV2::GoogleLongrunningOperation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::RetailV2::GoogleLongrunningOperation]
#
# @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_project_location_operation(name, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v2/{+name}', options)
command.response_representation = Google::Apis::RetailV2::GoogleLongrunningOperation::Representation
command.response_class = Google::Apis::RetailV2::GoogleLongrunningOperation
command.params['name'] = name unless name.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 operations that match the specified filter in the request. If the server
# doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name`
# binding allows API services to override the binding to use different resource
# name schemes, such as `users/*/operations`. To override the binding, API
# services can add a binding such as `"/v1/`name=users/*`/operations"` to their
# service configuration. For backwards compatibility, the default name includes
# the operations collection id, however overriding users must ensure the name
# binding is the parent resource, without the operations collection id.
# @param [String] name
# The name of the operation's parent resource.
# @param [String] filter
# The standard list filter.
# @param [Fixnum] page_size
# The standard list page size.
# @param [String] page_token
# The standard list 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::RetailV2::GoogleLongrunningListOperationsResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::RetailV2::GoogleLongrunningListOperationsResponse]
#
# @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_project_location_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v2/{+name}/operations', options)
command.response_representation = Google::Apis::RetailV2::GoogleLongrunningListOperationsResponse::Representation
command.response_class = Google::Apis::RetailV2::GoogleLongrunningListOperationsResponse
command.params['name'] = name unless name.nil?
command.query['filter'] = filter unless filter.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
protected
def apply_command_defaults(command)
command.query['key'] = key unless key.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
end
end
end
end
end

View File

@ -0,0 +1,27 @@
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
require "rspec"
RSpec.describe "Google::Apis::RetailV2" do
# Minimal test just to ensure no syntax errors in generated code
it "should load" do
expect do
require "google/apis/retail_v2"
end.not_to raise_error
expect do
Google::Apis::RetailV2::CloudRetailService.new
end.not_to raise_error
end
end

View File

@ -0,0 +1,11 @@
{
"sources": [
{
"git": {
"name": ".",
"remote": "https://github.com/googleapis/google-api-ruby-client.git",
"sha": "6a65c71c4437d5f9e766960419b37cd84c9f4584"
}
}
]
}