google-apis-retail_v2alpha 0.34.0 → 0.37.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: 82ba0873fffb5177af7796136383999137f3b300d93113a3a7d1079250df1ffb
4
- data.tar.gz: 6e886f2d384917a8aeb825cfe1e0dd117888eaf1ed5c7ff8bd10a4c7dea8f2d0
3
+ metadata.gz: caea85e4dc8a3c22833aa7302515b8e21035a770cc0be655122536284b33c4ba
4
+ data.tar.gz: 2a40905b2e51af4d99ceff5d672ba74d77e84752427ae54c7419ba4f8c4fb5bd
5
5
  SHA512:
6
- metadata.gz: e5f285306766885d90316c1674eab733c87737d18dc830c879e54eacd7fbb6c4ba19acaac0ee99fa295eb1ce2ed561eaddf39e3d1e3cd425aa15d114c7e43261
7
- data.tar.gz: e3492014caaee1ebc2cecdd16a23a1b7b279452b13747103861f60620f504d47e82686c9b73ab29b7d0f72ace525825fc7ec99f17b5844b4257169141d6945da
6
+ metadata.gz: 5093e1e3bbd1f1666e27b98e9790922611226c3e668e287aa7fad5397db44c692c85dbe42857db9f848173083dc46c48fd9b1c1429f82a04aa65a2e2faa4582e
7
+ data.tar.gz: 20a3171589e843b72530a88b00881c15bc0093f37a9b0ab6ee6bb02f5d1f179f57c76998a319167481951b646d1e541fab513956bc8878def75749abade94a9f
data/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # Release history for google-apis-retail_v2alpha
2
2
 
3
+ ### v0.37.0 (2022-04-22)
4
+
5
+ * Regenerated from discovery document revision 20220414
6
+
7
+ ### v0.36.0 (2022-04-14)
8
+
9
+ * Regenerated from discovery document revision 20220408
10
+
11
+ ### v0.35.0 (2022-03-31)
12
+
13
+ * Regenerated from discovery document revision 20220324
14
+
3
15
  ### v0.34.0 (2022-03-24)
4
16
 
5
17
  * Regenerated from discovery document revision 20220319
@@ -308,6 +308,35 @@ module Google
308
308
  end
309
309
  end
310
310
 
311
+ # Metadata related to the progress of the AddLocalInventories operation.
312
+ # Currently empty because there is no meaningful metadata populated from the
313
+ # AddLocalInventories method.
314
+ class GoogleCloudRetailV2AddLocalInventoriesMetadata
315
+ include Google::Apis::Core::Hashable
316
+
317
+ def initialize(**args)
318
+ update!(**args)
319
+ end
320
+
321
+ # Update properties of this object
322
+ def update!(**args)
323
+ end
324
+ end
325
+
326
+ # Response of the AddLocalInventories API. Currently empty because there is no
327
+ # meaningful response populated from the AddLocalInventories method.
328
+ class GoogleCloudRetailV2AddLocalInventoriesResponse
329
+ include Google::Apis::Core::Hashable
330
+
331
+ def initialize(**args)
332
+ update!(**args)
333
+ end
334
+
335
+ # Update properties of this object
336
+ def update!(**args)
337
+ end
338
+ end
339
+
311
340
  # Response of the ImportCompletionDataRequest. If the long running operation is
312
341
  # done, this message is returned by the google.longrunning.Operations.response
313
342
  # field if the operation is successful.
@@ -561,6 +590,35 @@ module Google
561
590
  end
562
591
  end
563
592
 
593
+ # Metadata related to the progress of the RemoveLocalInventories operation.
594
+ # Currently empty because there is no meaningful metadata populated from the
595
+ # RemoveLocalInventories method.
596
+ class GoogleCloudRetailV2RemoveLocalInventoriesMetadata
597
+ include Google::Apis::Core::Hashable
598
+
599
+ def initialize(**args)
600
+ update!(**args)
601
+ end
602
+
603
+ # Update properties of this object
604
+ def update!(**args)
605
+ end
606
+ end
607
+
608
+ # Response of the RemoveLocalInventories API. Currently empty because there is
609
+ # no meaningful response populated from the RemoveLocalInventories method.
610
+ class GoogleCloudRetailV2RemoveLocalInventoriesResponse
611
+ include Google::Apis::Core::Hashable
612
+
613
+ def initialize(**args)
614
+ update!(**args)
615
+ end
616
+
617
+ # Update properties of this object
618
+ def update!(**args)
619
+ end
620
+ end
621
+
564
622
  # Metadata related to the progress of the SetInventory operation. Currently
565
623
  # empty because there is no meaningful metadata populated from the SetInventory
566
624
  # method.
@@ -1482,14 +1540,6 @@ module Google
1482
1540
  # @return [Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaRule]
1483
1541
  attr_accessor :rule
1484
1542
 
1485
- # Required. Specifies the use case for the control. Affects what condition
1486
- # fields can be set. Only settable by search controls. Will default to
1487
- # SEARCH_SOLUTION_USE_CASE_SEARCH if not specified. Currently only allow one
1488
- # search_solution_use_case per control.
1489
- # Corresponds to the JSON property `searchSolutionUseCase`
1490
- # @return [Array<String>]
1491
- attr_accessor :search_solution_use_case
1492
-
1493
1543
  # Required. Immutable. The solution types that the serving config is used for.
1494
1544
  # Currently we support setting only one type of solution at creation time. Only `
1495
1545
  # SOLUTION_TYPE_SEARCH` value is supported at the moment. If no solution type is
@@ -1509,7 +1559,6 @@ module Google
1509
1559
  @facet_spec = args[:facet_spec] if args.key?(:facet_spec)
1510
1560
  @name = args[:name] if args.key?(:name)
1511
1561
  @rule = args[:rule] if args.key?(:rule)
1512
- @search_solution_use_case = args[:search_solution_use_case] if args.key?(:search_solution_use_case)
1513
1562
  @solution_types = args[:solution_types] if args.key?(:solution_types)
1514
1563
  end
1515
1564
  end
@@ -1955,11 +2004,15 @@ module Google
1955
2004
  # @return [Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaProductInputConfig]
1956
2005
  attr_accessor :input_config
1957
2006
 
1958
- # Pub/Sub topic for receiving notification. If this field is set, when the
1959
- # import is finished, a notification will be sent to specified Pub/Sub topic.
2007
+ # Full Pub/Sub topic name for receiving notification. If this field is set, when
2008
+ # the import is finished, a notification will be sent to specified Pub/Sub topic.
1960
2009
  # The message data will be JSON string of a Operation. Format of the Pub/Sub
1961
- # topic is `projects/`project`/topics/`topic``. Only supported when
1962
- # ImportProductsRequest.reconciliation_mode is set to `FULL`.
2010
+ # topic is `projects/`project`/topics/`topic``. It has to be within the same
2011
+ # project as ImportProductsRequest.parent. Make sure that both `cloud-retail-
2012
+ # customer-data-access@system.gserviceaccount.com` and `service-@gcp-sa-retail.
2013
+ # iam.gserviceaccount.com` have the `pubsub.topics.publish` IAM permission on
2014
+ # the topic. Only supported when ImportProductsRequest.reconciliation_mode is
2015
+ # set to `FULL`.
1963
2016
  # Corresponds to the JSON property `notificationPubsubTopic`
1964
2017
  # @return [String]
1965
2018
  attr_accessor :notification_pubsub_topic
@@ -1975,6 +2028,15 @@ module Google
1975
2028
  # @return [String]
1976
2029
  attr_accessor :request_id
1977
2030
 
2031
+ # If true, will perform the FULL import even if it would delete a large
2032
+ # proportion of the products in the default branch, which could potentially
2033
+ # cause outages if you have live predict/search traffic. Only supported when
2034
+ # ImportProductsRequest.reconciliation_mode is set to `FULL`.
2035
+ # Corresponds to the JSON property `skipDefaultBranchProtection`
2036
+ # @return [Boolean]
2037
+ attr_accessor :skip_default_branch_protection
2038
+ alias_method :skip_default_branch_protection?, :skip_default_branch_protection
2039
+
1978
2040
  # Indicates which fields in the provided imported 'products' to update. If not
1979
2041
  # set, will by default update all fields.
1980
2042
  # Corresponds to the JSON property `updateMask`
@@ -1992,6 +2054,7 @@ module Google
1992
2054
  @notification_pubsub_topic = args[:notification_pubsub_topic] if args.key?(:notification_pubsub_topic)
1993
2055
  @reconciliation_mode = args[:reconciliation_mode] if args.key?(:reconciliation_mode)
1994
2056
  @request_id = args[:request_id] if args.key?(:request_id)
2057
+ @skip_default_branch_protection = args[:skip_default_branch_protection] if args.key?(:skip_default_branch_protection)
1995
2058
  @update_mask = args[:update_mask] if args.key?(:update_mask)
1996
2059
  end
1997
2060
  end
@@ -2248,6 +2311,18 @@ module Google
2248
2311
  # @return [Hash<String,Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaCustomAttribute>]
2249
2312
  attr_accessor :attributes
2250
2313
 
2314
+ # Input only. Supported fulfillment types. Valid fulfillment type values include
2315
+ # commonly used types (such as pickup in store and same day delivery), and
2316
+ # custom types. Customers have to map custom types to their display names before
2317
+ # rendering UI. Supported values: * "pickup-in-store" * "ship-to-store" * "same-
2318
+ # day-delivery" * "next-day-delivery" * "custom-type-1" * "custom-type-2" * "
2319
+ # custom-type-3" * "custom-type-4" * "custom-type-5" If this field is set to an
2320
+ # invalid value other than these, an INVALID_ARGUMENT error is returned. All the
2321
+ # elements must be distinct. Otherwise, an INVALID_ARGUMENT error is returned.
2322
+ # Corresponds to the JSON property `fulfillmentTypes`
2323
+ # @return [Array<String>]
2324
+ attr_accessor :fulfillment_types
2325
+
2251
2326
  # The place ID for the current set of inventory information.
2252
2327
  # Corresponds to the JSON property `placeId`
2253
2328
  # @return [String]
@@ -2265,6 +2340,7 @@ module Google
2265
2340
  # Update properties of this object
2266
2341
  def update!(**args)
2267
2342
  @attributes = args[:attributes] if args.key?(:attributes)
2343
+ @fulfillment_types = args[:fulfillment_types] if args.key?(:fulfillment_types)
2268
2344
  @place_id = args[:place_id] if args.key?(:place_id)
2269
2345
  @price_info = args[:price_info] if args.key?(:price_info)
2270
2346
  end
@@ -2297,7 +2373,8 @@ module Google
2297
2373
  # Language of the title/description and other string attributes. Use language
2298
2374
  # tags defined by [BCP 47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt). ISO
2299
2375
  # 639-1. This specifies the language of offers in Merchant Center that will be
2300
- # accepted. If empty no language filtering will be performed.
2376
+ # accepted. If empty no language filtering will be performed. Example value: `en`
2377
+ # .
2301
2378
  # Corresponds to the JSON property `languageCode`
2302
2379
  # @return [String]
2303
2380
  attr_accessor :language_code
@@ -2546,7 +2623,8 @@ module Google
2546
2623
  attr_accessor :currency_code
2547
2624
 
2548
2625
  # Price of the product without any discount. If zero, by default set to be the
2549
- # price.
2626
+ # price. If set, original_price should be greater than or equal to price,
2627
+ # otherwise an INVALID_ARGUMENT error is thrown.
2550
2628
  # Corresponds to the JSON property `originalPrice`
2551
2629
  # @return [Float]
2552
2630
  attr_accessor :original_price
@@ -3082,13 +3160,13 @@ module Google
3082
3160
  # The type of Products allowed to be ingested into the catalog. Acceptable
3083
3161
  # values are: * `primary` (default): You can ingest Products of all types. When
3084
3162
  # ingesting a Product, its type will default to Product.Type.PRIMARY if unset. *
3085
- # `variant`: You can only ingest Product.Type.VARIANT Products. This means
3086
- # Product.primary_product_id cannot be empty. If this field is set to an invalid
3087
- # value other than these, an INVALID_ARGUMENT error is returned. If this field
3088
- # is `variant` and merchant_center_product_id_field is `itemGroupId`, an
3089
- # INVALID_ARGUMENT error is returned. See [Using product levels](https://cloud.
3090
- # google.com/retail/recommendations-ai/docs/catalog#product-levels) for more
3091
- # details.
3163
+ # `variant` (incompatible with Retail Search): You can only ingest Product.Type.
3164
+ # VARIANT Products. This means Product.primary_product_id cannot be empty. If
3165
+ # this field is set to an invalid value other than these, an INVALID_ARGUMENT
3166
+ # error is returned. If this field is `variant` and
3167
+ # merchant_center_product_id_field is `itemGroupId`, an INVALID_ARGUMENT error
3168
+ # is returned. See [Product levels](https://cloud.google.com/retail/docs/catalog#
3169
+ # product-levels) for more details.
3092
3170
  # Corresponds to the JSON property `ingestionProductType`
3093
3171
  # @return [String]
3094
3172
  attr_accessor :ingestion_product_type
@@ -3101,8 +3179,8 @@ module Google
3101
3179
  # the item group. If this field is set to an invalid value other than these, an
3102
3180
  # INVALID_ARGUMENT error is returned. If this field is `itemGroupId` and
3103
3181
  # ingestion_product_type is `variant`, an INVALID_ARGUMENT error is returned.
3104
- # See [Using product levels](https://cloud.google.com/retail/recommendations-ai/
3105
- # docs/catalog#product-levels) for more details.
3182
+ # See [Product levels](https://cloud.google.com/retail/docs/catalog#product-
3183
+ # levels) for more details.
3106
3184
  # Corresponds to the JSON property `merchantCenterProductIdField`
3107
3185
  # @return [String]
3108
3186
  attr_accessor :merchant_center_product_id_field
@@ -3251,7 +3329,7 @@ module Google
3251
3329
  # `availability`: Double quoted Product.availability string. * `create_time` :
3252
3330
  # in ISO 8601 "zulu" format. Supported syntax: * Comparators (">", "<", ">=", "<=
3253
3331
  # ", "="). Examples: * create_time <= "2015-02-13T17:05:46Z" * availability = "
3254
- # IN_STOCK * Conjunctions ("AND") Examples: * create_time <= "2015-02-13T17:05:
3332
+ # IN_STOCK" * Conjunctions ("AND") Examples: * create_time <= "2015-02-13T17:05:
3255
3333
  # 46Z" AND availability = "PREORDER" * Disjunctions ("OR") Examples: *
3256
3334
  # create_time <= "2015-02-13T17:05:46Z" OR availability = "IN_STOCK" * Can
3257
3335
  # support nested queries. Examples: * (create_time <= "2015-02-13T17:05:46Z" AND
@@ -3259,7 +3337,7 @@ module Google
3259
3337
  # availability = "IN_STOCK") * Filter Limits: * Filter should not contain more
3260
3338
  # than 6 conditions. * Max nesting depth should not exceed 2 levels. Examples
3261
3339
  # queries: * Delete back order products created before a timestamp. create_time <
3262
- # = "2015-02-13T17:05:46Z" OR availability = "BACKORDER
3340
+ # = "2015-02-13T17:05:46Z" OR availability = "BACKORDER"
3263
3341
  # Corresponds to the JSON property `filter`
3264
3342
  # @return [String]
3265
3343
  attr_accessor :filter
@@ -4054,6 +4132,21 @@ module Google
4054
4132
  # @return [String]
4055
4133
  attr_accessor :filter
4056
4134
 
4135
+ # The labels applied to a resource must meet the following requirements: * Each
4136
+ # resource can have multiple labels, up to a maximum of 64. * Each label must be
4137
+ # a key-value pair. * Keys have a minimum length of 1 character and a maximum
4138
+ # length of 63 characters, and cannot be empty. Values can be empty, and have a
4139
+ # maximum length of 63 characters. * Keys and values can contain only lowercase
4140
+ # letters, numeric characters, underscores, and dashes. All characters must use
4141
+ # UTF-8 encoding, and international characters are allowed. * The key portion of
4142
+ # a label must be unique. However, you can use the same key with multiple
4143
+ # resources. * Keys must start with a lowercase letter or international
4144
+ # character. See [Google Cloud Document](https://cloud.google.com/resource-
4145
+ # manager/docs/creating-managing-labels#requirements) for more details.
4146
+ # Corresponds to the JSON property `labels`
4147
+ # @return [Hash<String,String>]
4148
+ attr_accessor :labels
4149
+
4057
4150
  # A 0-indexed integer that specifies the current offset (that is, starting
4058
4151
  # result location, amongst the Products deemed by the API as relevant) in search
4059
4152
  # results. This field is only considered if page_token is unset. If this field
@@ -4103,7 +4196,8 @@ module Google
4103
4196
  # @return [Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaSearchRequestPersonalizationSpec]
4104
4197
  attr_accessor :personalization_spec
4105
4198
 
4106
- # Raw search query.
4199
+ # Raw search query. If this field is empty, the request is considered a category
4200
+ # browsing request and returned results are based on filter and page_categories.
4107
4201
  # Corresponds to the JSON property `query`
4108
4202
  # @return [String]
4109
4203
  attr_accessor :query
@@ -4184,6 +4278,7 @@ module Google
4184
4278
  @dynamic_facet_spec = args[:dynamic_facet_spec] if args.key?(:dynamic_facet_spec)
4185
4279
  @facet_specs = args[:facet_specs] if args.key?(:facet_specs)
4186
4280
  @filter = args[:filter] if args.key?(:filter)
4281
+ @labels = args[:labels] if args.key?(:labels)
4187
4282
  @offset = args[:offset] if args.key?(:offset)
4188
4283
  @order_by = args[:order_by] if args.key?(:order_by)
4189
4284
  @page_categories = args[:page_categories] if args.key?(:page_categories)
@@ -5209,10 +5304,12 @@ module Google
5209
5304
  # Required. A unique identifier for tracking visitors. For example, this could
5210
5305
  # be implemented with an HTTP cookie, which should be able to uniquely identify
5211
5306
  # a visitor on a single device. This unique identifier should not change if the
5212
- # visitor log in/out of the website. The field must be a UTF-8 encoded string
5213
- # with a length limit of 128 characters. Otherwise, an INVALID_ARGUMENT error is
5214
- # returned. The field should not contain PII or user-data. We recommend to use
5215
- # Google Analystics [Client ID](https://developers.google.com/analytics/
5307
+ # visitor log in/out of the website. Don't set the field to the same fixed ID
5308
+ # for different users. This mixes the event history of those users together,
5309
+ # which results in degraded model quality. The field must be a UTF-8 encoded
5310
+ # string with a length limit of 128 characters. Otherwise, an INVALID_ARGUMENT
5311
+ # error is returned. The field should not contain PII or user-data. We recommend
5312
+ # to use Google Analystics [Client ID](https://developers.google.com/analytics/
5216
5313
  # devguides/collection/analyticsjs/field-reference#clientId) for this field.
5217
5314
  # Corresponds to the JSON property `visitorId`
5218
5315
  # @return [String]
@@ -5339,13 +5436,12 @@ module Google
5339
5436
  attr_accessor :direct_user_request
5340
5437
  alias_method :direct_user_request?, :direct_user_request
5341
5438
 
5342
- # The end user's IP address. Required for getting SearchResponse.
5343
- # sponsored_results. This field is used to extract location information for
5344
- # personalization. This field must be either an IPv4 address (e.g. "104.133.9.80"
5345
- # ) or an IPv6 address (e.g. "2001:0db8:85a3:0000:0000:8a2e:0370:7334").
5346
- # Otherwise, an INVALID_ARGUMENT error is returned. This should not be set when
5347
- # using the JavaScript tag in UserEventService.CollectUserEvent or if
5348
- # direct_user_request is set.
5439
+ # The end user's IP address. This field is used to extract location information
5440
+ # for personalization. This field must be either an IPv4 address (e.g. "104.133.
5441
+ # 9.80") or an IPv6 address (e.g. "2001:0db8:85a3:0000:0000:8a2e:0370:7334").
5442
+ # Otherwise, an INVALID_ARGUMENT error is returned. This should not be set when:
5443
+ # * setting SearchRequest.user_info. * using the JavaScript tag in
5444
+ # UserEventService.CollectUserEvent or if direct_user_request is set.
5349
5445
  # Corresponds to the JSON property `ipAddress`
5350
5446
  # @return [String]
5351
5447
  attr_accessor :ip_address
@@ -5361,7 +5457,10 @@ module Google
5361
5457
  attr_accessor :user_agent
5362
5458
 
5363
5459
  # Highly recommended for logged-in users. Unique identifier for logged-in user,
5364
- # such as a user name. The field must be a UTF-8 encoded string with a length
5460
+ # such as a user name. Don't set for anonymous users. Always use a hashed value
5461
+ # for this ID. Don't set the field to the same fixed ID for different users.
5462
+ # This mixes the event history of those users together, which results in
5463
+ # degraded model quality. The field must be a UTF-8 encoded string with a length
5365
5464
  # limit of 128 characters. Otherwise, an INVALID_ARGUMENT error is returned.
5366
5465
  # Corresponds to the JSON property `userId`
5367
5466
  # @return [String]
@@ -5409,6 +5508,35 @@ module Google
5409
5508
  end
5410
5509
  end
5411
5510
 
5511
+ # Metadata related to the progress of the AddLocalInventories operation.
5512
+ # Currently empty because there is no meaningful metadata populated from the
5513
+ # AddLocalInventories method.
5514
+ class GoogleCloudRetailV2betaAddLocalInventoriesMetadata
5515
+ include Google::Apis::Core::Hashable
5516
+
5517
+ def initialize(**args)
5518
+ update!(**args)
5519
+ end
5520
+
5521
+ # Update properties of this object
5522
+ def update!(**args)
5523
+ end
5524
+ end
5525
+
5526
+ # Response of the AddLocalInventories API. Currently empty because there is no
5527
+ # meaningful response populated from the AddLocalInventories method.
5528
+ class GoogleCloudRetailV2betaAddLocalInventoriesResponse
5529
+ include Google::Apis::Core::Hashable
5530
+
5531
+ def initialize(**args)
5532
+ update!(**args)
5533
+ end
5534
+
5535
+ # Update properties of this object
5536
+ def update!(**args)
5537
+ end
5538
+ end
5539
+
5412
5540
  # Configuration of destination for Export related errors.
5413
5541
  class GoogleCloudRetailV2betaExportErrorsConfig
5414
5542
  include Google::Apis::Core::Hashable
@@ -5764,6 +5892,35 @@ module Google
5764
5892
  end
5765
5893
  end
5766
5894
 
5895
+ # Metadata related to the progress of the RemoveLocalInventories operation.
5896
+ # Currently empty because there is no meaningful metadata populated from the
5897
+ # RemoveLocalInventories method.
5898
+ class GoogleCloudRetailV2betaRemoveLocalInventoriesMetadata
5899
+ include Google::Apis::Core::Hashable
5900
+
5901
+ def initialize(**args)
5902
+ update!(**args)
5903
+ end
5904
+
5905
+ # Update properties of this object
5906
+ def update!(**args)
5907
+ end
5908
+ end
5909
+
5910
+ # Response of the RemoveLocalInventories API. Currently empty because there is
5911
+ # no meaningful response populated from the RemoveLocalInventories method.
5912
+ class GoogleCloudRetailV2betaRemoveLocalInventoriesResponse
5913
+ include Google::Apis::Core::Hashable
5914
+
5915
+ def initialize(**args)
5916
+ update!(**args)
5917
+ end
5918
+
5919
+ # Update properties of this object
5920
+ def update!(**args)
5921
+ end
5922
+ end
5923
+
5767
5924
  # Metadata related to the progress of the SetInventory operation. Currently
5768
5925
  # empty because there is no meaningful metadata populated from the SetInventory
5769
5926
  # method.
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module RetailV2alpha
18
18
  # Version of the google-apis-retail_v2alpha gem
19
- GEM_VERSION = "0.34.0"
19
+ GEM_VERSION = "0.37.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 = "20220319"
25
+ REVISION = "20220414"
26
26
  end
27
27
  end
28
28
  end
@@ -76,6 +76,18 @@ module Google
76
76
  include Google::Apis::Core::JsonObjectSupport
77
77
  end
78
78
 
79
+ class GoogleCloudRetailV2AddLocalInventoriesMetadata
80
+ class Representation < Google::Apis::Core::JsonRepresentation; end
81
+
82
+ include Google::Apis::Core::JsonObjectSupport
83
+ end
84
+
85
+ class GoogleCloudRetailV2AddLocalInventoriesResponse
86
+ class Representation < Google::Apis::Core::JsonRepresentation; end
87
+
88
+ include Google::Apis::Core::JsonObjectSupport
89
+ end
90
+
79
91
  class GoogleCloudRetailV2ImportCompletionDataResponse
80
92
  class Representation < Google::Apis::Core::JsonRepresentation; end
81
93
 
@@ -142,6 +154,18 @@ module Google
142
154
  include Google::Apis::Core::JsonObjectSupport
143
155
  end
144
156
 
157
+ class GoogleCloudRetailV2RemoveLocalInventoriesMetadata
158
+ class Representation < Google::Apis::Core::JsonRepresentation; end
159
+
160
+ include Google::Apis::Core::JsonObjectSupport
161
+ end
162
+
163
+ class GoogleCloudRetailV2RemoveLocalInventoriesResponse
164
+ class Representation < Google::Apis::Core::JsonRepresentation; end
165
+
166
+ include Google::Apis::Core::JsonObjectSupport
167
+ end
168
+
145
169
  class GoogleCloudRetailV2SetInventoryMetadata
146
170
  class Representation < Google::Apis::Core::JsonRepresentation; end
147
171
 
@@ -844,6 +868,18 @@ module Google
844
868
  include Google::Apis::Core::JsonObjectSupport
845
869
  end
846
870
 
871
+ class GoogleCloudRetailV2betaAddLocalInventoriesMetadata
872
+ class Representation < Google::Apis::Core::JsonRepresentation; end
873
+
874
+ include Google::Apis::Core::JsonObjectSupport
875
+ end
876
+
877
+ class GoogleCloudRetailV2betaAddLocalInventoriesResponse
878
+ class Representation < Google::Apis::Core::JsonRepresentation; end
879
+
880
+ include Google::Apis::Core::JsonObjectSupport
881
+ end
882
+
847
883
  class GoogleCloudRetailV2betaExportErrorsConfig
848
884
  class Representation < Google::Apis::Core::JsonRepresentation; end
849
885
 
@@ -934,6 +970,18 @@ module Google
934
970
  include Google::Apis::Core::JsonObjectSupport
935
971
  end
936
972
 
973
+ class GoogleCloudRetailV2betaRemoveLocalInventoriesMetadata
974
+ class Representation < Google::Apis::Core::JsonRepresentation; end
975
+
976
+ include Google::Apis::Core::JsonObjectSupport
977
+ end
978
+
979
+ class GoogleCloudRetailV2betaRemoveLocalInventoriesResponse
980
+ class Representation < Google::Apis::Core::JsonRepresentation; end
981
+
982
+ include Google::Apis::Core::JsonObjectSupport
983
+ end
984
+
937
985
  class GoogleCloudRetailV2betaSetInventoryMetadata
938
986
  class Representation < Google::Apis::Core::JsonRepresentation; end
939
987
 
@@ -1063,6 +1111,18 @@ module Google
1063
1111
  end
1064
1112
  end
1065
1113
 
1114
+ class GoogleCloudRetailV2AddLocalInventoriesMetadata
1115
+ # @private
1116
+ class Representation < Google::Apis::Core::JsonRepresentation
1117
+ end
1118
+ end
1119
+
1120
+ class GoogleCloudRetailV2AddLocalInventoriesResponse
1121
+ # @private
1122
+ class Representation < Google::Apis::Core::JsonRepresentation
1123
+ end
1124
+ end
1125
+
1066
1126
  class GoogleCloudRetailV2ImportCompletionDataResponse
1067
1127
  # @private
1068
1128
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1150,6 +1210,18 @@ module Google
1150
1210
  end
1151
1211
  end
1152
1212
 
1213
+ class GoogleCloudRetailV2RemoveLocalInventoriesMetadata
1214
+ # @private
1215
+ class Representation < Google::Apis::Core::JsonRepresentation
1216
+ end
1217
+ end
1218
+
1219
+ class GoogleCloudRetailV2RemoveLocalInventoriesResponse
1220
+ # @private
1221
+ class Representation < Google::Apis::Core::JsonRepresentation
1222
+ end
1223
+ end
1224
+
1153
1225
  class GoogleCloudRetailV2SetInventoryMetadata
1154
1226
  # @private
1155
1227
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1393,7 +1465,6 @@ module Google
1393
1465
  property :name, as: 'name'
1394
1466
  property :rule, as: 'rule', class: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaRule, decorator: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaRule::Representation
1395
1467
 
1396
- collection :search_solution_use_case, as: 'searchSolutionUseCase'
1397
1468
  collection :solution_types, as: 'solutionTypes'
1398
1469
  end
1399
1470
  end
@@ -1523,6 +1594,7 @@ module Google
1523
1594
  property :notification_pubsub_topic, as: 'notificationPubsubTopic'
1524
1595
  property :reconciliation_mode, as: 'reconciliationMode'
1525
1596
  property :request_id, as: 'requestId'
1597
+ property :skip_default_branch_protection, as: 'skipDefaultBranchProtection'
1526
1598
  property :update_mask, as: 'updateMask'
1527
1599
  end
1528
1600
  end
@@ -1611,6 +1683,7 @@ module Google
1611
1683
  class Representation < Google::Apis::Core::JsonRepresentation
1612
1684
  hash :attributes, as: 'attributes', class: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaCustomAttribute, decorator: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaCustomAttribute::Representation
1613
1685
 
1686
+ collection :fulfillment_types, as: 'fulfillmentTypes'
1614
1687
  property :place_id, as: 'placeId'
1615
1688
  property :price_info, as: 'priceInfo', class: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaPriceInfo, decorator: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaPriceInfo::Representation
1616
1689
 
@@ -2037,6 +2110,7 @@ module Google
2037
2110
  collection :facet_specs, as: 'facetSpecs', class: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaSearchRequestFacetSpec, decorator: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaSearchRequestFacetSpec::Representation
2038
2111
 
2039
2112
  property :filter, as: 'filter'
2113
+ hash :labels, as: 'labels'
2040
2114
  property :offset, as: 'offset'
2041
2115
  property :order_by, as: 'orderBy'
2042
2116
  collection :page_categories, as: 'pageCategories'
@@ -2317,6 +2391,18 @@ module Google
2317
2391
  end
2318
2392
  end
2319
2393
 
2394
+ class GoogleCloudRetailV2betaAddLocalInventoriesMetadata
2395
+ # @private
2396
+ class Representation < Google::Apis::Core::JsonRepresentation
2397
+ end
2398
+ end
2399
+
2400
+ class GoogleCloudRetailV2betaAddLocalInventoriesResponse
2401
+ # @private
2402
+ class Representation < Google::Apis::Core::JsonRepresentation
2403
+ end
2404
+ end
2405
+
2320
2406
  class GoogleCloudRetailV2betaExportErrorsConfig
2321
2407
  # @private
2322
2408
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -2439,6 +2525,18 @@ module Google
2439
2525
  end
2440
2526
  end
2441
2527
 
2528
+ class GoogleCloudRetailV2betaRemoveLocalInventoriesMetadata
2529
+ # @private
2530
+ class Representation < Google::Apis::Core::JsonRepresentation
2531
+ end
2532
+ end
2533
+
2534
+ class GoogleCloudRetailV2betaRemoveLocalInventoriesResponse
2535
+ # @private
2536
+ class Representation < Google::Apis::Core::JsonRepresentation
2537
+ end
2538
+ end
2539
+
2442
2540
  class GoogleCloudRetailV2betaSetInventoryMetadata
2443
2541
  # @private
2444
2542
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -52,9 +52,8 @@ module Google
52
52
  end
53
53
 
54
54
  # Completes the specified prefix with keyword suggestions. This feature is only
55
- # available for users who have Retail Search enabled. Please submit a form [here]
56
- # (https://cloud.google.com/contact) to contact cloud sales if you are
57
- # interested in using Retail Search.
55
+ # available for users who have Retail Search enabled. Please enable Retail
56
+ # Search on Cloud Console before using this feature.
58
57
  # @param [String] catalog
59
58
  # Required. Catalog for which the completion is performed. Full resource name of
60
59
  # catalog, such as `projects/*/locations/global/catalogs/default_catalog`.
@@ -579,9 +578,8 @@ module Google
579
578
  # enqueued and processed downstream. As a consequence, when a response is
580
579
  # returned, the added place IDs are not immediately manifested in the Product
581
580
  # queried by GetProduct or ListProducts. This feature is only available for
582
- # users who have Retail Search enabled. Please submit a form [here](https://
583
- # cloud.google.com/contact) to contact cloud sales if you are interested in
584
- # using Retail Search.
581
+ # users who have Retail Search enabled. Please enable Retail Search on Cloud
582
+ # Console before using this feature.
585
583
  # @param [String] product
586
584
  # Required. Full resource name of Product, such as `projects/*/locations/global/
587
585
  # catalogs/default_catalog/branches/default_branch/products/some_product_id`. If
@@ -626,8 +624,7 @@ module Google
626
624
  # ListProducts. Local inventory information can only be modified using this
627
625
  # method. CreateProduct and UpdateProduct has no effect on local inventories.
628
626
  # This feature is only available for users who have Retail Search enabled.
629
- # Please submit a form [here](https://cloud.google.com/contact) to contact Cloud
630
- # sales if you are interested in using Retail Search.
627
+ # Please enable Retail Search on Cloud Console before using this feature.
631
628
  # @param [String] product
632
629
  # Required. Full resource name of Product, such as `projects/*/locations/global/
633
630
  # catalogs/default_catalog/branches/default_branch/products/some_product_id`. If
@@ -899,7 +896,9 @@ module Google
899
896
  # output only fields are NOT supported. If not set, all supported fields (the
900
897
  # fields that are neither immutable nor output only) are updated. If an
901
898
  # unsupported or unknown field is provided, an INVALID_ARGUMENT error is
902
- # returned.
899
+ # returned. The attribute key can be updated by setting the mask path as "
900
+ # attributes.$`key_name`". If a key name is present in the mask but not in the
901
+ # patching product from the request, this key will be deleted after the update.
903
902
  # @param [String] fields
904
903
  # Selector specifying which fields to include in a partial response.
905
904
  # @param [String] quota_user
@@ -978,9 +977,8 @@ module Google
978
977
  # enqueued and processed downstream. As a consequence, when a response is
979
978
  # returned, the removed place IDs are not immediately manifested in the Product
980
979
  # queried by GetProduct or ListProducts. This feature is only available for
981
- # users who have Retail Search enabled. Please submit a form [here](https://
982
- # cloud.google.com/contact) to contact cloud sales if you are interested in
983
- # using Retail Search.
980
+ # users who have Retail Search enabled. Please enable Retail Search on Cloud
981
+ # Console before using this feature.
984
982
  # @param [String] product
985
983
  # Required. Full resource name of Product, such as `projects/*/locations/global/
986
984
  # catalogs/default_catalog/branches/default_branch/products/some_product_id`. If
@@ -1023,8 +1021,8 @@ module Google
1023
1021
  # queried by GetProduct or ListProducts. Local inventory information can only be
1024
1022
  # removed using this method. CreateProduct and UpdateProduct has no effect on
1025
1023
  # local inventories. This feature is only available for users who have Retail
1026
- # Search enabled. Please submit a form [here](https://cloud.google.com/contact)
1027
- # to contact Cloud sales if you are interested in using Retail Search.
1024
+ # Search enabled. Please enable Retail Search on Cloud Console before using this
1025
+ # feature.
1028
1026
  # @param [String] product
1029
1027
  # Required. Full resource name of Product, such as `projects/*/locations/global/
1030
1028
  # catalogs/default_catalog/branches/default_branch/products/some_product_id`. If
@@ -1076,9 +1074,8 @@ module Google
1076
1074
  # SetInventoryRequest.set_mask, then any existing inventory information will be
1077
1075
  # preserved. Pre-existing inventory information can only be updated with
1078
1076
  # SetInventory, AddFulfillmentPlaces, and RemoveFulfillmentPlaces. This feature
1079
- # is only available for users who have Retail Search enabled. Please submit a
1080
- # form [here](https://cloud.google.com/contact) to contact cloud sales if you
1081
- # are interested in using Retail Search.
1077
+ # is only available for users who have Retail Search enabled. Please enable
1078
+ # Retail Search on Cloud Console before using this feature.
1082
1079
  # @param [String] name
1083
1080
  # Immutable. Full resource name of the product, such as `projects/*/locations/
1084
1081
  # global/catalogs/default_catalog/branches/default_branch/products/product_id`.
@@ -1116,9 +1113,8 @@ module Google
1116
1113
  # asynchronous. Partial updating is not supported. The operation is successfully
1117
1114
  # finished only after the imported suggestions are indexed successfully and
1118
1115
  # ready for serving. The process takes hours. This feature is only available for
1119
- # users who have Retail Search enabled. Please submit a form [here](https://
1120
- # cloud.google.com/contact) to contact cloud sales if you are interested in
1121
- # using Retail Search.
1116
+ # users who have Retail Search enabled. Please enable Retail Search on Cloud
1117
+ # Console before using this feature.
1122
1118
  # @param [String] parent
1123
1119
  # Required. The catalog which the suggestions dataset belongs to. Format: `
1124
1120
  # projects/1234/locations/global/catalogs/default_catalog`.
@@ -1423,13 +1419,15 @@ module Google
1423
1419
  # Makes a recommendation prediction.
1424
1420
  # @param [String] placement
1425
1421
  # Required. Full resource name of the format: `name=projects/*/locations/global/
1426
- # catalogs/default_catalog/placements/*` or `name=projects/*/locations/global/
1427
- # catalogs/default_catalog/servingConfigs/*` The ID of the Recommendations AI
1428
- # placement. Before you can request predictions from your model, you must create
1429
- # at least one placement for it. For more information, see [Managing placements](
1430
- # https://cloud.google.com/retail/recommendations-ai/docs/manage-placements).
1431
- # The full list of available placements can be seen at https://console.cloud.
1432
- # google.com/recommendation/catalogs/default_catalog/placements
1422
+ # catalogs/default_catalog/servingConfigs/*` or `name=projects/*/locations/
1423
+ # global/catalogs/default_catalog/placements/*`. We recommend using the `
1424
+ # servingConfigs` resource. `placements` is a legacy resource. The ID of the
1425
+ # Recommendations AI serving config or placement. Before you can request
1426
+ # predictions from your model, you must create at least one serving config or
1427
+ # placement for it. For more information, see [Managing serving configurations] (
1428
+ # https://cloud.google.com/retail/docs/manage-configs). The full list of
1429
+ # available serving configs can be seen at https://console.cloud.google.com/ai/
1430
+ # retail/catalogs/default_catalog/configs
1433
1431
  # @param [Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaPredictRequest] google_cloud_retail_v2alpha_predict_request_object
1434
1432
  # @param [String] fields
1435
1433
  # Selector specifying which fields to include in a partial response.
@@ -1461,14 +1459,15 @@ module Google
1461
1459
  end
1462
1460
 
1463
1461
  # Performs a search. This feature is only available for users who have Retail
1464
- # Search enabled. Please submit a form [here](https://cloud.google.com/contact)
1465
- # to contact cloud sales if you are interested in using Retail Search.
1462
+ # Search enabled. Please enable Retail Search on Cloud Console before using this
1463
+ # feature.
1466
1464
  # @param [String] placement
1467
- # Required. The resource name of the search engine placement, such as `projects/*
1468
- # /locations/global/catalogs/default_catalog/placements/default_search` or `
1465
+ # Required. The resource name of the Retail Search serving config, such as `
1469
1466
  # projects/*/locations/global/catalogs/default_catalog/servingConfigs/
1470
- # default_serving_config` This field is used to identify the serving
1471
- # configuration name and the set of models that will be used to make the search.
1467
+ # default_serving_config` or the name of the legacy placement resource, such as `
1468
+ # projects/*/locations/global/catalogs/default_catalog/placements/default_search`
1469
+ # . This field is used to identify the serving configuration name and the set of
1470
+ # models that will be used to make the search.
1472
1471
  # @param [Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaSearchRequest] google_cloud_retail_v2alpha_search_request_object
1473
1472
  # @param [String] fields
1474
1473
  # Selector specifying which fields to include in a partial response.
@@ -1726,13 +1725,15 @@ module Google
1726
1725
  # Makes a recommendation prediction.
1727
1726
  # @param [String] placement
1728
1727
  # Required. Full resource name of the format: `name=projects/*/locations/global/
1729
- # catalogs/default_catalog/placements/*` or `name=projects/*/locations/global/
1730
- # catalogs/default_catalog/servingConfigs/*` The ID of the Recommendations AI
1731
- # placement. Before you can request predictions from your model, you must create
1732
- # at least one placement for it. For more information, see [Managing placements](
1733
- # https://cloud.google.com/retail/recommendations-ai/docs/manage-placements).
1734
- # The full list of available placements can be seen at https://console.cloud.
1735
- # google.com/recommendation/catalogs/default_catalog/placements
1728
+ # catalogs/default_catalog/servingConfigs/*` or `name=projects/*/locations/
1729
+ # global/catalogs/default_catalog/placements/*`. We recommend using the `
1730
+ # servingConfigs` resource. `placements` is a legacy resource. The ID of the
1731
+ # Recommendations AI serving config or placement. Before you can request
1732
+ # predictions from your model, you must create at least one serving config or
1733
+ # placement for it. For more information, see [Managing serving configurations] (
1734
+ # https://cloud.google.com/retail/docs/manage-configs). The full list of
1735
+ # available serving configs can be seen at https://console.cloud.google.com/ai/
1736
+ # retail/catalogs/default_catalog/configs
1736
1737
  # @param [Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaPredictRequest] google_cloud_retail_v2alpha_predict_request_object
1737
1738
  # @param [String] fields
1738
1739
  # Selector specifying which fields to include in a partial response.
@@ -1801,14 +1802,15 @@ module Google
1801
1802
  end
1802
1803
 
1803
1804
  # Performs a search. This feature is only available for users who have Retail
1804
- # Search enabled. Please submit a form [here](https://cloud.google.com/contact)
1805
- # to contact cloud sales if you are interested in using Retail Search.
1805
+ # Search enabled. Please enable Retail Search on Cloud Console before using this
1806
+ # feature.
1806
1807
  # @param [String] placement
1807
- # Required. The resource name of the search engine placement, such as `projects/*
1808
- # /locations/global/catalogs/default_catalog/placements/default_search` or `
1808
+ # Required. The resource name of the Retail Search serving config, such as `
1809
1809
  # projects/*/locations/global/catalogs/default_catalog/servingConfigs/
1810
- # default_serving_config` This field is used to identify the serving
1811
- # configuration name and the set of models that will be used to make the search.
1810
+ # default_serving_config` or the name of the legacy placement resource, such as `
1811
+ # projects/*/locations/global/catalogs/default_catalog/placements/default_search`
1812
+ # . This field is used to identify the serving configuration name and the set of
1813
+ # models that will be used to make the search.
1812
1814
  # @param [Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaSearchRequest] google_cloud_retail_v2alpha_search_request_object
1813
1815
  # @param [String] fields
1814
1816
  # Selector specifying which fields to include in a partial response.
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-retail_v2alpha
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.34.0
4
+ version: 0.37.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-03-28 00:00:00.000000000 Z
11
+ date: 2022-04-25 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_v2alpha/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-retail_v2alpha/v0.34.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-retail_v2alpha/v0.37.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-retail_v2alpha
63
63
  post_install_message:
64
64
  rdoc_options: []