google-apis-retail_v2 0.26.0 → 0.29.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: 318900177ed96ac687e26131c704910f998c25b977983cd1c586e98a646ec47c
4
- data.tar.gz: f0d7cca5a575fb9d73b164f066f4e53a0a81b55e1e2c0725bdac27608a01e0bb
3
+ metadata.gz: 956cc4872d18a572f15cccb2c94cc45f16b755d1cffdcf10dfd3d6d735c1de57
4
+ data.tar.gz: a678cbf4bb92a4e838dca0bdba64260acc25a0bf4901337ec7e58e56f369dbba
5
5
  SHA512:
6
- metadata.gz: 8ed1e6b8e259b9b070322e3e7e30a2e94cdd461edbaceac343d4f60f84f71873adf804e294ab3ba9d7f278137c7c03ff90eb8352690a54a5988f2b4375734a83
7
- data.tar.gz: 84e06e9151aef169cc5354ecee48ac90d335e53abae9f4f7961148949cdf6535da237eb1afb4ccc80ab5312ee866307c20986eefec96ec358ee01224b8fb0f93
6
+ metadata.gz: 7bd2c43947ac03f046311f0afa03958b2f4a3437ff1246b466a152e2b1add0e842dd003b6489fe06abf51013613eac0f1dd7e8912d68cbe72591531512c53471
7
+ data.tar.gz: ef8419859517ed96700ee7c29b6295351007b1c6e3d718ddacf31ec04d508c682e3dfbbe3b02e49d32191433fe0d42b9d869764f2acef0ca2986897ef8acc030
data/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # Release history for google-apis-retail_v2
2
2
 
3
+ ### v0.29.0 (2022-02-24)
4
+
5
+ * Regenerated from discovery document revision 20220217
6
+
7
+ ### v0.28.0 (2022-02-12)
8
+
9
+ * Regenerated from discovery document revision 20220210
10
+
11
+ ### v0.27.0 (2022-02-03)
12
+
13
+ * Regenerated from discovery document revision 20220127
14
+
3
15
  ### v0.26.0 (2022-01-27)
4
16
 
5
17
  * Regenerated from discovery document revision 20220121
@@ -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`: Using https://support.google.com/analytics/answer/3437719.
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 value, with a zero year, such as an anniversary * A year on its own,
438
- # with zero month and day values * A year and month value, with a zero day, such
439
- # as a credit card expiration date Related types are google.type.TimeOfDay and `
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
- # If true, custom attribute values are indexed, so that it can be filtered,
690
- # faceted or boosted in SearchService.Search. This field is ignored in a
691
- # UserEvent. See SearchRequest.filter, SearchRequest.facet_specs and
692
- # SearchRequest.boost_spec for more details.
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,17 +708,20 @@ module Google
702
708
  # @return [Array<Float>]
703
709
  attr_accessor :numbers
704
710
 
705
- # If true, custom attribute values are searchable by text queries in
706
- # SearchService.Search. This field is ignored in a UserEvent. Only set if type
707
- # text is set. Otherwise, a INVALID_ARGUMENT error is returned.
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
711
719
  alias_method :searchable?, :searchable
712
720
 
713
721
  # The textual values of this custom attribute. For example, `["yellow", "green"]`
714
- # when the key is "color". Exactly one of text or numbers should be set.
715
- # Otherwise, an INVALID_ARGUMENT error is returned.
722
+ # when the key is "color". Empty string is not allowed. Otherwise, an
723
+ # INVALID_ARGUMENT error is returned. Exactly one of text or numbers should be
724
+ # set. Otherwise, an INVALID_ARGUMENT error is returned.
716
725
  # Corresponds to the JSON property `text`
717
726
  # @return [Array<String>]
718
727
  attr_accessor :text
@@ -928,9 +937,9 @@ module Google
928
937
  class GoogleCloudRetailV2ImportErrorsConfig
929
938
  include Google::Apis::Core::Hashable
930
939
 
931
- # Google Cloud Storage path for import errors. This must be an empty, existing
932
- # Cloud Storage bucket. Import errors will be written to a file in this bucket,
933
- # one per line, as a JSON-encoded `google.rpc.Status` message.
940
+ # Google Cloud Storage prefix for import errors. This must be an empty, existing
941
+ # Cloud Storage directory. Import errors will be written to sharded files in
942
+ # this directory, one per line, as a JSON-encoded `google.rpc.Status` message.
934
943
  # Corresponds to the JSON property `gcsPrefix`
935
944
  # @return [String]
936
945
  attr_accessor :gcs_prefix
@@ -1523,9 +1532,9 @@ module Google
1523
1532
  # be a UTF-8 encoded string with a length limit of 128 characters. * For
1524
1533
  # indexable attribute, the key must match the pattern: `a-zA-Z0-9*`. For example,
1525
1534
  # `key0LikeThis` or `KEY_1_LIKE_THIS`. * For text attributes, at most 400
1526
- # values are allowed. Empty values are not allowed. Each value must be a UTF-8
1527
- # encoded string with a length limit of 256 characters. * For number attributes,
1528
- # at most 400 values are allowed.
1535
+ # values are allowed. Empty values are not allowed. Each value must be a non-
1536
+ # empty UTF-8 encoded string with a length limit of 256 characters. * For number
1537
+ # attributes, at most 400 values are allowed.
1529
1538
  # Corresponds to the JSON property `attributes`
1530
1539
  # @return [Hash<String,Google::Apis::RetailV2::GoogleCloudRetailV2CustomAttribute>]
1531
1540
  attr_accessor :attributes
@@ -1680,7 +1689,7 @@ module Google
1680
1689
 
1681
1690
  # The material of the product. For example, "leather", "wooden". A maximum of 20
1682
1691
  # values are allowed. Each value must be a UTF-8 encoded string with a length
1683
- # limit of 128 characters. Otherwise, an INVALID_ARGUMENT error is returned.
1692
+ # limit of 200 characters. Otherwise, an INVALID_ARGUMENT error is returned.
1684
1693
  # Corresponding properties: Google Merchant Center property [material](https://
1685
1694
  # support.google.com/merchants/answer/6324410). Schema.org property [Product.
1686
1695
  # material](https://schema.org/material).
@@ -1723,7 +1732,8 @@ module Google
1723
1732
  attr_accessor :primary_product_id
1724
1733
 
1725
1734
  # The promotions applied to the product. A maximum of 10 values are allowed per
1726
- # Product.
1735
+ # Product. Only Promotion.promotion_id will be used, other fields will be
1736
+ # ignored if set.
1727
1737
  # Corresponds to the JSON property `promotions`
1728
1738
  # @return [Array<Google::Apis::RetailV2::GoogleCloudRetailV2Promotion>]
1729
1739
  attr_accessor :promotions
@@ -2002,7 +2012,7 @@ module Google
2002
2012
  class GoogleCloudRetailV2Promotion
2003
2013
  include Google::Apis::Core::Hashable
2004
2014
 
2005
- # ID of the promotion. For example, "free gift". The value value must be a UTF-8
2015
+ # ID of the promotion. For example, "free gift". The value must be a UTF-8
2006
2016
  # encoded string with a length limit of 128 characters, and match the pattern: `
2007
2017
  # a-zA-Z*`. For example, id0LikeThis or ID_1_LIKE_THIS. Otherwise, an
2008
2018
  # INVALID_ARGUMENT error is returned. Google Merchant Center property [promotion]
@@ -2407,6 +2417,11 @@ module Google
2407
2417
  # @return [String]
2408
2418
  attr_accessor :page_token
2409
2419
 
2420
+ # The specification for personalization.
2421
+ # Corresponds to the JSON property `personalizationSpec`
2422
+ # @return [Google::Apis::RetailV2::GoogleCloudRetailV2SearchRequestPersonalizationSpec]
2423
+ attr_accessor :personalization_spec
2424
+
2410
2425
  # Raw search query.
2411
2426
  # Corresponds to the JSON property `query`
2412
2427
  # @return [String]
@@ -2485,6 +2500,7 @@ module Google
2485
2500
  @page_categories = args[:page_categories] if args.key?(:page_categories)
2486
2501
  @page_size = args[:page_size] if args.key?(:page_size)
2487
2502
  @page_token = args[:page_token] if args.key?(:page_token)
2503
+ @personalization_spec = args[:personalization_spec] if args.key?(:personalization_spec)
2488
2504
  @query = args[:query] if args.key?(:query)
2489
2505
  @query_expansion_spec = args[:query_expansion_spec] if args.key?(:query_expansion_spec)
2490
2506
  @search_mode = args[:search_mode] if args.key?(:search_mode)
@@ -2505,6 +2521,14 @@ module Google
2505
2521
  # @return [Array<Google::Apis::RetailV2::GoogleCloudRetailV2SearchRequestBoostSpecConditionBoostSpec>]
2506
2522
  attr_accessor :condition_boost_specs
2507
2523
 
2524
+ # Whether to skip boostspec validation. If this field is set to true, invalid
2525
+ # BoostSpec.condition_boost_specs will be ignored and valid BoostSpec.
2526
+ # condition_boost_specs will still be applied.
2527
+ # Corresponds to the JSON property `skipBoostSpecValidation`
2528
+ # @return [Boolean]
2529
+ attr_accessor :skip_boost_spec_validation
2530
+ alias_method :skip_boost_spec_validation?, :skip_boost_spec_validation
2531
+
2508
2532
  def initialize(**args)
2509
2533
  update!(**args)
2510
2534
  end
@@ -2512,6 +2536,7 @@ module Google
2512
2536
  # Update properties of this object
2513
2537
  def update!(**args)
2514
2538
  @condition_boost_specs = args[:condition_boost_specs] if args.key?(:condition_boost_specs)
2539
+ @skip_boost_spec_validation = args[:skip_boost_spec_validation] if args.key?(:skip_boost_spec_validation)
2515
2540
  end
2516
2541
  end
2517
2542
 
@@ -2734,6 +2759,25 @@ module Google
2734
2759
  end
2735
2760
  end
2736
2761
 
2762
+ # The specification for personalization.
2763
+ class GoogleCloudRetailV2SearchRequestPersonalizationSpec
2764
+ include Google::Apis::Core::Hashable
2765
+
2766
+ # Defaults to Mode.AUTO.
2767
+ # Corresponds to the JSON property `mode`
2768
+ # @return [String]
2769
+ attr_accessor :mode
2770
+
2771
+ def initialize(**args)
2772
+ update!(**args)
2773
+ end
2774
+
2775
+ # Update properties of this object
2776
+ def update!(**args)
2777
+ @mode = args[:mode] if args.key?(:mode)
2778
+ end
2779
+ end
2780
+
2737
2781
  # Specification to determine under which conditions query expansion should occur.
2738
2782
  class GoogleCloudRetailV2SearchRequestQueryExpansionSpec
2739
2783
  include Google::Apis::Core::Hashable
@@ -2790,6 +2834,12 @@ module Google
2790
2834
  # @return [Array<Google::Apis::RetailV2::GoogleCloudRetailV2SearchResponseFacet>]
2791
2835
  attr_accessor :facets
2792
2836
 
2837
+ # The invalid SearchRequest.BoostSpec.condition_boost_specs that are not applied
2838
+ # during serving.
2839
+ # Corresponds to the JSON property `invalidConditionBoostSpecs`
2840
+ # @return [Array<Google::Apis::RetailV2::GoogleCloudRetailV2SearchRequestBoostSpecConditionBoostSpec>]
2841
+ attr_accessor :invalid_condition_boost_specs
2842
+
2793
2843
  # A token that can be sent as SearchRequest.page_token to retrieve the next page.
2794
2844
  # If this field is omitted, there are no subsequent pages.
2795
2845
  # Corresponds to the JSON property `nextPageToken`
@@ -2831,6 +2881,7 @@ module Google
2831
2881
  @attribution_token = args[:attribution_token] if args.key?(:attribution_token)
2832
2882
  @corrected_query = args[:corrected_query] if args.key?(:corrected_query)
2833
2883
  @facets = args[:facets] if args.key?(:facets)
2884
+ @invalid_condition_boost_specs = args[:invalid_condition_boost_specs] if args.key?(:invalid_condition_boost_specs)
2834
2885
  @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
2835
2886
  @query_expansion_info = args[:query_expansion_info] if args.key?(:query_expansion_info)
2836
2887
  @redirect_uri = args[:redirect_uri] if args.key?(:redirect_uri)
@@ -2995,11 +3046,20 @@ module Google
2995
3046
  include Google::Apis::Core::Hashable
2996
3047
 
2997
3048
  # The final component of the resource name of a branch. This field must be one
2998
- # of "0", "1" or "2". Otherwise, an INVALID_ARGUMENT error is returned.
3049
+ # of "0", "1" or "2". Otherwise, an INVALID_ARGUMENT error is returned. If there
3050
+ # are no sufficient active products in the targeted branch and force is not set,
3051
+ # a FAILED_PRECONDITION error is returned.
2999
3052
  # Corresponds to the JSON property `branchId`
3000
3053
  # @return [String]
3001
3054
  attr_accessor :branch_id
3002
3055
 
3056
+ # If set to true, it permits switching to a branch with branch_id even if it has
3057
+ # no sufficient active products.
3058
+ # Corresponds to the JSON property `force`
3059
+ # @return [Boolean]
3060
+ attr_accessor :force
3061
+ alias_method :force?, :force
3062
+
3003
3063
  # Some note on this request, this can be retrieved by CatalogService.
3004
3064
  # GetDefaultBranch before next valid default branch set occurs. This field must
3005
3065
  # be a UTF-8 encoded string with a length limit of 1,000 characters. Otherwise,
@@ -3015,6 +3075,7 @@ module Google
3015
3075
  # Update properties of this object
3016
3076
  def update!(**args)
3017
3077
  @branch_id = args[:branch_id] if args.key?(:branch_id)
3078
+ @force = args[:force] if args.key?(:force)
3018
3079
  @note = args[:note] if args.key?(:note)
3019
3080
  end
3020
3081
  end
@@ -3631,9 +3692,9 @@ module Google
3631
3692
  class GoogleCloudRetailV2alphaImportErrorsConfig
3632
3693
  include Google::Apis::Core::Hashable
3633
3694
 
3634
- # Google Cloud Storage path for import errors. This must be an empty, existing
3635
- # Cloud Storage bucket. Import errors will be written to a file in this bucket,
3636
- # one per line, as a JSON-encoded `google.rpc.Status` message.
3695
+ # Google Cloud Storage prefix for import errors. This must be an empty, existing
3696
+ # Cloud Storage directory. Import errors will be written to sharded files in
3697
+ # this directory, one per line, as a JSON-encoded `google.rpc.Status` message.
3637
3698
  # Corresponds to the JSON property `gcsPrefix`
3638
3699
  # @return [String]
3639
3700
  attr_accessor :gcs_prefix
@@ -4101,9 +4162,9 @@ module Google
4101
4162
  class GoogleCloudRetailV2betaImportErrorsConfig
4102
4163
  include Google::Apis::Core::Hashable
4103
4164
 
4104
- # Google Cloud Storage path for import errors. This must be an empty, existing
4105
- # Cloud Storage bucket. Import errors will be written to a file in this bucket,
4106
- # one per line, as a JSON-encoded `google.rpc.Status` message.
4165
+ # Google Cloud Storage prefix for import errors. This must be an empty, existing
4166
+ # Cloud Storage directory. Import errors will be written to sharded files in
4167
+ # this directory, one per line, as a JSON-encoded `google.rpc.Status` message.
4107
4168
  # Corresponds to the JSON property `gcsPrefix`
4108
4169
  # @return [String]
4109
4170
  attr_accessor :gcs_prefix
@@ -4533,10 +4594,10 @@ module Google
4533
4594
  # day and time zone are either specified elsewhere or are insignificant. The
4534
4595
  # date is relative to the Gregorian Calendar. This can represent one of the
4535
4596
  # following: * A full date, with non-zero year, month, and day values * A month
4536
- # and day value, with a zero year, such as an anniversary * A year on its own,
4537
- # with zero month and day values * A year and month value, with a zero day, such
4538
- # as a credit card expiration date Related types are google.type.TimeOfDay and `
4539
- # google.protobuf.Timestamp`.
4597
+ # and day, with a zero year (e.g., an anniversary) * A year on its own, with a
4598
+ # zero month and a zero day * A year and month, with a zero day (e.g., a credit
4599
+ # card expiration date) Related types: * google.type.TimeOfDay * google.type.
4600
+ # DateTime * google.protobuf.Timestamp
4540
4601
  class GoogleTypeDate
4541
4602
  include Google::Apis::Core::Hashable
4542
4603
 
@@ -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.26.0"
19
+ GEM_VERSION = "0.29.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.4.1"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20220121"
25
+ REVISION = "20220217"
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
 
@@ -1361,6 +1367,8 @@ module Google
1361
1367
  collection :page_categories, as: 'pageCategories'
1362
1368
  property :page_size, as: 'pageSize'
1363
1369
  property :page_token, as: 'pageToken'
1370
+ property :personalization_spec, as: 'personalizationSpec', class: Google::Apis::RetailV2::GoogleCloudRetailV2SearchRequestPersonalizationSpec, decorator: Google::Apis::RetailV2::GoogleCloudRetailV2SearchRequestPersonalizationSpec::Representation
1371
+
1364
1372
  property :query, as: 'query'
1365
1373
  property :query_expansion_spec, as: 'queryExpansionSpec', class: Google::Apis::RetailV2::GoogleCloudRetailV2SearchRequestQueryExpansionSpec, decorator: Google::Apis::RetailV2::GoogleCloudRetailV2SearchRequestQueryExpansionSpec::Representation
1366
1374
 
@@ -1377,6 +1385,7 @@ module Google
1377
1385
  class Representation < Google::Apis::Core::JsonRepresentation
1378
1386
  collection :condition_boost_specs, as: 'conditionBoostSpecs', class: Google::Apis::RetailV2::GoogleCloudRetailV2SearchRequestBoostSpecConditionBoostSpec, decorator: Google::Apis::RetailV2::GoogleCloudRetailV2SearchRequestBoostSpecConditionBoostSpec::Representation
1379
1387
 
1388
+ property :skip_boost_spec_validation, as: 'skipBoostSpecValidation'
1380
1389
  end
1381
1390
  end
1382
1391
 
@@ -1420,6 +1429,13 @@ module Google
1420
1429
  end
1421
1430
  end
1422
1431
 
1432
+ class GoogleCloudRetailV2SearchRequestPersonalizationSpec
1433
+ # @private
1434
+ class Representation < Google::Apis::Core::JsonRepresentation
1435
+ property :mode, as: 'mode'
1436
+ end
1437
+ end
1438
+
1423
1439
  class GoogleCloudRetailV2SearchRequestQueryExpansionSpec
1424
1440
  # @private
1425
1441
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1436,6 +1452,8 @@ module Google
1436
1452
  property :corrected_query, as: 'correctedQuery'
1437
1453
  collection :facets, as: 'facets', class: Google::Apis::RetailV2::GoogleCloudRetailV2SearchResponseFacet, decorator: Google::Apis::RetailV2::GoogleCloudRetailV2SearchResponseFacet::Representation
1438
1454
 
1455
+ collection :invalid_condition_boost_specs, as: 'invalidConditionBoostSpecs', class: Google::Apis::RetailV2::GoogleCloudRetailV2SearchRequestBoostSpecConditionBoostSpec, decorator: Google::Apis::RetailV2::GoogleCloudRetailV2SearchRequestBoostSpecConditionBoostSpec::Representation
1456
+
1439
1457
  property :next_page_token, as: 'nextPageToken'
1440
1458
  property :query_expansion_info, as: 'queryExpansionInfo', class: Google::Apis::RetailV2::GoogleCloudRetailV2SearchResponseQueryExpansionInfo, decorator: Google::Apis::RetailV2::GoogleCloudRetailV2SearchResponseQueryExpansionInfo::Representation
1441
1459
 
@@ -1490,6 +1508,7 @@ module Google
1490
1508
  # @private
1491
1509
  class Representation < Google::Apis::Core::JsonRepresentation
1492
1510
  property :branch_id, as: 'branchId'
1511
+ property :force, as: 'force'
1493
1512
  property :note, as: 'note'
1494
1513
  end
1495
1514
  end
@@ -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. This feature is only
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`. This feature is only available for users who have
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`.
@@ -687,7 +682,7 @@ module Google
687
682
  # CreateProduct or UpdateProduct request. If no inventory fields are set in
688
683
  # CreateProductRequest.product, then any pre-existing inventory information for
689
684
  # this product will be used. If no inventory fields are set in
690
- # UpdateProductRequest.set_mask, then any existing inventory information will be
685
+ # SetInventoryRequest.set_mask, then any existing inventory information will be
691
686
  # preserved. Pre-existing inventory information can only be updated with
692
687
  # SetInventory, AddFulfillmentPlaces, and RemoveFulfillmentPlaces. This feature
693
688
  # is only available for users who have Retail Search enabled. Please submit a
@@ -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.26.0
4
+ version: 0.29.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-01-31 00:00:00.000000000 Z
11
+ date: 2022-02-28 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.26.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-retail_v2/v0.29.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: []