google-apis-retail_v2alpha 0.28.0 → 0.29.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: 76e246cd8a76032a007f6eae66840c78d385787195cc9b522ba38db20c559d59
4
- data.tar.gz: 430bed9ceefac161115db657682d1d0bb359121e63fe8156e93ae4865a8244e0
3
+ metadata.gz: 9807fdb6e6e39b68732e89fa390a54990ef198eb40ad7d414fdb91425377bcf2
4
+ data.tar.gz: 13e2c7f0e8447c7f24c783145cee04b7a14dda9f2435ed1138bf8d95fc548cb4
5
5
  SHA512:
6
- metadata.gz: 84cacc133295d72d41740379566a4d74a39d9eb5f36baaf38058a0f28919cce5ddaa2f5116a3dde3442c171187fd7a242018b1867b91ba0dc208896cb9f3687b
7
- data.tar.gz: a83c839cb2ecc797f0ef02962ead1e8934d9e45df378477695a4d3975d0ce4337cc323284b6dac46828b7445140a24dfd48a99d928a03bb8ee68329fd21c87ff
6
+ metadata.gz: c54e46a8009c145aa3682a772110497b082bc1bd67e50262ef4800db708020eb44569956896320497442e8896a76c7d2d0c30c4f19410014fc98907c8b5a6126
7
+ data.tar.gz: 1f4210851ac96d3123ebabc4900c1d06d43753f0e69873b3153d9067ed14ff183f8c0df6f7fd77ae868cdf19c4e1939d02e9a611ef91e527db0acc291c5d3d8a
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-retail_v2alpha
2
2
 
3
+ ### v0.29.0 (2022-02-12)
4
+
5
+ * Regenerated from discovery document revision 20220210
6
+
3
7
  ### v0.28.0 (2022-02-03)
4
8
 
5
9
  * Regenerated from discovery document revision 20220127
@@ -851,7 +851,11 @@ module Google
851
851
  # Importing catalog data from Merchant Center](https://cloud.google.com/retail/
852
852
  # recommendations-ai/docs/upload-catalog#mc). Supported values for user events
853
853
  # imports: * `user_event` (default): One JSON UserEvent per line. * `
854
- # user_event_ga360`: Using https://support.google.com/analytics/answer/3437719.
854
+ # user_event_ga360`: The schema is available here: https://support.google.com/
855
+ # analytics/answer/3437719. * `user_event_ga4`: This feature is in private
856
+ # preview. Please contact the support team for importing Google Analytics 4
857
+ # events. The schema is available here: https://support.google.com/analytics/
858
+ # answer/7029846.
855
859
  # Corresponds to the JSON property `dataSchema`
856
860
  # @return [String]
857
861
  attr_accessor :data_schema
@@ -873,10 +877,10 @@ module Google
873
877
  # day and time zone are either specified elsewhere or are insignificant. The
874
878
  # date is relative to the Gregorian Calendar. This can represent one of the
875
879
  # following: * A full date, with non-zero year, month, and day values * A month
876
- # and day value, with a zero year, such as an anniversary * A year on its own,
877
- # with zero month and day values * A year and month value, with a zero day, such
878
- # as a credit card expiration date Related types are google.type.TimeOfDay and `
879
- # google.protobuf.Timestamp`.
880
+ # and day, with a zero year (e.g., an anniversary) * A year on its own, with a
881
+ # zero month and a zero day * A year and month, with a zero day (e.g., a credit
882
+ # card expiration date) Related types: * google.type.TimeOfDay * google.type.
883
+ # DateTime * google.protobuf.Timestamp
880
884
  # Corresponds to the JSON property `partitionDate`
881
885
  # @return [Google::Apis::RetailV2alpha::GoogleTypeDate]
882
886
  attr_accessor :partition_date
@@ -1279,10 +1283,12 @@ module Google
1279
1283
  class GoogleCloudRetailV2alphaCustomAttribute
1280
1284
  include Google::Apis::Core::Hashable
1281
1285
 
1282
- # If true, custom attribute values are indexed, so that it can be filtered,
1283
- # faceted or boosted in SearchService.Search. This field is ignored in a
1284
- # UserEvent. See SearchRequest.filter, SearchRequest.facet_specs and
1285
- # SearchRequest.boost_spec for more details.
1286
+ # This field will only be used when AttributesConfig.attribute_config_level of
1287
+ # the Catalog is 'PRODUCT_LEVEL_ATTRIBUTE_CONFIG', if true, custom attribute
1288
+ # values are indexed, so that it can be filtered, faceted or boosted in
1289
+ # SearchService.Search. This field is ignored in a UserEvent. See SearchRequest.
1290
+ # filter, SearchRequest.facet_specs and SearchRequest.boost_spec for more
1291
+ # details.
1286
1292
  # Corresponds to the JSON property `indexable`
1287
1293
  # @return [Boolean]
1288
1294
  attr_accessor :indexable
@@ -1295,9 +1301,11 @@ module Google
1295
1301
  # @return [Array<Float>]
1296
1302
  attr_accessor :numbers
1297
1303
 
1298
- # If true, custom attribute values are searchable by text queries in
1299
- # SearchService.Search. This field is ignored in a UserEvent. Only set if type
1300
- # text is set. Otherwise, a INVALID_ARGUMENT error is returned.
1304
+ # This field will only be used when AttributesConfig.attribute_config_level of
1305
+ # the Catalog is 'PRODUCT_LEVEL_ATTRIBUTE_CONFIG', if true, custom attribute
1306
+ # values are searchable by text queries in SearchService.Search. This field is
1307
+ # ignored in a UserEvent. Only set if type text is set. Otherwise, a
1308
+ # INVALID_ARGUMENT error is returned.
1301
1309
  # Corresponds to the JSON property `searchable`
1302
1310
  # @return [Boolean]
1303
1311
  attr_accessor :searchable
@@ -2053,9 +2061,9 @@ module Google
2053
2061
  attr_accessor :destinations
2054
2062
 
2055
2063
  # Language of the title/description and other string attributes. Use language
2056
- # tags defined by BCP 47. ISO 639-1. This specifies the language of offers in
2057
- # Merchant Center that will be accepted. If empty no language filtering will be
2058
- # performed.
2064
+ # tags defined by [BCP 47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt). ISO
2065
+ # 639-1. This specifies the language of offers in Merchant Center that will be
2066
+ # accepted. If empty no language filtering will be performed.
2059
2067
  # Corresponds to the JSON property `languageCode`
2060
2068
  # @return [String]
2061
2069
  attr_accessor :language_code
@@ -2068,9 +2076,9 @@ module Google
2068
2076
  attr_accessor :merchant_center_account_id
2069
2077
 
2070
2078
  # Region code of offers to accept. 2-letter Uppercase ISO 3166-1 alpha-2 code.
2071
- # List of values can be found here under the `region` tag. [https://www.iana.org/
2072
- # assignments/language-subtag-registry/language-subtag-registry]. If left blank
2073
- # no region filtering will be performed. Ex. `US`.
2079
+ # List of values can be found [here](https://www.iana.org/assignments/language-
2080
+ # subtag-registry/language-subtag-registry) under the `region` tag. If left
2081
+ # blank no region filtering will be performed. Example value: `US`.
2074
2082
  # Corresponds to the JSON property `regionCode`
2075
2083
  # @return [String]
2076
2084
  attr_accessor :region_code
@@ -2555,7 +2563,7 @@ module Google
2555
2563
 
2556
2564
  # The material of the product. For example, "leather", "wooden". A maximum of 20
2557
2565
  # values are allowed. Each value must be a UTF-8 encoded string with a length
2558
- # limit of 128 characters. Otherwise, an INVALID_ARGUMENT error is returned.
2566
+ # limit of 200 characters. Otherwise, an INVALID_ARGUMENT error is returned.
2559
2567
  # Corresponding properties: Google Merchant Center property [material](https://
2560
2568
  # support.google.com/merchants/answer/6324410). Schema.org property [Product.
2561
2569
  # material](https://schema.org/material).
@@ -3810,6 +3818,14 @@ module Google
3810
3818
  # @return [Array<Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaSearchRequestBoostSpecConditionBoostSpec>]
3811
3819
  attr_accessor :condition_boost_specs
3812
3820
 
3821
+ # Whether to skip boostspec validation. If this field is set to true, invalid
3822
+ # BoostSpec.condition_boost_specs will be ignored and valid BoostSpec.
3823
+ # condition_boost_specs will still be applied.
3824
+ # Corresponds to the JSON property `skipBoostSpecValidation`
3825
+ # @return [Boolean]
3826
+ attr_accessor :skip_boost_spec_validation
3827
+ alias_method :skip_boost_spec_validation?, :skip_boost_spec_validation
3828
+
3813
3829
  def initialize(**args)
3814
3830
  update!(**args)
3815
3831
  end
@@ -3817,6 +3833,7 @@ module Google
3817
3833
  # Update properties of this object
3818
3834
  def update!(**args)
3819
3835
  @condition_boost_specs = args[:condition_boost_specs] if args.key?(:condition_boost_specs)
3836
+ @skip_boost_spec_validation = args[:skip_boost_spec_validation] if args.key?(:skip_boost_spec_validation)
3820
3837
  end
3821
3838
  end
3822
3839
 
@@ -4114,6 +4131,12 @@ module Google
4114
4131
  # @return [Array<Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaSearchResponseFacet>]
4115
4132
  attr_accessor :facets
4116
4133
 
4134
+ # The invalid SearchRequest.BoostSpec.condition_boost_specs that are not applied
4135
+ # during serving.
4136
+ # Corresponds to the JSON property `invalidConditionBoostSpecs`
4137
+ # @return [Array<Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaSearchRequestBoostSpecConditionBoostSpec>]
4138
+ attr_accessor :invalid_condition_boost_specs
4139
+
4117
4140
  # A token that can be sent as SearchRequest.page_token to retrieve the next page.
4118
4141
  # If this field is omitted, there are no subsequent pages.
4119
4142
  # Corresponds to the JSON property `nextPageToken`
@@ -4155,6 +4178,7 @@ module Google
4155
4178
  @attribution_token = args[:attribution_token] if args.key?(:attribution_token)
4156
4179
  @corrected_query = args[:corrected_query] if args.key?(:corrected_query)
4157
4180
  @facets = args[:facets] if args.key?(:facets)
4181
+ @invalid_condition_boost_specs = args[:invalid_condition_boost_specs] if args.key?(:invalid_condition_boost_specs)
4158
4182
  @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
4159
4183
  @query_expansion_info = args[:query_expansion_info] if args.key?(:query_expansion_info)
4160
4184
  @redirect_uri = args[:redirect_uri] if args.key?(:redirect_uri)
@@ -5535,10 +5559,10 @@ module Google
5535
5559
  # day and time zone are either specified elsewhere or are insignificant. The
5536
5560
  # date is relative to the Gregorian Calendar. This can represent one of the
5537
5561
  # following: * A full date, with non-zero year, month, and day values * A month
5538
- # and day value, with a zero year, such as an anniversary * A year on its own,
5539
- # with zero month and day values * A year and month value, with a zero day, such
5540
- # as a credit card expiration date Related types are google.type.TimeOfDay and `
5541
- # google.protobuf.Timestamp`.
5562
+ # and day, with a zero year (e.g., an anniversary) * A year on its own, with a
5563
+ # zero month and a zero day * A year and month, with a zero day (e.g., a credit
5564
+ # card expiration date) Related types: * google.type.TimeOfDay * google.type.
5565
+ # DateTime * google.protobuf.Timestamp
5542
5566
  class GoogleTypeDate
5543
5567
  include Google::Apis::Core::Hashable
5544
5568
 
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module RetailV2alpha
18
18
  # Version of the google-apis-retail_v2alpha gem
19
- GEM_VERSION = "0.28.0"
19
+ GEM_VERSION = "0.29.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 = "20220127"
25
+ REVISION = "20220210"
26
26
  end
27
27
  end
28
28
  end
@@ -1914,6 +1914,7 @@ module Google
1914
1914
  class Representation < Google::Apis::Core::JsonRepresentation
1915
1915
  collection :condition_boost_specs, as: 'conditionBoostSpecs', class: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaSearchRequestBoostSpecConditionBoostSpec, decorator: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaSearchRequestBoostSpecConditionBoostSpec::Representation
1916
1916
 
1917
+ property :skip_boost_spec_validation, as: 'skipBoostSpecValidation'
1917
1918
  end
1918
1919
  end
1919
1920
 
@@ -1980,6 +1981,8 @@ module Google
1980
1981
  property :corrected_query, as: 'correctedQuery'
1981
1982
  collection :facets, as: 'facets', class: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaSearchResponseFacet, decorator: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaSearchResponseFacet::Representation
1982
1983
 
1984
+ collection :invalid_condition_boost_specs, as: 'invalidConditionBoostSpecs', class: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaSearchRequestBoostSpecConditionBoostSpec, decorator: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaSearchRequestBoostSpecConditionBoostSpec::Representation
1985
+
1983
1986
  property :next_page_token, as: 'nextPageToken'
1984
1987
  property :query_expansion_info, as: 'queryExpansionInfo', class: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaSearchResponseQueryExpansionInfo, decorator: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaSearchResponseQueryExpansionInfo::Representation
1985
1988
 
@@ -124,10 +124,7 @@ module Google
124
124
  end
125
125
 
126
126
  # Get which branch is currently default branch set by CatalogService.
127
- # SetDefaultBranch method under a specified parent catalog. This feature is only
128
- # available for users who have Retail Search enabled. Please submit a form [here]
129
- # (https://cloud.google.com/contact) to contact cloud sales if you are
130
- # interested in using Retail Search.
127
+ # SetDefaultBranch method under a specified parent catalog.
131
128
  # @param [String] catalog
132
129
  # The parent catalog resource name, such as `projects/*/locations/global/
133
130
  # catalogs/default_catalog`.
@@ -256,9 +253,7 @@ module Google
256
253
  # PredictionService will only return product IDs from branch `newBranch`. *
257
254
  # SearchService will only return product IDs from branch `newBranch` (if branch
258
255
  # is not explicitly set). * UserEventService will only join events with products
259
- # from branch `newBranch`. This feature is only available for users who have
260
- # Retail Search enabled. Please submit a form [here](https://cloud.google.com/
261
- # contact) to contact cloud sales if you are interested in using Retail Search.
256
+ # from branch `newBranch`.
262
257
  # @param [String] catalog
263
258
  # Full resource name of the catalog, such as `projects/*/locations/global/
264
259
  # catalogs/default_catalog`.
@@ -1737,6 +1732,83 @@ module Google
1737
1732
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1738
1733
  execute_or_queue_command(command, &block)
1739
1734
  end
1735
+
1736
+ # Gets the latest state of a long-running operation. Clients can use this method
1737
+ # to poll the operation result at intervals as recommended by the API service.
1738
+ # @param [String] name
1739
+ # The name of the operation resource.
1740
+ # @param [String] fields
1741
+ # Selector specifying which fields to include in a partial response.
1742
+ # @param [String] quota_user
1743
+ # Available to use for quota purposes for server-side applications. Can be any
1744
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1745
+ # @param [Google::Apis::RequestOptions] options
1746
+ # Request-specific options
1747
+ #
1748
+ # @yield [result, err] Result & error if block supplied
1749
+ # @yieldparam result [Google::Apis::RetailV2alpha::GoogleLongrunningOperation] parsed result object
1750
+ # @yieldparam err [StandardError] error object if request failed
1751
+ #
1752
+ # @return [Google::Apis::RetailV2alpha::GoogleLongrunningOperation]
1753
+ #
1754
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1755
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1756
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1757
+ def get_project_operation(name, fields: nil, quota_user: nil, options: nil, &block)
1758
+ command = make_simple_command(:get, 'v2alpha/{+name}', options)
1759
+ command.response_representation = Google::Apis::RetailV2alpha::GoogleLongrunningOperation::Representation
1760
+ command.response_class = Google::Apis::RetailV2alpha::GoogleLongrunningOperation
1761
+ command.params['name'] = name unless name.nil?
1762
+ command.query['fields'] = fields unless fields.nil?
1763
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1764
+ execute_or_queue_command(command, &block)
1765
+ end
1766
+
1767
+ # Lists operations that match the specified filter in the request. If the server
1768
+ # doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name`
1769
+ # binding allows API services to override the binding to use different resource
1770
+ # name schemes, such as `users/*/operations`. To override the binding, API
1771
+ # services can add a binding such as `"/v1/`name=users/*`/operations"` to their
1772
+ # service configuration. For backwards compatibility, the default name includes
1773
+ # the operations collection id, however overriding users must ensure the name
1774
+ # binding is the parent resource, without the operations collection id.
1775
+ # @param [String] name
1776
+ # The name of the operation's parent resource.
1777
+ # @param [String] filter
1778
+ # The standard list filter.
1779
+ # @param [Fixnum] page_size
1780
+ # The standard list page size.
1781
+ # @param [String] page_token
1782
+ # The standard list page token.
1783
+ # @param [String] fields
1784
+ # Selector specifying which fields to include in a partial response.
1785
+ # @param [String] quota_user
1786
+ # Available to use for quota purposes for server-side applications. Can be any
1787
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1788
+ # @param [Google::Apis::RequestOptions] options
1789
+ # Request-specific options
1790
+ #
1791
+ # @yield [result, err] Result & error if block supplied
1792
+ # @yieldparam result [Google::Apis::RetailV2alpha::GoogleLongrunningListOperationsResponse] parsed result object
1793
+ # @yieldparam err [StandardError] error object if request failed
1794
+ #
1795
+ # @return [Google::Apis::RetailV2alpha::GoogleLongrunningListOperationsResponse]
1796
+ #
1797
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1798
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1799
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1800
+ def list_project_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
1801
+ command = make_simple_command(:get, 'v2alpha/{+name}/operations', options)
1802
+ command.response_representation = Google::Apis::RetailV2alpha::GoogleLongrunningListOperationsResponse::Representation
1803
+ command.response_class = Google::Apis::RetailV2alpha::GoogleLongrunningListOperationsResponse
1804
+ command.params['name'] = name unless name.nil?
1805
+ command.query['filter'] = filter unless filter.nil?
1806
+ command.query['pageSize'] = page_size unless page_size.nil?
1807
+ command.query['pageToken'] = page_token unless page_token.nil?
1808
+ command.query['fields'] = fields unless fields.nil?
1809
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1810
+ execute_or_queue_command(command, &block)
1811
+ end
1740
1812
 
1741
1813
  protected
1742
1814
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-retail_v2alpha
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.28.0
4
+ version: 0.29.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-02-07 00:00:00.000000000 Z
11
+ date: 2022-02-14 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_v2alpha/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-retail_v2alpha/v0.28.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-retail_v2alpha/v0.29.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-retail_v2alpha
63
63
  post_install_message:
64
64
  rdoc_options: []