google-apis-retail_v2 0.59.0 → 0.61.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: 7a733b3400a8b645dbeabe09c07a79c0ebcfa3593efc748fd691de86945209fb
4
- data.tar.gz: 66627934ae4887ec030900faab7e5ba577216a22ecc2df2f189013884bea722e
3
+ metadata.gz: 1ae22f9dbcdc71c3006473e69e33dfd9696cd5312f6dff7c8964f5b5d269d4e3
4
+ data.tar.gz: dcf8824a7347a9d5f146760eb732866f50ddebe998c43711bce04486dc5315aa
5
5
  SHA512:
6
- metadata.gz: 125514e0679c3a2292581afea4530a4bee7204194b51911e76a7c65a4d1b7384106210d77b1fead31fb9ac93fd292c4a70890d3752b7b81becef0aa5e7c61c4c
7
- data.tar.gz: b9f919fba50032cfe10815413816120961558be79a6949e2e6dde5463a902617cdab1d1c07f8dc5097a6d92f4560eb55f4fd83883bd8b752790d1d4e2a09af09
6
+ metadata.gz: af95c4533c6e1fea5bc9640bdc97690a84a1278a66a3e5ede8caab2dc17276263b381d30410a8c2ba3f88d92d08d67d4d995c5d2aaaec7878221391717ebbc13
7
+ data.tar.gz: 4b48813b82f35f4d1be45b2a6d92bf1c9a90df25ba6b157dd41ee97fc60b2c4ede19435352ec40402fa584fe89e3357e22520b63f62debf92ee769e1edaee599
data/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # Release history for google-apis-retail_v2
2
2
 
3
+ ### v0.61.0 (2023-01-15)
4
+
5
+ * Regenerated from discovery document revision 20230105
6
+ * Regenerated using generator version 0.11.1
7
+
8
+ ### v0.60.0 (2023-01-04)
9
+
10
+ * Regenerated from discovery document revision 20230102
11
+
3
12
  ### v0.59.0 (2022-12-04)
4
13
 
5
14
  * Regenerated from discovery document revision 20221130
@@ -682,7 +682,8 @@ module Google
682
682
 
683
683
  # If EXACT_SEARCHABLE_ENABLED, attribute values will be exact searchable. This
684
684
  # property only applies to textual custom attributes and requires indexable set
685
- # to enabled to enable exact-searchable.
685
+ # to enabled to enable exact-searchable. If unset, the server behavior defaults
686
+ # to EXACT_SEARCHABLE_DISABLED.
686
687
  # Corresponds to the JSON property `exactSearchableOption`
687
688
  # @return [String]
688
689
  attr_accessor :exact_searchable_option
@@ -715,12 +716,15 @@ module Google
715
716
  # custom_attribute`, such as `attributes.xyz`. To be indexable, the attribute
716
717
  # name can contain only alpha-numeric characters and underscores. For example,
717
718
  # an attribute named `attributes.abc_xyz` can be indexed, but an attribute named
718
- # `attributes.abc-xyz` cannot be indexed.
719
+ # `attributes.abc-xyz` cannot be indexed. For attributes whoes key start with `
720
+ # attributes.`, we refer them as custom attributes. Otherwise they are built-in
721
+ # attributes such as `color` and `brands`.
719
722
  # Corresponds to the JSON property `key`
720
723
  # @return [String]
721
724
  attr_accessor :key
722
725
 
723
726
  # If RETRIEVABLE_ENABLED, attribute values are retrievable in the search results.
727
+ # If unset, the server behavior defaults to RETRIEVABLE_DISABLED.
724
728
  # Corresponds to the JSON property `retrievableOption`
725
729
  # @return [String]
726
730
  attr_accessor :retrievable_option
@@ -778,7 +782,7 @@ module Google
778
782
  # The color display names, which may be different from standard color family
779
783
  # names, such as the color aliases used in the website frontend. Normally it is
780
784
  # expected to have only 1 color. May consider using single "Mixed" instead of
781
- # multiple values. A maximum of 25 colors are allowed. Each value must be a UTF-
785
+ # multiple values. A maximum of 75 colors are allowed. Each value must be a UTF-
782
786
  # 8 encoded string with a length limit of 128 characters. Otherwise, an
783
787
  # INVALID_ARGUMENT error is returned. Google Merchant Center property [color](
784
788
  # https://support.google.com/merchants/answer/6324487). Schema.org property [
@@ -1131,9 +1135,9 @@ module Google
1131
1135
  class GoogleCloudRetailV2Control
1132
1136
  include Google::Apis::Core::Hashable
1133
1137
 
1134
- # Output only. List of serving configuration ids that are associated with this
1135
- # control in the same Catalog. Note the association is managed via the
1136
- # ServingConfig, this is an output only denormalized view.
1138
+ # Output only. List of serving config ids that are associated with this control
1139
+ # in the same Catalog. Note the association is managed via the ServingConfig,
1140
+ # this is an output only denormalized view.
1137
1141
  # Corresponds to the JSON property `associatedServingConfigIds`
1138
1142
  # @return [Array<String>]
1139
1143
  attr_accessor :associated_serving_config_ids
@@ -4273,7 +4277,8 @@ module Google
4273
4277
  # @return [String]
4274
4278
  attr_accessor :diversity_level
4275
4279
 
4276
- # What kind of diversity to use - data driven or rule based.
4280
+ # What kind of diversity to use - data driven or rule based. If unset, the
4281
+ # server behavior defaults to RULE_BASED_DIVERSITY.
4277
4282
  # Corresponds to the JSON property `diversityType`
4278
4283
  # @return [String]
4279
4284
  attr_accessor :diversity_type
@@ -4361,7 +4366,7 @@ module Google
4361
4366
  # product items with a similar recommendation probability to be ordered by price,
4362
4367
  # with the highest-priced items first. This setting could result in a decrease
4363
4368
  # in click-through and conversion rates. Allowed values are: * `no-price-
4364
- # reranking` * `low-price-raranking` * `medium-price-reranking` * `high-price-
4369
+ # reranking` * `low-price-reranking` * `medium-price-reranking` * `high-price-
4365
4370
  # reranking` If not specified, we choose default based on model type. Default
4366
4371
  # value: `no-price-reranking`. Can only be set if solution_types is
4367
4372
  # SOLUTION_TYPE_RECOMMENDATION.
@@ -5368,8 +5373,8 @@ module Google
5368
5373
  attr_accessor :optimization_objective
5369
5374
 
5370
5375
  # The PageOptimizationConfig for model training. This determines how many panels
5371
- # to optimize for, and which serving configurations to consider for each panel.
5372
- # The purpose of this model is to optimize which ServingConfig to show on which
5376
+ # to optimize for, and which serving configs to consider for each panel. The
5377
+ # purpose of this model is to optimize which ServingConfig to show on which
5373
5378
  # panels in way that optimizes the visitors shopping journey.
5374
5379
  # Corresponds to the JSON property `pageOptimizationConfig`
5375
5380
  # @return [Google::Apis::RetailV2::GoogleCloudRetailV2alphaModelPageOptimizationConfig]
@@ -5455,8 +5460,8 @@ module Google
5455
5460
  end
5456
5461
 
5457
5462
  # The PageOptimizationConfig for model training. This determines how many panels
5458
- # to optimize for, and which serving configurations to consider for each panel.
5459
- # The purpose of this model is to optimize which ServingConfig to show on which
5463
+ # to optimize for, and which serving configs to consider for each panel. The
5464
+ # purpose of this model is to optimize which ServingConfig to show on which
5460
5465
  # panels in way that optimizes the visitors shopping journey.
5461
5466
  class GoogleCloudRetailV2alphaModelPageOptimizationConfig
5462
5467
  include Google::Apis::Core::Hashable
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module RetailV2
18
18
  # Version of the google-apis-retail_v2 gem
19
- GEM_VERSION = "0.59.0"
19
+ GEM_VERSION = "0.61.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.11.0"
22
+ GENERATOR_VERSION = "0.11.1"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20221130"
25
+ REVISION = "20230105"
26
26
  end
27
27
  end
28
28
  end
@@ -1400,10 +1400,10 @@ module Google
1400
1400
  # the `servingConfigs` resource. `placements` is a legacy resource. The ID of
1401
1401
  # the Recommendations AI serving config or placement. Before you can request
1402
1402
  # predictions from your model, you must create at least one serving config or
1403
- # placement for it. For more information, see [Managing serving configurations] (
1404
- # https://cloud.google.com/retail/docs/manage-configs). The full list of
1405
- # available serving configs can be seen at https://console.cloud.google.com/ai/
1406
- # retail/catalogs/default_catalog/configs
1403
+ # placement for it. For more information, see [Manage serving configs] (https://
1404
+ # cloud.google.com/retail/docs/manage-configs). The full list of available
1405
+ # serving configs can be seen at https://console.cloud.google.com/ai/retail/
1406
+ # catalogs/default_catalog/configs
1407
1407
  # @param [Google::Apis::RetailV2::GoogleCloudRetailV2PredictRequest] google_cloud_retail_v2_predict_request_object
1408
1408
  # @param [String] fields
1409
1409
  # Selector specifying which fields to include in a partial response.
@@ -1442,8 +1442,8 @@ module Google
1442
1442
  # projects/*/locations/global/catalogs/default_catalog/servingConfigs/
1443
1443
  # default_serving_config` or the name of the legacy placement resource, such as `
1444
1444
  # projects/*/locations/global/catalogs/default_catalog/placements/default_search`
1445
- # . This field is used to identify the serving configuration name and the set of
1446
- # models that will be used to make the search.
1445
+ # . This field is used to identify the serving config name and the set of models
1446
+ # that will be used to make the search.
1447
1447
  # @param [Google::Apis::RetailV2::GoogleCloudRetailV2SearchRequest] google_cloud_retail_v2_search_request_object
1448
1448
  # @param [String] fields
1449
1449
  # Selector specifying which fields to include in a partial response.
@@ -1706,10 +1706,10 @@ module Google
1706
1706
  # the `servingConfigs` resource. `placements` is a legacy resource. The ID of
1707
1707
  # the Recommendations AI serving config or placement. Before you can request
1708
1708
  # predictions from your model, you must create at least one serving config or
1709
- # placement for it. For more information, see [Managing serving configurations] (
1710
- # https://cloud.google.com/retail/docs/manage-configs). The full list of
1711
- # available serving configs can be seen at https://console.cloud.google.com/ai/
1712
- # retail/catalogs/default_catalog/configs
1709
+ # placement for it. For more information, see [Manage serving configs] (https://
1710
+ # cloud.google.com/retail/docs/manage-configs). The full list of available
1711
+ # serving configs can be seen at https://console.cloud.google.com/ai/retail/
1712
+ # catalogs/default_catalog/configs
1713
1713
  # @param [Google::Apis::RetailV2::GoogleCloudRetailV2PredictRequest] google_cloud_retail_v2_predict_request_object
1714
1714
  # @param [String] fields
1715
1715
  # Selector specifying which fields to include in a partial response.
@@ -1785,8 +1785,8 @@ module Google
1785
1785
  # projects/*/locations/global/catalogs/default_catalog/servingConfigs/
1786
1786
  # default_serving_config` or the name of the legacy placement resource, such as `
1787
1787
  # projects/*/locations/global/catalogs/default_catalog/placements/default_search`
1788
- # . This field is used to identify the serving configuration name and the set of
1789
- # models that will be used to make the search.
1788
+ # . This field is used to identify the serving config name and the set of models
1789
+ # that will be used to make the search.
1790
1790
  # @param [Google::Apis::RetailV2::GoogleCloudRetailV2SearchRequest] google_cloud_retail_v2_search_request_object
1791
1791
  # @param [String] fields
1792
1792
  # Selector specifying which fields to include in a partial response.
@@ -1830,7 +1830,7 @@ module Google
1830
1830
  # payload bytes.
1831
1831
  # @param [String] prebuilt_rule
1832
1832
  # The prebuilt rule name that can convert a specific type of raw_json. For
1833
- # example: "default_schema/v1.0"
1833
+ # example: "ga4_bq" rule for the GA4 user event schema.
1834
1834
  # @param [String] raw_json
1835
1835
  # An arbitrary serialized JSON string that contains necessary information that
1836
1836
  # can comprise a user event. When this field is specified, the user_event field
@@ -1995,6 +1995,11 @@ module Google
1995
1995
  # Required. The parent catalog resource name, such as `projects/1234/locations/
1996
1996
  # global/catalogs/default_catalog`.
1997
1997
  # @param [Google::Apis::RetailV2::GoogleCloudRetailV2UserEvent] google_cloud_retail_v2_user_event_object
1998
+ # @param [Boolean] write_async
1999
+ # If set to true, the user event will be written asynchronously after validation,
2000
+ # and the API will respond without waiting for the write. Therefore, silent
2001
+ # failures can occur even if the API returns success. In case of silent failures,
2002
+ # error messages can be found in Stackdriver logs.
1998
2003
  # @param [String] fields
1999
2004
  # Selector specifying which fields to include in a partial response.
2000
2005
  # @param [String] quota_user
@@ -2012,13 +2017,14 @@ module Google
2012
2017
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2013
2018
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2014
2019
  # @raise [Google::Apis::AuthorizationError] Authorization is required
2015
- def write_project_location_catalog_user_event(parent, google_cloud_retail_v2_user_event_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2020
+ def write_project_location_catalog_user_event(parent, google_cloud_retail_v2_user_event_object = nil, write_async: nil, fields: nil, quota_user: nil, options: nil, &block)
2016
2021
  command = make_simple_command(:post, 'v2/{+parent}/userEvents:write', options)
2017
2022
  command.request_representation = Google::Apis::RetailV2::GoogleCloudRetailV2UserEvent::Representation
2018
2023
  command.request_object = google_cloud_retail_v2_user_event_object
2019
2024
  command.response_representation = Google::Apis::RetailV2::GoogleCloudRetailV2UserEvent::Representation
2020
2025
  command.response_class = Google::Apis::RetailV2::GoogleCloudRetailV2UserEvent
2021
2026
  command.params['parent'] = parent unless parent.nil?
2027
+ command.query['writeAsync'] = write_async unless write_async.nil?
2022
2028
  command.query['fields'] = fields unless fields.nil?
2023
2029
  command.query['quotaUser'] = quota_user unless quota_user.nil?
2024
2030
  execute_or_queue_command(command, &block)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-retail_v2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.59.0
4
+ version: 0.61.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-12-12 00:00:00.000000000 Z
11
+ date: 2023-01-15 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_v2/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-retail_v2/v0.59.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-retail_v2/v0.61.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-retail_v2
63
63
  post_install_message:
64
64
  rdoc_options: []
@@ -75,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
75
75
  - !ruby/object:Gem::Version
76
76
  version: '0'
77
77
  requirements: []
78
- rubygems_version: 3.3.14
78
+ rubygems_version: 3.4.2
79
79
  signing_key:
80
80
  specification_version: 4
81
81
  summary: Simple REST client for Retail API V2