google-apis-retail_v2 0.38.0 → 0.41.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: 21aa629c3a0c4c57e44fc1b3fe592bc1ecd92908121a31f16315238224603c1f
4
- data.tar.gz: 126758f4b650cd5b3b7181128c8359976b0a5019c2871fa030916e486a20ad5f
3
+ metadata.gz: 83d2c045ab19d04df43a0ee265228dd33d2d4ca7dfc6cbb4ab109e71742015fe
4
+ data.tar.gz: 31d8ba46b3a1300393c57fc8026686f0c25c2e79c386a670fdc65578583f9cd7
5
5
  SHA512:
6
- metadata.gz: 5ebf22a1ca11048758bd1b953a965c01218175706147585de4e4b350a439b6a3f453834917130acec9a9b91884398028cb32c9e6f57b9b8ebec72450cea84903
7
- data.tar.gz: b042af707818c22dc4fee730f5de1bef29bbc92a057441ec9882c096098144b5538798779be1f5ede6a79b578a83a3d3c16092090ca25a269d2cdf5462ebbeb1
6
+ metadata.gz: b368fa9f287a5611ce171ffe07ea6a81af8cf961af793bdbcae7aced693fdff59289cb64a572b45f0b3e4447cb1556218ee317600bcd148ce2dcadf1dcdadeca
7
+ data.tar.gz: 87cbc040524e40b349981f88d6bb36c6c9445b576d41c8c12a5be1e66e6104f8ae102d05311ffeb27c6f45d30a867eda2d67c9bce520d6fe6302a65ae0b8fbde
data/CHANGELOG.md CHANGED
@@ -1,5 +1,18 @@
1
1
  # Release history for google-apis-retail_v2
2
2
 
3
+ ### v0.41.0 (2022-06-07)
4
+
5
+ * Regenerated from discovery document revision 20220602
6
+ * Regenerated using generator version 0.5.0
7
+
8
+ ### v0.40.0 (2022-05-26)
9
+
10
+ * Regenerated from discovery document revision 20220519
11
+
12
+ ### v0.39.0 (2022-05-19)
13
+
14
+ * Regenerated from discovery document revision 20220512
15
+
3
16
  ### v0.38.0 (2022-05-12)
4
17
 
5
18
  * Regenerated from discovery document revision 20220505
@@ -680,7 +680,9 @@ module Google
680
680
 
681
681
  # Custom attributes for the suggestion term. * For "user-data", the attributes
682
682
  # are additional custom attributes ingested through BigQuery. * For "cloud-
683
- # retail", the attributes are product attributes generated by Cloud Retail.
683
+ # retail", the attributes are product attributes generated by Cloud Retail. This
684
+ # is an experimental feature. Contact Retail Search support team if you are
685
+ # interested in enabling it.
684
686
  # Corresponds to the JSON property `attributes`
685
687
  # @return [Hash<String,Google::Apis::RetailV2::GoogleCloudRetailV2CustomAttribute>]
686
688
  attr_accessor :attributes
@@ -2156,15 +2158,17 @@ module Google
2156
2158
  end
2157
2159
  end
2158
2160
 
2159
- # Promotion information.
2161
+ # Promotion specification.
2160
2162
  class GoogleCloudRetailV2Promotion
2161
2163
  include Google::Apis::Core::Hashable
2162
2164
 
2163
- # ID of the promotion. For example, "free gift". The value must be a UTF-8
2164
- # encoded string with a length limit of 128 characters, and match the pattern: `
2165
- # a-zA-Z*`. For example, id0LikeThis or ID_1_LIKE_THIS. Otherwise, an
2166
- # INVALID_ARGUMENT error is returned. Google Merchant Center property [promotion]
2167
- # (https://support.google.com/merchants/answer/7050148).
2165
+ # Promotion identifier, which is the final component of name. For example, this
2166
+ # field is "free_gift", if name is `projects/*/locations/global/catalogs/
2167
+ # default_catalog/promotions/free_gift`. The value must be a UTF-8 encoded
2168
+ # string with a length limit of 128 characters, and match the pattern: `a-zA-Z*`.
2169
+ # For example, id0LikeThis or ID_1_LIKE_THIS. Otherwise, an INVALID_ARGUMENT
2170
+ # error is returned. Corresponds to Google Merchant Center property [
2171
+ # promotion_id](https://support.google.com/merchants/answer/7050148).
2168
2172
  # Corresponds to the JSON property `promotionId`
2169
2173
  # @return [String]
2170
2174
  attr_accessor :promotion_id
@@ -2755,7 +2759,7 @@ module Google
2755
2759
 
2756
2760
  # Condition boost specifications. If a product matches multiple conditions in
2757
2761
  # the specifictions, boost scores from these specifications are all applied and
2758
- # combined in a non-linear way. Maximum number of specifications is 10.
2762
+ # combined in a non-linear way. Maximum number of specifications is 20.
2759
2763
  # Corresponds to the JSON property `conditionBoostSpecs`
2760
2764
  # @return [Array<Google::Apis::RetailV2::GoogleCloudRetailV2SearchRequestBoostSpecConditionBoostSpec>]
2761
2765
  attr_accessor :condition_boost_specs
@@ -2866,13 +2870,20 @@ module Google
2866
2870
  alias_method :enable_dynamic_position?, :enable_dynamic_position
2867
2871
 
2868
2872
  # List of keys to exclude when faceting. By default, FacetKey.key is not
2869
- # excluded from the filter unless it is listed in this field. For example,
2870
- # suppose there are 100 products with color facet "Red" and 200 products with
2871
- # color facet "Blue". A query containing the filter "colorFamilies:ANY("Red")"
2872
- # and have "colorFamilies" as FacetKey.key will by default return the "Red" with
2873
- # count 100. If this field contains "colorFamilies", then the query returns both
2874
- # the "Red" with count 100 and "Blue" with count 200, because the "colorFamilies"
2875
- # key is now excluded from the filter. A maximum of 100 values are allowed.
2873
+ # excluded from the filter unless it is listed in this field. Listing a facet
2874
+ # key in this field allows its values to appear as facet results, even when they
2875
+ # are filtered out of search results. Using this field does not affect what
2876
+ # search results are returned. For example, suppose there are 100 products with
2877
+ # the color facet "Red" and 200 products with the color facet "Blue". A query
2878
+ # containing the filter "colorFamilies:ANY("Red")" and having "colorFamilies" as
2879
+ # FacetKey.key would by default return only "Red" products in the search results,
2880
+ # and also return "Red" with count 100 as the only color facet. Although there
2881
+ # are also blue products available, "Blue" would not be shown as an available
2882
+ # facet value. If "colorFamilies" is listed in "excludedFilterKeys", then the
2883
+ # query returns the facet values "Red" with count 100 and "Blue" with count 200,
2884
+ # because the "colorFamilies" key is now excluded from the filter. Because this
2885
+ # field doesn't affect search results, the search results are still correctly
2886
+ # filtered to return only "Red" products. A maximum of 100 values are allowed.
2876
2887
  # Otherwise, an INVALID_ARGUMENT error is returned.
2877
2888
  # Corresponds to the JSON property `excludedFilterKeys`
2878
2889
  # @return [Array<String>]
@@ -2907,6 +2918,13 @@ module Google
2907
2918
  class GoogleCloudRetailV2SearchRequestFacetSpecFacetKey
2908
2919
  include Google::Apis::Core::Hashable
2909
2920
 
2921
+ # Whether to make facet keys case insensitive when getting faceting values with
2922
+ # prefixes or contains.
2923
+ # Corresponds to the JSON property `caseInsensitive`
2924
+ # @return [Boolean]
2925
+ attr_accessor :case_insensitive
2926
+ alias_method :case_insensitive?, :case_insensitive
2927
+
2910
2928
  # Only get facet values that contains the given strings. For example, suppose "
2911
2929
  # categories" has three values "Women > Shoe", "Women > Dress" and "Men > Shoe".
2912
2930
  # If set "contains" to "Shoe", the "categories" facet will give only "Women >
@@ -2974,10 +2992,11 @@ module Google
2974
2992
  # Only get facet for the given restricted values. For example, when using "
2975
2993
  # pickupInStore" as key and set restricted values to ["store123", "store456"],
2976
2994
  # only facets for "store123" and "store456" are returned. Only supported on
2977
- # textual fields and fulfillments. Maximum is 20. Must be set for the
2978
- # fulfillment facet keys: * pickupInStore * shipToStore * sameDayDelivery *
2979
- # nextDayDelivery * customFulfillment1 * customFulfillment2 * customFulfillment3
2980
- # * customFulfillment4 * customFulfillment5
2995
+ # predefined textual fields, custom textual attributes and fulfillments. Maximum
2996
+ # is 20. Must be set for the fulfillment facet keys: * pickupInStore *
2997
+ # shipToStore * sameDayDelivery * nextDayDelivery * customFulfillment1 *
2998
+ # customFulfillment2 * customFulfillment3 * customFulfillment4 *
2999
+ # customFulfillment5
2981
3000
  # Corresponds to the JSON property `restrictedValues`
2982
3001
  # @return [Array<String>]
2983
3002
  attr_accessor :restricted_values
@@ -2988,6 +3007,7 @@ module Google
2988
3007
 
2989
3008
  # Update properties of this object
2990
3009
  def update!(**args)
3010
+ @case_insensitive = args[:case_insensitive] if args.key?(:case_insensitive)
2991
3011
  @contains = args[:contains] if args.key?(:contains)
2992
3012
  @intervals = args[:intervals] if args.key?(:intervals)
2993
3013
  @key = args[:key] if args.key?(:key)
@@ -3608,7 +3628,7 @@ module Google
3608
3628
  # which results in degraded model quality. The field must be a UTF-8 encoded
3609
3629
  # string with a length limit of 128 characters. Otherwise, an INVALID_ARGUMENT
3610
3630
  # error is returned. The field should not contain PII or user-data. We recommend
3611
- # to use Google Analystics [Client ID](https://developers.google.com/analytics/
3631
+ # to use Google Analytics [Client ID](https://developers.google.com/analytics/
3612
3632
  # devguides/collection/analyticsjs/field-reference#clientId) for this field.
3613
3633
  # Corresponds to the JSON property `visitorId`
3614
3634
  # @return [String]
@@ -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.38.0"
19
+ GEM_VERSION = "0.41.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.4.1"
22
+ GENERATOR_VERSION = "0.5.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20220505"
25
+ REVISION = "20220602"
26
26
  end
27
27
  end
28
28
  end
@@ -1561,6 +1561,7 @@ module Google
1561
1561
  class GoogleCloudRetailV2SearchRequestFacetSpecFacetKey
1562
1562
  # @private
1563
1563
  class Representation < Google::Apis::Core::JsonRepresentation
1564
+ property :case_insensitive, as: 'caseInsensitive'
1564
1565
  collection :contains, as: 'contains'
1565
1566
  collection :intervals, as: 'intervals', class: Google::Apis::RetailV2::GoogleCloudRetailV2Interval, decorator: Google::Apis::RetailV2::GoogleCloudRetailV2Interval::Representation
1566
1567
 
@@ -523,9 +523,9 @@ module Google
523
523
  execute_or_queue_command(command, &block)
524
524
  end
525
525
 
526
- # Bulk import of multiple Products. Request processing may be synchronous. No
527
- # partial updating is supported. Non-existing items are created. Note that it is
528
- # possible for a subset of the Products to be successfully updated.
526
+ # Bulk import of multiple Products. Request processing may be synchronous. Non-
527
+ # existing items are created. Note that it is possible for a subset of the
528
+ # Products to be successfully updated.
529
529
  # @param [String] parent
530
530
  # Required. `projects/1234/locations/global/catalogs/default_catalog/branches/
531
531
  # default_branch` If no updateMask is specified, requires products.create
@@ -929,8 +929,8 @@ module Google
929
929
 
930
930
  # Makes a recommendation prediction.
931
931
  # @param [String] placement
932
- # Required. Full resource name of the format: `name=projects/*/locations/global/
933
- # catalogs/default_catalog/placements/*` The ID of the Recommendations AI
932
+ # Required. Full resource name of the format: ``name=projects/*/locations/global/
933
+ # catalogs/default_catalog/placements/*`` The ID of the Recommendations AI
934
934
  # placement. Before you can request predictions from your model, you must create
935
935
  # at least one placement for it. For more information, see [Managing placements](
936
936
  # https://cloud.google.com/retail/recommendations-ai/docs/manage-placements).
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.38.0
4
+ version: 0.41.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-05-16 00:00:00.000000000 Z
11
+ date: 2022-06-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -16,7 +16,7 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '0.4'
19
+ version: '0.5'
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
22
  version: 2.a
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: '0.4'
29
+ version: '0.5'
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a
@@ -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.38.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-retail_v2/v0.41.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.5
78
+ rubygems_version: 3.3.14
79
79
  signing_key:
80
80
  specification_version: 4
81
81
  summary: Simple REST client for Retail API V2