google-apis-retail_v2 0.67.0 → 0.69.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -0
- data/lib/google/apis/retail_v2/classes.rb +306 -6
- data/lib/google/apis/retail_v2/gem_version.rb +2 -2
- data/lib/google/apis/retail_v2/representations.rb +102 -0
- data/lib/google/apis/retail_v2/service.rb +38 -22
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6ad77f2d05d615bfb7a3ef7767ff5e46b14d30f40d67078a3ac8b06b9ae1328e
|
4
|
+
data.tar.gz: 830ccb9adafd13220bf6ca3528409c4dc485f44f76c0a4dc51c91d46a2551f63
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 59a21c3e22f066b01ccd1178d3c5a26623c69130c7432daf85468f7f564fec7d49d693b58da1b200f298b674304dcebf746afa8c07662a872e6577593c6aba1c
|
7
|
+
data.tar.gz: 13e4390249bda200000fe31abe1063a9029916a31be5e68d41f02d4c06025a645e9e3d314f945bfe35a0cabaf52144d4cce63d9c4747deddd669ab810e6ae130
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,13 @@
|
|
1
1
|
# Release history for google-apis-retail_v2
|
2
2
|
|
3
|
+
### v0.69.0 (2023-03-26)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20230321
|
6
|
+
|
7
|
+
### v0.68.0 (2023-03-19)
|
8
|
+
|
9
|
+
* Regenerated from discovery document revision 20230309
|
10
|
+
|
3
11
|
### v0.67.0 (2023-03-05)
|
4
12
|
|
5
13
|
* Regenerated from discovery document revision 20230223
|
@@ -2155,9 +2155,9 @@ module Google
|
|
2155
2155
|
# filterSyntaxV2` is set to true under the `params` field, then attribute-based
|
2156
2156
|
# expressions are expected instead of the above described tag-based syntax.
|
2157
2157
|
# Examples: * (colors: ANY("Red", "Blue")) AND NOT (categories: ANY("Phones")) *
|
2158
|
-
# (
|
2159
|
-
# For more information, see [Filter recommendations](https://cloud.
|
2160
|
-
# retail/docs/filter-recs).
|
2158
|
+
# (availability: ANY("IN_STOCK")) AND (colors: ANY("Red") OR categories: ANY("
|
2159
|
+
# Phones")) For more information, see [Filter recommendations](https://cloud.
|
2160
|
+
# google.com/retail/docs/filter-recs).
|
2161
2161
|
# Corresponds to the JSON property `filter`
|
2162
2162
|
# @return [String]
|
2163
2163
|
attr_accessor :filter
|
@@ -3724,6 +3724,13 @@ module Google
|
|
3724
3724
|
class GoogleCloudRetailV2SearchRequest
|
3725
3725
|
include Google::Apis::Core::Hashable
|
3726
3726
|
|
3727
|
+
# Represents the banner in request, for projects that combine banners. For
|
3728
|
+
# example: a retailer can sell products under different banners like retailer-
|
3729
|
+
# main, retailer-baby, retailer-meds, etc. under one project.
|
3730
|
+
# Corresponds to the JSON property `banner`
|
3731
|
+
# @return [String]
|
3732
|
+
attr_accessor :banner
|
3733
|
+
|
3727
3734
|
# Boost specification to boost certain items.
|
3728
3735
|
# Corresponds to the JSON property `boostSpec`
|
3729
3736
|
# @return [Google::Apis::RetailV2::GoogleCloudRetailV2SearchRequestBoostSpec]
|
@@ -3905,6 +3912,7 @@ module Google
|
|
3905
3912
|
|
3906
3913
|
# Update properties of this object
|
3907
3914
|
def update!(**args)
|
3915
|
+
@banner = args[:banner] if args.key?(:banner)
|
3908
3916
|
@boost_spec = args[:boost_spec] if args.key?(:boost_spec)
|
3909
3917
|
@branch = args[:branch] if args.key?(:branch)
|
3910
3918
|
@canonical_filter = args[:canonical_filter] if args.key?(:canonical_filter)
|
@@ -4108,9 +4116,13 @@ module Google
|
|
4108
4116
|
# @return [Array<String>]
|
4109
4117
|
attr_accessor :contains
|
4110
4118
|
|
4111
|
-
#
|
4112
|
-
#
|
4113
|
-
#
|
4119
|
+
# For all numerical facet keys that appear in the list of products from the
|
4120
|
+
# catalog, the percentiles 0, 10, 30, 50, 70, 90 and 100 are computed from their
|
4121
|
+
# distribution weekly. If the model assigns a high score to a numerical facet
|
4122
|
+
# key and its intervals are not specified in the search request, these
|
4123
|
+
# percentiles will become the bounds for its intervals and will be returned in
|
4124
|
+
# the response. If the facet key intervals are specified in the request, then
|
4125
|
+
# the specified intervals will be returned instead.
|
4114
4126
|
# Corresponds to the JSON property `intervals`
|
4115
4127
|
# @return [Array<Google::Apis::RetailV2::GoogleCloudRetailV2Interval>]
|
4116
4128
|
attr_accessor :intervals
|
@@ -4927,6 +4939,13 @@ module Google
|
|
4927
4939
|
# @return [String]
|
4928
4940
|
attr_accessor :attribution_token
|
4929
4941
|
|
4942
|
+
# Represents the banner of the user event, for projects that combine banners.
|
4943
|
+
# For example: retailer can have events from multiple banners like retailer-main,
|
4944
|
+
# retailer-baby, retailer-meds, etc. under one project.
|
4945
|
+
# Corresponds to the JSON property `banner`
|
4946
|
+
# @return [String]
|
4947
|
+
attr_accessor :banner
|
4948
|
+
|
4930
4949
|
# The ID or name of the associated shopping cart. This ID is used to associate
|
4931
4950
|
# multiple items added or present in the cart before purchase. This can only be
|
4932
4951
|
# set for `add-to-cart`, `purchase-complete`, or `shopping-cart-page-view`
|
@@ -5094,6 +5113,7 @@ module Google
|
|
5094
5113
|
def update!(**args)
|
5095
5114
|
@attributes = args[:attributes] if args.key?(:attributes)
|
5096
5115
|
@attribution_token = args[:attribution_token] if args.key?(:attribution_token)
|
5116
|
+
@banner = args[:banner] if args.key?(:banner)
|
5097
5117
|
@cart_id = args[:cart_id] if args.key?(:cart_id)
|
5098
5118
|
@completion_detail = args[:completion_detail] if args.key?(:completion_detail)
|
5099
5119
|
@event_time = args[:event_time] if args.key?(:event_time)
|
@@ -5335,6 +5355,32 @@ module Google
|
|
5335
5355
|
end
|
5336
5356
|
end
|
5337
5357
|
|
5358
|
+
# Common metadata related to the progress of the operations.
|
5359
|
+
class GoogleCloudRetailV2alphaCreateMerchantCenterAccountLinkMetadata
|
5360
|
+
include Google::Apis::Core::Hashable
|
5361
|
+
|
5362
|
+
# Operation create time.
|
5363
|
+
# Corresponds to the JSON property `createTime`
|
5364
|
+
# @return [String]
|
5365
|
+
attr_accessor :create_time
|
5366
|
+
|
5367
|
+
# Operation last update time. If the operation is done, this is also the finish
|
5368
|
+
# time.
|
5369
|
+
# Corresponds to the JSON property `updateTime`
|
5370
|
+
# @return [String]
|
5371
|
+
attr_accessor :update_time
|
5372
|
+
|
5373
|
+
def initialize(**args)
|
5374
|
+
update!(**args)
|
5375
|
+
end
|
5376
|
+
|
5377
|
+
# Update properties of this object
|
5378
|
+
def update!(**args)
|
5379
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
5380
|
+
@update_time = args[:update_time] if args.key?(:update_time)
|
5381
|
+
end
|
5382
|
+
end
|
5383
|
+
|
5338
5384
|
# Metadata associated with a create operation.
|
5339
5385
|
class GoogleCloudRetailV2alphaCreateModelMetadata
|
5340
5386
|
include Google::Apis::Core::Hashable
|
@@ -5654,6 +5700,120 @@ module Google
|
|
5654
5700
|
end
|
5655
5701
|
end
|
5656
5702
|
|
5703
|
+
# Represents a link between a Merchant Center account and a branch. Once a link
|
5704
|
+
# is established, products from the linked merchant center account will be
|
5705
|
+
# streamed to the linked branch. LINT.IfChange(MerchantCenterAccountLink)
|
5706
|
+
class GoogleCloudRetailV2alphaMerchantCenterAccountLink
|
5707
|
+
include Google::Apis::Core::Hashable
|
5708
|
+
|
5709
|
+
# Required. The branch id (e.g. 0/1/2) within the catalog that products from
|
5710
|
+
# merchant_center_account_id are streamed to. When updating this field, an empty
|
5711
|
+
# value will use the currently configured default branch. However, changing the
|
5712
|
+
# default branch later on won't change the linked branch here. A single branch
|
5713
|
+
# id can only have one linked merchant center account id.
|
5714
|
+
# Corresponds to the JSON property `branchId`
|
5715
|
+
# @return [String]
|
5716
|
+
attr_accessor :branch_id
|
5717
|
+
|
5718
|
+
# Criteria for the Merchant Center feeds to be ingested via the link. All offers
|
5719
|
+
# will be ingested if the list is empty. Otherwise the offers will be ingested
|
5720
|
+
# from selected feeds.
|
5721
|
+
# Corresponds to the JSON property `feedFilters`
|
5722
|
+
# @return [Array<Google::Apis::RetailV2::GoogleCloudRetailV2alphaMerchantCenterAccountLinkMerchantCenterFeedFilter>]
|
5723
|
+
attr_accessor :feed_filters
|
5724
|
+
|
5725
|
+
# The FeedLabel used to perform filtering. Note: this replaces [region_id](https:
|
5726
|
+
# //developers.google.com/shopping-content/reference/rest/v2.1/products#Product.
|
5727
|
+
# FIELDS.feed_label). Example value: `US`. Example value: `FeedLabel1`.
|
5728
|
+
# Corresponds to the JSON property `feedLabel`
|
5729
|
+
# @return [String]
|
5730
|
+
attr_accessor :feed_label
|
5731
|
+
|
5732
|
+
# Output only. Immutable. MerchantCenterAccountLink identifier, which is the
|
5733
|
+
# final component of name. This field is auto generated and follows the
|
5734
|
+
# convention: `BranchId_MerchantCenterAccountId`. `projects/*/locations/global/
|
5735
|
+
# catalogs/default_catalog/merchantCenterAccountLinks/id_1`.
|
5736
|
+
# Corresponds to the JSON property `id`
|
5737
|
+
# @return [String]
|
5738
|
+
attr_accessor :id
|
5739
|
+
|
5740
|
+
# Language of the title/description and other string attributes. Use language
|
5741
|
+
# tags defined by [BCP 47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt). ISO
|
5742
|
+
# 639-1. This specifies the language of offers in Merchant Center that will be
|
5743
|
+
# accepted. If empty, no language filtering will be performed. Example value: `
|
5744
|
+
# en`.
|
5745
|
+
# Corresponds to the JSON property `languageCode`
|
5746
|
+
# @return [String]
|
5747
|
+
attr_accessor :language_code
|
5748
|
+
|
5749
|
+
# Required. The linked [Merchant center account id](https://developers.google.
|
5750
|
+
# com/shopping-content/guides/accountstatuses). The account must be a standalone
|
5751
|
+
# account or a sub-account of a MCA.
|
5752
|
+
# Corresponds to the JSON property `merchantCenterAccountId`
|
5753
|
+
# @return [Fixnum]
|
5754
|
+
attr_accessor :merchant_center_account_id
|
5755
|
+
|
5756
|
+
# Output only. Immutable. Full resource name of the Merchant Center Account Link,
|
5757
|
+
# such as `projects/*/locations/global/catalogs/default_catalog/
|
5758
|
+
# merchantCenterAccountLinks/merchant_center_account_link`.
|
5759
|
+
# Corresponds to the JSON property `name`
|
5760
|
+
# @return [String]
|
5761
|
+
attr_accessor :name
|
5762
|
+
|
5763
|
+
# Output only. GCP project ID.
|
5764
|
+
# Corresponds to the JSON property `projectId`
|
5765
|
+
# @return [String]
|
5766
|
+
attr_accessor :project_id
|
5767
|
+
|
5768
|
+
# Output only. Represents the state of the link.
|
5769
|
+
# Corresponds to the JSON property `state`
|
5770
|
+
# @return [String]
|
5771
|
+
attr_accessor :state
|
5772
|
+
|
5773
|
+
def initialize(**args)
|
5774
|
+
update!(**args)
|
5775
|
+
end
|
5776
|
+
|
5777
|
+
# Update properties of this object
|
5778
|
+
def update!(**args)
|
5779
|
+
@branch_id = args[:branch_id] if args.key?(:branch_id)
|
5780
|
+
@feed_filters = args[:feed_filters] if args.key?(:feed_filters)
|
5781
|
+
@feed_label = args[:feed_label] if args.key?(:feed_label)
|
5782
|
+
@id = args[:id] if args.key?(:id)
|
5783
|
+
@language_code = args[:language_code] if args.key?(:language_code)
|
5784
|
+
@merchant_center_account_id = args[:merchant_center_account_id] if args.key?(:merchant_center_account_id)
|
5785
|
+
@name = args[:name] if args.key?(:name)
|
5786
|
+
@project_id = args[:project_id] if args.key?(:project_id)
|
5787
|
+
@state = args[:state] if args.key?(:state)
|
5788
|
+
end
|
5789
|
+
end
|
5790
|
+
|
5791
|
+
# Merchant Center Feed filter criterion.
|
5792
|
+
class GoogleCloudRetailV2alphaMerchantCenterAccountLinkMerchantCenterFeedFilter
|
5793
|
+
include Google::Apis::Core::Hashable
|
5794
|
+
|
5795
|
+
# Merchant Center primary feed ID.
|
5796
|
+
# Corresponds to the JSON property `primaryFeedId`
|
5797
|
+
# @return [Fixnum]
|
5798
|
+
attr_accessor :primary_feed_id
|
5799
|
+
|
5800
|
+
# Merchant Center primary feed name. The name is used for the display purposes
|
5801
|
+
# only.
|
5802
|
+
# Corresponds to the JSON property `primaryFeedName`
|
5803
|
+
# @return [String]
|
5804
|
+
attr_accessor :primary_feed_name
|
5805
|
+
|
5806
|
+
def initialize(**args)
|
5807
|
+
update!(**args)
|
5808
|
+
end
|
5809
|
+
|
5810
|
+
# Update properties of this object
|
5811
|
+
def update!(**args)
|
5812
|
+
@primary_feed_id = args[:primary_feed_id] if args.key?(:primary_feed_id)
|
5813
|
+
@primary_feed_name = args[:primary_feed_name] if args.key?(:primary_feed_name)
|
5814
|
+
end
|
5815
|
+
end
|
5816
|
+
|
5657
5817
|
# Metadata that describes the training and serving parameters of a Model. A
|
5658
5818
|
# Model can be associated with a ServingConfig and then queried through the
|
5659
5819
|
# Predict API.
|
@@ -6343,6 +6503,32 @@ module Google
|
|
6343
6503
|
end
|
6344
6504
|
end
|
6345
6505
|
|
6506
|
+
# Common metadata related to the progress of the operations.
|
6507
|
+
class GoogleCloudRetailV2betaCreateMerchantCenterAccountLinkMetadata
|
6508
|
+
include Google::Apis::Core::Hashable
|
6509
|
+
|
6510
|
+
# Operation create time.
|
6511
|
+
# Corresponds to the JSON property `createTime`
|
6512
|
+
# @return [String]
|
6513
|
+
attr_accessor :create_time
|
6514
|
+
|
6515
|
+
# Operation last update time. If the operation is done, this is also the finish
|
6516
|
+
# time.
|
6517
|
+
# Corresponds to the JSON property `updateTime`
|
6518
|
+
# @return [String]
|
6519
|
+
attr_accessor :update_time
|
6520
|
+
|
6521
|
+
def initialize(**args)
|
6522
|
+
update!(**args)
|
6523
|
+
end
|
6524
|
+
|
6525
|
+
# Update properties of this object
|
6526
|
+
def update!(**args)
|
6527
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
6528
|
+
@update_time = args[:update_time] if args.key?(:update_time)
|
6529
|
+
end
|
6530
|
+
end
|
6531
|
+
|
6346
6532
|
# Metadata associated with a create operation.
|
6347
6533
|
class GoogleCloudRetailV2betaCreateModelMetadata
|
6348
6534
|
include Google::Apis::Core::Hashable
|
@@ -6656,6 +6842,120 @@ module Google
|
|
6656
6842
|
end
|
6657
6843
|
end
|
6658
6844
|
|
6845
|
+
# Represents a link between a Merchant Center account and a branch. Once a link
|
6846
|
+
# is established, products from the linked merchant center account will be
|
6847
|
+
# streamed to the linked branch. LINT.IfChange(MerchantCenterAccountLink)
|
6848
|
+
class GoogleCloudRetailV2betaMerchantCenterAccountLink
|
6849
|
+
include Google::Apis::Core::Hashable
|
6850
|
+
|
6851
|
+
# Required. The branch id (e.g. 0/1/2) within the catalog that products from
|
6852
|
+
# merchant_center_account_id are streamed to. When updating this field, an empty
|
6853
|
+
# value will use the currently configured default branch. However, changing the
|
6854
|
+
# default branch later on won't change the linked branch here. A single branch
|
6855
|
+
# id can only have one linked merchant center account id.
|
6856
|
+
# Corresponds to the JSON property `branchId`
|
6857
|
+
# @return [String]
|
6858
|
+
attr_accessor :branch_id
|
6859
|
+
|
6860
|
+
# Criteria for the Merchant Center feeds to be ingested via the link. All offers
|
6861
|
+
# will be ingested if the list is empty. Otherwise the offers will be ingested
|
6862
|
+
# from selected feeds.
|
6863
|
+
# Corresponds to the JSON property `feedFilters`
|
6864
|
+
# @return [Array<Google::Apis::RetailV2::GoogleCloudRetailV2betaMerchantCenterAccountLinkMerchantCenterFeedFilter>]
|
6865
|
+
attr_accessor :feed_filters
|
6866
|
+
|
6867
|
+
# The FeedLabel used to perform filtering. Note: this replaces [region_id](https:
|
6868
|
+
# //developers.google.com/shopping-content/reference/rest/v2.1/products#Product.
|
6869
|
+
# FIELDS.feed_label). Example value: `US`. Example value: `FeedLabel1`.
|
6870
|
+
# Corresponds to the JSON property `feedLabel`
|
6871
|
+
# @return [String]
|
6872
|
+
attr_accessor :feed_label
|
6873
|
+
|
6874
|
+
# Output only. Immutable. MerchantCenterAccountLink identifier, which is the
|
6875
|
+
# final component of name. This field is auto generated and follows the
|
6876
|
+
# convention: `BranchId_MerchantCenterAccountId`. `projects/*/locations/global/
|
6877
|
+
# catalogs/default_catalog/merchantCenterAccountLinks/id_1`.
|
6878
|
+
# Corresponds to the JSON property `id`
|
6879
|
+
# @return [String]
|
6880
|
+
attr_accessor :id
|
6881
|
+
|
6882
|
+
# Language of the title/description and other string attributes. Use language
|
6883
|
+
# tags defined by [BCP 47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt). ISO
|
6884
|
+
# 639-1. This specifies the language of offers in Merchant Center that will be
|
6885
|
+
# accepted. If empty, no language filtering will be performed. Example value: `
|
6886
|
+
# en`.
|
6887
|
+
# Corresponds to the JSON property `languageCode`
|
6888
|
+
# @return [String]
|
6889
|
+
attr_accessor :language_code
|
6890
|
+
|
6891
|
+
# Required. The linked [Merchant center account id](https://developers.google.
|
6892
|
+
# com/shopping-content/guides/accountstatuses). The account must be a standalone
|
6893
|
+
# account or a sub-account of a MCA.
|
6894
|
+
# Corresponds to the JSON property `merchantCenterAccountId`
|
6895
|
+
# @return [Fixnum]
|
6896
|
+
attr_accessor :merchant_center_account_id
|
6897
|
+
|
6898
|
+
# Output only. Immutable. Full resource name of the Merchant Center Account Link,
|
6899
|
+
# such as `projects/*/locations/global/catalogs/default_catalog/
|
6900
|
+
# merchantCenterAccountLinks/merchant_center_account_link`.
|
6901
|
+
# Corresponds to the JSON property `name`
|
6902
|
+
# @return [String]
|
6903
|
+
attr_accessor :name
|
6904
|
+
|
6905
|
+
# Output only. GCP project ID.
|
6906
|
+
# Corresponds to the JSON property `projectId`
|
6907
|
+
# @return [String]
|
6908
|
+
attr_accessor :project_id
|
6909
|
+
|
6910
|
+
# Output only. Represents the state of the link.
|
6911
|
+
# Corresponds to the JSON property `state`
|
6912
|
+
# @return [String]
|
6913
|
+
attr_accessor :state
|
6914
|
+
|
6915
|
+
def initialize(**args)
|
6916
|
+
update!(**args)
|
6917
|
+
end
|
6918
|
+
|
6919
|
+
# Update properties of this object
|
6920
|
+
def update!(**args)
|
6921
|
+
@branch_id = args[:branch_id] if args.key?(:branch_id)
|
6922
|
+
@feed_filters = args[:feed_filters] if args.key?(:feed_filters)
|
6923
|
+
@feed_label = args[:feed_label] if args.key?(:feed_label)
|
6924
|
+
@id = args[:id] if args.key?(:id)
|
6925
|
+
@language_code = args[:language_code] if args.key?(:language_code)
|
6926
|
+
@merchant_center_account_id = args[:merchant_center_account_id] if args.key?(:merchant_center_account_id)
|
6927
|
+
@name = args[:name] if args.key?(:name)
|
6928
|
+
@project_id = args[:project_id] if args.key?(:project_id)
|
6929
|
+
@state = args[:state] if args.key?(:state)
|
6930
|
+
end
|
6931
|
+
end
|
6932
|
+
|
6933
|
+
# Merchant Center Feed filter criterion.
|
6934
|
+
class GoogleCloudRetailV2betaMerchantCenterAccountLinkMerchantCenterFeedFilter
|
6935
|
+
include Google::Apis::Core::Hashable
|
6936
|
+
|
6937
|
+
# Merchant Center primary feed ID.
|
6938
|
+
# Corresponds to the JSON property `primaryFeedId`
|
6939
|
+
# @return [Fixnum]
|
6940
|
+
attr_accessor :primary_feed_id
|
6941
|
+
|
6942
|
+
# Merchant Center primary feed name. The name is used for the display purposes
|
6943
|
+
# only.
|
6944
|
+
# Corresponds to the JSON property `primaryFeedName`
|
6945
|
+
# @return [String]
|
6946
|
+
attr_accessor :primary_feed_name
|
6947
|
+
|
6948
|
+
def initialize(**args)
|
6949
|
+
update!(**args)
|
6950
|
+
end
|
6951
|
+
|
6952
|
+
# Update properties of this object
|
6953
|
+
def update!(**args)
|
6954
|
+
@primary_feed_id = args[:primary_feed_id] if args.key?(:primary_feed_id)
|
6955
|
+
@primary_feed_name = args[:primary_feed_name] if args.key?(:primary_feed_name)
|
6956
|
+
end
|
6957
|
+
end
|
6958
|
+
|
6659
6959
|
# Metadata that describes the training and serving parameters of a Model. A
|
6660
6960
|
# Model can be associated with a ServingConfig and then queried through the
|
6661
6961
|
# Predict API.
|
@@ -16,13 +16,13 @@ module Google
|
|
16
16
|
module Apis
|
17
17
|
module RetailV2
|
18
18
|
# Version of the google-apis-retail_v2 gem
|
19
|
-
GEM_VERSION = "0.
|
19
|
+
GEM_VERSION = "0.69.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
22
|
GENERATOR_VERSION = "0.12.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20230321"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -784,6 +784,12 @@ module Google
|
|
784
784
|
include Google::Apis::Core::JsonObjectSupport
|
785
785
|
end
|
786
786
|
|
787
|
+
class GoogleCloudRetailV2alphaCreateMerchantCenterAccountLinkMetadata
|
788
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
789
|
+
|
790
|
+
include Google::Apis::Core::JsonObjectSupport
|
791
|
+
end
|
792
|
+
|
787
793
|
class GoogleCloudRetailV2alphaCreateModelMetadata
|
788
794
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
789
795
|
|
@@ -850,6 +856,18 @@ module Google
|
|
850
856
|
include Google::Apis::Core::JsonObjectSupport
|
851
857
|
end
|
852
858
|
|
859
|
+
class GoogleCloudRetailV2alphaMerchantCenterAccountLink
|
860
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
861
|
+
|
862
|
+
include Google::Apis::Core::JsonObjectSupport
|
863
|
+
end
|
864
|
+
|
865
|
+
class GoogleCloudRetailV2alphaMerchantCenterAccountLinkMerchantCenterFeedFilter
|
866
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
867
|
+
|
868
|
+
include Google::Apis::Core::JsonObjectSupport
|
869
|
+
end
|
870
|
+
|
853
871
|
class GoogleCloudRetailV2alphaModel
|
854
872
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
855
873
|
|
@@ -1012,6 +1030,12 @@ module Google
|
|
1012
1030
|
include Google::Apis::Core::JsonObjectSupport
|
1013
1031
|
end
|
1014
1032
|
|
1033
|
+
class GoogleCloudRetailV2betaCreateMerchantCenterAccountLinkMetadata
|
1034
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
1035
|
+
|
1036
|
+
include Google::Apis::Core::JsonObjectSupport
|
1037
|
+
end
|
1038
|
+
|
1015
1039
|
class GoogleCloudRetailV2betaCreateModelMetadata
|
1016
1040
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
1017
1041
|
|
@@ -1078,6 +1102,18 @@ module Google
|
|
1078
1102
|
include Google::Apis::Core::JsonObjectSupport
|
1079
1103
|
end
|
1080
1104
|
|
1105
|
+
class GoogleCloudRetailV2betaMerchantCenterAccountLink
|
1106
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
1107
|
+
|
1108
|
+
include Google::Apis::Core::JsonObjectSupport
|
1109
|
+
end
|
1110
|
+
|
1111
|
+
class GoogleCloudRetailV2betaMerchantCenterAccountLinkMerchantCenterFeedFilter
|
1112
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
1113
|
+
|
1114
|
+
include Google::Apis::Core::JsonObjectSupport
|
1115
|
+
end
|
1116
|
+
|
1081
1117
|
class GoogleCloudRetailV2betaModel
|
1082
1118
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
1083
1119
|
|
@@ -2124,6 +2160,7 @@ module Google
|
|
2124
2160
|
class GoogleCloudRetailV2SearchRequest
|
2125
2161
|
# @private
|
2126
2162
|
class Representation < Google::Apis::Core::JsonRepresentation
|
2163
|
+
property :banner, as: 'banner'
|
2127
2164
|
property :boost_spec, as: 'boostSpec', class: Google::Apis::RetailV2::GoogleCloudRetailV2SearchRequestBoostSpec, decorator: Google::Apis::RetailV2::GoogleCloudRetailV2SearchRequestBoostSpec::Representation
|
2128
2165
|
|
2129
2166
|
property :branch, as: 'branch'
|
@@ -2376,6 +2413,7 @@ module Google
|
|
2376
2413
|
hash :attributes, as: 'attributes', class: Google::Apis::RetailV2::GoogleCloudRetailV2CustomAttribute, decorator: Google::Apis::RetailV2::GoogleCloudRetailV2CustomAttribute::Representation
|
2377
2414
|
|
2378
2415
|
property :attribution_token, as: 'attributionToken'
|
2416
|
+
property :banner, as: 'banner'
|
2379
2417
|
property :cart_id, as: 'cartId'
|
2380
2418
|
property :completion_detail, as: 'completionDetail', class: Google::Apis::RetailV2::GoogleCloudRetailV2CompletionDetail, decorator: Google::Apis::RetailV2::GoogleCloudRetailV2CompletionDetail::Representation
|
2381
2419
|
|
@@ -2471,6 +2509,14 @@ module Google
|
|
2471
2509
|
end
|
2472
2510
|
end
|
2473
2511
|
|
2512
|
+
class GoogleCloudRetailV2alphaCreateMerchantCenterAccountLinkMetadata
|
2513
|
+
# @private
|
2514
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
2515
|
+
property :create_time, as: 'createTime'
|
2516
|
+
property :update_time, as: 'updateTime'
|
2517
|
+
end
|
2518
|
+
end
|
2519
|
+
|
2474
2520
|
class GoogleCloudRetailV2alphaCreateModelMetadata
|
2475
2521
|
# @private
|
2476
2522
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -2575,6 +2621,30 @@ module Google
|
|
2575
2621
|
end
|
2576
2622
|
end
|
2577
2623
|
|
2624
|
+
class GoogleCloudRetailV2alphaMerchantCenterAccountLink
|
2625
|
+
# @private
|
2626
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
2627
|
+
property :branch_id, as: 'branchId'
|
2628
|
+
collection :feed_filters, as: 'feedFilters', class: Google::Apis::RetailV2::GoogleCloudRetailV2alphaMerchantCenterAccountLinkMerchantCenterFeedFilter, decorator: Google::Apis::RetailV2::GoogleCloudRetailV2alphaMerchantCenterAccountLinkMerchantCenterFeedFilter::Representation
|
2629
|
+
|
2630
|
+
property :feed_label, as: 'feedLabel'
|
2631
|
+
property :id, as: 'id'
|
2632
|
+
property :language_code, as: 'languageCode'
|
2633
|
+
property :merchant_center_account_id, :numeric_string => true, as: 'merchantCenterAccountId'
|
2634
|
+
property :name, as: 'name'
|
2635
|
+
property :project_id, as: 'projectId'
|
2636
|
+
property :state, as: 'state'
|
2637
|
+
end
|
2638
|
+
end
|
2639
|
+
|
2640
|
+
class GoogleCloudRetailV2alphaMerchantCenterAccountLinkMerchantCenterFeedFilter
|
2641
|
+
# @private
|
2642
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
2643
|
+
property :primary_feed_id, :numeric_string => true, as: 'primaryFeedId'
|
2644
|
+
property :primary_feed_name, as: 'primaryFeedName'
|
2645
|
+
end
|
2646
|
+
end
|
2647
|
+
|
2578
2648
|
class GoogleCloudRetailV2alphaModel
|
2579
2649
|
# @private
|
2580
2650
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -2784,6 +2854,14 @@ module Google
|
|
2784
2854
|
end
|
2785
2855
|
end
|
2786
2856
|
|
2857
|
+
class GoogleCloudRetailV2betaCreateMerchantCenterAccountLinkMetadata
|
2858
|
+
# @private
|
2859
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
2860
|
+
property :create_time, as: 'createTime'
|
2861
|
+
property :update_time, as: 'updateTime'
|
2862
|
+
end
|
2863
|
+
end
|
2864
|
+
|
2787
2865
|
class GoogleCloudRetailV2betaCreateModelMetadata
|
2788
2866
|
# @private
|
2789
2867
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -2886,6 +2964,30 @@ module Google
|
|
2886
2964
|
end
|
2887
2965
|
end
|
2888
2966
|
|
2967
|
+
class GoogleCloudRetailV2betaMerchantCenterAccountLink
|
2968
|
+
# @private
|
2969
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
2970
|
+
property :branch_id, as: 'branchId'
|
2971
|
+
collection :feed_filters, as: 'feedFilters', class: Google::Apis::RetailV2::GoogleCloudRetailV2betaMerchantCenterAccountLinkMerchantCenterFeedFilter, decorator: Google::Apis::RetailV2::GoogleCloudRetailV2betaMerchantCenterAccountLinkMerchantCenterFeedFilter::Representation
|
2972
|
+
|
2973
|
+
property :feed_label, as: 'feedLabel'
|
2974
|
+
property :id, as: 'id'
|
2975
|
+
property :language_code, as: 'languageCode'
|
2976
|
+
property :merchant_center_account_id, :numeric_string => true, as: 'merchantCenterAccountId'
|
2977
|
+
property :name, as: 'name'
|
2978
|
+
property :project_id, as: 'projectId'
|
2979
|
+
property :state, as: 'state'
|
2980
|
+
end
|
2981
|
+
end
|
2982
|
+
|
2983
|
+
class GoogleCloudRetailV2betaMerchantCenterAccountLinkMerchantCenterFeedFilter
|
2984
|
+
# @private
|
2985
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
2986
|
+
property :primary_feed_id, :numeric_string => true, as: 'primaryFeedId'
|
2987
|
+
property :primary_feed_name, as: 'primaryFeedName'
|
2988
|
+
end
|
2989
|
+
end
|
2990
|
+
|
2889
2991
|
class GoogleCloudRetailV2betaModel
|
2890
2992
|
# @private
|
2891
2993
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -57,6 +57,8 @@ module Google
|
|
57
57
|
# @param [String] catalog
|
58
58
|
# Required. Catalog for which the completion is performed. Full resource name of
|
59
59
|
# catalog, such as `projects/*/locations/global/catalogs/default_catalog`.
|
60
|
+
# @param [String] banner
|
61
|
+
# The banner context for completion suggestions.
|
60
62
|
# @param [String] dataset
|
61
63
|
# Determines which dataset to use for fetching completion. "user-data" will use
|
62
64
|
# the imported dataset through CompletionService.ImportCompletionData. "cloud-
|
@@ -110,11 +112,12 @@ module Google
|
|
110
112
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
111
113
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
112
114
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
113
|
-
def complete_project_location_catalog_query(catalog, dataset: nil, device_type: nil, language_codes: nil, max_suggestions: nil, query: nil, visitor_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
115
|
+
def complete_project_location_catalog_query(catalog, banner: nil, dataset: nil, device_type: nil, language_codes: nil, max_suggestions: nil, query: nil, visitor_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
114
116
|
command = make_simple_command(:get, 'v2/{+catalog}:completeQuery', options)
|
115
117
|
command.response_representation = Google::Apis::RetailV2::GoogleCloudRetailV2CompleteQueryResponse::Representation
|
116
118
|
command.response_class = Google::Apis::RetailV2::GoogleCloudRetailV2CompleteQueryResponse
|
117
119
|
command.params['catalog'] = catalog unless catalog.nil?
|
120
|
+
command.query['banner'] = banner unless banner.nil?
|
118
121
|
command.query['dataset'] = dataset unless dataset.nil?
|
119
122
|
command.query['deviceType'] = device_type unless device_type.nil?
|
120
123
|
command.query['languageCodes'] = language_codes unless language_codes.nil?
|
@@ -1384,6 +1387,37 @@ module Google
|
|
1384
1387
|
execute_or_queue_command(command, &block)
|
1385
1388
|
end
|
1386
1389
|
|
1390
|
+
# Gets a model.
|
1391
|
+
# @param [String] name
|
1392
|
+
# Required. The resource name of the Model to get. Format: `projects/`
|
1393
|
+
# project_number`/locations/`location_id`/catalogs/`catalog`/models/`model_id``
|
1394
|
+
# @param [String] fields
|
1395
|
+
# Selector specifying which fields to include in a partial response.
|
1396
|
+
# @param [String] quota_user
|
1397
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1398
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1399
|
+
# @param [Google::Apis::RequestOptions] options
|
1400
|
+
# Request-specific options
|
1401
|
+
#
|
1402
|
+
# @yield [result, err] Result & error if block supplied
|
1403
|
+
# @yieldparam result [Google::Apis::RetailV2::GoogleCloudRetailV2Model] parsed result object
|
1404
|
+
# @yieldparam err [StandardError] error object if request failed
|
1405
|
+
#
|
1406
|
+
# @return [Google::Apis::RetailV2::GoogleCloudRetailV2Model]
|
1407
|
+
#
|
1408
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1409
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1410
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1411
|
+
def get_project_location_catalog_model(name, fields: nil, quota_user: nil, options: nil, &block)
|
1412
|
+
command = make_simple_command(:get, 'v2/{+name}', options)
|
1413
|
+
command.response_representation = Google::Apis::RetailV2::GoogleCloudRetailV2Model::Representation
|
1414
|
+
command.response_class = Google::Apis::RetailV2::GoogleCloudRetailV2Model
|
1415
|
+
command.params['name'] = name unless name.nil?
|
1416
|
+
command.query['fields'] = fields unless fields.nil?
|
1417
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1418
|
+
execute_or_queue_command(command, &block)
|
1419
|
+
end
|
1420
|
+
|
1387
1421
|
# Lists all the models linked to this event store.
|
1388
1422
|
# @param [String] parent
|
1389
1423
|
# Required. The parent for which to list models. Format: `projects/`
|
@@ -1600,13 +1634,7 @@ module Google
|
|
1600
1634
|
end
|
1601
1635
|
|
1602
1636
|
# Lists operations that match the specified filter in the request. If the server
|
1603
|
-
# doesn't support this method, it returns `UNIMPLEMENTED`.
|
1604
|
-
# binding allows API services to override the binding to use different resource
|
1605
|
-
# name schemes, such as `users/*/operations`. To override the binding, API
|
1606
|
-
# services can add a binding such as `"/v1/`name=users/*`/operations"` to their
|
1607
|
-
# service configuration. For backwards compatibility, the default name includes
|
1608
|
-
# the operations collection id, however overriding users must ensure the name
|
1609
|
-
# binding is the parent resource, without the operations collection id.
|
1637
|
+
# doesn't support this method, it returns `UNIMPLEMENTED`.
|
1610
1638
|
# @param [String] name
|
1611
1639
|
# The name of the operation's parent resource.
|
1612
1640
|
# @param [String] filter
|
@@ -2315,13 +2343,7 @@ module Google
|
|
2315
2343
|
end
|
2316
2344
|
|
2317
2345
|
# Lists operations that match the specified filter in the request. If the server
|
2318
|
-
# doesn't support this method, it returns `UNIMPLEMENTED`.
|
2319
|
-
# binding allows API services to override the binding to use different resource
|
2320
|
-
# name schemes, such as `users/*/operations`. To override the binding, API
|
2321
|
-
# services can add a binding such as `"/v1/`name=users/*`/operations"` to their
|
2322
|
-
# service configuration. For backwards compatibility, the default name includes
|
2323
|
-
# the operations collection id, however overriding users must ensure the name
|
2324
|
-
# binding is the parent resource, without the operations collection id.
|
2346
|
+
# doesn't support this method, it returns `UNIMPLEMENTED`.
|
2325
2347
|
# @param [String] name
|
2326
2348
|
# The name of the operation's parent resource.
|
2327
2349
|
# @param [String] filter
|
@@ -2392,13 +2414,7 @@ module Google
|
|
2392
2414
|
end
|
2393
2415
|
|
2394
2416
|
# Lists operations that match the specified filter in the request. If the server
|
2395
|
-
# doesn't support this method, it returns `UNIMPLEMENTED`.
|
2396
|
-
# binding allows API services to override the binding to use different resource
|
2397
|
-
# name schemes, such as `users/*/operations`. To override the binding, API
|
2398
|
-
# services can add a binding such as `"/v1/`name=users/*`/operations"` to their
|
2399
|
-
# service configuration. For backwards compatibility, the default name includes
|
2400
|
-
# the operations collection id, however overriding users must ensure the name
|
2401
|
-
# binding is the parent resource, without the operations collection id.
|
2417
|
+
# doesn't support this method, it returns `UNIMPLEMENTED`.
|
2402
2418
|
# @param [String] name
|
2403
2419
|
# The name of the operation's parent resource.
|
2404
2420
|
# @param [String] filter
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-apis-retail_v2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.69.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-03-
|
11
|
+
date: 2023-03-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
@@ -58,7 +58,7 @@ licenses:
|
|
58
58
|
metadata:
|
59
59
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
60
60
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-retail_v2/CHANGELOG.md
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-retail_v2/v0.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-retail_v2/v0.69.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: []
|