google-apis-retail_v2beta 0.77.0 → 0.79.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a652c0c4727507a86ca663461e7be0ddfecc5678e12777ab349efbbd7ea4133d
|
4
|
+
data.tar.gz: 311911be408d344f7ffe94fa83a83df122950e32f23b867acb72cf49bfa82c37
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 50dd52ae9031a415d79855d81f175f760e5726e667726ba785ded269fda1bb683c6dd52b7e57175de8dcb34c61761979b8c524e54f5abff928071b2c9633151c
|
7
|
+
data.tar.gz: 608fe38fa70eb58a0812aaf8a34a6e24a4e8203902d549eccb68a1fbea3ad5a56c989ccab9ddac61c3611ff3c5f58d0b043b885dc3180d39b235706306f0d680
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,13 @@
|
|
1
1
|
# Release history for google-apis-retail_v2beta
|
2
2
|
|
3
|
+
### v0.79.0 (2023-07-02)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20230622
|
6
|
+
|
7
|
+
### v0.78.0 (2023-06-18)
|
8
|
+
|
9
|
+
* Regenerated from discovery document revision 20230609
|
10
|
+
|
3
11
|
### v0.77.0 (2023-06-04)
|
4
12
|
|
5
13
|
* Regenerated from discovery document revision 20230525
|
@@ -737,6 +737,74 @@ module Google
|
|
737
737
|
end
|
738
738
|
end
|
739
739
|
|
740
|
+
# Metadata related to the progress of the PurgeProducts operation. This will be
|
741
|
+
# returned by the google.longrunning.Operation.metadata field.
|
742
|
+
class GoogleCloudRetailV2PurgeProductsMetadata
|
743
|
+
include Google::Apis::Core::Hashable
|
744
|
+
|
745
|
+
# Operation create time.
|
746
|
+
# Corresponds to the JSON property `createTime`
|
747
|
+
# @return [String]
|
748
|
+
attr_accessor :create_time
|
749
|
+
|
750
|
+
# Count of entries that encountered errors while processing.
|
751
|
+
# Corresponds to the JSON property `failureCount`
|
752
|
+
# @return [Fixnum]
|
753
|
+
attr_accessor :failure_count
|
754
|
+
|
755
|
+
# Count of entries that were deleted successfully.
|
756
|
+
# Corresponds to the JSON property `successCount`
|
757
|
+
# @return [Fixnum]
|
758
|
+
attr_accessor :success_count
|
759
|
+
|
760
|
+
# Operation last update time. If the operation is done, this is also the finish
|
761
|
+
# time.
|
762
|
+
# Corresponds to the JSON property `updateTime`
|
763
|
+
# @return [String]
|
764
|
+
attr_accessor :update_time
|
765
|
+
|
766
|
+
def initialize(**args)
|
767
|
+
update!(**args)
|
768
|
+
end
|
769
|
+
|
770
|
+
# Update properties of this object
|
771
|
+
def update!(**args)
|
772
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
773
|
+
@failure_count = args[:failure_count] if args.key?(:failure_count)
|
774
|
+
@success_count = args[:success_count] if args.key?(:success_count)
|
775
|
+
@update_time = args[:update_time] if args.key?(:update_time)
|
776
|
+
end
|
777
|
+
end
|
778
|
+
|
779
|
+
# Response of the PurgeProductsRequest. If the long running operation is
|
780
|
+
# successfully done, then this message is returned by the google.longrunning.
|
781
|
+
# Operations.response field.
|
782
|
+
class GoogleCloudRetailV2PurgeProductsResponse
|
783
|
+
include Google::Apis::Core::Hashable
|
784
|
+
|
785
|
+
# The total count of products purged as a result of the operation.
|
786
|
+
# Corresponds to the JSON property `purgeCount`
|
787
|
+
# @return [Fixnum]
|
788
|
+
attr_accessor :purge_count
|
789
|
+
|
790
|
+
# A sample of the product names that will be deleted. Only populated if `force`
|
791
|
+
# is set to false. A max of 100 names will be returned and the names are chosen
|
792
|
+
# at random.
|
793
|
+
# Corresponds to the JSON property `purgeSample`
|
794
|
+
# @return [Array<String>]
|
795
|
+
attr_accessor :purge_sample
|
796
|
+
|
797
|
+
def initialize(**args)
|
798
|
+
update!(**args)
|
799
|
+
end
|
800
|
+
|
801
|
+
# Update properties of this object
|
802
|
+
def update!(**args)
|
803
|
+
@purge_count = args[:purge_count] if args.key?(:purge_count)
|
804
|
+
@purge_sample = args[:purge_sample] if args.key?(:purge_sample)
|
805
|
+
end
|
806
|
+
end
|
807
|
+
|
740
808
|
# Response of the PurgeUserEventsRequest. If the long running operation is
|
741
809
|
# successfully done, then this message is returned by the google.longrunning.
|
742
810
|
# Operations.response field.
|
@@ -4894,11 +4962,12 @@ module Google
|
|
4894
4962
|
# @return [String]
|
4895
4963
|
attr_accessor :available_time
|
4896
4964
|
|
4897
|
-
# The brands of the product. A maximum of 30 brands are allowed
|
4898
|
-
# be a UTF-8 encoded string with a
|
4899
|
-
#
|
4900
|
-
# Merchant Center property [brand](
|
4901
|
-
# 6324351). Schema.org property [
|
4965
|
+
# The brands of the product. A maximum of 30 brands are allowed unless
|
4966
|
+
# overridden via pantheon UI. Each brand must be a UTF-8 encoded string with a
|
4967
|
+
# length limit of 1,000 characters. Otherwise, an INVALID_ARGUMENT error is
|
4968
|
+
# returned. Corresponding properties: Google Merchant Center property [brand](
|
4969
|
+
# https://support.google.com/merchants/answer/6324351). Schema.org property [
|
4970
|
+
# Product.brand](https://schema.org/brand).
|
4902
4971
|
# Corresponds to the JSON property `brands`
|
4903
4972
|
# @return [Array<String>]
|
4904
4973
|
attr_accessor :brands
|
@@ -5441,6 +5510,115 @@ module Google
|
|
5441
5510
|
end
|
5442
5511
|
end
|
5443
5512
|
|
5513
|
+
# Metadata related to the progress of the PurgeProducts operation. This will be
|
5514
|
+
# returned by the google.longrunning.Operation.metadata field.
|
5515
|
+
class GoogleCloudRetailV2betaPurgeProductsMetadata
|
5516
|
+
include Google::Apis::Core::Hashable
|
5517
|
+
|
5518
|
+
# Operation create time.
|
5519
|
+
# Corresponds to the JSON property `createTime`
|
5520
|
+
# @return [String]
|
5521
|
+
attr_accessor :create_time
|
5522
|
+
|
5523
|
+
# Count of entries that encountered errors while processing.
|
5524
|
+
# Corresponds to the JSON property `failureCount`
|
5525
|
+
# @return [Fixnum]
|
5526
|
+
attr_accessor :failure_count
|
5527
|
+
|
5528
|
+
# Count of entries that were deleted successfully.
|
5529
|
+
# Corresponds to the JSON property `successCount`
|
5530
|
+
# @return [Fixnum]
|
5531
|
+
attr_accessor :success_count
|
5532
|
+
|
5533
|
+
# Operation last update time. If the operation is done, this is also the finish
|
5534
|
+
# time.
|
5535
|
+
# Corresponds to the JSON property `updateTime`
|
5536
|
+
# @return [String]
|
5537
|
+
attr_accessor :update_time
|
5538
|
+
|
5539
|
+
def initialize(**args)
|
5540
|
+
update!(**args)
|
5541
|
+
end
|
5542
|
+
|
5543
|
+
# Update properties of this object
|
5544
|
+
def update!(**args)
|
5545
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
5546
|
+
@failure_count = args[:failure_count] if args.key?(:failure_count)
|
5547
|
+
@success_count = args[:success_count] if args.key?(:success_count)
|
5548
|
+
@update_time = args[:update_time] if args.key?(:update_time)
|
5549
|
+
end
|
5550
|
+
end
|
5551
|
+
|
5552
|
+
# Request message for PurgeProducts method.
|
5553
|
+
class GoogleCloudRetailV2betaPurgeProductsRequest
|
5554
|
+
include Google::Apis::Core::Hashable
|
5555
|
+
|
5556
|
+
# Required. The filter string to specify the products to be deleted with a
|
5557
|
+
# length limit of 5,000 characters. Empty string filter is not allowed. "*"
|
5558
|
+
# implies delete all items in a branch. The eligible fields for filtering are: *
|
5559
|
+
# `availability`: Double quoted Product.availability string. * `create_time` :
|
5560
|
+
# in ISO 8601 "zulu" format. Supported syntax: * Comparators (">", "<", ">=", "<=
|
5561
|
+
# ", "="). Examples: * create_time <= "2015-02-13T17:05:46Z" * availability = "
|
5562
|
+
# IN_STOCK" * Conjunctions ("AND") Examples: * create_time <= "2015-02-13T17:05:
|
5563
|
+
# 46Z" AND availability = "PREORDER" * Disjunctions ("OR") Examples: *
|
5564
|
+
# create_time <= "2015-02-13T17:05:46Z" OR availability = "IN_STOCK" * Can
|
5565
|
+
# support nested queries. Examples: * (create_time <= "2015-02-13T17:05:46Z" AND
|
5566
|
+
# availability = "PREORDER") OR (create_time >= "2015-02-14T13:03:32Z" AND
|
5567
|
+
# availability = "IN_STOCK") * Filter Limits: * Filter should not contain more
|
5568
|
+
# than 6 conditions. * Max nesting depth should not exceed 2 levels. Examples
|
5569
|
+
# queries: * Delete back order products created before a timestamp. create_time <
|
5570
|
+
# = "2015-02-13T17:05:46Z" OR availability = "BACKORDER"
|
5571
|
+
# Corresponds to the JSON property `filter`
|
5572
|
+
# @return [String]
|
5573
|
+
attr_accessor :filter
|
5574
|
+
|
5575
|
+
# Actually perform the purge. If `force` is set to false, the method will return
|
5576
|
+
# the expected purge count without deleting any products.
|
5577
|
+
# Corresponds to the JSON property `force`
|
5578
|
+
# @return [Boolean]
|
5579
|
+
attr_accessor :force
|
5580
|
+
alias_method :force?, :force
|
5581
|
+
|
5582
|
+
def initialize(**args)
|
5583
|
+
update!(**args)
|
5584
|
+
end
|
5585
|
+
|
5586
|
+
# Update properties of this object
|
5587
|
+
def update!(**args)
|
5588
|
+
@filter = args[:filter] if args.key?(:filter)
|
5589
|
+
@force = args[:force] if args.key?(:force)
|
5590
|
+
end
|
5591
|
+
end
|
5592
|
+
|
5593
|
+
# Response of the PurgeProductsRequest. If the long running operation is
|
5594
|
+
# successfully done, then this message is returned by the google.longrunning.
|
5595
|
+
# Operations.response field.
|
5596
|
+
class GoogleCloudRetailV2betaPurgeProductsResponse
|
5597
|
+
include Google::Apis::Core::Hashable
|
5598
|
+
|
5599
|
+
# The total count of products purged as a result of the operation.
|
5600
|
+
# Corresponds to the JSON property `purgeCount`
|
5601
|
+
# @return [Fixnum]
|
5602
|
+
attr_accessor :purge_count
|
5603
|
+
|
5604
|
+
# A sample of the product names that will be deleted. Only populated if `force`
|
5605
|
+
# is set to false. A max of 100 names will be returned and the names are chosen
|
5606
|
+
# at random.
|
5607
|
+
# Corresponds to the JSON property `purgeSample`
|
5608
|
+
# @return [Array<String>]
|
5609
|
+
attr_accessor :purge_sample
|
5610
|
+
|
5611
|
+
def initialize(**args)
|
5612
|
+
update!(**args)
|
5613
|
+
end
|
5614
|
+
|
5615
|
+
# Update properties of this object
|
5616
|
+
def update!(**args)
|
5617
|
+
@purge_count = args[:purge_count] if args.key?(:purge_count)
|
5618
|
+
@purge_sample = args[:purge_sample] if args.key?(:purge_sample)
|
5619
|
+
end
|
5620
|
+
end
|
5621
|
+
|
5444
5622
|
# Request message for PurgeUserEvents method.
|
5445
5623
|
class GoogleCloudRetailV2betaPurgeUserEventsRequest
|
5446
5624
|
include Google::Apis::Core::Hashable
|
@@ -16,13 +16,13 @@ module Google
|
|
16
16
|
module Apis
|
17
17
|
module RetailV2beta
|
18
18
|
# Version of the google-apis-retail_v2beta gem
|
19
|
-
GEM_VERSION = "0.
|
19
|
+
GEM_VERSION = "0.79.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 = "
|
25
|
+
REVISION = "20230622"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -154,6 +154,18 @@ module Google
|
|
154
154
|
include Google::Apis::Core::JsonObjectSupport
|
155
155
|
end
|
156
156
|
|
157
|
+
class GoogleCloudRetailV2PurgeProductsMetadata
|
158
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
159
|
+
|
160
|
+
include Google::Apis::Core::JsonObjectSupport
|
161
|
+
end
|
162
|
+
|
163
|
+
class GoogleCloudRetailV2PurgeProductsResponse
|
164
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
165
|
+
|
166
|
+
include Google::Apis::Core::JsonObjectSupport
|
167
|
+
end
|
168
|
+
|
157
169
|
class GoogleCloudRetailV2PurgeUserEventsResponse
|
158
170
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
159
171
|
|
@@ -964,6 +976,24 @@ module Google
|
|
964
976
|
include Google::Apis::Core::JsonObjectSupport
|
965
977
|
end
|
966
978
|
|
979
|
+
class GoogleCloudRetailV2betaPurgeProductsMetadata
|
980
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
981
|
+
|
982
|
+
include Google::Apis::Core::JsonObjectSupport
|
983
|
+
end
|
984
|
+
|
985
|
+
class GoogleCloudRetailV2betaPurgeProductsRequest
|
986
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
987
|
+
|
988
|
+
include Google::Apis::Core::JsonObjectSupport
|
989
|
+
end
|
990
|
+
|
991
|
+
class GoogleCloudRetailV2betaPurgeProductsResponse
|
992
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
993
|
+
|
994
|
+
include Google::Apis::Core::JsonObjectSupport
|
995
|
+
end
|
996
|
+
|
967
997
|
class GoogleCloudRetailV2betaPurgeUserEventsRequest
|
968
998
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
969
999
|
|
@@ -1506,6 +1536,24 @@ module Google
|
|
1506
1536
|
end
|
1507
1537
|
end
|
1508
1538
|
|
1539
|
+
class GoogleCloudRetailV2PurgeProductsMetadata
|
1540
|
+
# @private
|
1541
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1542
|
+
property :create_time, as: 'createTime'
|
1543
|
+
property :failure_count, :numeric_string => true, as: 'failureCount'
|
1544
|
+
property :success_count, :numeric_string => true, as: 'successCount'
|
1545
|
+
property :update_time, as: 'updateTime'
|
1546
|
+
end
|
1547
|
+
end
|
1548
|
+
|
1549
|
+
class GoogleCloudRetailV2PurgeProductsResponse
|
1550
|
+
# @private
|
1551
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1552
|
+
property :purge_count, :numeric_string => true, as: 'purgeCount'
|
1553
|
+
collection :purge_sample, as: 'purgeSample'
|
1554
|
+
end
|
1555
|
+
end
|
1556
|
+
|
1509
1557
|
class GoogleCloudRetailV2PurgeUserEventsResponse
|
1510
1558
|
# @private
|
1511
1559
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -2754,6 +2802,32 @@ module Google
|
|
2754
2802
|
end
|
2755
2803
|
end
|
2756
2804
|
|
2805
|
+
class GoogleCloudRetailV2betaPurgeProductsMetadata
|
2806
|
+
# @private
|
2807
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
2808
|
+
property :create_time, as: 'createTime'
|
2809
|
+
property :failure_count, :numeric_string => true, as: 'failureCount'
|
2810
|
+
property :success_count, :numeric_string => true, as: 'successCount'
|
2811
|
+
property :update_time, as: 'updateTime'
|
2812
|
+
end
|
2813
|
+
end
|
2814
|
+
|
2815
|
+
class GoogleCloudRetailV2betaPurgeProductsRequest
|
2816
|
+
# @private
|
2817
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
2818
|
+
property :filter, as: 'filter'
|
2819
|
+
property :force, as: 'force'
|
2820
|
+
end
|
2821
|
+
end
|
2822
|
+
|
2823
|
+
class GoogleCloudRetailV2betaPurgeProductsResponse
|
2824
|
+
# @private
|
2825
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
2826
|
+
property :purge_count, :numeric_string => true, as: 'purgeCount'
|
2827
|
+
collection :purge_sample, as: 'purgeSample'
|
2828
|
+
end
|
2829
|
+
end
|
2830
|
+
|
2757
2831
|
class GoogleCloudRetailV2betaPurgeUserEventsRequest
|
2758
2832
|
# @private
|
2759
2833
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -976,6 +976,48 @@ module Google
|
|
976
976
|
execute_or_queue_command(command, &block)
|
977
977
|
end
|
978
978
|
|
979
|
+
# Permanently deletes all selected Products under a branch. This process is
|
980
|
+
# asynchronous. If the request is valid, the removal will be enqueued and
|
981
|
+
# processed offline. Depending on the number of Products, this operation could
|
982
|
+
# take hours to complete. Before the operation completes, some Products may
|
983
|
+
# still be returned by ProductService.GetProduct or ProductService.ListProducts.
|
984
|
+
# Depending on the number of Products, this operation could take hours to
|
985
|
+
# complete. To get a sample of Products that would be deleted, set
|
986
|
+
# PurgeProductsRequest.force to false.
|
987
|
+
# @param [String] parent
|
988
|
+
# Required. The resource name of the branch under which the products are created.
|
989
|
+
# The format is `projects/$`projectId`/locations/global/catalogs/$`catalogId`/
|
990
|
+
# branches/$`branchId``
|
991
|
+
# @param [Google::Apis::RetailV2beta::GoogleCloudRetailV2betaPurgeProductsRequest] google_cloud_retail_v2beta_purge_products_request_object
|
992
|
+
# @param [String] fields
|
993
|
+
# Selector specifying which fields to include in a partial response.
|
994
|
+
# @param [String] quota_user
|
995
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
996
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
997
|
+
# @param [Google::Apis::RequestOptions] options
|
998
|
+
# Request-specific options
|
999
|
+
#
|
1000
|
+
# @yield [result, err] Result & error if block supplied
|
1001
|
+
# @yieldparam result [Google::Apis::RetailV2beta::GoogleLongrunningOperation] parsed result object
|
1002
|
+
# @yieldparam err [StandardError] error object if request failed
|
1003
|
+
#
|
1004
|
+
# @return [Google::Apis::RetailV2beta::GoogleLongrunningOperation]
|
1005
|
+
#
|
1006
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1007
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1008
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1009
|
+
def purge_project_location_catalog_branch_product(parent, google_cloud_retail_v2beta_purge_products_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
1010
|
+
command = make_simple_command(:post, 'v2beta/{+parent}/products:purge', options)
|
1011
|
+
command.request_representation = Google::Apis::RetailV2beta::GoogleCloudRetailV2betaPurgeProductsRequest::Representation
|
1012
|
+
command.request_object = google_cloud_retail_v2beta_purge_products_request_object
|
1013
|
+
command.response_representation = Google::Apis::RetailV2beta::GoogleLongrunningOperation::Representation
|
1014
|
+
command.response_class = Google::Apis::RetailV2beta::GoogleLongrunningOperation
|
1015
|
+
command.params['parent'] = parent unless parent.nil?
|
1016
|
+
command.query['fields'] = fields unless fields.nil?
|
1017
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1018
|
+
execute_or_queue_command(command, &block)
|
1019
|
+
end
|
1020
|
+
|
979
1021
|
# We recommend that you use the ProductService.RemoveLocalInventories method
|
980
1022
|
# instead of the ProductService.RemoveFulfillmentPlaces method. ProductService.
|
981
1023
|
# RemoveLocalInventories achieves the same results but provides more fine-
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-apis-retail_v2beta
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.79.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-
|
11
|
+
date: 2023-07-02 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_v2beta/CHANGELOG.md
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-retail_v2beta/v0.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-retail_v2beta/v0.79.0
|
62
62
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-retail_v2beta
|
63
63
|
post_install_message:
|
64
64
|
rdoc_options: []
|