google-apis-retail_v2alpha 0.29.0 → 0.32.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: 9807fdb6e6e39b68732e89fa390a54990ef198eb40ad7d414fdb91425377bcf2
4
- data.tar.gz: 13e2c7f0e8447c7f24c783145cee04b7a14dda9f2435ed1138bf8d95fc548cb4
3
+ metadata.gz: b8f924967f8b766a58754b7d1ccc3595971b65f718056048c78c38dc9fbe6a5e
4
+ data.tar.gz: 791e94ff6a65503f21d744b484177ab537f5244340a94e651409e36a0a9e4577
5
5
  SHA512:
6
- metadata.gz: c54e46a8009c145aa3682a772110497b082bc1bd67e50262ef4800db708020eb44569956896320497442e8896a76c7d2d0c30c4f19410014fc98907c8b5a6126
7
- data.tar.gz: 1f4210851ac96d3123ebabc4900c1d06d43753f0e69873b3153d9067ed14ff183f8c0df6f7fd77ae868cdf19c4e1939d02e9a611ef91e527db0acc291c5d3d8a
6
+ metadata.gz: 2bbf179ac2a176dabde0c4f8a56f2a76775bd92423286ab1bc6cdbf58572164cceeada2dd67b06d479e3eb16e450ad3e3f7297845f682bf92b1790121951763e
7
+ data.tar.gz: 6a68d68ef8ca196bedb13a310df75e08d1684302235e74cebb58e10e0ccc075abcc19481dff48f4abe6c626cbbf002227602d020923a56436888913c8aa2520e
data/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # Release history for google-apis-retail_v2alpha
2
2
 
3
+ ### v0.32.0 (2022-03-09)
4
+
5
+ * Regenerated from discovery document revision 20220303
6
+
7
+ ### v0.31.0 (2022-03-04)
8
+
9
+ * Regenerated from discovery document revision 20220224
10
+
11
+ ### v0.30.0 (2022-02-24)
12
+
13
+ * Regenerated from discovery document revision 20220217
14
+
3
15
  ### v0.29.0 (2022-02-12)
4
16
 
5
17
  * Regenerated from discovery document revision 20220210
@@ -333,9 +333,9 @@ module Google
333
333
  class GoogleCloudRetailV2ImportErrorsConfig
334
334
  include Google::Apis::Core::Hashable
335
335
 
336
- # Google Cloud Storage path for import errors. This must be an empty, existing
337
- # Cloud Storage bucket. Import errors will be written to a file in this bucket,
338
- # one per line, as a JSON-encoded `google.rpc.Status` message.
336
+ # Google Cloud Storage prefix for import errors. This must be an empty, existing
337
+ # Cloud Storage directory. Import errors will be written to sharded files in
338
+ # this directory, one per line, as a JSON-encoded `google.rpc.Status` message.
339
339
  # Corresponds to the JSON property `gcsPrefix`
340
340
  # @return [String]
341
341
  attr_accessor :gcs_prefix
@@ -618,6 +618,26 @@ module Google
618
618
  end
619
619
  end
620
620
 
621
+ # Request for CatalogService.AddCatalogAttribute method.
622
+ class GoogleCloudRetailV2alphaAddCatalogAttributeRequest
623
+ include Google::Apis::Core::Hashable
624
+
625
+ # Catalog level attribute config for an attribute. For example, if customers
626
+ # want to enable/disable facet for a specific attribute.
627
+ # Corresponds to the JSON property `catalogAttribute`
628
+ # @return [Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaCatalogAttribute]
629
+ attr_accessor :catalog_attribute
630
+
631
+ def initialize(**args)
632
+ update!(**args)
633
+ end
634
+
635
+ # Update properties of this object
636
+ def update!(**args)
637
+ @catalog_attribute = args[:catalog_attribute] if args.key?(:catalog_attribute)
638
+ end
639
+ end
640
+
621
641
  # Request for AddControl method.
622
642
  class GoogleCloudRetailV2alphaAddControlRequest
623
643
  include Google::Apis::Core::Hashable
@@ -803,6 +823,42 @@ module Google
803
823
  end
804
824
  end
805
825
 
826
+ # Catalog level attribute config.
827
+ class GoogleCloudRetailV2alphaAttributesConfig
828
+ include Google::Apis::Core::Hashable
829
+
830
+ # Output only. The AttributeConfigLevel used for this catalog.
831
+ # Corresponds to the JSON property `attributeConfigLevel`
832
+ # @return [String]
833
+ attr_accessor :attribute_config_level
834
+
835
+ # Enable attribute(s) config at catalog level. For example, indexable,
836
+ # dynamic_facetable, or searchable for each attribute. The key is catalog
837
+ # attribute's name. For example: `color`, `brands`, `attributes.custom_attribute`
838
+ # , such as `attributes.xyz`. The maximum number of catalog attributes allowed
839
+ # in a request is 1000.
840
+ # Corresponds to the JSON property `catalogAttributes`
841
+ # @return [Hash<String,Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaCatalogAttribute>]
842
+ attr_accessor :catalog_attributes
843
+
844
+ # Required. Immutable. The fully qualified resource name of the attribute config.
845
+ # Format: "projects/*/locations/*/catalogs/*/attributesConfig"
846
+ # Corresponds to the JSON property `name`
847
+ # @return [String]
848
+ attr_accessor :name
849
+
850
+ def initialize(**args)
851
+ update!(**args)
852
+ end
853
+
854
+ # Update properties of this object
855
+ def update!(**args)
856
+ @attribute_config_level = args[:attribute_config_level] if args.key?(:attribute_config_level)
857
+ @catalog_attributes = args[:catalog_attributes] if args.key?(:catalog_attributes)
858
+ @name = args[:name] if args.key?(:name)
859
+ end
860
+ end
861
+
806
862
  # An intended audience of the Product for whom it's sold.
807
863
  class GoogleCloudRetailV2alphaAudience
808
864
  include Google::Apis::Core::Hashable
@@ -876,11 +932,11 @@ module Google
876
932
  # Represents a whole or partial calendar date, such as a birthday. The time of
877
933
  # day and time zone are either specified elsewhere or are insignificant. The
878
934
  # date is relative to the Gregorian Calendar. This can represent one of the
879
- # following: * A full date, with non-zero year, month, and day values * A month
880
- # and day, with a zero year (e.g., an anniversary) * A year on its own, with a
881
- # zero month and a zero day * A year and month, with a zero day (e.g., a credit
882
- # card expiration date) Related types: * google.type.TimeOfDay * google.type.
883
- # DateTime * google.protobuf.Timestamp
935
+ # following: * A full date, with non-zero year, month, and day values. * A month
936
+ # and day, with a zero year (for example, an anniversary). * A year on its own,
937
+ # with a zero month and a zero day. * A year and month, with a zero day (for
938
+ # example, a credit card expiration date). Related types: * google.type.
939
+ # TimeOfDay * google.type.DateTime * google.protobuf.Timestamp
884
940
  # Corresponds to the JSON property `partitionDate`
885
941
  # @return [Google::Apis::RetailV2alpha::GoogleTypeDate]
886
942
  attr_accessor :partition_date
@@ -954,6 +1010,75 @@ module Google
954
1010
  end
955
1011
  end
956
1012
 
1013
+ # Catalog level attribute config for an attribute. For example, if customers
1014
+ # want to enable/disable facet for a specific attribute.
1015
+ class GoogleCloudRetailV2alphaCatalogAttribute
1016
+ include Google::Apis::Core::Hashable
1017
+
1018
+ # If DYNAMIC_FACETABLE_ENABLED, attribute values are available for dynamic facet.
1019
+ # Could only be DYNAMIC_FACETABLE_DISABLED if CatalogAttribute.indexable_option
1020
+ # is INDEXABLE_DISABLED. Otherwise, an INVALID_ARGUMENT error is returned.
1021
+ # Corresponds to the JSON property `dynamicFacetableOption`
1022
+ # @return [String]
1023
+ attr_accessor :dynamic_facetable_option
1024
+
1025
+ # Output only. Indicates whether this attribute has been used by any products. `
1026
+ # True` if at least one Product is using this attribute in Product.attributes.
1027
+ # Otherwise, this field is `False`. CatalogAttribute can be pre-loaded by using
1028
+ # AddCatalogAttribute, ImportCatalogAttributes, or UpdateAttributesConfig APIs.
1029
+ # This field is `False` for pre-loaded CatalogAttributes. Only CatalogAttributes
1030
+ # that are not in use by products can be deleted. CatalogAttributes that are in
1031
+ # use by products cannot be deleted; however, their configuration properties
1032
+ # will reset to default values upon removal request. After catalog changes, it
1033
+ # takes about 10 minutes for this field to update.
1034
+ # Corresponds to the JSON property `inUse`
1035
+ # @return [Boolean]
1036
+ attr_accessor :in_use
1037
+ alias_method :in_use?, :in_use
1038
+
1039
+ # When AttributesConfig.attribute_config_level is CATALOG_LEVEL_ATTRIBUTE_CONFIG,
1040
+ # if INDEXABLE_ENABLED attribute values are indexed so that it can be filtered,
1041
+ # faceted, or boosted in SearchService.Search.
1042
+ # Corresponds to the JSON property `indexableOption`
1043
+ # @return [String]
1044
+ attr_accessor :indexable_option
1045
+
1046
+ # Required. Attribute name. For example: `color`, `brands`, `attributes.
1047
+ # custom_attribute`, such as `attributes.xyz`.
1048
+ # Corresponds to the JSON property `key`
1049
+ # @return [String]
1050
+ attr_accessor :key
1051
+
1052
+ # When AttributesConfig.attribute_config_level is CATALOG_LEVEL_ATTRIBUTE_CONFIG,
1053
+ # if SEARCHABLE_ENABLED, attribute values are searchable by text queries in
1054
+ # SearchService.Search. If SEARCHABLE_ENABLED but attribute type is numerical,
1055
+ # attribute values will not be searchable by text queries in SearchService.
1056
+ # Search, as there are no text values associated to numerical attributes.
1057
+ # Corresponds to the JSON property `searchableOption`
1058
+ # @return [String]
1059
+ attr_accessor :searchable_option
1060
+
1061
+ # Output only. The type of this attribute. This is derived from the attribute in
1062
+ # Product.attributes.
1063
+ # Corresponds to the JSON property `type`
1064
+ # @return [String]
1065
+ attr_accessor :type
1066
+
1067
+ def initialize(**args)
1068
+ update!(**args)
1069
+ end
1070
+
1071
+ # Update properties of this object
1072
+ def update!(**args)
1073
+ @dynamic_facetable_option = args[:dynamic_facetable_option] if args.key?(:dynamic_facetable_option)
1074
+ @in_use = args[:in_use] if args.key?(:in_use)
1075
+ @indexable_option = args[:indexable_option] if args.key?(:indexable_option)
1076
+ @key = args[:key] if args.key?(:key)
1077
+ @searchable_option = args[:searchable_option] if args.key?(:searchable_option)
1078
+ @type = args[:type] if args.key?(:type)
1079
+ end
1080
+ end
1081
+
957
1082
  # The color information of a Product.
958
1083
  class GoogleCloudRetailV2alphaColorInfo
959
1084
  include Google::Apis::Core::Hashable
@@ -1259,7 +1384,8 @@ module Google
1259
1384
 
1260
1385
  # Required. Immutable. The solution types that the serving config is used for.
1261
1386
  # Currently we support setting only one type of solution at creation time. Only `
1262
- # SOLUTION_TYPE_SEARCH` value is supported at the moment.
1387
+ # SOLUTION_TYPE_SEARCH` value is supported at the moment. If no solution type is
1388
+ # provided at creation time, will default to SOLUTION_TYPE_SEARCH.
1263
1389
  # Corresponds to the JSON property `solutionTypes`
1264
1390
  # @return [Array<String>]
1265
1391
  attr_accessor :solution_types
@@ -1312,8 +1438,9 @@ module Google
1312
1438
  alias_method :searchable?, :searchable
1313
1439
 
1314
1440
  # The textual values of this custom attribute. For example, `["yellow", "green"]`
1315
- # when the key is "color". Exactly one of text or numbers should be set.
1316
- # Otherwise, an INVALID_ARGUMENT error is returned.
1441
+ # when the key is "color". Empty string is not allowed. Otherwise, an
1442
+ # INVALID_ARGUMENT error is returned. Exactly one of text or numbers should be
1443
+ # set. Otherwise, an INVALID_ARGUMENT error is returned.
1317
1444
  # Corresponds to the JSON property `text`
1318
1445
  # @return [Array<String>]
1319
1446
  attr_accessor :text
@@ -1631,9 +1758,9 @@ module Google
1631
1758
  class GoogleCloudRetailV2alphaImportErrorsConfig
1632
1759
  include Google::Apis::Core::Hashable
1633
1760
 
1634
- # Google Cloud Storage path for import errors. This must be an empty, existing
1635
- # Cloud Storage bucket. Import errors will be written to a file in this bucket,
1636
- # one per line, as a JSON-encoded `google.rpc.Status` message.
1761
+ # Google Cloud Storage prefix for import errors. This must be an empty, existing
1762
+ # Cloud Storage directory. Import errors will be written to sharded files in
1763
+ # this directory, one per line, as a JSON-encoded `google.rpc.Status` message.
1637
1764
  # Corresponds to the JSON property `gcsPrefix`
1638
1765
  # @return [String]
1639
1766
  attr_accessor :gcs_prefix
@@ -2406,9 +2533,9 @@ module Google
2406
2533
  # be a UTF-8 encoded string with a length limit of 128 characters. * For
2407
2534
  # indexable attribute, the key must match the pattern: `a-zA-Z0-9*`. For example,
2408
2535
  # `key0LikeThis` or `KEY_1_LIKE_THIS`. * For text attributes, at most 400
2409
- # values are allowed. Empty values are not allowed. Each value must be a UTF-8
2410
- # encoded string with a length limit of 256 characters. * For number attributes,
2411
- # at most 400 values are allowed.
2536
+ # values are allowed. Empty values are not allowed. Each value must be a non-
2537
+ # empty UTF-8 encoded string with a length limit of 256 characters. * For number
2538
+ # attributes, at most 400 values are allowed.
2412
2539
  # Corresponds to the JSON property `attributes`
2413
2540
  # @return [Hash<String,Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaCustomAttribute>]
2414
2541
  attr_accessor :attributes
@@ -3117,6 +3244,25 @@ module Google
3117
3244
  end
3118
3245
  end
3119
3246
 
3247
+ # Request for CatalogService.RemoveCatalogAttribute method.
3248
+ class GoogleCloudRetailV2alphaRemoveCatalogAttributeRequest
3249
+ include Google::Apis::Core::Hashable
3250
+
3251
+ # Required. The attribute name key of the CatalogAttribute to remove.
3252
+ # Corresponds to the JSON property `key`
3253
+ # @return [String]
3254
+ attr_accessor :key
3255
+
3256
+ def initialize(**args)
3257
+ update!(**args)
3258
+ end
3259
+
3260
+ # Update properties of this object
3261
+ def update!(**args)
3262
+ @key = args[:key] if args.key?(:key)
3263
+ end
3264
+ end
3265
+
3120
3266
  # Request for RemoveControl method.
3121
3267
  class GoogleCloudRetailV2alphaRemoveControlRequest
3122
3268
  include Google::Apis::Core::Hashable
@@ -3287,6 +3433,34 @@ module Google
3287
3433
  end
3288
3434
  end
3289
3435
 
3436
+ # Request for CatalogService.ReplaceCatalogAttribute method.
3437
+ class GoogleCloudRetailV2alphaReplaceCatalogAttributeRequest
3438
+ include Google::Apis::Core::Hashable
3439
+
3440
+ # Catalog level attribute config for an attribute. For example, if customers
3441
+ # want to enable/disable facet for a specific attribute.
3442
+ # Corresponds to the JSON property `catalogAttribute`
3443
+ # @return [Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaCatalogAttribute]
3444
+ attr_accessor :catalog_attribute
3445
+
3446
+ # Indicates which fields in the provided CatalogAttribute to update. The
3447
+ # following are NOT supported: * CatalogAttribute.key If not set, all supported
3448
+ # fields are updated.
3449
+ # Corresponds to the JSON property `updateMask`
3450
+ # @return [String]
3451
+ attr_accessor :update_mask
3452
+
3453
+ def initialize(**args)
3454
+ update!(**args)
3455
+ end
3456
+
3457
+ # Update properties of this object
3458
+ def update!(**args)
3459
+ @catalog_attribute = args[:catalog_attribute] if args.key?(:catalog_attribute)
3460
+ @update_mask = args[:update_mask] if args.key?(:update_mask)
3461
+ end
3462
+ end
3463
+
3290
3464
  # A rule is a condition-action pair * A condition defines when a rule is to be
3291
3465
  # triggered. * An action specifies what occurs on that trigger. Currently only
3292
3466
  # boost rules are supported. Currently only supported by the search endpoint.
@@ -4347,7 +4521,7 @@ module Google
4347
4521
 
4348
4522
  # Condition boost specifications. If a product matches multiple conditions in
4349
4523
  # the specifications, boost scores from these specifications are all applied and
4350
- # combined in a non-linear way. Maximum number of specifications is 10. Notice
4524
+ # combined in a non-linear way. Maximum number of specifications is 100. Notice
4351
4525
  # that if both ServingConfig.boost_control_ids and [SearchRequest.boost_spec]
4352
4526
  # are set, the boost conditions from both places are evaluated. If a search
4353
4527
  # request matches multiple boost conditions, the final boost score is equal to
@@ -4461,7 +4635,7 @@ module Google
4461
4635
  attr_accessor :price_reranking_level
4462
4636
 
4463
4637
  # Condition redirect specifications. Only the first triggered redirect action is
4464
- # applied, even if multiple apply. Maximum number of specifications is 100. Can
4638
+ # applied, even if multiple apply. Maximum number of specifications is 1000. Can
4465
4639
  # only be set if solution_types is SOLUTION_TYPE_SEARCH.
4466
4640
  # Corresponds to the JSON property `redirectControlIds`
4467
4641
  # @return [Array<String>]
@@ -4520,11 +4694,20 @@ module Google
4520
4694
  include Google::Apis::Core::Hashable
4521
4695
 
4522
4696
  # The final component of the resource name of a branch. This field must be one
4523
- # of "0", "1" or "2". Otherwise, an INVALID_ARGUMENT error is returned.
4697
+ # of "0", "1" or "2". Otherwise, an INVALID_ARGUMENT error is returned. If there
4698
+ # are no sufficient active products in the targeted branch and force is not set,
4699
+ # a FAILED_PRECONDITION error is returned.
4524
4700
  # Corresponds to the JSON property `branchId`
4525
4701
  # @return [String]
4526
4702
  attr_accessor :branch_id
4527
4703
 
4704
+ # If set to true, it permits switching to a branch with branch_id even if it has
4705
+ # no sufficient active products.
4706
+ # Corresponds to the JSON property `force`
4707
+ # @return [Boolean]
4708
+ attr_accessor :force
4709
+ alias_method :force?, :force
4710
+
4528
4711
  # Some note on this request, this can be retrieved by CatalogService.
4529
4712
  # GetDefaultBranch before next valid default branch set occurs. This field must
4530
4713
  # be a UTF-8 encoded string with a length limit of 1,000 characters. Otherwise,
@@ -4540,6 +4723,7 @@ module Google
4540
4723
  # Update properties of this object
4541
4724
  def update!(**args)
4542
4725
  @branch_id = args[:branch_id] if args.key?(:branch_id)
4726
+ @force = args[:force] if args.key?(:force)
4543
4727
  @note = args[:note] if args.key?(:note)
4544
4728
  end
4545
4729
  end
@@ -5127,9 +5311,9 @@ module Google
5127
5311
  class GoogleCloudRetailV2betaImportErrorsConfig
5128
5312
  include Google::Apis::Core::Hashable
5129
5313
 
5130
- # Google Cloud Storage path for import errors. This must be an empty, existing
5131
- # Cloud Storage bucket. Import errors will be written to a file in this bucket,
5132
- # one per line, as a JSON-encoded `google.rpc.Status` message.
5314
+ # Google Cloud Storage prefix for import errors. This must be an empty, existing
5315
+ # Cloud Storage directory. Import errors will be written to sharded files in
5316
+ # this directory, one per line, as a JSON-encoded `google.rpc.Status` message.
5133
5317
  # Corresponds to the JSON property `gcsPrefix`
5134
5318
  # @return [String]
5135
5319
  attr_accessor :gcs_prefix
@@ -5558,11 +5742,11 @@ module Google
5558
5742
  # Represents a whole or partial calendar date, such as a birthday. The time of
5559
5743
  # day and time zone are either specified elsewhere or are insignificant. The
5560
5744
  # date is relative to the Gregorian Calendar. This can represent one of the
5561
- # following: * A full date, with non-zero year, month, and day values * A month
5562
- # and day, with a zero year (e.g., an anniversary) * A year on its own, with a
5563
- # zero month and a zero day * A year and month, with a zero day (e.g., a credit
5564
- # card expiration date) Related types: * google.type.TimeOfDay * google.type.
5565
- # DateTime * google.protobuf.Timestamp
5745
+ # following: * A full date, with non-zero year, month, and day values. * A month
5746
+ # and day, with a zero year (for example, an anniversary). * A year on its own,
5747
+ # with a zero month and a zero day. * A year and month, with a zero day (for
5748
+ # example, a credit card expiration date). Related types: * google.type.
5749
+ # TimeOfDay * google.type.DateTime * google.protobuf.Timestamp
5566
5750
  class GoogleTypeDate
5567
5751
  include Google::Apis::Core::Hashable
5568
5752
 
@@ -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.29.0"
19
+ GEM_VERSION = "0.32.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 = "20220210"
25
+ REVISION = "20220303"
26
26
  end
27
27
  end
28
28
  end
@@ -160,6 +160,12 @@ module Google
160
160
  include Google::Apis::Core::JsonObjectSupport
161
161
  end
162
162
 
163
+ class GoogleCloudRetailV2alphaAddCatalogAttributeRequest
164
+ class Representation < Google::Apis::Core::JsonRepresentation; end
165
+
166
+ include Google::Apis::Core::JsonObjectSupport
167
+ end
168
+
163
169
  class GoogleCloudRetailV2alphaAddControlRequest
164
170
  class Representation < Google::Apis::Core::JsonRepresentation; end
165
171
 
@@ -202,6 +208,12 @@ module Google
202
208
  include Google::Apis::Core::JsonObjectSupport
203
209
  end
204
210
 
211
+ class GoogleCloudRetailV2alphaAttributesConfig
212
+ class Representation < Google::Apis::Core::JsonRepresentation; end
213
+
214
+ include Google::Apis::Core::JsonObjectSupport
215
+ end
216
+
205
217
  class GoogleCloudRetailV2alphaAudience
206
218
  class Representation < Google::Apis::Core::JsonRepresentation; end
207
219
 
@@ -220,6 +232,12 @@ module Google
220
232
  include Google::Apis::Core::JsonObjectSupport
221
233
  end
222
234
 
235
+ class GoogleCloudRetailV2alphaCatalogAttribute
236
+ class Representation < Google::Apis::Core::JsonRepresentation; end
237
+
238
+ include Google::Apis::Core::JsonObjectSupport
239
+ end
240
+
223
241
  class GoogleCloudRetailV2alphaColorInfo
224
242
  class Representation < Google::Apis::Core::JsonRepresentation; end
225
243
 
@@ -544,6 +562,12 @@ module Google
544
562
  include Google::Apis::Core::JsonObjectSupport
545
563
  end
546
564
 
565
+ class GoogleCloudRetailV2alphaRemoveCatalogAttributeRequest
566
+ class Representation < Google::Apis::Core::JsonRepresentation; end
567
+
568
+ include Google::Apis::Core::JsonObjectSupport
569
+ end
570
+
547
571
  class GoogleCloudRetailV2alphaRemoveControlRequest
548
572
  class Representation < Google::Apis::Core::JsonRepresentation; end
549
573
 
@@ -586,6 +610,12 @@ module Google
586
610
  include Google::Apis::Core::JsonObjectSupport
587
611
  end
588
612
 
613
+ class GoogleCloudRetailV2alphaReplaceCatalogAttributeRequest
614
+ class Representation < Google::Apis::Core::JsonRepresentation; end
615
+
616
+ include Google::Apis::Core::JsonObjectSupport
617
+ end
618
+
589
619
  class GoogleCloudRetailV2alphaRule
590
620
  class Representation < Google::Apis::Core::JsonRepresentation; end
591
621
 
@@ -1116,6 +1146,14 @@ module Google
1116
1146
  end
1117
1147
  end
1118
1148
 
1149
+ class GoogleCloudRetailV2alphaAddCatalogAttributeRequest
1150
+ # @private
1151
+ class Representation < Google::Apis::Core::JsonRepresentation
1152
+ property :catalog_attribute, as: 'catalogAttribute', class: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaCatalogAttribute, decorator: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaCatalogAttribute::Representation
1153
+
1154
+ end
1155
+ end
1156
+
1119
1157
  class GoogleCloudRetailV2alphaAddControlRequest
1120
1158
  # @private
1121
1159
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1168,6 +1206,16 @@ module Google
1168
1206
  end
1169
1207
  end
1170
1208
 
1209
+ class GoogleCloudRetailV2alphaAttributesConfig
1210
+ # @private
1211
+ class Representation < Google::Apis::Core::JsonRepresentation
1212
+ property :attribute_config_level, as: 'attributeConfigLevel'
1213
+ hash :catalog_attributes, as: 'catalogAttributes', class: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaCatalogAttribute, decorator: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaCatalogAttribute::Representation
1214
+
1215
+ property :name, as: 'name'
1216
+ end
1217
+ end
1218
+
1171
1219
  class GoogleCloudRetailV2alphaAudience
1172
1220
  # @private
1173
1221
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1201,6 +1249,18 @@ module Google
1201
1249
  end
1202
1250
  end
1203
1251
 
1252
+ class GoogleCloudRetailV2alphaCatalogAttribute
1253
+ # @private
1254
+ class Representation < Google::Apis::Core::JsonRepresentation
1255
+ property :dynamic_facetable_option, as: 'dynamicFacetableOption'
1256
+ property :in_use, as: 'inUse'
1257
+ property :indexable_option, as: 'indexableOption'
1258
+ property :key, as: 'key'
1259
+ property :searchable_option, as: 'searchableOption'
1260
+ property :type, as: 'type'
1261
+ end
1262
+ end
1263
+
1204
1264
  class GoogleCloudRetailV2alphaColorInfo
1205
1265
  # @private
1206
1266
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1741,6 +1801,13 @@ module Google
1741
1801
  end
1742
1802
  end
1743
1803
 
1804
+ class GoogleCloudRetailV2alphaRemoveCatalogAttributeRequest
1805
+ # @private
1806
+ class Representation < Google::Apis::Core::JsonRepresentation
1807
+ property :key, as: 'key'
1808
+ end
1809
+ end
1810
+
1744
1811
  class GoogleCloudRetailV2alphaRemoveControlRequest
1745
1812
  # @private
1746
1813
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1791,6 +1858,15 @@ module Google
1791
1858
  end
1792
1859
  end
1793
1860
 
1861
+ class GoogleCloudRetailV2alphaReplaceCatalogAttributeRequest
1862
+ # @private
1863
+ class Representation < Google::Apis::Core::JsonRepresentation
1864
+ property :catalog_attribute, as: 'catalogAttribute', class: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaCatalogAttribute, decorator: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaCatalogAttribute::Representation
1865
+
1866
+ property :update_mask, as: 'updateMask'
1867
+ end
1868
+ end
1869
+
1794
1870
  class GoogleCloudRetailV2alphaRule
1795
1871
  # @private
1796
1872
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -2061,6 +2137,7 @@ module Google
2061
2137
  # @private
2062
2138
  class Representation < Google::Apis::Core::JsonRepresentation
2063
2139
  property :branch_id, as: 'branchId'
2140
+ property :force, as: 'force'
2064
2141
  property :note, as: 'note'
2065
2142
  end
2066
2143
  end
@@ -72,10 +72,12 @@ module Google
72
72
  # `UNKNOWN_DEVICE_TYPE` * `DESKTOP` * `MOBILE` * A customized string starts with
73
73
  # `OTHER_`, e.g. `OTHER_IPHONE`.
74
74
  # @param [Array<String>, String] language_codes
75
- # The list of languages of the query. This is the BCP-47 language code, such as "
76
- # en-US" or "sr-Latn". For more information, see [Tags for Identifying Languages]
77
- # (https://tools.ietf.org/html/bcp47). The maximum number of allowed characters
78
- # is 255. Only "en-US" is currently supported.
75
+ # The language filters applied to the output suggestions. If set, it should
76
+ # contain the language of the query. If not set, suggestions are returned
77
+ # without considering language restrictions. This is the BCP-47 language code,
78
+ # such as "en-US" or "sr-Latn". For more information, see [Tags for Identifying
79
+ # Languages](https://tools.ietf.org/html/bcp47). The maximum number of language
80
+ # codes is 3.
79
81
  # @param [Fixnum] max_suggestions
80
82
  # Completion max suggestions. If left unset or set to 0, then will fallback to
81
83
  # the configured value CompletionConfig.max_suggestions. The maximum allowed max
@@ -123,6 +125,37 @@ module Google
123
125
  execute_or_queue_command(command, &block)
124
126
  end
125
127
 
128
+ # Gets an AttributesConfig.
129
+ # @param [String] name
130
+ # Required. Full AttributesConfig resource name. Format: projects/`
131
+ # project_number`/locations/`location_id`/catalogs/`catalog_id`/attributesConfig
132
+ # @param [String] fields
133
+ # Selector specifying which fields to include in a partial response.
134
+ # @param [String] quota_user
135
+ # Available to use for quota purposes for server-side applications. Can be any
136
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
137
+ # @param [Google::Apis::RequestOptions] options
138
+ # Request-specific options
139
+ #
140
+ # @yield [result, err] Result & error if block supplied
141
+ # @yieldparam result [Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaAttributesConfig] parsed result object
142
+ # @yieldparam err [StandardError] error object if request failed
143
+ #
144
+ # @return [Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaAttributesConfig]
145
+ #
146
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
147
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
148
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
149
+ def get_project_location_catalog_attributes_config(name, fields: nil, quota_user: nil, options: nil, &block)
150
+ command = make_simple_command(:get, 'v2alpha/{+name}', options)
151
+ command.response_representation = Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaAttributesConfig::Representation
152
+ command.response_class = Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaAttributesConfig
153
+ command.params['name'] = name unless name.nil?
154
+ command.query['fields'] = fields unless fields.nil?
155
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
156
+ execute_or_queue_command(command, &block)
157
+ end
158
+
126
159
  # Get which branch is currently default branch set by CatalogService.
127
160
  # SetDefaultBranch method under a specified parent catalog.
128
161
  # @param [String] catalog
@@ -287,6 +320,157 @@ module Google
287
320
  execute_or_queue_command(command, &block)
288
321
  end
289
322
 
323
+ # Updates the AttributesConfig. The catalog attributes in the request will be
324
+ # updated in the catalog, or inserted if they do not exist. Existing catalog
325
+ # attributes not included in the request will remain unchanged. Attributes that
326
+ # are assigned to products, but do not exist at the catalog level, are always
327
+ # included in the response. The product attribute is assigned default values for
328
+ # missing catalog attribute fields, e.g., searchable and dynamic facetable
329
+ # options.
330
+ # @param [String] name
331
+ # Required. Immutable. The fully qualified resource name of the attribute config.
332
+ # Format: "projects/*/locations/*/catalogs/*/attributesConfig"
333
+ # @param [Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaAttributesConfig] google_cloud_retail_v2alpha_attributes_config_object
334
+ # @param [String] update_mask
335
+ # Indicates which fields in the provided AttributesConfig to update. The
336
+ # following is the only supported field: * AttributesConfig.catalog_attributes
337
+ # If not set, all supported fields are updated.
338
+ # @param [String] fields
339
+ # Selector specifying which fields to include in a partial response.
340
+ # @param [String] quota_user
341
+ # Available to use for quota purposes for server-side applications. Can be any
342
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
343
+ # @param [Google::Apis::RequestOptions] options
344
+ # Request-specific options
345
+ #
346
+ # @yield [result, err] Result & error if block supplied
347
+ # @yieldparam result [Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaAttributesConfig] parsed result object
348
+ # @yieldparam err [StandardError] error object if request failed
349
+ #
350
+ # @return [Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaAttributesConfig]
351
+ #
352
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
353
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
354
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
355
+ def update_project_location_catalog_attributes_config(name, google_cloud_retail_v2alpha_attributes_config_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
356
+ command = make_simple_command(:patch, 'v2alpha/{+name}', options)
357
+ command.request_representation = Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaAttributesConfig::Representation
358
+ command.request_object = google_cloud_retail_v2alpha_attributes_config_object
359
+ command.response_representation = Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaAttributesConfig::Representation
360
+ command.response_class = Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaAttributesConfig
361
+ command.params['name'] = name unless name.nil?
362
+ command.query['updateMask'] = update_mask unless update_mask.nil?
363
+ command.query['fields'] = fields unless fields.nil?
364
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
365
+ execute_or_queue_command(command, &block)
366
+ end
367
+
368
+ # Adds the specified CatalogAttribute to the AttributesConfig. If the
369
+ # CatalogAttribute to add already exists, an ALREADY_EXISTS error is returned.
370
+ # @param [String] attributes_config
371
+ # Required. Full AttributesConfig resource name. Format: projects/`
372
+ # project_number`/locations/`location_id`/catalogs/`catalog_id`/attributesConfig
373
+ # @param [Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaAddCatalogAttributeRequest] google_cloud_retail_v2alpha_add_catalog_attribute_request_object
374
+ # @param [String] fields
375
+ # Selector specifying which fields to include in a partial response.
376
+ # @param [String] quota_user
377
+ # Available to use for quota purposes for server-side applications. Can be any
378
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
379
+ # @param [Google::Apis::RequestOptions] options
380
+ # Request-specific options
381
+ #
382
+ # @yield [result, err] Result & error if block supplied
383
+ # @yieldparam result [Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaAttributesConfig] parsed result object
384
+ # @yieldparam err [StandardError] error object if request failed
385
+ #
386
+ # @return [Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaAttributesConfig]
387
+ #
388
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
389
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
390
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
391
+ def add_project_location_catalog_attributes_config_catalog_attribute(attributes_config, google_cloud_retail_v2alpha_add_catalog_attribute_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
392
+ command = make_simple_command(:post, 'v2alpha/{+attributesConfig}:addCatalogAttribute', options)
393
+ command.request_representation = Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaAddCatalogAttributeRequest::Representation
394
+ command.request_object = google_cloud_retail_v2alpha_add_catalog_attribute_request_object
395
+ command.response_representation = Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaAttributesConfig::Representation
396
+ command.response_class = Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaAttributesConfig
397
+ command.params['attributesConfig'] = attributes_config unless attributes_config.nil?
398
+ command.query['fields'] = fields unless fields.nil?
399
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
400
+ execute_or_queue_command(command, &block)
401
+ end
402
+
403
+ # Removes the specified CatalogAttribute from the AttributesConfig. If the
404
+ # CatalogAttribute to remove does not exist, a NOT_FOUND error is returned.
405
+ # @param [String] attributes_config
406
+ # Required. Full AttributesConfig resource name. Format: projects/`
407
+ # project_number`/locations/`location_id`/catalogs/`catalog_id`/attributesConfig
408
+ # @param [Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaRemoveCatalogAttributeRequest] google_cloud_retail_v2alpha_remove_catalog_attribute_request_object
409
+ # @param [String] fields
410
+ # Selector specifying which fields to include in a partial response.
411
+ # @param [String] quota_user
412
+ # Available to use for quota purposes for server-side applications. Can be any
413
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
414
+ # @param [Google::Apis::RequestOptions] options
415
+ # Request-specific options
416
+ #
417
+ # @yield [result, err] Result & error if block supplied
418
+ # @yieldparam result [Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaAttributesConfig] parsed result object
419
+ # @yieldparam err [StandardError] error object if request failed
420
+ #
421
+ # @return [Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaAttributesConfig]
422
+ #
423
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
424
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
425
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
426
+ def remove_project_location_catalog_attributes_config_catalog_attribute(attributes_config, google_cloud_retail_v2alpha_remove_catalog_attribute_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
427
+ command = make_simple_command(:post, 'v2alpha/{+attributesConfig}:removeCatalogAttribute', options)
428
+ command.request_representation = Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaRemoveCatalogAttributeRequest::Representation
429
+ command.request_object = google_cloud_retail_v2alpha_remove_catalog_attribute_request_object
430
+ command.response_representation = Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaAttributesConfig::Representation
431
+ command.response_class = Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaAttributesConfig
432
+ command.params['attributesConfig'] = attributes_config unless attributes_config.nil?
433
+ command.query['fields'] = fields unless fields.nil?
434
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
435
+ execute_or_queue_command(command, &block)
436
+ end
437
+
438
+ # Replaces the specified CatalogAttribute in the AttributesConfig by updating
439
+ # the catalog attribute with the same CatalogAttribute.key. If the
440
+ # CatalogAttribute to replace does not exist, a NOT_FOUND error is returned.
441
+ # @param [String] attributes_config
442
+ # Required. Full AttributesConfig resource name. Format: projects/`
443
+ # project_number`/locations/`location_id`/catalogs/`catalog_id`/attributesConfig
444
+ # @param [Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaReplaceCatalogAttributeRequest] google_cloud_retail_v2alpha_replace_catalog_attribute_request_object
445
+ # @param [String] fields
446
+ # Selector specifying which fields to include in a partial response.
447
+ # @param [String] quota_user
448
+ # Available to use for quota purposes for server-side applications. Can be any
449
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
450
+ # @param [Google::Apis::RequestOptions] options
451
+ # Request-specific options
452
+ #
453
+ # @yield [result, err] Result & error if block supplied
454
+ # @yieldparam result [Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaAttributesConfig] parsed result object
455
+ # @yieldparam err [StandardError] error object if request failed
456
+ #
457
+ # @return [Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaAttributesConfig]
458
+ #
459
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
460
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
461
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
462
+ def replace_project_location_catalog_attributes_config_catalog_attribute(attributes_config, google_cloud_retail_v2alpha_replace_catalog_attribute_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
463
+ command = make_simple_command(:post, 'v2alpha/{+attributesConfig}:replaceCatalogAttribute', options)
464
+ command.request_representation = Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaReplaceCatalogAttributeRequest::Representation
465
+ command.request_object = google_cloud_retail_v2alpha_replace_catalog_attribute_request_object
466
+ command.response_representation = Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaAttributesConfig::Representation
467
+ command.response_class = Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaAttributesConfig
468
+ command.params['attributesConfig'] = attributes_config unless attributes_config.nil?
469
+ command.query['fields'] = fields unless fields.nil?
470
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
471
+ execute_or_queue_command(command, &block)
472
+ end
473
+
290
474
  # Gets the latest state of a long-running operation. Clients can use this method
291
475
  # to poll the operation result at intervals as recommended by the API service.
292
476
  # @param [String] name
@@ -777,7 +961,7 @@ module Google
777
961
  # CreateProduct or UpdateProduct request. If no inventory fields are set in
778
962
  # CreateProductRequest.product, then any pre-existing inventory information for
779
963
  # this product will be used. If no inventory fields are set in
780
- # UpdateProductRequest.set_mask, then any existing inventory information will be
964
+ # SetInventoryRequest.set_mask, then any existing inventory information will be
781
965
  # preserved. Pre-existing inventory information can only be updated with
782
966
  # SetInventory, AddFulfillmentPlaces, and RemoveFulfillmentPlaces. This feature
783
967
  # is only available for users who have Retail Search enabled. Please submit a
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.29.0
4
+ version: 0.32.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-02-14 00:00:00.000000000 Z
11
+ date: 2022-03-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_v2alpha/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-retail_v2alpha/v0.29.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-retail_v2alpha/v0.32.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: []