google-apis-retail_v2beta 0.35.0 → 0.38.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b7d68a682bc17e8633f7d6cb72be1e81bb413c9ae863e159aa07b3a687e52fb3
4
- data.tar.gz: 64ab0f83650d4c4f95c25afbb02dfb6f84d03a1997b52ced6d19d7dddb418293
3
+ metadata.gz: 8f819a6b4602b73b75b02cd74776d7075e3e295e5d8bd54ead39cccc4c1d58f1
4
+ data.tar.gz: 1fc0f04c70df32f515002005aa98714fd98d2151d6e7092f2a0f4e6c725060ec
5
5
  SHA512:
6
- metadata.gz: 3286d9e495dd9705f93c810587e2ecc6c441c52ba67ea65104399139dc7e1526eaedfd1ea03ed67a3adf55fc696abc41f62f76a2dd8549f9f18823ac8b0afcd6
7
- data.tar.gz: c8f6c508370e56c3d3c2e08a3383021f7e08d0f728e78b6eccd306d58bf29a7f868713d66926617c7d9baebdd9215789ee0340ba1cca8c12dcb26af35c15e814
6
+ metadata.gz: 3d31f6b11bc6b40f12b872aae9512c486abe2bc84c15bd637afca1b363d0d1b43d864b1f290b34df47976521b8f47ad5be4338a3b4e99ba1d31f347039ba90c2
7
+ data.tar.gz: 79e9feab52306e7b3fac846dd1d23dd2b8298ac421af2290f0aa36edd3aed571a9106f1e17a8a3ade3b57866d0a45e4407042653d5d09c0e808a6f27a833b3a5
data/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # Release history for google-apis-retail_v2beta
2
2
 
3
+ ### v0.38.0 (2022-05-05)
4
+
5
+ * Regenerated from discovery document revision 20220430
6
+
7
+ ### v0.37.0 (2022-04-28)
8
+
9
+ * Regenerated from discovery document revision 20220421
10
+
11
+ ### v0.36.0 (2022-04-22)
12
+
13
+ * Regenerated from discovery document revision 20220414
14
+
3
15
  ### v0.35.0 (2022-04-14)
4
16
 
5
17
  * Regenerated from discovery document revision 20220408
@@ -2133,12 +2133,13 @@ module Google
2133
2133
  class GoogleCloudRetailV2betaCustomAttribute
2134
2134
  include Google::Apis::Core::Hashable
2135
2135
 
2136
- # This field will only be used when AttributesConfig.attribute_config_level of
2137
- # the Catalog is 'PRODUCT_LEVEL_ATTRIBUTE_CONFIG', if true, custom attribute
2138
- # values are indexed, so that it can be filtered, faceted or boosted in
2139
- # SearchService.Search. This field is ignored in a UserEvent. See SearchRequest.
2140
- # filter, SearchRequest.facet_specs and SearchRequest.boost_spec for more
2141
- # details.
2136
+ # This field is normally ignored unless AttributesConfig.attribute_config_level
2137
+ # of the Catalog is set to the deprecated 'PRODUCT_LEVEL_ATTRIBUTE_CONFIG' mode.
2138
+ # You may learn more on [configuration mode] (https://cloud.google.com/retail/
2139
+ # docs/attribute-config#config-modes). if true, custom attribute values are
2140
+ # indexed, so that it can be filtered, faceted or boosted in SearchService.
2141
+ # Search. This field is ignored in a UserEvent. See SearchRequest.filter,
2142
+ # SearchRequest.facet_specs and SearchRequest.boost_spec for more details.
2142
2143
  # Corresponds to the JSON property `indexable`
2143
2144
  # @return [Boolean]
2144
2145
  attr_accessor :indexable
@@ -2151,11 +2152,13 @@ module Google
2151
2152
  # @return [Array<Float>]
2152
2153
  attr_accessor :numbers
2153
2154
 
2154
- # This field will only be used when AttributesConfig.attribute_config_level of
2155
- # the Catalog is 'PRODUCT_LEVEL_ATTRIBUTE_CONFIG', if true, custom attribute
2156
- # values are searchable by text queries in SearchService.Search. This field is
2157
- # ignored in a UserEvent. Only set if type text is set. Otherwise, a
2158
- # INVALID_ARGUMENT error is returned.
2155
+ # This field is normally ignored unless AttributesConfig.attribute_config_level
2156
+ # of the Catalog is set to the deprecated 'PRODUCT_LEVEL_ATTRIBUTE_CONFIG' mode.
2157
+ # You may learn more on [configuration mode] (https://cloud.google.com/retail/
2158
+ # docs/attribute-config#config-modes). If true, custom attribute values are
2159
+ # searchable by text queries in SearchService.Search. This field is ignored in a
2160
+ # UserEvent. Only set if type text is set. Otherwise, a INVALID_ARGUMENT error
2161
+ # is returned.
2159
2162
  # Corresponds to the JSON property `searchable`
2160
2163
  # @return [Boolean]
2161
2164
  attr_accessor :searchable
@@ -2570,11 +2573,15 @@ module Google
2570
2573
  # @return [Google::Apis::RetailV2beta::GoogleCloudRetailV2betaProductInputConfig]
2571
2574
  attr_accessor :input_config
2572
2575
 
2573
- # Pub/Sub topic for receiving notification. If this field is set, when the
2574
- # import is finished, a notification will be sent to specified Pub/Sub topic.
2576
+ # Full Pub/Sub topic name for receiving notification. If this field is set, when
2577
+ # the import is finished, a notification will be sent to specified Pub/Sub topic.
2575
2578
  # The message data will be JSON string of a Operation. Format of the Pub/Sub
2576
- # topic is `projects/`project`/topics/`topic``. Only supported when
2577
- # ImportProductsRequest.reconciliation_mode is set to `FULL`.
2579
+ # topic is `projects/`project`/topics/`topic``. It has to be within the same
2580
+ # project as ImportProductsRequest.parent. Make sure that both `cloud-retail-
2581
+ # customer-data-access@system.gserviceaccount.com` and `service-@gcp-sa-retail.
2582
+ # iam.gserviceaccount.com` have the `pubsub.topics.publish` IAM permission on
2583
+ # the topic. Only supported when ImportProductsRequest.reconciliation_mode is
2584
+ # set to `FULL`.
2578
2585
  # Corresponds to the JSON property `notificationPubsubTopic`
2579
2586
  # @return [String]
2580
2587
  attr_accessor :notification_pubsub_topic
@@ -3166,7 +3173,8 @@ module Google
3166
3173
  attr_accessor :currency_code
3167
3174
 
3168
3175
  # Price of the product without any discount. If zero, by default set to be the
3169
- # price.
3176
+ # price. If set, original_price should be greater than or equal to price,
3177
+ # otherwise an INVALID_ARGUMENT error is thrown.
3170
3178
  # Corresponds to the JSON property `originalPrice`
3171
3179
  # @return [Float]
3172
3180
  attr_accessor :original_price
@@ -4565,6 +4573,21 @@ module Google
4565
4573
  # @return [String]
4566
4574
  attr_accessor :filter
4567
4575
 
4576
+ # The labels applied to a resource must meet the following requirements: * Each
4577
+ # resource can have multiple labels, up to a maximum of 64. * Each label must be
4578
+ # a key-value pair. * Keys have a minimum length of 1 character and a maximum
4579
+ # length of 63 characters, and cannot be empty. Values can be empty, and have a
4580
+ # maximum length of 63 characters. * Keys and values can contain only lowercase
4581
+ # letters, numeric characters, underscores, and dashes. All characters must use
4582
+ # UTF-8 encoding, and international characters are allowed. * The key portion of
4583
+ # a label must be unique. However, you can use the same key with multiple
4584
+ # resources. * Keys must start with a lowercase letter or international
4585
+ # character. See [Google Cloud Document](https://cloud.google.com/resource-
4586
+ # manager/docs/creating-managing-labels#requirements) for more details.
4587
+ # Corresponds to the JSON property `labels`
4588
+ # @return [Hash<String,String>]
4589
+ attr_accessor :labels
4590
+
4568
4591
  # A 0-indexed integer that specifies the current offset (that is, starting
4569
4592
  # result location, amongst the Products deemed by the API as relevant) in search
4570
4593
  # results. This field is only considered if page_token is unset. If this field
@@ -4688,6 +4711,7 @@ module Google
4688
4711
  @dynamic_facet_spec = args[:dynamic_facet_spec] if args.key?(:dynamic_facet_spec)
4689
4712
  @facet_specs = args[:facet_specs] if args.key?(:facet_specs)
4690
4713
  @filter = args[:filter] if args.key?(:filter)
4714
+ @labels = args[:labels] if args.key?(:labels)
4691
4715
  @offset = args[:offset] if args.key?(:offset)
4692
4716
  @order_by = args[:order_by] if args.key?(:order_by)
4693
4717
  @page_categories = args[:page_categories] if args.key?(:page_categories)
@@ -5017,7 +5041,9 @@ module Google
5017
5041
  # @return [String]
5018
5042
  attr_accessor :attribution_token
5019
5043
 
5020
- # If spell correction applies, the corrected query. Otherwise, empty.
5044
+ # Contains the spell corrected query, if found. If the spell correction type is
5045
+ # AUTOMATIC, then the search results will be based on corrected_query, otherwise
5046
+ # the original query will be used for search.
5021
5047
  # Corresponds to the JSON property `correctedQuery`
5022
5048
  # @return [String]
5023
5049
  attr_accessor :corrected_query
@@ -5655,9 +5681,9 @@ module Google
5655
5681
  # @return [String]
5656
5682
  attr_accessor :page_view_id
5657
5683
 
5658
- # The main product details related to the event. This field is required for the
5659
- # following event types: * `add-to-cart` * `detail-page-view` * `purchase-
5660
- # complete` * `search` In a `search` event, this field represents the products
5684
+ # The main product details related to the event. This field is optional except
5685
+ # for the following event types: * `add-to-cart` * `detail-page-view` * `
5686
+ # purchase-complete` In a `search` event, this field represents the products
5661
5687
  # returned to the end user on the current page (the end user may have not
5662
5688
  # finished browsing the whole page yet). When a new page is returned to the end
5663
5689
  # user, after pagination/filtering/ordering even for the same query, a new `
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module RetailV2beta
18
18
  # Version of the google-apis-retail_v2beta gem
19
- GEM_VERSION = "0.35.0"
19
+ GEM_VERSION = "0.38.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.4.1"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20220408"
25
+ REVISION = "20220430"
26
26
  end
27
27
  end
28
28
  end
@@ -2272,6 +2272,7 @@ module Google
2272
2272
  collection :facet_specs, as: 'facetSpecs', class: Google::Apis::RetailV2beta::GoogleCloudRetailV2betaSearchRequestFacetSpec, decorator: Google::Apis::RetailV2beta::GoogleCloudRetailV2betaSearchRequestFacetSpec::Representation
2273
2273
 
2274
2274
  property :filter, as: 'filter'
2275
+ hash :labels, as: 'labels'
2275
2276
  property :offset, as: 'offset'
2276
2277
  property :order_by, as: 'orderBy'
2277
2278
  collection :page_categories, as: 'pageCategories'
@@ -62,8 +62,9 @@ module Google
62
62
  # the imported dataset through CompletionService.ImportCompletionData. "cloud-
63
63
  # retail" will use the dataset generated by cloud retail based on user events.
64
64
  # If leave empty, it will use the "user-data". Current supported values: * user-
65
- # data * cloud-retail This option requires additional allowlisting. Before using
66
- # cloud-retail, contact Cloud Retail support team first.
65
+ # data * cloud-retail: This option requires enabling auto-learning function
66
+ # first. See [guidelines](https://cloud.google.com/retail/docs/completion-
67
+ # overview#generated-completion-dataset).
67
68
  # @param [String] device_type
68
69
  # The device type context for completion suggestions. It is useful to apply
69
70
  # different suggestions on different device types, e.g. `DESKTOP`, `MOBILE`. If
@@ -1373,15 +1374,12 @@ module Google
1373
1374
  # Makes a recommendation prediction.
1374
1375
  # @param [String] placement
1375
1376
  # Required. Full resource name of the format: `name=projects/*/locations/global/
1376
- # catalogs/default_catalog/servingConfigs/*` or `name=projects/*/locations/
1377
- # global/catalogs/default_catalog/placements/*`. We recommend using the `
1378
- # servingConfigs` resource. `placements` is a legacy resource. The ID of the
1379
- # Recommendations AI serving config or placement. Before you can request
1380
- # predictions from your model, you must create at least one serving config or
1381
- # placement for it. For more information, see [Managing serving configurations].
1382
- # (https://cloud.google.com/retail/docs/manage-configs). The full list of
1383
- # available serving configs can be seen at https://console.cloud.google.com/ai/
1384
- # retail/catalogs/default_catalog/configs
1377
+ # catalogs/default_catalog/placements/*` The ID of the Recommendations AI
1378
+ # placement. Before you can request predictions from your model, you must create
1379
+ # at least one placement for it. For more information, see [Managing placements](
1380
+ # https://cloud.google.com/retail/recommendations-ai/docs/manage-placements).
1381
+ # The full list of available placements can be seen at https://console.cloud.
1382
+ # google.com/recommendation/catalogs/default_catalog/placements
1385
1383
  # @param [Google::Apis::RetailV2beta::GoogleCloudRetailV2betaPredictRequest] google_cloud_retail_v2beta_predict_request_object
1386
1384
  # @param [String] fields
1387
1385
  # Selector specifying which fields to include in a partial response.
@@ -1416,12 +1414,10 @@ module Google
1416
1414
  # Search enabled. Please enable Retail Search on Cloud Console before using this
1417
1415
  # feature.
1418
1416
  # @param [String] placement
1419
- # Required. The resource name of the Retail Search serving config, such as `
1420
- # projects/*/locations/global/catalogs/default_catalog/servingConfigs/
1421
- # default_serving_config` or the name of the legacy placement resource, such as `
1422
- # projects/*/locations/global/catalogs/default_catalog/placements/default_search`
1423
- # . This field is used to identify the serving configuration name and the set of
1424
- # models that will be used to make the search.
1417
+ # Required. The resource name of the search engine placement, such as `projects/*
1418
+ # /locations/global/catalogs/default_catalog/placements/default_search`. This
1419
+ # field is used to identify the serving configuration name and the set of models
1420
+ # that will be used to make the search.
1425
1421
  # @param [Google::Apis::RetailV2beta::GoogleCloudRetailV2betaSearchRequest] google_cloud_retail_v2beta_search_request_object
1426
1422
  # @param [String] fields
1427
1423
  # Selector specifying which fields to include in a partial response.
@@ -1676,48 +1672,6 @@ module Google
1676
1672
  execute_or_queue_command(command, &block)
1677
1673
  end
1678
1674
 
1679
- # Makes a recommendation prediction.
1680
- # @param [String] placement
1681
- # Required. Full resource name of the format: `name=projects/*/locations/global/
1682
- # catalogs/default_catalog/servingConfigs/*` or `name=projects/*/locations/
1683
- # global/catalogs/default_catalog/placements/*`. We recommend using the `
1684
- # servingConfigs` resource. `placements` is a legacy resource. The ID of the
1685
- # Recommendations AI serving config or placement. Before you can request
1686
- # predictions from your model, you must create at least one serving config or
1687
- # placement for it. For more information, see [Managing serving configurations].
1688
- # (https://cloud.google.com/retail/docs/manage-configs). The full list of
1689
- # available serving configs can be seen at https://console.cloud.google.com/ai/
1690
- # retail/catalogs/default_catalog/configs
1691
- # @param [Google::Apis::RetailV2beta::GoogleCloudRetailV2betaPredictRequest] google_cloud_retail_v2beta_predict_request_object
1692
- # @param [String] fields
1693
- # Selector specifying which fields to include in a partial response.
1694
- # @param [String] quota_user
1695
- # Available to use for quota purposes for server-side applications. Can be any
1696
- # arbitrary string assigned to a user, but should not exceed 40 characters.
1697
- # @param [Google::Apis::RequestOptions] options
1698
- # Request-specific options
1699
- #
1700
- # @yield [result, err] Result & error if block supplied
1701
- # @yieldparam result [Google::Apis::RetailV2beta::GoogleCloudRetailV2betaPredictResponse] parsed result object
1702
- # @yieldparam err [StandardError] error object if request failed
1703
- #
1704
- # @return [Google::Apis::RetailV2beta::GoogleCloudRetailV2betaPredictResponse]
1705
- #
1706
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1707
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1708
- # @raise [Google::Apis::AuthorizationError] Authorization is required
1709
- def predict_project_location_catalog_serving_config(placement, google_cloud_retail_v2beta_predict_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1710
- command = make_simple_command(:post, 'v2beta/{+placement}:predict', options)
1711
- command.request_representation = Google::Apis::RetailV2beta::GoogleCloudRetailV2betaPredictRequest::Representation
1712
- command.request_object = google_cloud_retail_v2beta_predict_request_object
1713
- command.response_representation = Google::Apis::RetailV2beta::GoogleCloudRetailV2betaPredictResponse::Representation
1714
- command.response_class = Google::Apis::RetailV2beta::GoogleCloudRetailV2betaPredictResponse
1715
- command.params['placement'] = placement unless placement.nil?
1716
- command.query['fields'] = fields unless fields.nil?
1717
- command.query['quotaUser'] = quota_user unless quota_user.nil?
1718
- execute_or_queue_command(command, &block)
1719
- end
1720
-
1721
1675
  # Disables a Control on the specified ServingConfig. The control is removed from
1722
1676
  # the ServingConfig. Returns a NOT_FOUND error if the Control is not enabled for
1723
1677
  # the ServingConfig.
@@ -1755,46 +1709,6 @@ module Google
1755
1709
  execute_or_queue_command(command, &block)
1756
1710
  end
1757
1711
 
1758
- # Performs a search. This feature is only available for users who have Retail
1759
- # Search enabled. Please enable Retail Search on Cloud Console before using this
1760
- # feature.
1761
- # @param [String] placement
1762
- # Required. The resource name of the Retail Search serving config, such as `
1763
- # projects/*/locations/global/catalogs/default_catalog/servingConfigs/
1764
- # default_serving_config` or the name of the legacy placement resource, such as `
1765
- # projects/*/locations/global/catalogs/default_catalog/placements/default_search`
1766
- # . This field is used to identify the serving configuration name and the set of
1767
- # models that will be used to make the search.
1768
- # @param [Google::Apis::RetailV2beta::GoogleCloudRetailV2betaSearchRequest] google_cloud_retail_v2beta_search_request_object
1769
- # @param [String] fields
1770
- # Selector specifying which fields to include in a partial response.
1771
- # @param [String] quota_user
1772
- # Available to use for quota purposes for server-side applications. Can be any
1773
- # arbitrary string assigned to a user, but should not exceed 40 characters.
1774
- # @param [Google::Apis::RequestOptions] options
1775
- # Request-specific options
1776
- #
1777
- # @yield [result, err] Result & error if block supplied
1778
- # @yieldparam result [Google::Apis::RetailV2beta::GoogleCloudRetailV2betaSearchResponse] parsed result object
1779
- # @yieldparam err [StandardError] error object if request failed
1780
- #
1781
- # @return [Google::Apis::RetailV2beta::GoogleCloudRetailV2betaSearchResponse]
1782
- #
1783
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1784
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1785
- # @raise [Google::Apis::AuthorizationError] Authorization is required
1786
- def search_project_location_catalog_serving_configs(placement, google_cloud_retail_v2beta_search_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1787
- command = make_simple_command(:post, 'v2beta/{+placement}:search', options)
1788
- command.request_representation = Google::Apis::RetailV2beta::GoogleCloudRetailV2betaSearchRequest::Representation
1789
- command.request_object = google_cloud_retail_v2beta_search_request_object
1790
- command.response_representation = Google::Apis::RetailV2beta::GoogleCloudRetailV2betaSearchResponse::Representation
1791
- command.response_class = Google::Apis::RetailV2beta::GoogleCloudRetailV2betaSearchResponse
1792
- command.params['placement'] = placement unless placement.nil?
1793
- command.query['fields'] = fields unless fields.nil?
1794
- command.query['quotaUser'] = quota_user unless quota_user.nil?
1795
- execute_or_queue_command(command, &block)
1796
- end
1797
-
1798
1712
  # Writes a single user event from the browser. This uses a GET request to due to
1799
1713
  # browser restriction of POST-ing to a 3rd party domain. This method is used
1800
1714
  # only by the Retail API JavaScript pixel and Google Tag Manager. Users should
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-retail_v2beta
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.35.0
4
+ version: 0.38.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-04-18 00:00:00.000000000 Z
11
+ date: 2022-05-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -58,7 +58,7 @@ licenses:
58
58
  metadata:
59
59
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
60
60
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-retail_v2beta/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-retail_v2beta/v0.35.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-retail_v2beta/v0.38.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-retail_v2beta
63
63
  post_install_message:
64
64
  rdoc_options: []