google-apis-retail_v2 0.75.0 → 0.77.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: ce77742f21242376de1522ac6ba974cb01c5f57d788bf4332f60585696c1ca7d
|
4
|
+
data.tar.gz: a43d3c9ecb8383fd5460dbe78f031665b7267441c562e8aa3a8979fb63a92714
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 348cbe7902600859e5680a534102177cc15daa090bb043e18af9745cbe089c826b3fcc31e5b97144d52c03f9ff9f461a5d93865b8653c9c32c2fc82c3d35a2d1
|
7
|
+
data.tar.gz: 4e36fd2ca41300db13a03aae64180be4bc0def90ff32ace9cdb2c187ffd1dec9e4d981d6ae5d357d9cea57e541fdb2fae8b8d68ae0d84a731efa0c72a45bee56
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,13 @@
|
|
1
1
|
# Release history for google-apis-retail_v2
|
2
2
|
|
3
|
+
### v0.77.0 (2023-07-02)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20230622
|
6
|
+
|
7
|
+
### v0.76.0 (2023-06-18)
|
8
|
+
|
9
|
+
* Regenerated from discovery document revision 20230609
|
10
|
+
|
3
11
|
### v0.75.0 (2023-06-04)
|
4
12
|
|
5
13
|
* Regenerated from discovery document revision 20230525
|
@@ -2513,11 +2513,12 @@ module Google
|
|
2513
2513
|
# @return [String]
|
2514
2514
|
attr_accessor :available_time
|
2515
2515
|
|
2516
|
-
# The brands of the product. A maximum of 30 brands are allowed
|
2517
|
-
# be a UTF-8 encoded string with a
|
2518
|
-
#
|
2519
|
-
# Merchant Center property [brand](
|
2520
|
-
# 6324351). Schema.org property [
|
2516
|
+
# The brands of the product. A maximum of 30 brands are allowed unless
|
2517
|
+
# overridden via pantheon UI. Each brand must be a UTF-8 encoded string with a
|
2518
|
+
# length limit of 1,000 characters. Otherwise, an INVALID_ARGUMENT error is
|
2519
|
+
# returned. Corresponding properties: Google Merchant Center property [brand](
|
2520
|
+
# https://support.google.com/merchants/answer/6324351). Schema.org property [
|
2521
|
+
# Product.brand](https://schema.org/brand).
|
2521
2522
|
# Corresponds to the JSON property `brands`
|
2522
2523
|
# @return [Array<String>]
|
2523
2524
|
attr_accessor :brands
|
@@ -3060,6 +3061,115 @@ module Google
|
|
3060
3061
|
end
|
3061
3062
|
end
|
3062
3063
|
|
3064
|
+
# Metadata related to the progress of the PurgeProducts operation. This will be
|
3065
|
+
# returned by the google.longrunning.Operation.metadata field.
|
3066
|
+
class GoogleCloudRetailV2PurgeProductsMetadata
|
3067
|
+
include Google::Apis::Core::Hashable
|
3068
|
+
|
3069
|
+
# Operation create time.
|
3070
|
+
# Corresponds to the JSON property `createTime`
|
3071
|
+
# @return [String]
|
3072
|
+
attr_accessor :create_time
|
3073
|
+
|
3074
|
+
# Count of entries that encountered errors while processing.
|
3075
|
+
# Corresponds to the JSON property `failureCount`
|
3076
|
+
# @return [Fixnum]
|
3077
|
+
attr_accessor :failure_count
|
3078
|
+
|
3079
|
+
# Count of entries that were deleted successfully.
|
3080
|
+
# Corresponds to the JSON property `successCount`
|
3081
|
+
# @return [Fixnum]
|
3082
|
+
attr_accessor :success_count
|
3083
|
+
|
3084
|
+
# Operation last update time. If the operation is done, this is also the finish
|
3085
|
+
# time.
|
3086
|
+
# Corresponds to the JSON property `updateTime`
|
3087
|
+
# @return [String]
|
3088
|
+
attr_accessor :update_time
|
3089
|
+
|
3090
|
+
def initialize(**args)
|
3091
|
+
update!(**args)
|
3092
|
+
end
|
3093
|
+
|
3094
|
+
# Update properties of this object
|
3095
|
+
def update!(**args)
|
3096
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
3097
|
+
@failure_count = args[:failure_count] if args.key?(:failure_count)
|
3098
|
+
@success_count = args[:success_count] if args.key?(:success_count)
|
3099
|
+
@update_time = args[:update_time] if args.key?(:update_time)
|
3100
|
+
end
|
3101
|
+
end
|
3102
|
+
|
3103
|
+
# Request message for PurgeProducts method.
|
3104
|
+
class GoogleCloudRetailV2PurgeProductsRequest
|
3105
|
+
include Google::Apis::Core::Hashable
|
3106
|
+
|
3107
|
+
# Required. The filter string to specify the products to be deleted with a
|
3108
|
+
# length limit of 5,000 characters. Empty string filter is not allowed. "*"
|
3109
|
+
# implies delete all items in a branch. The eligible fields for filtering are: *
|
3110
|
+
# `availability`: Double quoted Product.availability string. * `create_time` :
|
3111
|
+
# in ISO 8601 "zulu" format. Supported syntax: * Comparators (">", "<", ">=", "<=
|
3112
|
+
# ", "="). Examples: * create_time <= "2015-02-13T17:05:46Z" * availability = "
|
3113
|
+
# IN_STOCK" * Conjunctions ("AND") Examples: * create_time <= "2015-02-13T17:05:
|
3114
|
+
# 46Z" AND availability = "PREORDER" * Disjunctions ("OR") Examples: *
|
3115
|
+
# create_time <= "2015-02-13T17:05:46Z" OR availability = "IN_STOCK" * Can
|
3116
|
+
# support nested queries. Examples: * (create_time <= "2015-02-13T17:05:46Z" AND
|
3117
|
+
# availability = "PREORDER") OR (create_time >= "2015-02-14T13:03:32Z" AND
|
3118
|
+
# availability = "IN_STOCK") * Filter Limits: * Filter should not contain more
|
3119
|
+
# than 6 conditions. * Max nesting depth should not exceed 2 levels. Examples
|
3120
|
+
# queries: * Delete back order products created before a timestamp. create_time <
|
3121
|
+
# = "2015-02-13T17:05:46Z" OR availability = "BACKORDER"
|
3122
|
+
# Corresponds to the JSON property `filter`
|
3123
|
+
# @return [String]
|
3124
|
+
attr_accessor :filter
|
3125
|
+
|
3126
|
+
# Actually perform the purge. If `force` is set to false, the method will return
|
3127
|
+
# the expected purge count without deleting any products.
|
3128
|
+
# Corresponds to the JSON property `force`
|
3129
|
+
# @return [Boolean]
|
3130
|
+
attr_accessor :force
|
3131
|
+
alias_method :force?, :force
|
3132
|
+
|
3133
|
+
def initialize(**args)
|
3134
|
+
update!(**args)
|
3135
|
+
end
|
3136
|
+
|
3137
|
+
# Update properties of this object
|
3138
|
+
def update!(**args)
|
3139
|
+
@filter = args[:filter] if args.key?(:filter)
|
3140
|
+
@force = args[:force] if args.key?(:force)
|
3141
|
+
end
|
3142
|
+
end
|
3143
|
+
|
3144
|
+
# Response of the PurgeProductsRequest. If the long running operation is
|
3145
|
+
# successfully done, then this message is returned by the google.longrunning.
|
3146
|
+
# Operations.response field.
|
3147
|
+
class GoogleCloudRetailV2PurgeProductsResponse
|
3148
|
+
include Google::Apis::Core::Hashable
|
3149
|
+
|
3150
|
+
# The total count of products purged as a result of the operation.
|
3151
|
+
# Corresponds to the JSON property `purgeCount`
|
3152
|
+
# @return [Fixnum]
|
3153
|
+
attr_accessor :purge_count
|
3154
|
+
|
3155
|
+
# A sample of the product names that will be deleted. Only populated if `force`
|
3156
|
+
# is set to false. A max of 100 names will be returned and the names are chosen
|
3157
|
+
# at random.
|
3158
|
+
# Corresponds to the JSON property `purgeSample`
|
3159
|
+
# @return [Array<String>]
|
3160
|
+
attr_accessor :purge_sample
|
3161
|
+
|
3162
|
+
def initialize(**args)
|
3163
|
+
update!(**args)
|
3164
|
+
end
|
3165
|
+
|
3166
|
+
# Update properties of this object
|
3167
|
+
def update!(**args)
|
3168
|
+
@purge_count = args[:purge_count] if args.key?(:purge_count)
|
3169
|
+
@purge_sample = args[:purge_sample] if args.key?(:purge_sample)
|
3170
|
+
end
|
3171
|
+
end
|
3172
|
+
|
3063
3173
|
# Request message for PurgeUserEvents method.
|
3064
3174
|
class GoogleCloudRetailV2PurgeUserEventsRequest
|
3065
3175
|
include Google::Apis::Core::Hashable
|
@@ -7315,6 +7425,74 @@ module Google
|
|
7315
7425
|
end
|
7316
7426
|
end
|
7317
7427
|
|
7428
|
+
# Metadata related to the progress of the PurgeProducts operation. This will be
|
7429
|
+
# returned by the google.longrunning.Operation.metadata field.
|
7430
|
+
class GoogleCloudRetailV2betaPurgeProductsMetadata
|
7431
|
+
include Google::Apis::Core::Hashable
|
7432
|
+
|
7433
|
+
# Operation create time.
|
7434
|
+
# Corresponds to the JSON property `createTime`
|
7435
|
+
# @return [String]
|
7436
|
+
attr_accessor :create_time
|
7437
|
+
|
7438
|
+
# Count of entries that encountered errors while processing.
|
7439
|
+
# Corresponds to the JSON property `failureCount`
|
7440
|
+
# @return [Fixnum]
|
7441
|
+
attr_accessor :failure_count
|
7442
|
+
|
7443
|
+
# Count of entries that were deleted successfully.
|
7444
|
+
# Corresponds to the JSON property `successCount`
|
7445
|
+
# @return [Fixnum]
|
7446
|
+
attr_accessor :success_count
|
7447
|
+
|
7448
|
+
# Operation last update time. If the operation is done, this is also the finish
|
7449
|
+
# time.
|
7450
|
+
# Corresponds to the JSON property `updateTime`
|
7451
|
+
# @return [String]
|
7452
|
+
attr_accessor :update_time
|
7453
|
+
|
7454
|
+
def initialize(**args)
|
7455
|
+
update!(**args)
|
7456
|
+
end
|
7457
|
+
|
7458
|
+
# Update properties of this object
|
7459
|
+
def update!(**args)
|
7460
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
7461
|
+
@failure_count = args[:failure_count] if args.key?(:failure_count)
|
7462
|
+
@success_count = args[:success_count] if args.key?(:success_count)
|
7463
|
+
@update_time = args[:update_time] if args.key?(:update_time)
|
7464
|
+
end
|
7465
|
+
end
|
7466
|
+
|
7467
|
+
# Response of the PurgeProductsRequest. If the long running operation is
|
7468
|
+
# successfully done, then this message is returned by the google.longrunning.
|
7469
|
+
# Operations.response field.
|
7470
|
+
class GoogleCloudRetailV2betaPurgeProductsResponse
|
7471
|
+
include Google::Apis::Core::Hashable
|
7472
|
+
|
7473
|
+
# The total count of products purged as a result of the operation.
|
7474
|
+
# Corresponds to the JSON property `purgeCount`
|
7475
|
+
# @return [Fixnum]
|
7476
|
+
attr_accessor :purge_count
|
7477
|
+
|
7478
|
+
# A sample of the product names that will be deleted. Only populated if `force`
|
7479
|
+
# is set to false. A max of 100 names will be returned and the names are chosen
|
7480
|
+
# at random.
|
7481
|
+
# Corresponds to the JSON property `purgeSample`
|
7482
|
+
# @return [Array<String>]
|
7483
|
+
attr_accessor :purge_sample
|
7484
|
+
|
7485
|
+
def initialize(**args)
|
7486
|
+
update!(**args)
|
7487
|
+
end
|
7488
|
+
|
7489
|
+
# Update properties of this object
|
7490
|
+
def update!(**args)
|
7491
|
+
@purge_count = args[:purge_count] if args.key?(:purge_count)
|
7492
|
+
@purge_sample = args[:purge_sample] if args.key?(:purge_sample)
|
7493
|
+
end
|
7494
|
+
end
|
7495
|
+
|
7318
7496
|
# Response of the PurgeUserEventsRequest. If the long running operation is
|
7319
7497
|
# successfully done, then this message is returned by the google.longrunning.
|
7320
7498
|
# Operations.response field.
|
@@ -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.
|
19
|
+
GEM_VERSION = "0.77.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
|
@@ -454,6 +454,24 @@ module Google
|
|
454
454
|
include Google::Apis::Core::JsonObjectSupport
|
455
455
|
end
|
456
456
|
|
457
|
+
class GoogleCloudRetailV2PurgeProductsMetadata
|
458
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
459
|
+
|
460
|
+
include Google::Apis::Core::JsonObjectSupport
|
461
|
+
end
|
462
|
+
|
463
|
+
class GoogleCloudRetailV2PurgeProductsRequest
|
464
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
465
|
+
|
466
|
+
include Google::Apis::Core::JsonObjectSupport
|
467
|
+
end
|
468
|
+
|
469
|
+
class GoogleCloudRetailV2PurgeProductsResponse
|
470
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
471
|
+
|
472
|
+
include Google::Apis::Core::JsonObjectSupport
|
473
|
+
end
|
474
|
+
|
457
475
|
class GoogleCloudRetailV2PurgeUserEventsRequest
|
458
476
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
459
477
|
|
@@ -1174,6 +1192,18 @@ module Google
|
|
1174
1192
|
include Google::Apis::Core::JsonObjectSupport
|
1175
1193
|
end
|
1176
1194
|
|
1195
|
+
class GoogleCloudRetailV2betaPurgeProductsMetadata
|
1196
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
1197
|
+
|
1198
|
+
include Google::Apis::Core::JsonObjectSupport
|
1199
|
+
end
|
1200
|
+
|
1201
|
+
class GoogleCloudRetailV2betaPurgeProductsResponse
|
1202
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
1203
|
+
|
1204
|
+
include Google::Apis::Core::JsonObjectSupport
|
1205
|
+
end
|
1206
|
+
|
1177
1207
|
class GoogleCloudRetailV2betaPurgeUserEventsResponse
|
1178
1208
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
1179
1209
|
|
@@ -2007,6 +2037,32 @@ module Google
|
|
2007
2037
|
end
|
2008
2038
|
end
|
2009
2039
|
|
2040
|
+
class GoogleCloudRetailV2PurgeProductsMetadata
|
2041
|
+
# @private
|
2042
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
2043
|
+
property :create_time, as: 'createTime'
|
2044
|
+
property :failure_count, :numeric_string => true, as: 'failureCount'
|
2045
|
+
property :success_count, :numeric_string => true, as: 'successCount'
|
2046
|
+
property :update_time, as: 'updateTime'
|
2047
|
+
end
|
2048
|
+
end
|
2049
|
+
|
2050
|
+
class GoogleCloudRetailV2PurgeProductsRequest
|
2051
|
+
# @private
|
2052
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
2053
|
+
property :filter, as: 'filter'
|
2054
|
+
property :force, as: 'force'
|
2055
|
+
end
|
2056
|
+
end
|
2057
|
+
|
2058
|
+
class GoogleCloudRetailV2PurgeProductsResponse
|
2059
|
+
# @private
|
2060
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
2061
|
+
property :purge_count, :numeric_string => true, as: 'purgeCount'
|
2062
|
+
collection :purge_sample, as: 'purgeSample'
|
2063
|
+
end
|
2064
|
+
end
|
2065
|
+
|
2010
2066
|
class GoogleCloudRetailV2PurgeUserEventsRequest
|
2011
2067
|
# @private
|
2012
2068
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -3121,6 +3177,24 @@ module Google
|
|
3121
3177
|
end
|
3122
3178
|
end
|
3123
3179
|
|
3180
|
+
class GoogleCloudRetailV2betaPurgeProductsMetadata
|
3181
|
+
# @private
|
3182
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
3183
|
+
property :create_time, as: 'createTime'
|
3184
|
+
property :failure_count, :numeric_string => true, as: 'failureCount'
|
3185
|
+
property :success_count, :numeric_string => true, as: 'successCount'
|
3186
|
+
property :update_time, as: 'updateTime'
|
3187
|
+
end
|
3188
|
+
end
|
3189
|
+
|
3190
|
+
class GoogleCloudRetailV2betaPurgeProductsResponse
|
3191
|
+
# @private
|
3192
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
3193
|
+
property :purge_count, :numeric_string => true, as: 'purgeCount'
|
3194
|
+
collection :purge_sample, as: 'purgeSample'
|
3195
|
+
end
|
3196
|
+
end
|
3197
|
+
|
3124
3198
|
class GoogleCloudRetailV2betaPurgeUserEventsResponse
|
3125
3199
|
# @private
|
3126
3200
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -941,6 +941,48 @@ module Google
|
|
941
941
|
execute_or_queue_command(command, &block)
|
942
942
|
end
|
943
943
|
|
944
|
+
# Permanently deletes all selected Products under a branch. This process is
|
945
|
+
# asynchronous. If the request is valid, the removal will be enqueued and
|
946
|
+
# processed offline. Depending on the number of Products, this operation could
|
947
|
+
# take hours to complete. Before the operation completes, some Products may
|
948
|
+
# still be returned by ProductService.GetProduct or ProductService.ListProducts.
|
949
|
+
# Depending on the number of Products, this operation could take hours to
|
950
|
+
# complete. To get a sample of Products that would be deleted, set
|
951
|
+
# PurgeProductsRequest.force to false.
|
952
|
+
# @param [String] parent
|
953
|
+
# Required. The resource name of the branch under which the products are created.
|
954
|
+
# The format is `projects/$`projectId`/locations/global/catalogs/$`catalogId`/
|
955
|
+
# branches/$`branchId``
|
956
|
+
# @param [Google::Apis::RetailV2::GoogleCloudRetailV2PurgeProductsRequest] google_cloud_retail_v2_purge_products_request_object
|
957
|
+
# @param [String] fields
|
958
|
+
# Selector specifying which fields to include in a partial response.
|
959
|
+
# @param [String] quota_user
|
960
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
961
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
962
|
+
# @param [Google::Apis::RequestOptions] options
|
963
|
+
# Request-specific options
|
964
|
+
#
|
965
|
+
# @yield [result, err] Result & error if block supplied
|
966
|
+
# @yieldparam result [Google::Apis::RetailV2::GoogleLongrunningOperation] parsed result object
|
967
|
+
# @yieldparam err [StandardError] error object if request failed
|
968
|
+
#
|
969
|
+
# @return [Google::Apis::RetailV2::GoogleLongrunningOperation]
|
970
|
+
#
|
971
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
972
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
973
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
974
|
+
def purge_project_location_catalog_branch_product(parent, google_cloud_retail_v2_purge_products_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
975
|
+
command = make_simple_command(:post, 'v2/{+parent}/products:purge', options)
|
976
|
+
command.request_representation = Google::Apis::RetailV2::GoogleCloudRetailV2PurgeProductsRequest::Representation
|
977
|
+
command.request_object = google_cloud_retail_v2_purge_products_request_object
|
978
|
+
command.response_representation = Google::Apis::RetailV2::GoogleLongrunningOperation::Representation
|
979
|
+
command.response_class = Google::Apis::RetailV2::GoogleLongrunningOperation
|
980
|
+
command.params['parent'] = parent unless parent.nil?
|
981
|
+
command.query['fields'] = fields unless fields.nil?
|
982
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
983
|
+
execute_or_queue_command(command, &block)
|
984
|
+
end
|
985
|
+
|
944
986
|
# We recommend that you use the ProductService.RemoveLocalInventories method
|
945
987
|
# instead of the ProductService.RemoveFulfillmentPlaces method. ProductService.
|
946
988
|
# 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_v2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.77.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_v2/CHANGELOG.md
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-retail_v2/v0.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-retail_v2/v0.77.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: []
|