google-apis-retail_v2beta 0.76.0 → 0.78.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: de9cfba9bf6d232ec84b48c5e32496fd967e79c3f688b6565547391ab531a10d
4
- data.tar.gz: c43036cacf1a22d621e962abafee0d3424ccc6b1798f6b2df37b289c04ddb6a2
3
+ metadata.gz: bb2ed814cf6027670e0793167fcf0a804c35a03f3917f1939a429a492e692b0a
4
+ data.tar.gz: 6e5c3004481f153a8cc409a6394e562515a12a7928cf3f34b2ab45da994b4198
5
5
  SHA512:
6
- metadata.gz: cef850641e4529338007108605c33de48ec855ee9f03aac26f486e3d4019ad0a0dcbd03175e0f4bd0d12b7f4fd675715f2205fe882895daeacff499292870d66
7
- data.tar.gz: 15f5b2ea51ae4c49cd22c9c7a66fb00d01c3091b141f7e81b378863489af68da426e2d655f13ef82969d39befe12e615f68e48cd5c86f2e170b15598543f3b74
6
+ metadata.gz: f6e60dced5fdcb130bc761d98431c12c7370090138acf697e5eb785d9664795ab961025d478f3ab21a601db69e9b50d4f7952f03cbaecec50330754cc645fcce
7
+ data.tar.gz: 935288b89147b882d11b677d7a7cf526647dd6fcb2afe1d32a5602d561151b2fe53b5dfea5a0ade7ff5be7007e2eec4ace320de850c8d6a8d8e16c3106d24089
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Release history for google-apis-retail_v2beta
2
2
 
3
+ ### v0.78.0 (2023-06-18)
4
+
5
+ * Regenerated from discovery document revision 20230609
6
+
7
+ ### v0.77.0 (2023-06-04)
8
+
9
+ * Regenerated from discovery document revision 20230525
10
+
3
11
  ### v0.76.0 (2023-05-28)
4
12
 
5
13
  * Regenerated from discovery document revision 20230518
@@ -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.
@@ -2772,9 +2840,9 @@ module Google
2772
2840
  # @return [Array<Google::Apis::RetailV2beta::GoogleCloudRetailV2betaCompleteQueryResponseCompletionResult>]
2773
2841
  attr_accessor :completion_results
2774
2842
 
2775
- # Matched recent searches of this user. The maximum number of recent searches is
2776
- # 10. This field is a restricted feature. If you want to enable it, contact
2777
- # Retail Search support. This feature is only available when
2843
+ # Deprecated. Matched recent searches of this user. The maximum number of recent
2844
+ # searches is 10. This field is a restricted feature. If you want to enable it,
2845
+ # contact Retail Search support. This feature is only available when
2778
2846
  # CompleteQueryRequest.visitor_id field is set and UserEvent is imported. The
2779
2847
  # recent searches satisfy the follow rules: * They are ordered from latest to
2780
2848
  # oldest. * They are matched with CompleteQueryRequest.query case insensitively.
@@ -5441,6 +5509,115 @@ module Google
5441
5509
  end
5442
5510
  end
5443
5511
 
5512
+ # Metadata related to the progress of the PurgeProducts operation. This will be
5513
+ # returned by the google.longrunning.Operation.metadata field.
5514
+ class GoogleCloudRetailV2betaPurgeProductsMetadata
5515
+ include Google::Apis::Core::Hashable
5516
+
5517
+ # Operation create time.
5518
+ # Corresponds to the JSON property `createTime`
5519
+ # @return [String]
5520
+ attr_accessor :create_time
5521
+
5522
+ # Count of entries that encountered errors while processing.
5523
+ # Corresponds to the JSON property `failureCount`
5524
+ # @return [Fixnum]
5525
+ attr_accessor :failure_count
5526
+
5527
+ # Count of entries that were deleted successfully.
5528
+ # Corresponds to the JSON property `successCount`
5529
+ # @return [Fixnum]
5530
+ attr_accessor :success_count
5531
+
5532
+ # Operation last update time. If the operation is done, this is also the finish
5533
+ # time.
5534
+ # Corresponds to the JSON property `updateTime`
5535
+ # @return [String]
5536
+ attr_accessor :update_time
5537
+
5538
+ def initialize(**args)
5539
+ update!(**args)
5540
+ end
5541
+
5542
+ # Update properties of this object
5543
+ def update!(**args)
5544
+ @create_time = args[:create_time] if args.key?(:create_time)
5545
+ @failure_count = args[:failure_count] if args.key?(:failure_count)
5546
+ @success_count = args[:success_count] if args.key?(:success_count)
5547
+ @update_time = args[:update_time] if args.key?(:update_time)
5548
+ end
5549
+ end
5550
+
5551
+ # Request message for PurgeProducts method.
5552
+ class GoogleCloudRetailV2betaPurgeProductsRequest
5553
+ include Google::Apis::Core::Hashable
5554
+
5555
+ # Required. The filter string to specify the products to be deleted with a
5556
+ # length limit of 5,000 characters. Empty string filter is not allowed. "*"
5557
+ # implies delete all items in a branch. The eligible fields for filtering are: *
5558
+ # `availability`: Double quoted Product.availability string. * `create_time` :
5559
+ # in ISO 8601 "zulu" format. Supported syntax: * Comparators (">", "<", ">=", "<=
5560
+ # ", "="). Examples: * create_time <= "2015-02-13T17:05:46Z" * availability = "
5561
+ # IN_STOCK" * Conjunctions ("AND") Examples: * create_time <= "2015-02-13T17:05:
5562
+ # 46Z" AND availability = "PREORDER" * Disjunctions ("OR") Examples: *
5563
+ # create_time <= "2015-02-13T17:05:46Z" OR availability = "IN_STOCK" * Can
5564
+ # support nested queries. Examples: * (create_time <= "2015-02-13T17:05:46Z" AND
5565
+ # availability = "PREORDER") OR (create_time >= "2015-02-14T13:03:32Z" AND
5566
+ # availability = "IN_STOCK") * Filter Limits: * Filter should not contain more
5567
+ # than 6 conditions. * Max nesting depth should not exceed 2 levels. Examples
5568
+ # queries: * Delete back order products created before a timestamp. create_time <
5569
+ # = "2015-02-13T17:05:46Z" OR availability = "BACKORDER"
5570
+ # Corresponds to the JSON property `filter`
5571
+ # @return [String]
5572
+ attr_accessor :filter
5573
+
5574
+ # Actually perform the purge. If `force` is set to false, the method will return
5575
+ # the expected purge count without deleting any products.
5576
+ # Corresponds to the JSON property `force`
5577
+ # @return [Boolean]
5578
+ attr_accessor :force
5579
+ alias_method :force?, :force
5580
+
5581
+ def initialize(**args)
5582
+ update!(**args)
5583
+ end
5584
+
5585
+ # Update properties of this object
5586
+ def update!(**args)
5587
+ @filter = args[:filter] if args.key?(:filter)
5588
+ @force = args[:force] if args.key?(:force)
5589
+ end
5590
+ end
5591
+
5592
+ # Response of the PurgeProductsRequest. If the long running operation is
5593
+ # successfully done, then this message is returned by the google.longrunning.
5594
+ # Operations.response field.
5595
+ class GoogleCloudRetailV2betaPurgeProductsResponse
5596
+ include Google::Apis::Core::Hashable
5597
+
5598
+ # The total count of products purged as a result of the operation.
5599
+ # Corresponds to the JSON property `purgeCount`
5600
+ # @return [Fixnum]
5601
+ attr_accessor :purge_count
5602
+
5603
+ # A sample of the product names that will be deleted. Only populated if `force`
5604
+ # is set to false. A max of 100 names will be returned and the names are chosen
5605
+ # at random.
5606
+ # Corresponds to the JSON property `purgeSample`
5607
+ # @return [Array<String>]
5608
+ attr_accessor :purge_sample
5609
+
5610
+ def initialize(**args)
5611
+ update!(**args)
5612
+ end
5613
+
5614
+ # Update properties of this object
5615
+ def update!(**args)
5616
+ @purge_count = args[:purge_count] if args.key?(:purge_count)
5617
+ @purge_sample = args[:purge_sample] if args.key?(:purge_sample)
5618
+ end
5619
+ end
5620
+
5444
5621
  # Request message for PurgeUserEvents method.
5445
5622
  class GoogleCloudRetailV2betaPurgeUserEventsRequest
5446
5623
  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.76.0"
19
+ GEM_VERSION = "0.78.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 = "20230518"
25
+ REVISION = "20230609"
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.76.0
4
+ version: 0.78.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-05-28 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_v2beta/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-retail_v2beta/v0.76.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-retail_v2beta/v0.78.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: []