google-apis-retail_v2alpha 0.24.0 → 0.25.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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6b82c9e252804694a1c32980bfd4aec38e363e38b1e0af362762979018fbef16
|
4
|
+
data.tar.gz: fb2dd70fdf3b7a582801c402f5c75f6065d0442360e58c93b7cf34e2b81f156a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 922a1f9b04beb5b2458c46f590af68c101700a32f331b693f3b892d2371ef91886a73e8e710e7c0ce9d65433ef847de65a1016fc8d365348c6600fcd33aa7f8f
|
7
|
+
data.tar.gz: 2a2e227d91987754a404a9b5fbccce5f0f1be960f423b385b9f63b77a072b31f0cc89a5ff54efb553a467198afe06a53426a746b16faf32d0fe5242407766956
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,10 @@
|
|
1
1
|
# Release history for google-apis-retail_v2alpha
|
2
2
|
|
3
|
+
### v0.25.0 (2022-01-13)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20220106
|
6
|
+
* Regenerated using generator version 0.4.1
|
7
|
+
|
3
8
|
### v0.24.0 (2021-12-16)
|
4
9
|
|
5
10
|
* Regenerated from discovery document revision 20211210
|
@@ -2252,12 +2252,12 @@ module Google
|
|
2252
2252
|
attr_accessor :color_info
|
2253
2253
|
|
2254
2254
|
# The condition of the product. Strongly encouraged to use the standard values: "
|
2255
|
-
# new", "refurbished", "used". A maximum of
|
2256
|
-
#
|
2257
|
-
#
|
2258
|
-
#
|
2259
|
-
#
|
2260
|
-
#
|
2255
|
+
# new", "refurbished", "used". A maximum of 1 value is allowed per Product. Each
|
2256
|
+
# value must be a UTF-8 encoded string with a length limit of 128 characters.
|
2257
|
+
# Otherwise, an INVALID_ARGUMENT error is returned. Corresponding properties:
|
2258
|
+
# Google Merchant Center property [condition](https://support.google.com/
|
2259
|
+
# merchants/answer/6324469). Schema.org property [Offer.itemCondition](https://
|
2260
|
+
# schema.org/itemCondition).
|
2261
2261
|
# Corresponds to the JSON property `conditions`
|
2262
2262
|
# @return [Array<String>]
|
2263
2263
|
attr_accessor :conditions
|
@@ -3825,76 +3825,6 @@ module Google
|
|
3825
3825
|
end
|
3826
3826
|
end
|
3827
3827
|
|
3828
|
-
# Metadata related to the progress of the SetLocalInventories operation.
|
3829
|
-
# Currently empty because there is no meaningful metadata populated from the
|
3830
|
-
# SetLocalInventories method.
|
3831
|
-
class GoogleCloudRetailV2alphaSetLocalInventoriesMetadata
|
3832
|
-
include Google::Apis::Core::Hashable
|
3833
|
-
|
3834
|
-
def initialize(**args)
|
3835
|
-
update!(**args)
|
3836
|
-
end
|
3837
|
-
|
3838
|
-
# Update properties of this object
|
3839
|
-
def update!(**args)
|
3840
|
-
end
|
3841
|
-
end
|
3842
|
-
|
3843
|
-
# Request message for SetLocalInventories method.
|
3844
|
-
class GoogleCloudRetailV2alphaSetLocalInventoriesRequest
|
3845
|
-
include Google::Apis::Core::Hashable
|
3846
|
-
|
3847
|
-
# If set to true, and the Product is not found, the local inventory will still
|
3848
|
-
# be processed and retained for at most 1 day and processed once the Product is
|
3849
|
-
# created. If set to false, a NOT_FOUND error is returned if the Product is not
|
3850
|
-
# found.
|
3851
|
-
# Corresponds to the JSON property `allowMissing`
|
3852
|
-
# @return [Boolean]
|
3853
|
-
attr_accessor :allow_missing
|
3854
|
-
alias_method :allow_missing?, :allow_missing
|
3855
|
-
|
3856
|
-
# A list of inventory information at difference places. Each place is identified
|
3857
|
-
# by its place ID. For example, if `place1` and `place2` are stored, and this
|
3858
|
-
# list is `[place1, place3]` with a fresher set timestamp, then the stored
|
3859
|
-
# places will become `place1` and `place3`. An empty list removes all existing
|
3860
|
-
# places with staler fields. At most 3000 inventories are allowed per request.
|
3861
|
-
# Corresponds to the JSON property `localInventories`
|
3862
|
-
# @return [Array<Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaLocalInventory>]
|
3863
|
-
attr_accessor :local_inventories
|
3864
|
-
|
3865
|
-
# The time when the inventory updates are issued. Used to prevent out-of-order
|
3866
|
-
# updates on local inventory fields. If not provided, the internal system time
|
3867
|
-
# will be used.
|
3868
|
-
# Corresponds to the JSON property `setTime`
|
3869
|
-
# @return [String]
|
3870
|
-
attr_accessor :set_time
|
3871
|
-
|
3872
|
-
def initialize(**args)
|
3873
|
-
update!(**args)
|
3874
|
-
end
|
3875
|
-
|
3876
|
-
# Update properties of this object
|
3877
|
-
def update!(**args)
|
3878
|
-
@allow_missing = args[:allow_missing] if args.key?(:allow_missing)
|
3879
|
-
@local_inventories = args[:local_inventories] if args.key?(:local_inventories)
|
3880
|
-
@set_time = args[:set_time] if args.key?(:set_time)
|
3881
|
-
end
|
3882
|
-
end
|
3883
|
-
|
3884
|
-
# Response of the SetLocalInventories API. Currently empty because there is no
|
3885
|
-
# meaningful response populated from the SetLocalInventories method.
|
3886
|
-
class GoogleCloudRetailV2alphaSetLocalInventoriesResponse
|
3887
|
-
include Google::Apis::Core::Hashable
|
3888
|
-
|
3889
|
-
def initialize(**args)
|
3890
|
-
update!(**args)
|
3891
|
-
end
|
3892
|
-
|
3893
|
-
# Update properties of this object
|
3894
|
-
def update!(**args)
|
3895
|
-
end
|
3896
|
-
end
|
3897
|
-
|
3898
3828
|
# UserEvent captures all metadata information Retail API needs to know about how
|
3899
3829
|
# end users interact with customers' website.
|
3900
3830
|
class GoogleCloudRetailV2alphaUserEvent
|
@@ -4021,12 +3951,12 @@ module Google
|
|
4021
3951
|
|
4022
3952
|
# The main product details related to the event. This field is required for the
|
4023
3953
|
# following event types: * `add-to-cart` * `detail-page-view` * `purchase-
|
4024
|
-
# complete` In a `search` event, this field represents the products
|
4025
|
-
# the end user on the current page (the end user may have not
|
4026
|
-
# the whole page yet). When a new page is returned to the end
|
4027
|
-
# pagination/filtering/ordering even for the same query, a new `
|
4028
|
-
# with different product_details is desired. The end user may have
|
4029
|
-
# browsing the whole page yet.
|
3954
|
+
# complete` * `search` In a `search` event, this field represents the products
|
3955
|
+
# returned to the end user on the current page (the end user may have not
|
3956
|
+
# finished browsing the whole page yet). When a new page is returned to the end
|
3957
|
+
# user, after pagination/filtering/ordering even for the same query, a new `
|
3958
|
+
# search` event with different product_details is desired. The end user may have
|
3959
|
+
# not finished browsing the whole page yet.
|
4030
3960
|
# Corresponds to the JSON property `productDetails`
|
4031
3961
|
# @return [Array<Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaProductDetail>]
|
4032
3962
|
attr_accessor :product_details
|
@@ -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.
|
19
|
+
GEM_VERSION = "0.25.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
|
-
GENERATOR_VERSION = "0.4.
|
22
|
+
GENERATOR_VERSION = "0.4.1"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20220106"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -634,24 +634,6 @@ module Google
|
|
634
634
|
include Google::Apis::Core::JsonObjectSupport
|
635
635
|
end
|
636
636
|
|
637
|
-
class GoogleCloudRetailV2alphaSetLocalInventoriesMetadata
|
638
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
639
|
-
|
640
|
-
include Google::Apis::Core::JsonObjectSupport
|
641
|
-
end
|
642
|
-
|
643
|
-
class GoogleCloudRetailV2alphaSetLocalInventoriesRequest
|
644
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
645
|
-
|
646
|
-
include Google::Apis::Core::JsonObjectSupport
|
647
|
-
end
|
648
|
-
|
649
|
-
class GoogleCloudRetailV2alphaSetLocalInventoriesResponse
|
650
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
651
|
-
|
652
|
-
include Google::Apis::Core::JsonObjectSupport
|
653
|
-
end
|
654
|
-
|
655
637
|
class GoogleCloudRetailV2alphaUserEvent
|
656
638
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
657
639
|
|
@@ -1797,28 +1779,6 @@ module Google
|
|
1797
1779
|
end
|
1798
1780
|
end
|
1799
1781
|
|
1800
|
-
class GoogleCloudRetailV2alphaSetLocalInventoriesMetadata
|
1801
|
-
# @private
|
1802
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
1803
|
-
end
|
1804
|
-
end
|
1805
|
-
|
1806
|
-
class GoogleCloudRetailV2alphaSetLocalInventoriesRequest
|
1807
|
-
# @private
|
1808
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
1809
|
-
property :allow_missing, as: 'allowMissing'
|
1810
|
-
collection :local_inventories, as: 'localInventories', class: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaLocalInventory, decorator: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaLocalInventory::Representation
|
1811
|
-
|
1812
|
-
property :set_time, as: 'setTime'
|
1813
|
-
end
|
1814
|
-
end
|
1815
|
-
|
1816
|
-
class GoogleCloudRetailV2alphaSetLocalInventoriesResponse
|
1817
|
-
# @private
|
1818
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
1819
|
-
end
|
1820
|
-
end
|
1821
|
-
|
1822
1782
|
class GoogleCloudRetailV2alphaUserEvent
|
1823
1783
|
# @private
|
1824
1784
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -821,59 +821,6 @@ module Google
|
|
821
821
|
execute_or_queue_command(command, &block)
|
822
822
|
end
|
823
823
|
|
824
|
-
# Set local inventory information for a Product with the provided list of places
|
825
|
-
# at a set timestamp. If a place in the provided list does not exist, the place
|
826
|
-
# will be created. If a place in the provided list already exists, it will be
|
827
|
-
# updated while respecting the last update timestamps of each inventory field.
|
828
|
-
# If an existing place is not in the provided list, it will be removed. This
|
829
|
-
# process is asynchronous. If the request is valid, the set operation will be
|
830
|
-
# enqueued and processed downstream. As a consequence, when a response is
|
831
|
-
# returned, set operations are not immediately manifested in the Product queried
|
832
|
-
# by GetProduct or ListProducts. When applying the set operation, this process
|
833
|
-
# takes a snapshot of currently existing places and their corresponding
|
834
|
-
# timestamps to determine the places to update. Avoid concurrent
|
835
|
-
# AddLocalInventories and RemoveLocalInventories calls, since they can introduce
|
836
|
-
# asynchronous updates that could be missed by the set operation. Local
|
837
|
-
# inventory information can only be updated with this method and other local
|
838
|
-
# inventory-specific methods. CreateProduct and UpdateProduct has no effect on
|
839
|
-
# local inventories. This feature is only available for users who have Retail
|
840
|
-
# Search enabled. Please submit a form [here](https://cloud.google.com/contact)
|
841
|
-
# to contact Cloud sales if you are interested in using Retail Search.
|
842
|
-
# @param [String] product
|
843
|
-
# Required. Full resource name of Product, such as `projects/*/locations/global/
|
844
|
-
# catalogs/default_catalog/branches/default_branch/products/some_product_id`. If
|
845
|
-
# the caller does not have permission to access the Product, regardless of
|
846
|
-
# whether or not it exists, a PERMISSION_DENIED error is returned.
|
847
|
-
# @param [Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaSetLocalInventoriesRequest] google_cloud_retail_v2alpha_set_local_inventories_request_object
|
848
|
-
# @param [String] fields
|
849
|
-
# Selector specifying which fields to include in a partial response.
|
850
|
-
# @param [String] quota_user
|
851
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
852
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
853
|
-
# @param [Google::Apis::RequestOptions] options
|
854
|
-
# Request-specific options
|
855
|
-
#
|
856
|
-
# @yield [result, err] Result & error if block supplied
|
857
|
-
# @yieldparam result [Google::Apis::RetailV2alpha::GoogleLongrunningOperation] parsed result object
|
858
|
-
# @yieldparam err [StandardError] error object if request failed
|
859
|
-
#
|
860
|
-
# @return [Google::Apis::RetailV2alpha::GoogleLongrunningOperation]
|
861
|
-
#
|
862
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
863
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
864
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
865
|
-
def set_project_location_catalog_branch_product_local_inventories(product, google_cloud_retail_v2alpha_set_local_inventories_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
866
|
-
command = make_simple_command(:post, 'v2alpha/{+product}:setLocalInventories', options)
|
867
|
-
command.request_representation = Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaSetLocalInventoriesRequest::Representation
|
868
|
-
command.request_object = google_cloud_retail_v2alpha_set_local_inventories_request_object
|
869
|
-
command.response_representation = Google::Apis::RetailV2alpha::GoogleLongrunningOperation::Representation
|
870
|
-
command.response_class = Google::Apis::RetailV2alpha::GoogleLongrunningOperation
|
871
|
-
command.params['product'] = product unless product.nil?
|
872
|
-
command.query['fields'] = fields unless fields.nil?
|
873
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
874
|
-
execute_or_queue_command(command, &block)
|
875
|
-
end
|
876
|
-
|
877
824
|
# Bulk import of processed completion dataset. Request processing may be
|
878
825
|
# synchronous. Partial updating is not supported. This feature is only available
|
879
826
|
# for users who have Retail Search enabled. Please submit a form [here](https://
|
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.
|
4
|
+
version: 0.25.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-01-
|
11
|
+
date: 2022-01-17 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.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-retail_v2alpha/v0.25.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: []
|
@@ -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.
|
78
|
+
rubygems_version: 3.3.5
|
79
79
|
signing_key:
|
80
80
|
specification_version: 4
|
81
81
|
summary: Simple REST client for Retail API V2alpha
|