google-apis-retail_v2 0.75.0 → 0.76.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: 50002aeb176daf77124ef626fc9fe9e419cb604fde481eeb7401d2378b8d2190
4
- data.tar.gz: c57d668757cef347893215d032856a6750b861d42e4ec8162d9db69b17bc0d81
3
+ metadata.gz: 411ffd275f965bbb1222fe08adb710427083a5f38d209b8adc9cde280aca34a4
4
+ data.tar.gz: 8c8266ef830ae34da8d0db0785267112bb4b0489f5a25cb5fd87d7a3bb0f02d2
5
5
  SHA512:
6
- metadata.gz: 3383318ba01fa217078faf24c8068192df8f837bf1ee32376db7e4ac68996ad6fd857c3b80b6b9a682870280c4073f141daa328b214cd7bfd0a4de4b385e4fe6
7
- data.tar.gz: 5b35b77c8ed6f1e7d061ad3103d745b6833a7677d88dffd71b30c184bf07583932d9a57e26234a346e86d7d295214486ae46eef1635f7f7f069e8a4eec86ede3
6
+ metadata.gz: 94149dbf45d94ca845eb161ef2253ad84ebfaafee9ee349f6f2a450745b4b6945d56ef73662067e964ba03d4f11c509e7637bdcab5b03cd904c2a6effa8ee43d
7
+ data.tar.gz: 796bb87ae2012472e6e42fb971f535eb33bbeb61324afa2e48ab1c6db7422124efda01a7abe89d02528b724932deaaecb7b33b282a1ef69856edaa1d197fc1f7
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-retail_v2
2
2
 
3
+ ### v0.76.0 (2023-06-18)
4
+
5
+ * Regenerated from discovery document revision 20230609
6
+
3
7
  ### v0.75.0 (2023-06-04)
4
8
 
5
9
  * Regenerated from discovery document revision 20230525
@@ -3060,6 +3060,115 @@ module Google
3060
3060
  end
3061
3061
  end
3062
3062
 
3063
+ # Metadata related to the progress of the PurgeProducts operation. This will be
3064
+ # returned by the google.longrunning.Operation.metadata field.
3065
+ class GoogleCloudRetailV2PurgeProductsMetadata
3066
+ include Google::Apis::Core::Hashable
3067
+
3068
+ # Operation create time.
3069
+ # Corresponds to the JSON property `createTime`
3070
+ # @return [String]
3071
+ attr_accessor :create_time
3072
+
3073
+ # Count of entries that encountered errors while processing.
3074
+ # Corresponds to the JSON property `failureCount`
3075
+ # @return [Fixnum]
3076
+ attr_accessor :failure_count
3077
+
3078
+ # Count of entries that were deleted successfully.
3079
+ # Corresponds to the JSON property `successCount`
3080
+ # @return [Fixnum]
3081
+ attr_accessor :success_count
3082
+
3083
+ # Operation last update time. If the operation is done, this is also the finish
3084
+ # time.
3085
+ # Corresponds to the JSON property `updateTime`
3086
+ # @return [String]
3087
+ attr_accessor :update_time
3088
+
3089
+ def initialize(**args)
3090
+ update!(**args)
3091
+ end
3092
+
3093
+ # Update properties of this object
3094
+ def update!(**args)
3095
+ @create_time = args[:create_time] if args.key?(:create_time)
3096
+ @failure_count = args[:failure_count] if args.key?(:failure_count)
3097
+ @success_count = args[:success_count] if args.key?(:success_count)
3098
+ @update_time = args[:update_time] if args.key?(:update_time)
3099
+ end
3100
+ end
3101
+
3102
+ # Request message for PurgeProducts method.
3103
+ class GoogleCloudRetailV2PurgeProductsRequest
3104
+ include Google::Apis::Core::Hashable
3105
+
3106
+ # Required. The filter string to specify the products to be deleted with a
3107
+ # length limit of 5,000 characters. Empty string filter is not allowed. "*"
3108
+ # implies delete all items in a branch. The eligible fields for filtering are: *
3109
+ # `availability`: Double quoted Product.availability string. * `create_time` :
3110
+ # in ISO 8601 "zulu" format. Supported syntax: * Comparators (">", "<", ">=", "<=
3111
+ # ", "="). Examples: * create_time <= "2015-02-13T17:05:46Z" * availability = "
3112
+ # IN_STOCK" * Conjunctions ("AND") Examples: * create_time <= "2015-02-13T17:05:
3113
+ # 46Z" AND availability = "PREORDER" * Disjunctions ("OR") Examples: *
3114
+ # create_time <= "2015-02-13T17:05:46Z" OR availability = "IN_STOCK" * Can
3115
+ # support nested queries. Examples: * (create_time <= "2015-02-13T17:05:46Z" AND
3116
+ # availability = "PREORDER") OR (create_time >= "2015-02-14T13:03:32Z" AND
3117
+ # availability = "IN_STOCK") * Filter Limits: * Filter should not contain more
3118
+ # than 6 conditions. * Max nesting depth should not exceed 2 levels. Examples
3119
+ # queries: * Delete back order products created before a timestamp. create_time <
3120
+ # = "2015-02-13T17:05:46Z" OR availability = "BACKORDER"
3121
+ # Corresponds to the JSON property `filter`
3122
+ # @return [String]
3123
+ attr_accessor :filter
3124
+
3125
+ # Actually perform the purge. If `force` is set to false, the method will return
3126
+ # the expected purge count without deleting any products.
3127
+ # Corresponds to the JSON property `force`
3128
+ # @return [Boolean]
3129
+ attr_accessor :force
3130
+ alias_method :force?, :force
3131
+
3132
+ def initialize(**args)
3133
+ update!(**args)
3134
+ end
3135
+
3136
+ # Update properties of this object
3137
+ def update!(**args)
3138
+ @filter = args[:filter] if args.key?(:filter)
3139
+ @force = args[:force] if args.key?(:force)
3140
+ end
3141
+ end
3142
+
3143
+ # Response of the PurgeProductsRequest. If the long running operation is
3144
+ # successfully done, then this message is returned by the google.longrunning.
3145
+ # Operations.response field.
3146
+ class GoogleCloudRetailV2PurgeProductsResponse
3147
+ include Google::Apis::Core::Hashable
3148
+
3149
+ # The total count of products purged as a result of the operation.
3150
+ # Corresponds to the JSON property `purgeCount`
3151
+ # @return [Fixnum]
3152
+ attr_accessor :purge_count
3153
+
3154
+ # A sample of the product names that will be deleted. Only populated if `force`
3155
+ # is set to false. A max of 100 names will be returned and the names are chosen
3156
+ # at random.
3157
+ # Corresponds to the JSON property `purgeSample`
3158
+ # @return [Array<String>]
3159
+ attr_accessor :purge_sample
3160
+
3161
+ def initialize(**args)
3162
+ update!(**args)
3163
+ end
3164
+
3165
+ # Update properties of this object
3166
+ def update!(**args)
3167
+ @purge_count = args[:purge_count] if args.key?(:purge_count)
3168
+ @purge_sample = args[:purge_sample] if args.key?(:purge_sample)
3169
+ end
3170
+ end
3171
+
3063
3172
  # Request message for PurgeUserEvents method.
3064
3173
  class GoogleCloudRetailV2PurgeUserEventsRequest
3065
3174
  include Google::Apis::Core::Hashable
@@ -7315,6 +7424,74 @@ module Google
7315
7424
  end
7316
7425
  end
7317
7426
 
7427
+ # Metadata related to the progress of the PurgeProducts operation. This will be
7428
+ # returned by the google.longrunning.Operation.metadata field.
7429
+ class GoogleCloudRetailV2betaPurgeProductsMetadata
7430
+ include Google::Apis::Core::Hashable
7431
+
7432
+ # Operation create time.
7433
+ # Corresponds to the JSON property `createTime`
7434
+ # @return [String]
7435
+ attr_accessor :create_time
7436
+
7437
+ # Count of entries that encountered errors while processing.
7438
+ # Corresponds to the JSON property `failureCount`
7439
+ # @return [Fixnum]
7440
+ attr_accessor :failure_count
7441
+
7442
+ # Count of entries that were deleted successfully.
7443
+ # Corresponds to the JSON property `successCount`
7444
+ # @return [Fixnum]
7445
+ attr_accessor :success_count
7446
+
7447
+ # Operation last update time. If the operation is done, this is also the finish
7448
+ # time.
7449
+ # Corresponds to the JSON property `updateTime`
7450
+ # @return [String]
7451
+ attr_accessor :update_time
7452
+
7453
+ def initialize(**args)
7454
+ update!(**args)
7455
+ end
7456
+
7457
+ # Update properties of this object
7458
+ def update!(**args)
7459
+ @create_time = args[:create_time] if args.key?(:create_time)
7460
+ @failure_count = args[:failure_count] if args.key?(:failure_count)
7461
+ @success_count = args[:success_count] if args.key?(:success_count)
7462
+ @update_time = args[:update_time] if args.key?(:update_time)
7463
+ end
7464
+ end
7465
+
7466
+ # Response of the PurgeProductsRequest. If the long running operation is
7467
+ # successfully done, then this message is returned by the google.longrunning.
7468
+ # Operations.response field.
7469
+ class GoogleCloudRetailV2betaPurgeProductsResponse
7470
+ include Google::Apis::Core::Hashable
7471
+
7472
+ # The total count of products purged as a result of the operation.
7473
+ # Corresponds to the JSON property `purgeCount`
7474
+ # @return [Fixnum]
7475
+ attr_accessor :purge_count
7476
+
7477
+ # A sample of the product names that will be deleted. Only populated if `force`
7478
+ # is set to false. A max of 100 names will be returned and the names are chosen
7479
+ # at random.
7480
+ # Corresponds to the JSON property `purgeSample`
7481
+ # @return [Array<String>]
7482
+ attr_accessor :purge_sample
7483
+
7484
+ def initialize(**args)
7485
+ update!(**args)
7486
+ end
7487
+
7488
+ # Update properties of this object
7489
+ def update!(**args)
7490
+ @purge_count = args[:purge_count] if args.key?(:purge_count)
7491
+ @purge_sample = args[:purge_sample] if args.key?(:purge_sample)
7492
+ end
7493
+ end
7494
+
7318
7495
  # Response of the PurgeUserEventsRequest. If the long running operation is
7319
7496
  # successfully done, then this message is returned by the google.longrunning.
7320
7497
  # 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.75.0"
19
+ GEM_VERSION = "0.76.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 = "20230525"
25
+ REVISION = "20230609"
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.75.0
4
+ version: 0.76.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-06-04 00:00:00.000000000 Z
11
+ date: 2023-06-18 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.75.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-retail_v2/v0.76.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: []