google-apis-retail_v2 0.24.0 → 0.28.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +17 -0
- data/lib/google/apis/retail_v2/classes.rb +86 -62
- data/lib/google/apis/retail_v2/gem_version.rb +3 -3
- data/lib/google/apis/retail_v2/representations.rb +18 -24
- data/lib/google/apis/retail_v2/service.rb +79 -7
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 300ffa2560aad86e0f5783721309655a1afe52ec37d50f45698a3d9fcbb0d023
|
4
|
+
data.tar.gz: 5b77548ac25a18bcea4296878fbd720fb9a816c38f558f21448ccdbc0edda267
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3ca5f224b3560132f6c139cd1393242eba1ea0fa6196d895dbd264652ac2ecba593cee943a44606e535bb01c1a6a507638992e475b83efcbb357b84160a036a9
|
7
|
+
data.tar.gz: 504198365b7dfdaeb4e31d104c75c0c04f2fbbe1374374c3c4af81a6c5fcce3049502028b375786f95eded5de0373b21f82d4285ded61fadd020fb88a190095a
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,22 @@
|
|
1
1
|
# Release history for google-apis-retail_v2
|
2
2
|
|
3
|
+
### v0.28.0 (2022-02-12)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20220210
|
6
|
+
|
7
|
+
### v0.27.0 (2022-02-03)
|
8
|
+
|
9
|
+
* Regenerated from discovery document revision 20220127
|
10
|
+
|
11
|
+
### v0.26.0 (2022-01-27)
|
12
|
+
|
13
|
+
* Regenerated from discovery document revision 20220121
|
14
|
+
|
15
|
+
### v0.25.0 (2022-01-13)
|
16
|
+
|
17
|
+
* Regenerated from discovery document revision 20220106
|
18
|
+
* Regenerated using generator version 0.4.1
|
19
|
+
|
3
20
|
### v0.24.0 (2021-12-16)
|
4
21
|
|
5
22
|
* Regenerated from discovery document revision 20211210
|
@@ -412,7 +412,11 @@ module Google
|
|
412
412
|
# Importing catalog data from Merchant Center](https://cloud.google.com/retail/
|
413
413
|
# recommendations-ai/docs/upload-catalog#mc). Supported values for user events
|
414
414
|
# imports: * `user_event` (default): One JSON UserEvent per line. * `
|
415
|
-
# user_event_ga360`:
|
415
|
+
# user_event_ga360`: The schema is available here: https://support.google.com/
|
416
|
+
# analytics/answer/3437719. * `user_event_ga4`: This feature is in private
|
417
|
+
# preview. Please contact the support team for importing Google Analytics 4
|
418
|
+
# events. The schema is available here: https://support.google.com/analytics/
|
419
|
+
# answer/7029846.
|
416
420
|
# Corresponds to the JSON property `dataSchema`
|
417
421
|
# @return [String]
|
418
422
|
attr_accessor :data_schema
|
@@ -434,10 +438,10 @@ module Google
|
|
434
438
|
# day and time zone are either specified elsewhere or are insignificant. The
|
435
439
|
# date is relative to the Gregorian Calendar. This can represent one of the
|
436
440
|
# following: * A full date, with non-zero year, month, and day values * A month
|
437
|
-
# and day
|
438
|
-
#
|
439
|
-
#
|
440
|
-
# google.protobuf.Timestamp
|
441
|
+
# and day, with a zero year (e.g., an anniversary) * A year on its own, with a
|
442
|
+
# zero month and a zero day * A year and month, with a zero day (e.g., a credit
|
443
|
+
# card expiration date) Related types: * google.type.TimeOfDay * google.type.
|
444
|
+
# DateTime * google.protobuf.Timestamp
|
441
445
|
# Corresponds to the JSON property `partitionDate`
|
442
446
|
# @return [Google::Apis::RetailV2::GoogleTypeDate]
|
443
447
|
attr_accessor :partition_date
|
@@ -686,10 +690,12 @@ module Google
|
|
686
690
|
class GoogleCloudRetailV2CustomAttribute
|
687
691
|
include Google::Apis::Core::Hashable
|
688
692
|
|
689
|
-
#
|
690
|
-
#
|
691
|
-
#
|
692
|
-
#
|
693
|
+
# This field will only be used when AttributesConfig.attribute_config_level of
|
694
|
+
# the Catalog is 'PRODUCT_LEVEL_ATTRIBUTE_CONFIG', if true, custom attribute
|
695
|
+
# values are indexed, so that it can be filtered, faceted or boosted in
|
696
|
+
# SearchService.Search. This field is ignored in a UserEvent. See SearchRequest.
|
697
|
+
# filter, SearchRequest.facet_specs and SearchRequest.boost_spec for more
|
698
|
+
# details.
|
693
699
|
# Corresponds to the JSON property `indexable`
|
694
700
|
# @return [Boolean]
|
695
701
|
attr_accessor :indexable
|
@@ -702,9 +708,11 @@ module Google
|
|
702
708
|
# @return [Array<Float>]
|
703
709
|
attr_accessor :numbers
|
704
710
|
|
705
|
-
#
|
706
|
-
#
|
707
|
-
# text
|
711
|
+
# This field will only be used when AttributesConfig.attribute_config_level of
|
712
|
+
# the Catalog is 'PRODUCT_LEVEL_ATTRIBUTE_CONFIG', if true, custom attribute
|
713
|
+
# values are searchable by text queries in SearchService.Search. This field is
|
714
|
+
# ignored in a UserEvent. Only set if type text is set. Otherwise, a
|
715
|
+
# INVALID_ARGUMENT error is returned.
|
708
716
|
# Corresponds to the JSON property `searchable`
|
709
717
|
# @return [Boolean]
|
710
718
|
attr_accessor :searchable
|
@@ -778,7 +786,8 @@ module Google
|
|
778
786
|
# imports: * `user_event` (default): One JSON UserEvent per line. * `
|
779
787
|
# user_event_ga360`: Using https://support.google.com/analytics/answer/3437719.
|
780
788
|
# Supported values for control imports: * 'control' (default): One JSON Control
|
781
|
-
# per line.
|
789
|
+
# per line. Supported values for catalog attribute imports: * 'catalog_attribute'
|
790
|
+
# (default): One CSV CatalogAttribute per line.
|
782
791
|
# Corresponds to the JSON property `dataSchema`
|
783
792
|
# @return [String]
|
784
793
|
attr_accessor :data_schema
|
@@ -1581,7 +1590,9 @@ module Google
|
|
1581
1590
|
# @return [Array<String>]
|
1582
1591
|
attr_accessor :categories
|
1583
1592
|
|
1584
|
-
# The id of the collection members when type is Type.COLLECTION.
|
1593
|
+
# The id of the collection members when type is Type.COLLECTION. Non-existent
|
1594
|
+
# product ids are allowed. The type of the members must be either Type.PRIMARY
|
1595
|
+
# or Type.VARIANT otherwise and INVALID_ARGUMENT error is thrown. Should not set
|
1585
1596
|
# it for other types. A maximum of 1000 values are allowed. Otherwise, an
|
1586
1597
|
# INVALID_ARGUMENT error is return.
|
1587
1598
|
# Corresponds to the JSON property `collectionMemberIds`
|
@@ -1594,12 +1605,12 @@ module Google
|
|
1594
1605
|
attr_accessor :color_info
|
1595
1606
|
|
1596
1607
|
# The condition of the product. Strongly encouraged to use the standard values: "
|
1597
|
-
# new", "refurbished", "used". A maximum of
|
1598
|
-
#
|
1599
|
-
#
|
1600
|
-
#
|
1601
|
-
#
|
1602
|
-
#
|
1608
|
+
# new", "refurbished", "used". A maximum of 1 value is allowed per Product. Each
|
1609
|
+
# value must be a UTF-8 encoded string with a length limit of 128 characters.
|
1610
|
+
# Otherwise, an INVALID_ARGUMENT error is returned. Corresponding properties:
|
1611
|
+
# Google Merchant Center property [condition](https://support.google.com/
|
1612
|
+
# merchants/answer/6324469). Schema.org property [Offer.itemCondition](https://
|
1613
|
+
# schema.org/itemCondition).
|
1603
1614
|
# Corresponds to the JSON property `conditions`
|
1604
1615
|
# @return [Array<String>]
|
1605
1616
|
attr_accessor :conditions
|
@@ -1677,7 +1688,7 @@ module Google
|
|
1677
1688
|
|
1678
1689
|
# The material of the product. For example, "leather", "wooden". A maximum of 20
|
1679
1690
|
# values are allowed. Each value must be a UTF-8 encoded string with a length
|
1680
|
-
# limit of
|
1691
|
+
# limit of 200 characters. Otherwise, an INVALID_ARGUMENT error is returned.
|
1681
1692
|
# Corresponding properties: Google Merchant Center property [material](https://
|
1682
1693
|
# support.google.com/merchants/answer/6324410). Schema.org property [Product.
|
1683
1694
|
# material](https://schema.org/material).
|
@@ -1720,7 +1731,8 @@ module Google
|
|
1720
1731
|
attr_accessor :primary_product_id
|
1721
1732
|
|
1722
1733
|
# The promotions applied to the product. A maximum of 10 values are allowed per
|
1723
|
-
# Product.
|
1734
|
+
# Product. Only Promotion.promotion_id will be used, other fields will be
|
1735
|
+
# ignored if set.
|
1724
1736
|
# Corresponds to the JSON property `promotions`
|
1725
1737
|
# @return [Array<Google::Apis::RetailV2::GoogleCloudRetailV2Promotion>]
|
1726
1738
|
attr_accessor :promotions
|
@@ -1999,7 +2011,7 @@ module Google
|
|
1999
2011
|
class GoogleCloudRetailV2Promotion
|
2000
2012
|
include Google::Apis::Core::Hashable
|
2001
2013
|
|
2002
|
-
# ID of the promotion. For example, "free gift". The value
|
2014
|
+
# ID of the promotion. For example, "free gift". The value must be a UTF-8
|
2003
2015
|
# encoded string with a length limit of 128 characters, and match the pattern: `
|
2004
2016
|
# a-zA-Z*`. For example, id0LikeThis or ID_1_LIKE_THIS. Otherwise, an
|
2005
2017
|
# INVALID_ARGUMENT error is returned. Google Merchant Center property [promotion]
|
@@ -2404,6 +2416,11 @@ module Google
|
|
2404
2416
|
# @return [String]
|
2405
2417
|
attr_accessor :page_token
|
2406
2418
|
|
2419
|
+
# The specification for personalization.
|
2420
|
+
# Corresponds to the JSON property `personalizationSpec`
|
2421
|
+
# @return [Google::Apis::RetailV2::GoogleCloudRetailV2SearchRequestPersonalizationSpec]
|
2422
|
+
attr_accessor :personalization_spec
|
2423
|
+
|
2407
2424
|
# Raw search query.
|
2408
2425
|
# Corresponds to the JSON property `query`
|
2409
2426
|
# @return [String]
|
@@ -2482,6 +2499,7 @@ module Google
|
|
2482
2499
|
@page_categories = args[:page_categories] if args.key?(:page_categories)
|
2483
2500
|
@page_size = args[:page_size] if args.key?(:page_size)
|
2484
2501
|
@page_token = args[:page_token] if args.key?(:page_token)
|
2502
|
+
@personalization_spec = args[:personalization_spec] if args.key?(:personalization_spec)
|
2485
2503
|
@query = args[:query] if args.key?(:query)
|
2486
2504
|
@query_expansion_spec = args[:query_expansion_spec] if args.key?(:query_expansion_spec)
|
2487
2505
|
@search_mode = args[:search_mode] if args.key?(:search_mode)
|
@@ -2502,6 +2520,14 @@ module Google
|
|
2502
2520
|
# @return [Array<Google::Apis::RetailV2::GoogleCloudRetailV2SearchRequestBoostSpecConditionBoostSpec>]
|
2503
2521
|
attr_accessor :condition_boost_specs
|
2504
2522
|
|
2523
|
+
# Whether to skip boostspec validation. If this field is set to true, invalid
|
2524
|
+
# BoostSpec.condition_boost_specs will be ignored and valid BoostSpec.
|
2525
|
+
# condition_boost_specs will still be applied.
|
2526
|
+
# Corresponds to the JSON property `skipBoostSpecValidation`
|
2527
|
+
# @return [Boolean]
|
2528
|
+
attr_accessor :skip_boost_spec_validation
|
2529
|
+
alias_method :skip_boost_spec_validation?, :skip_boost_spec_validation
|
2530
|
+
|
2505
2531
|
def initialize(**args)
|
2506
2532
|
update!(**args)
|
2507
2533
|
end
|
@@ -2509,6 +2535,7 @@ module Google
|
|
2509
2535
|
# Update properties of this object
|
2510
2536
|
def update!(**args)
|
2511
2537
|
@condition_boost_specs = args[:condition_boost_specs] if args.key?(:condition_boost_specs)
|
2538
|
+
@skip_boost_spec_validation = args[:skip_boost_spec_validation] if args.key?(:skip_boost_spec_validation)
|
2512
2539
|
end
|
2513
2540
|
end
|
2514
2541
|
|
@@ -2731,6 +2758,25 @@ module Google
|
|
2731
2758
|
end
|
2732
2759
|
end
|
2733
2760
|
|
2761
|
+
# The specification for personalization.
|
2762
|
+
class GoogleCloudRetailV2SearchRequestPersonalizationSpec
|
2763
|
+
include Google::Apis::Core::Hashable
|
2764
|
+
|
2765
|
+
# Defaults to Mode.AUTO.
|
2766
|
+
# Corresponds to the JSON property `mode`
|
2767
|
+
# @return [String]
|
2768
|
+
attr_accessor :mode
|
2769
|
+
|
2770
|
+
def initialize(**args)
|
2771
|
+
update!(**args)
|
2772
|
+
end
|
2773
|
+
|
2774
|
+
# Update properties of this object
|
2775
|
+
def update!(**args)
|
2776
|
+
@mode = args[:mode] if args.key?(:mode)
|
2777
|
+
end
|
2778
|
+
end
|
2779
|
+
|
2734
2780
|
# Specification to determine under which conditions query expansion should occur.
|
2735
2781
|
class GoogleCloudRetailV2SearchRequestQueryExpansionSpec
|
2736
2782
|
include Google::Apis::Core::Hashable
|
@@ -2787,6 +2833,12 @@ module Google
|
|
2787
2833
|
# @return [Array<Google::Apis::RetailV2::GoogleCloudRetailV2SearchResponseFacet>]
|
2788
2834
|
attr_accessor :facets
|
2789
2835
|
|
2836
|
+
# The invalid SearchRequest.BoostSpec.condition_boost_specs that are not applied
|
2837
|
+
# during serving.
|
2838
|
+
# Corresponds to the JSON property `invalidConditionBoostSpecs`
|
2839
|
+
# @return [Array<Google::Apis::RetailV2::GoogleCloudRetailV2SearchRequestBoostSpecConditionBoostSpec>]
|
2840
|
+
attr_accessor :invalid_condition_boost_specs
|
2841
|
+
|
2790
2842
|
# A token that can be sent as SearchRequest.page_token to retrieve the next page.
|
2791
2843
|
# If this field is omitted, there are no subsequent pages.
|
2792
2844
|
# Corresponds to the JSON property `nextPageToken`
|
@@ -2828,6 +2880,7 @@ module Google
|
|
2828
2880
|
@attribution_token = args[:attribution_token] if args.key?(:attribution_token)
|
2829
2881
|
@corrected_query = args[:corrected_query] if args.key?(:corrected_query)
|
2830
2882
|
@facets = args[:facets] if args.key?(:facets)
|
2883
|
+
@invalid_condition_boost_specs = args[:invalid_condition_boost_specs] if args.key?(:invalid_condition_boost_specs)
|
2831
2884
|
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
2832
2885
|
@query_expansion_info = args[:query_expansion_info] if args.key?(:query_expansion_info)
|
2833
2886
|
@redirect_uri = args[:redirect_uri] if args.key?(:redirect_uri)
|
@@ -3217,12 +3270,12 @@ module Google
|
|
3217
3270
|
|
3218
3271
|
# The main product details related to the event. This field is required for the
|
3219
3272
|
# following event types: * `add-to-cart` * `detail-page-view` * `purchase-
|
3220
|
-
# complete` In a `search` event, this field represents the products
|
3221
|
-
# the end user on the current page (the end user may have not
|
3222
|
-
# the whole page yet). When a new page is returned to the end
|
3223
|
-
# pagination/filtering/ordering even for the same query, a new `
|
3224
|
-
# with different product_details is desired. The end user may have
|
3225
|
-
# browsing the whole page yet.
|
3273
|
+
# complete` * `search` In a `search` event, this field represents the products
|
3274
|
+
# returned to the end user on the current page (the end user may have not
|
3275
|
+
# finished browsing the whole page yet). When a new page is returned to the end
|
3276
|
+
# user, after pagination/filtering/ordering even for the same query, a new `
|
3277
|
+
# search` event with different product_details is desired. The end user may have
|
3278
|
+
# not finished browsing the whole page yet.
|
3226
3279
|
# Corresponds to the JSON property `productDetails`
|
3227
3280
|
# @return [Array<Google::Apis::RetailV2::GoogleCloudRetailV2ProductDetail>]
|
3228
3281
|
attr_accessor :product_details
|
@@ -3915,35 +3968,6 @@ module Google
|
|
3915
3968
|
end
|
3916
3969
|
end
|
3917
3970
|
|
3918
|
-
# Metadata related to the progress of the SetLocalInventories operation.
|
3919
|
-
# Currently empty because there is no meaningful metadata populated from the
|
3920
|
-
# SetLocalInventories method.
|
3921
|
-
class GoogleCloudRetailV2alphaSetLocalInventoriesMetadata
|
3922
|
-
include Google::Apis::Core::Hashable
|
3923
|
-
|
3924
|
-
def initialize(**args)
|
3925
|
-
update!(**args)
|
3926
|
-
end
|
3927
|
-
|
3928
|
-
# Update properties of this object
|
3929
|
-
def update!(**args)
|
3930
|
-
end
|
3931
|
-
end
|
3932
|
-
|
3933
|
-
# Response of the SetLocalInventories API. Currently empty because there is no
|
3934
|
-
# meaningful response populated from the SetLocalInventories method.
|
3935
|
-
class GoogleCloudRetailV2alphaSetLocalInventoriesResponse
|
3936
|
-
include Google::Apis::Core::Hashable
|
3937
|
-
|
3938
|
-
def initialize(**args)
|
3939
|
-
update!(**args)
|
3940
|
-
end
|
3941
|
-
|
3942
|
-
# Update properties of this object
|
3943
|
-
def update!(**args)
|
3944
|
-
end
|
3945
|
-
end
|
3946
|
-
|
3947
3971
|
# A summary of import result. The UserEventImportSummary summarizes the import
|
3948
3972
|
# status for user events.
|
3949
3973
|
class GoogleCloudRetailV2alphaUserEventImportSummary
|
@@ -4559,10 +4583,10 @@ module Google
|
|
4559
4583
|
# day and time zone are either specified elsewhere or are insignificant. The
|
4560
4584
|
# date is relative to the Gregorian Calendar. This can represent one of the
|
4561
4585
|
# following: * A full date, with non-zero year, month, and day values * A month
|
4562
|
-
# and day
|
4563
|
-
#
|
4564
|
-
#
|
4565
|
-
# google.protobuf.Timestamp
|
4586
|
+
# and day, with a zero year (e.g., an anniversary) * A year on its own, with a
|
4587
|
+
# zero month and a zero day * A year and month, with a zero day (e.g., a credit
|
4588
|
+
# card expiration date) Related types: * google.type.TimeOfDay * google.type.
|
4589
|
+
# DateTime * google.protobuf.Timestamp
|
4566
4590
|
class GoogleTypeDate
|
4567
4591
|
include Google::Apis::Core::Hashable
|
4568
4592
|
|
@@ -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.28.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 = "20220210"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -400,6 +400,12 @@ module Google
|
|
400
400
|
include Google::Apis::Core::JsonObjectSupport
|
401
401
|
end
|
402
402
|
|
403
|
+
class GoogleCloudRetailV2SearchRequestPersonalizationSpec
|
404
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
405
|
+
|
406
|
+
include Google::Apis::Core::JsonObjectSupport
|
407
|
+
end
|
408
|
+
|
403
409
|
class GoogleCloudRetailV2SearchRequestQueryExpansionSpec
|
404
410
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
405
411
|
|
@@ -628,18 +634,6 @@ module Google
|
|
628
634
|
include Google::Apis::Core::JsonObjectSupport
|
629
635
|
end
|
630
636
|
|
631
|
-
class GoogleCloudRetailV2alphaSetLocalInventoriesMetadata
|
632
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
633
|
-
|
634
|
-
include Google::Apis::Core::JsonObjectSupport
|
635
|
-
end
|
636
|
-
|
637
|
-
class GoogleCloudRetailV2alphaSetLocalInventoriesResponse
|
638
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
639
|
-
|
640
|
-
include Google::Apis::Core::JsonObjectSupport
|
641
|
-
end
|
642
|
-
|
643
637
|
class GoogleCloudRetailV2alphaUserEventImportSummary
|
644
638
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
645
639
|
|
@@ -1373,6 +1367,8 @@ module Google
|
|
1373
1367
|
collection :page_categories, as: 'pageCategories'
|
1374
1368
|
property :page_size, as: 'pageSize'
|
1375
1369
|
property :page_token, as: 'pageToken'
|
1370
|
+
property :personalization_spec, as: 'personalizationSpec', class: Google::Apis::RetailV2::GoogleCloudRetailV2SearchRequestPersonalizationSpec, decorator: Google::Apis::RetailV2::GoogleCloudRetailV2SearchRequestPersonalizationSpec::Representation
|
1371
|
+
|
1376
1372
|
property :query, as: 'query'
|
1377
1373
|
property :query_expansion_spec, as: 'queryExpansionSpec', class: Google::Apis::RetailV2::GoogleCloudRetailV2SearchRequestQueryExpansionSpec, decorator: Google::Apis::RetailV2::GoogleCloudRetailV2SearchRequestQueryExpansionSpec::Representation
|
1378
1374
|
|
@@ -1389,6 +1385,7 @@ module Google
|
|
1389
1385
|
class Representation < Google::Apis::Core::JsonRepresentation
|
1390
1386
|
collection :condition_boost_specs, as: 'conditionBoostSpecs', class: Google::Apis::RetailV2::GoogleCloudRetailV2SearchRequestBoostSpecConditionBoostSpec, decorator: Google::Apis::RetailV2::GoogleCloudRetailV2SearchRequestBoostSpecConditionBoostSpec::Representation
|
1391
1387
|
|
1388
|
+
property :skip_boost_spec_validation, as: 'skipBoostSpecValidation'
|
1392
1389
|
end
|
1393
1390
|
end
|
1394
1391
|
|
@@ -1432,6 +1429,13 @@ module Google
|
|
1432
1429
|
end
|
1433
1430
|
end
|
1434
1431
|
|
1432
|
+
class GoogleCloudRetailV2SearchRequestPersonalizationSpec
|
1433
|
+
# @private
|
1434
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1435
|
+
property :mode, as: 'mode'
|
1436
|
+
end
|
1437
|
+
end
|
1438
|
+
|
1435
1439
|
class GoogleCloudRetailV2SearchRequestQueryExpansionSpec
|
1436
1440
|
# @private
|
1437
1441
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -1448,6 +1452,8 @@ module Google
|
|
1448
1452
|
property :corrected_query, as: 'correctedQuery'
|
1449
1453
|
collection :facets, as: 'facets', class: Google::Apis::RetailV2::GoogleCloudRetailV2SearchResponseFacet, decorator: Google::Apis::RetailV2::GoogleCloudRetailV2SearchResponseFacet::Representation
|
1450
1454
|
|
1455
|
+
collection :invalid_condition_boost_specs, as: 'invalidConditionBoostSpecs', class: Google::Apis::RetailV2::GoogleCloudRetailV2SearchRequestBoostSpecConditionBoostSpec, decorator: Google::Apis::RetailV2::GoogleCloudRetailV2SearchRequestBoostSpecConditionBoostSpec::Representation
|
1456
|
+
|
1451
1457
|
property :next_page_token, as: 'nextPageToken'
|
1452
1458
|
property :query_expansion_info, as: 'queryExpansionInfo', class: Google::Apis::RetailV2::GoogleCloudRetailV2SearchResponseQueryExpansionInfo, decorator: Google::Apis::RetailV2::GoogleCloudRetailV2SearchResponseQueryExpansionInfo::Representation
|
1453
1459
|
|
@@ -1768,18 +1774,6 @@ module Google
|
|
1768
1774
|
end
|
1769
1775
|
end
|
1770
1776
|
|
1771
|
-
class GoogleCloudRetailV2alphaSetLocalInventoriesMetadata
|
1772
|
-
# @private
|
1773
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
1774
|
-
end
|
1775
|
-
end
|
1776
|
-
|
1777
|
-
class GoogleCloudRetailV2alphaSetLocalInventoriesResponse
|
1778
|
-
# @private
|
1779
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
1780
|
-
end
|
1781
|
-
end
|
1782
|
-
|
1783
1777
|
class GoogleCloudRetailV2alphaUserEventImportSummary
|
1784
1778
|
# @private
|
1785
1779
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -124,10 +124,7 @@ module Google
|
|
124
124
|
end
|
125
125
|
|
126
126
|
# Get which branch is currently default branch set by CatalogService.
|
127
|
-
# SetDefaultBranch method under a specified parent catalog.
|
128
|
-
# available for users who have Retail Search enabled. Please submit a form [here]
|
129
|
-
# (https://cloud.google.com/contact) to contact cloud sales if you are
|
130
|
-
# interested in using Retail Search.
|
127
|
+
# SetDefaultBranch method under a specified parent catalog.
|
131
128
|
# @param [String] catalog
|
132
129
|
# The parent catalog resource name, such as `projects/*/locations/global/
|
133
130
|
# catalogs/default_catalog`.
|
@@ -256,9 +253,7 @@ module Google
|
|
256
253
|
# PredictionService will only return product IDs from branch `newBranch`. *
|
257
254
|
# SearchService will only return product IDs from branch `newBranch` (if branch
|
258
255
|
# is not explicitly set). * UserEventService will only join events with products
|
259
|
-
# from branch `newBranch`.
|
260
|
-
# Retail Search enabled. Please submit a form [here](https://cloud.google.com/
|
261
|
-
# contact) to contact cloud sales if you are interested in using Retail Search.
|
256
|
+
# from branch `newBranch`.
|
262
257
|
# @param [String] catalog
|
263
258
|
# Full resource name of the catalog, such as `projects/*/locations/global/
|
264
259
|
# catalogs/default_catalog`.
|
@@ -1190,6 +1185,83 @@ module Google
|
|
1190
1185
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1191
1186
|
execute_or_queue_command(command, &block)
|
1192
1187
|
end
|
1188
|
+
|
1189
|
+
# Gets the latest state of a long-running operation. Clients can use this method
|
1190
|
+
# to poll the operation result at intervals as recommended by the API service.
|
1191
|
+
# @param [String] name
|
1192
|
+
# The name of the operation resource.
|
1193
|
+
# @param [String] fields
|
1194
|
+
# Selector specifying which fields to include in a partial response.
|
1195
|
+
# @param [String] quota_user
|
1196
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1197
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1198
|
+
# @param [Google::Apis::RequestOptions] options
|
1199
|
+
# Request-specific options
|
1200
|
+
#
|
1201
|
+
# @yield [result, err] Result & error if block supplied
|
1202
|
+
# @yieldparam result [Google::Apis::RetailV2::GoogleLongrunningOperation] parsed result object
|
1203
|
+
# @yieldparam err [StandardError] error object if request failed
|
1204
|
+
#
|
1205
|
+
# @return [Google::Apis::RetailV2::GoogleLongrunningOperation]
|
1206
|
+
#
|
1207
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1208
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1209
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1210
|
+
def get_project_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
1211
|
+
command = make_simple_command(:get, 'v2/{+name}', options)
|
1212
|
+
command.response_representation = Google::Apis::RetailV2::GoogleLongrunningOperation::Representation
|
1213
|
+
command.response_class = Google::Apis::RetailV2::GoogleLongrunningOperation
|
1214
|
+
command.params['name'] = name unless name.nil?
|
1215
|
+
command.query['fields'] = fields unless fields.nil?
|
1216
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1217
|
+
execute_or_queue_command(command, &block)
|
1218
|
+
end
|
1219
|
+
|
1220
|
+
# Lists operations that match the specified filter in the request. If the server
|
1221
|
+
# doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name`
|
1222
|
+
# binding allows API services to override the binding to use different resource
|
1223
|
+
# name schemes, such as `users/*/operations`. To override the binding, API
|
1224
|
+
# services can add a binding such as `"/v1/`name=users/*`/operations"` to their
|
1225
|
+
# service configuration. For backwards compatibility, the default name includes
|
1226
|
+
# the operations collection id, however overriding users must ensure the name
|
1227
|
+
# binding is the parent resource, without the operations collection id.
|
1228
|
+
# @param [String] name
|
1229
|
+
# The name of the operation's parent resource.
|
1230
|
+
# @param [String] filter
|
1231
|
+
# The standard list filter.
|
1232
|
+
# @param [Fixnum] page_size
|
1233
|
+
# The standard list page size.
|
1234
|
+
# @param [String] page_token
|
1235
|
+
# The standard list page token.
|
1236
|
+
# @param [String] fields
|
1237
|
+
# Selector specifying which fields to include in a partial response.
|
1238
|
+
# @param [String] quota_user
|
1239
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1240
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1241
|
+
# @param [Google::Apis::RequestOptions] options
|
1242
|
+
# Request-specific options
|
1243
|
+
#
|
1244
|
+
# @yield [result, err] Result & error if block supplied
|
1245
|
+
# @yieldparam result [Google::Apis::RetailV2::GoogleLongrunningListOperationsResponse] parsed result object
|
1246
|
+
# @yieldparam err [StandardError] error object if request failed
|
1247
|
+
#
|
1248
|
+
# @return [Google::Apis::RetailV2::GoogleLongrunningListOperationsResponse]
|
1249
|
+
#
|
1250
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1251
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1252
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1253
|
+
def list_project_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1254
|
+
command = make_simple_command(:get, 'v2/{+name}/operations', options)
|
1255
|
+
command.response_representation = Google::Apis::RetailV2::GoogleLongrunningListOperationsResponse::Representation
|
1256
|
+
command.response_class = Google::Apis::RetailV2::GoogleLongrunningListOperationsResponse
|
1257
|
+
command.params['name'] = name unless name.nil?
|
1258
|
+
command.query['filter'] = filter unless filter.nil?
|
1259
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
1260
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
1261
|
+
command.query['fields'] = fields unless fields.nil?
|
1262
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1263
|
+
execute_or_queue_command(command, &block)
|
1264
|
+
end
|
1193
1265
|
|
1194
1266
|
protected
|
1195
1267
|
|
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.28.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-
|
11
|
+
date: 2022-02-14 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.28.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: []
|
@@ -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 V2
|