google-apis-retail_v2 0.66.0 → 0.68.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: cb2fa3180c78f69e29929609042d6389cbb72bbd9086acb977a03aa60bb83ed2
4
- data.tar.gz: 7eca9883dd240581b960f5c0d8258cd2287b56793f03003c2b4da93cd8ccf899
3
+ metadata.gz: 6c45882b8bad29e354ce8b668a9738ca233277e54518996005938ce338f001b9
4
+ data.tar.gz: e058eaf18c8f3ad0d0c86a0c1ecf4b29f927e611b3467947387b8d0c45d335bf
5
5
  SHA512:
6
- metadata.gz: 49d17b55086e9a3c9bded63bce9c6fc6a984834b03e14fc6c63d3384c6d6b44520dae476dba278318fd363ab87a35af4f9eff2df1287084af103c86b10361628
7
- data.tar.gz: 6d461abbd59525f637264d4b4aec9127e40be9e5ac979e7fba130968367c517f0d089e9a63f8fc2763588504ed739bcbccebe44717dbe8552388c4ccd48acf85
6
+ metadata.gz: d827811f81c3e322ea8909a82b1c24d7774ee9fc1521d8ecfb97fe3c41660dd5c2302fbc09b7a2bdc557cf4d8b6bf00ce40b9814319262a861a68dc12e08aa0d
7
+ data.tar.gz: 99723b9ae756a7a9a632823dd9c0644c5b5a44b0eac471a6c8c836722a1ee1ec3023dfdb381ace31dbab706d526b4e4c77ac94c92f87b145a497c54caab7c24e
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Release history for google-apis-retail_v2
2
2
 
3
+ ### v0.68.0 (2023-03-19)
4
+
5
+ * Regenerated from discovery document revision 20230309
6
+
7
+ ### v0.67.0 (2023-03-05)
8
+
9
+ * Regenerated from discovery document revision 20230223
10
+
3
11
  ### v0.66.0 (2023-02-15)
4
12
 
5
13
  * Regenerated using generator version 0.12.0
@@ -2591,10 +2591,9 @@ module Google
2591
2591
  # @return [String]
2592
2592
  attr_accessor :language_code
2593
2593
 
2594
- # Output only. A list of local inventories specific to different places. This is
2595
- # only available for users who have Retail Search enabled, and it can be managed
2596
- # by ProductService.AddLocalInventories and ProductService.
2597
- # RemoveLocalInventories APIs.
2594
+ # Output only. A list of local inventories specific to different places. This
2595
+ # field can be managed by ProductService.AddLocalInventories and ProductService.
2596
+ # RemoveLocalInventories APIs if fine-grained, high-volume updates are necessary.
2598
2597
  # Corresponds to the JSON property `localInventories`
2599
2598
  # @return [Array<Google::Apis::RetailV2::GoogleCloudRetailV2LocalInventory>]
2600
2599
  attr_accessor :local_inventories
@@ -4109,9 +4108,13 @@ module Google
4109
4108
  # @return [Array<String>]
4110
4109
  attr_accessor :contains
4111
4110
 
4112
- # Set only if values should be bucketized into intervals. Must be set for facets
4113
- # with numerical values. Must not be set for facet with text values. Maximum
4114
- # number of intervals is 30.
4111
+ # For all numerical facet keys that appear in the list of products from the
4112
+ # catalog, the percentiles 0, 10, 30, 50, 70, 90 and 100 are computed from their
4113
+ # distribution weekly. If the model assigns a high score to a numerical facet
4114
+ # key and its intervals are not specified in the search request, these
4115
+ # percentiles will become the bounds for its intervals and will be returned in
4116
+ # the response. If the facet key intervals are specified in the request, then
4117
+ # the specified intervals will be returned instead.
4115
4118
  # Corresponds to the JSON property `intervals`
4116
4119
  # @return [Array<Google::Apis::RetailV2::GoogleCloudRetailV2Interval>]
4117
4120
  attr_accessor :intervals
@@ -4942,6 +4945,13 @@ module Google
4942
4945
  # @return [Google::Apis::RetailV2::GoogleCloudRetailV2CompletionDetail]
4943
4946
  attr_accessor :completion_detail
4944
4947
 
4948
+ # Represents the domain of the user event, for projects that combine domains.
4949
+ # For example: retailer can have events from multiple domains like retailer-main,
4950
+ # retailer-baby, retailer-meds, etc. under one project.
4951
+ # Corresponds to the JSON property `domain`
4952
+ # @return [String]
4953
+ attr_accessor :domain
4954
+
4945
4955
  # Only required for UserEventService.ImportUserEvents method. Timestamp of when
4946
4956
  # the user event happened.
4947
4957
  # Corresponds to the JSON property `eventTime`
@@ -5097,6 +5107,7 @@ module Google
5097
5107
  @attribution_token = args[:attribution_token] if args.key?(:attribution_token)
5098
5108
  @cart_id = args[:cart_id] if args.key?(:cart_id)
5099
5109
  @completion_detail = args[:completion_detail] if args.key?(:completion_detail)
5110
+ @domain = args[:domain] if args.key?(:domain)
5100
5111
  @event_time = args[:event_time] if args.key?(:event_time)
5101
5112
  @event_type = args[:event_type] if args.key?(:event_type)
5102
5113
  @experiment_ids = args[:experiment_ids] if args.key?(:experiment_ids)
@@ -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.66.0"
19
+ GEM_VERSION = "0.68.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.12.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20230202"
25
+ REVISION = "20230309"
26
26
  end
27
27
  end
28
28
  end
@@ -2379,6 +2379,7 @@ module Google
2379
2379
  property :cart_id, as: 'cartId'
2380
2380
  property :completion_detail, as: 'completionDetail', class: Google::Apis::RetailV2::GoogleCloudRetailV2CompletionDetail, decorator: Google::Apis::RetailV2::GoogleCloudRetailV2CompletionDetail::Representation
2381
2381
 
2382
+ property :domain, as: 'domain'
2382
2383
  property :event_time, as: 'eventTime'
2383
2384
  property :event_type, as: 'eventType'
2384
2385
  collection :experiment_ids, as: 'experimentIds'
@@ -574,16 +574,19 @@ module Google
574
574
  execute_or_queue_command(command, &block)
575
575
  end
576
576
 
577
- # Incrementally adds place IDs to Product.fulfillment_info.place_ids. This
578
- # process is asynchronous and does not require the Product to exist before
579
- # updating fulfillment information. If the request is valid, the update will be
580
- # enqueued and processed downstream. As a consequence, when a response is
581
- # returned, the added place IDs are not immediately manifested in the Product
582
- # queried by ProductService.GetProduct or ProductService.ListProducts. The
583
- # returned Operations will be obsolete after 1 day, and GetOperation API will
584
- # return NOT_FOUND afterwards. If conflicting updates are issued, the Operations
585
- # associated with the stale updates will not be marked as done until being
586
- # obsolete.
577
+ # It is recommended to use the ProductService.AddLocalInventories method instead
578
+ # of ProductService.AddFulfillmentPlaces. ProductService.AddLocalInventories
579
+ # achieves the same results but provides more fine-grained control over
580
+ # ingesting local inventory data. Incrementally adds place IDs to Product.
581
+ # fulfillment_info.place_ids. This process is asynchronous and does not require
582
+ # the Product to exist before updating fulfillment information. If the request
583
+ # is valid, the update will be enqueued and processed downstream. As a
584
+ # consequence, when a response is returned, the added place IDs are not
585
+ # immediately manifested in the Product queried by ProductService.GetProduct or
586
+ # ProductService.ListProducts. The returned Operations will be obsolete after 1
587
+ # day, and GetOperation API will return NOT_FOUND afterwards. If conflicting
588
+ # updates are issued, the Operations associated with the stale updates will not
589
+ # be marked as done until being obsolete.
587
590
  # @param [String] product
588
591
  # Required. Full resource name of Product, such as `projects/*/locations/global/
589
592
  # catalogs/default_catalog/branches/default_branch/products/some_product_id`. If
@@ -932,14 +935,18 @@ module Google
932
935
  execute_or_queue_command(command, &block)
933
936
  end
934
937
 
935
- # Incrementally removes place IDs from a Product.fulfillment_info.place_ids.
936
- # This process is asynchronous and does not require the Product to exist before
937
- # updating fulfillment information. If the request is valid, the update will be
938
- # enqueued and processed downstream. As a consequence, when a response is
939
- # returned, the removed place IDs are not immediately manifested in the Product
940
- # queried by ProductService.GetProduct or ProductService.ListProducts. The
941
- # returned Operations will be obsolete after 1 day, and GetOperation API will
942
- # return NOT_FOUND afterwards. If conflicting updates are issued, the Operations
938
+ # It is recommended to use the ProductService.RemoveLocalInventories method
939
+ # instead of ProductService.RemoveFulfillmentPlaces. ProductService.
940
+ # RemoveLocalInventories achieves the same results but provides more fine-
941
+ # grained control over ingesting local inventory data. Incrementally removes
942
+ # place IDs from a Product.fulfillment_info.place_ids. This process is
943
+ # asynchronous and does not require the Product to exist before updating
944
+ # fulfillment information. If the request is valid, the update will be enqueued
945
+ # and processed downstream. As a consequence, when a response is returned, the
946
+ # removed place IDs are not immediately manifested in the Product queried by
947
+ # ProductService.GetProduct or ProductService.ListProducts. The returned
948
+ # Operations will be obsolete after 1 day, and GetOperation API will return
949
+ # NOT_FOUND afterwards. If conflicting updates are issued, the Operations
943
950
  # associated with the stale updates will not be marked as done until being
944
951
  # obsolete.
945
952
  # @param [String] product
@@ -1377,6 +1384,37 @@ module Google
1377
1384
  execute_or_queue_command(command, &block)
1378
1385
  end
1379
1386
 
1387
+ # Gets a model.
1388
+ # @param [String] name
1389
+ # Required. The resource name of the Model to get. Format: `projects/`
1390
+ # project_number`/locations/`location_id`/catalogs/`catalog`/models/`model_id``
1391
+ # @param [String] fields
1392
+ # Selector specifying which fields to include in a partial response.
1393
+ # @param [String] quota_user
1394
+ # Available to use for quota purposes for server-side applications. Can be any
1395
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1396
+ # @param [Google::Apis::RequestOptions] options
1397
+ # Request-specific options
1398
+ #
1399
+ # @yield [result, err] Result & error if block supplied
1400
+ # @yieldparam result [Google::Apis::RetailV2::GoogleCloudRetailV2Model] parsed result object
1401
+ # @yieldparam err [StandardError] error object if request failed
1402
+ #
1403
+ # @return [Google::Apis::RetailV2::GoogleCloudRetailV2Model]
1404
+ #
1405
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1406
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1407
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1408
+ def get_project_location_catalog_model(name, fields: nil, quota_user: nil, options: nil, &block)
1409
+ command = make_simple_command(:get, 'v2/{+name}', options)
1410
+ command.response_representation = Google::Apis::RetailV2::GoogleCloudRetailV2Model::Representation
1411
+ command.response_class = Google::Apis::RetailV2::GoogleCloudRetailV2Model
1412
+ command.params['name'] = name unless name.nil?
1413
+ command.query['fields'] = fields unless fields.nil?
1414
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1415
+ execute_or_queue_command(command, &block)
1416
+ end
1417
+
1380
1418
  # Lists all the models linked to this event store.
1381
1419
  # @param [String] parent
1382
1420
  # Required. The parent for which to list models. Format: `projects/`
@@ -1593,13 +1631,7 @@ module Google
1593
1631
  end
1594
1632
 
1595
1633
  # Lists operations that match the specified filter in the request. If the server
1596
- # doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name`
1597
- # binding allows API services to override the binding to use different resource
1598
- # name schemes, such as `users/*/operations`. To override the binding, API
1599
- # services can add a binding such as `"/v1/`name=users/*`/operations"` to their
1600
- # service configuration. For backwards compatibility, the default name includes
1601
- # the operations collection id, however overriding users must ensure the name
1602
- # binding is the parent resource, without the operations collection id.
1634
+ # doesn't support this method, it returns `UNIMPLEMENTED`.
1603
1635
  # @param [String] name
1604
1636
  # The name of the operation's parent resource.
1605
1637
  # @param [String] filter
@@ -2308,13 +2340,7 @@ module Google
2308
2340
  end
2309
2341
 
2310
2342
  # Lists operations that match the specified filter in the request. If the server
2311
- # doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name`
2312
- # binding allows API services to override the binding to use different resource
2313
- # name schemes, such as `users/*/operations`. To override the binding, API
2314
- # services can add a binding such as `"/v1/`name=users/*`/operations"` to their
2315
- # service configuration. For backwards compatibility, the default name includes
2316
- # the operations collection id, however overriding users must ensure the name
2317
- # binding is the parent resource, without the operations collection id.
2343
+ # doesn't support this method, it returns `UNIMPLEMENTED`.
2318
2344
  # @param [String] name
2319
2345
  # The name of the operation's parent resource.
2320
2346
  # @param [String] filter
@@ -2385,13 +2411,7 @@ module Google
2385
2411
  end
2386
2412
 
2387
2413
  # Lists operations that match the specified filter in the request. If the server
2388
- # doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name`
2389
- # binding allows API services to override the binding to use different resource
2390
- # name schemes, such as `users/*/operations`. To override the binding, API
2391
- # services can add a binding such as `"/v1/`name=users/*`/operations"` to their
2392
- # service configuration. For backwards compatibility, the default name includes
2393
- # the operations collection id, however overriding users must ensure the name
2394
- # binding is the parent resource, without the operations collection id.
2414
+ # doesn't support this method, it returns `UNIMPLEMENTED`.
2395
2415
  # @param [String] name
2396
2416
  # The name of the operation's parent resource.
2397
2417
  # @param [String] filter
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.66.0
4
+ version: 0.68.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: 2023-02-19 00:00:00.000000000 Z
11
+ date: 2023-03-19 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.66.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-retail_v2/v0.68.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: []