google-apis-retail_v2alpha 0.80.0 → 0.82.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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: eaf8155deb27fe6270c14aebf74446bca6d8e246591ce73d2c62ce68cc20556b
|
4
|
+
data.tar.gz: 06e4a4c787dbbaee5e6ed0a1d34144befac9fdc417eee72530b22f264362acb9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3b4bea157f0fa717217b0ab0bd5841a8d9170b8e1f26fbf3ccf0c4c17d31254472fa74d2a67706981ac3b5a20c9822f3d414afc3c1bc31b92793a74335a95363
|
7
|
+
data.tar.gz: 19124d90816c9b7ceb10900d8e23face40db7361977f0988a4e0cf587ab621c50855172a1126bf23d44aa31836cd63ba84878746ec03f290fa4716fb1df8739c
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,13 @@
|
|
1
1
|
# Release history for google-apis-retail_v2alpha
|
2
2
|
|
3
|
+
### v0.82.0 (2023-07-23)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20230713
|
6
|
+
|
7
|
+
### v0.81.0 (2023-07-09)
|
8
|
+
|
9
|
+
* Regenerated from discovery document revision 20230629
|
10
|
+
|
3
11
|
### v0.80.0 (2023-07-02)
|
4
12
|
|
5
13
|
* Regenerated from discovery document revision 20230622
|
@@ -1008,6 +1008,19 @@ module Google
|
|
1008
1008
|
end
|
1009
1009
|
end
|
1010
1010
|
|
1011
|
+
# Request for AcceptTerms method.
|
1012
|
+
class GoogleCloudRetailV2alphaAcceptTermsRequest
|
1013
|
+
include Google::Apis::Core::Hashable
|
1014
|
+
|
1015
|
+
def initialize(**args)
|
1016
|
+
update!(**args)
|
1017
|
+
end
|
1018
|
+
|
1019
|
+
# Update properties of this object
|
1020
|
+
def update!(**args)
|
1021
|
+
end
|
1022
|
+
end
|
1023
|
+
|
1011
1024
|
# Request for CatalogService.AddCatalogAttribute method.
|
1012
1025
|
class GoogleCloudRetailV2alphaAddCatalogAttributeRequest
|
1013
1026
|
include Google::Apis::Core::Hashable
|
@@ -2166,6 +2179,64 @@ module Google
|
|
2166
2179
|
end
|
2167
2180
|
end
|
2168
2181
|
|
2182
|
+
# Metadata related to the EnrollSolution method. This will be returned by the
|
2183
|
+
# google.longrunning.Operation.metadata field.
|
2184
|
+
class GoogleCloudRetailV2alphaEnrollSolutionMetadata
|
2185
|
+
include Google::Apis::Core::Hashable
|
2186
|
+
|
2187
|
+
def initialize(**args)
|
2188
|
+
update!(**args)
|
2189
|
+
end
|
2190
|
+
|
2191
|
+
# Update properties of this object
|
2192
|
+
def update!(**args)
|
2193
|
+
end
|
2194
|
+
end
|
2195
|
+
|
2196
|
+
# Request for EnrollSolution method.
|
2197
|
+
class GoogleCloudRetailV2alphaEnrollSolutionRequest
|
2198
|
+
include Google::Apis::Core::Hashable
|
2199
|
+
|
2200
|
+
# Required. Solution to enroll.
|
2201
|
+
# Corresponds to the JSON property `solution`
|
2202
|
+
# @return [String]
|
2203
|
+
attr_accessor :solution
|
2204
|
+
|
2205
|
+
def initialize(**args)
|
2206
|
+
update!(**args)
|
2207
|
+
end
|
2208
|
+
|
2209
|
+
# Update properties of this object
|
2210
|
+
def update!(**args)
|
2211
|
+
@solution = args[:solution] if args.key?(:solution)
|
2212
|
+
end
|
2213
|
+
end
|
2214
|
+
|
2215
|
+
# Response for EnrollSolution method.
|
2216
|
+
class GoogleCloudRetailV2alphaEnrollSolutionResponse
|
2217
|
+
include Google::Apis::Core::Hashable
|
2218
|
+
|
2219
|
+
# Retail API solution that the project has enrolled.
|
2220
|
+
# Corresponds to the JSON property `enrolledSolution`
|
2221
|
+
# @return [String]
|
2222
|
+
attr_accessor :enrolled_solution
|
2223
|
+
|
2224
|
+
# Search solution use case that the project has enrolled.
|
2225
|
+
# Corresponds to the JSON property `searchSolutionUseCase`
|
2226
|
+
# @return [String]
|
2227
|
+
attr_accessor :search_solution_use_case
|
2228
|
+
|
2229
|
+
def initialize(**args)
|
2230
|
+
update!(**args)
|
2231
|
+
end
|
2232
|
+
|
2233
|
+
# Update properties of this object
|
2234
|
+
def update!(**args)
|
2235
|
+
@enrolled_solution = args[:enrolled_solution] if args.key?(:enrolled_solution)
|
2236
|
+
@search_solution_use_case = args[:search_solution_use_case] if args.key?(:search_solution_use_case)
|
2237
|
+
end
|
2238
|
+
end
|
2239
|
+
|
2169
2240
|
# Metadata for active A/B testing Experiment.
|
2170
2241
|
class GoogleCloudRetailV2alphaExperimentInfo
|
2171
2242
|
include Google::Apis::Core::Hashable
|
@@ -2878,6 +2949,25 @@ module Google
|
|
2878
2949
|
end
|
2879
2950
|
end
|
2880
2951
|
|
2952
|
+
# Response for ListEnrolledSolutions method.
|
2953
|
+
class GoogleCloudRetailV2alphaListEnrolledSolutionsResponse
|
2954
|
+
include Google::Apis::Core::Hashable
|
2955
|
+
|
2956
|
+
# Retail API solutions that the project has enrolled.
|
2957
|
+
# Corresponds to the JSON property `enrolledSolutions`
|
2958
|
+
# @return [Array<String>]
|
2959
|
+
attr_accessor :enrolled_solutions
|
2960
|
+
|
2961
|
+
def initialize(**args)
|
2962
|
+
update!(**args)
|
2963
|
+
end
|
2964
|
+
|
2965
|
+
# Update properties of this object
|
2966
|
+
def update!(**args)
|
2967
|
+
@enrolled_solutions = args[:enrolled_solutions] if args.key?(:enrolled_solutions)
|
2968
|
+
end
|
2969
|
+
end
|
2970
|
+
|
2881
2971
|
# Response for MerchantCenterAccountLinkService.ListMerchantCenterAccountLinks
|
2882
2972
|
# method.
|
2883
2973
|
class GoogleCloudRetailV2alphaListMerchantCenterAccountLinksResponse
|
@@ -3957,11 +4047,11 @@ module Google
|
|
3957
4047
|
attr_accessor :available_time
|
3958
4048
|
|
3959
4049
|
# The brands of the product. A maximum of 30 brands are allowed unless
|
3960
|
-
# overridden
|
3961
|
-
# length limit of 1,000 characters. Otherwise, an
|
3962
|
-
# returned. Corresponding properties: Google Merchant
|
3963
|
-
# https://support.google.com/merchants/answer/6324351).
|
3964
|
-
# Product.brand](https://schema.org/brand).
|
4050
|
+
# overridden through the Google Cloud console. Each brand must be a UTF-8
|
4051
|
+
# encoded string with a length limit of 1,000 characters. Otherwise, an
|
4052
|
+
# INVALID_ARGUMENT error is returned. Corresponding properties: Google Merchant
|
4053
|
+
# Center property [brand](https://support.google.com/merchants/answer/6324351).
|
4054
|
+
# Schema.org property [Product.brand](https://schema.org/brand).
|
3965
4055
|
# Corresponds to the JSON property `brands`
|
3966
4056
|
# @return [Array<String>]
|
3967
4057
|
attr_accessor :brands
|
@@ -4418,6 +4508,32 @@ module Google
|
|
4418
4508
|
end
|
4419
4509
|
end
|
4420
4510
|
|
4511
|
+
# Metadata that describes a Cloud Retail Project.
|
4512
|
+
class GoogleCloudRetailV2alphaProject
|
4513
|
+
include Google::Apis::Core::Hashable
|
4514
|
+
|
4515
|
+
# Output only. Retail API solutions that the project has enrolled.
|
4516
|
+
# Corresponds to the JSON property `enrolledSolutions`
|
4517
|
+
# @return [Array<String>]
|
4518
|
+
attr_accessor :enrolled_solutions
|
4519
|
+
|
4520
|
+
# Output only. Full resource name of the retail project, such as `projects/`
|
4521
|
+
# project_id_or_number`/retailProject`.
|
4522
|
+
# Corresponds to the JSON property `name`
|
4523
|
+
# @return [String]
|
4524
|
+
attr_accessor :name
|
4525
|
+
|
4526
|
+
def initialize(**args)
|
4527
|
+
update!(**args)
|
4528
|
+
end
|
4529
|
+
|
4530
|
+
# Update properties of this object
|
4531
|
+
def update!(**args)
|
4532
|
+
@enrolled_solutions = args[:enrolled_solutions] if args.key?(:enrolled_solutions)
|
4533
|
+
@name = args[:name] if args.key?(:name)
|
4534
|
+
end
|
4535
|
+
end
|
4536
|
+
|
4421
4537
|
# Promotion specification.
|
4422
4538
|
class GoogleCloudRetailV2alphaPromotion
|
4423
4539
|
include Google::Apis::Core::Hashable
|
@@ -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.
|
19
|
+
GEM_VERSION = "0.82.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 = "20230713"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -238,6 +238,12 @@ module Google
|
|
238
238
|
include Google::Apis::Core::JsonObjectSupport
|
239
239
|
end
|
240
240
|
|
241
|
+
class GoogleCloudRetailV2alphaAcceptTermsRequest
|
242
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
243
|
+
|
244
|
+
include Google::Apis::Core::JsonObjectSupport
|
245
|
+
end
|
246
|
+
|
241
247
|
class GoogleCloudRetailV2alphaAddCatalogAttributeRequest
|
242
248
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
243
249
|
|
@@ -424,6 +430,24 @@ module Google
|
|
424
430
|
include Google::Apis::Core::JsonObjectSupport
|
425
431
|
end
|
426
432
|
|
433
|
+
class GoogleCloudRetailV2alphaEnrollSolutionMetadata
|
434
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
435
|
+
|
436
|
+
include Google::Apis::Core::JsonObjectSupport
|
437
|
+
end
|
438
|
+
|
439
|
+
class GoogleCloudRetailV2alphaEnrollSolutionRequest
|
440
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
441
|
+
|
442
|
+
include Google::Apis::Core::JsonObjectSupport
|
443
|
+
end
|
444
|
+
|
445
|
+
class GoogleCloudRetailV2alphaEnrollSolutionResponse
|
446
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
447
|
+
|
448
|
+
include Google::Apis::Core::JsonObjectSupport
|
449
|
+
end
|
450
|
+
|
427
451
|
class GoogleCloudRetailV2alphaExperimentInfo
|
428
452
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
429
453
|
|
@@ -556,6 +580,12 @@ module Google
|
|
556
580
|
include Google::Apis::Core::JsonObjectSupport
|
557
581
|
end
|
558
582
|
|
583
|
+
class GoogleCloudRetailV2alphaListEnrolledSolutionsResponse
|
584
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
585
|
+
|
586
|
+
include Google::Apis::Core::JsonObjectSupport
|
587
|
+
end
|
588
|
+
|
559
589
|
class GoogleCloudRetailV2alphaListMerchantCenterAccountLinksResponse
|
560
590
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
561
591
|
|
@@ -730,6 +760,12 @@ module Google
|
|
730
760
|
include Google::Apis::Core::JsonObjectSupport
|
731
761
|
end
|
732
762
|
|
763
|
+
class GoogleCloudRetailV2alphaProject
|
764
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
765
|
+
|
766
|
+
include Google::Apis::Core::JsonObjectSupport
|
767
|
+
end
|
768
|
+
|
733
769
|
class GoogleCloudRetailV2alphaPromotion
|
734
770
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
735
771
|
|
@@ -1643,6 +1679,12 @@ module Google
|
|
1643
1679
|
end
|
1644
1680
|
end
|
1645
1681
|
|
1682
|
+
class GoogleCloudRetailV2alphaAcceptTermsRequest
|
1683
|
+
# @private
|
1684
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1685
|
+
end
|
1686
|
+
end
|
1687
|
+
|
1646
1688
|
class GoogleCloudRetailV2alphaAddCatalogAttributeRequest
|
1647
1689
|
# @private
|
1648
1690
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -1934,6 +1976,27 @@ module Google
|
|
1934
1976
|
end
|
1935
1977
|
end
|
1936
1978
|
|
1979
|
+
class GoogleCloudRetailV2alphaEnrollSolutionMetadata
|
1980
|
+
# @private
|
1981
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1982
|
+
end
|
1983
|
+
end
|
1984
|
+
|
1985
|
+
class GoogleCloudRetailV2alphaEnrollSolutionRequest
|
1986
|
+
# @private
|
1987
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1988
|
+
property :solution, as: 'solution'
|
1989
|
+
end
|
1990
|
+
end
|
1991
|
+
|
1992
|
+
class GoogleCloudRetailV2alphaEnrollSolutionResponse
|
1993
|
+
# @private
|
1994
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1995
|
+
property :enrolled_solution, as: 'enrolledSolution'
|
1996
|
+
property :search_solution_use_case, as: 'searchSolutionUseCase'
|
1997
|
+
end
|
1998
|
+
end
|
1999
|
+
|
1937
2000
|
class GoogleCloudRetailV2alphaExperimentInfo
|
1938
2001
|
# @private
|
1939
2002
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -2144,6 +2207,13 @@ module Google
|
|
2144
2207
|
end
|
2145
2208
|
end
|
2146
2209
|
|
2210
|
+
class GoogleCloudRetailV2alphaListEnrolledSolutionsResponse
|
2211
|
+
# @private
|
2212
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
2213
|
+
collection :enrolled_solutions, as: 'enrolledSolutions'
|
2214
|
+
end
|
2215
|
+
end
|
2216
|
+
|
2147
2217
|
class GoogleCloudRetailV2alphaListMerchantCenterAccountLinksResponse
|
2148
2218
|
# @private
|
2149
2219
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -2481,6 +2551,14 @@ module Google
|
|
2481
2551
|
end
|
2482
2552
|
end
|
2483
2553
|
|
2554
|
+
class GoogleCloudRetailV2alphaProject
|
2555
|
+
# @private
|
2556
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
2557
|
+
collection :enrolled_solutions, as: 'enrolledSolutions'
|
2558
|
+
property :name, as: 'name'
|
2559
|
+
end
|
2560
|
+
end
|
2561
|
+
|
2484
2562
|
class GoogleCloudRetailV2alphaPromotion
|
2485
2563
|
# @private
|
2486
2564
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -51,6 +51,106 @@ module Google
|
|
51
51
|
@batch_path = 'batch'
|
52
52
|
end
|
53
53
|
|
54
|
+
# The method enrolls a solution of type Retail Search into a project. The
|
55
|
+
# Recommendations AI solution type is enrolled by default when your project
|
56
|
+
# enables Retail API, so you don't need to call the enrollSolution method for
|
57
|
+
# recommendations.
|
58
|
+
# @param [String] project
|
59
|
+
# Required. Full resource name of parent. Format: `projects/`
|
60
|
+
# project_number_or_id``
|
61
|
+
# @param [Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaEnrollSolutionRequest] google_cloud_retail_v2alpha_enroll_solution_request_object
|
62
|
+
# @param [String] fields
|
63
|
+
# Selector specifying which fields to include in a partial response.
|
64
|
+
# @param [String] quota_user
|
65
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
66
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
67
|
+
# @param [Google::Apis::RequestOptions] options
|
68
|
+
# Request-specific options
|
69
|
+
#
|
70
|
+
# @yield [result, err] Result & error if block supplied
|
71
|
+
# @yieldparam result [Google::Apis::RetailV2alpha::GoogleLongrunningOperation] parsed result object
|
72
|
+
# @yieldparam err [StandardError] error object if request failed
|
73
|
+
#
|
74
|
+
# @return [Google::Apis::RetailV2alpha::GoogleLongrunningOperation]
|
75
|
+
#
|
76
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
77
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
78
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
79
|
+
def enroll_project_solution(project, google_cloud_retail_v2alpha_enroll_solution_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
80
|
+
command = make_simple_command(:post, 'v2alpha/{+project}:enrollSolution', options)
|
81
|
+
command.request_representation = Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaEnrollSolutionRequest::Representation
|
82
|
+
command.request_object = google_cloud_retail_v2alpha_enroll_solution_request_object
|
83
|
+
command.response_representation = Google::Apis::RetailV2alpha::GoogleLongrunningOperation::Representation
|
84
|
+
command.response_class = Google::Apis::RetailV2alpha::GoogleLongrunningOperation
|
85
|
+
command.params['project'] = project unless project.nil?
|
86
|
+
command.query['fields'] = fields unless fields.nil?
|
87
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
88
|
+
execute_or_queue_command(command, &block)
|
89
|
+
end
|
90
|
+
|
91
|
+
# Gets the project. Throws `NOT_FOUND` if the project wasn't initialized for the
|
92
|
+
# Retail API service.
|
93
|
+
# @param [String] name
|
94
|
+
# Required. Full resource name of the project. Format: `projects/`
|
95
|
+
# project_number_or_id`/retailProject`
|
96
|
+
# @param [String] fields
|
97
|
+
# Selector specifying which fields to include in a partial response.
|
98
|
+
# @param [String] quota_user
|
99
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
100
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
101
|
+
# @param [Google::Apis::RequestOptions] options
|
102
|
+
# Request-specific options
|
103
|
+
#
|
104
|
+
# @yield [result, err] Result & error if block supplied
|
105
|
+
# @yieldparam result [Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaProject] parsed result object
|
106
|
+
# @yieldparam err [StandardError] error object if request failed
|
107
|
+
#
|
108
|
+
# @return [Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaProject]
|
109
|
+
#
|
110
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
111
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
112
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
113
|
+
def get_project_retail_project(name, fields: nil, quota_user: nil, options: nil, &block)
|
114
|
+
command = make_simple_command(:get, 'v2alpha/{+name}', options)
|
115
|
+
command.response_representation = Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaProject::Representation
|
116
|
+
command.response_class = Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaProject
|
117
|
+
command.params['name'] = name unless name.nil?
|
118
|
+
command.query['fields'] = fields unless fields.nil?
|
119
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
120
|
+
execute_or_queue_command(command, &block)
|
121
|
+
end
|
122
|
+
|
123
|
+
# Lists all the retail API solutions the project has enrolled.
|
124
|
+
# @param [String] parent
|
125
|
+
# Required. Full resource name of parent. Format: `projects/`
|
126
|
+
# project_number_or_id``
|
127
|
+
# @param [String] fields
|
128
|
+
# Selector specifying which fields to include in a partial response.
|
129
|
+
# @param [String] quota_user
|
130
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
131
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
132
|
+
# @param [Google::Apis::RequestOptions] options
|
133
|
+
# Request-specific options
|
134
|
+
#
|
135
|
+
# @yield [result, err] Result & error if block supplied
|
136
|
+
# @yieldparam result [Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaListEnrolledSolutionsResponse] parsed result object
|
137
|
+
# @yieldparam err [StandardError] error object if request failed
|
138
|
+
#
|
139
|
+
# @return [Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaListEnrolledSolutionsResponse]
|
140
|
+
#
|
141
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
142
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
143
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
144
|
+
def list_project_enrolled_solutions(parent, fields: nil, quota_user: nil, options: nil, &block)
|
145
|
+
command = make_simple_command(:get, 'v2alpha/{+parent}:enrolledSolutions', options)
|
146
|
+
command.response_representation = Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaListEnrolledSolutionsResponse::Representation
|
147
|
+
command.response_class = Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaListEnrolledSolutionsResponse
|
148
|
+
command.params['parent'] = parent unless parent.nil?
|
149
|
+
command.query['fields'] = fields unless fields.nil?
|
150
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
151
|
+
execute_or_queue_command(command, &block)
|
152
|
+
end
|
153
|
+
|
54
154
|
# Completes the specified prefix with keyword suggestions. This feature is only
|
55
155
|
# available for users who have Retail Search enabled. Enable Retail Search on
|
56
156
|
# Cloud Console before using this feature.
|
@@ -2678,6 +2778,42 @@ module Google
|
|
2678
2778
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2679
2779
|
execute_or_queue_command(command, &block)
|
2680
2780
|
end
|
2781
|
+
|
2782
|
+
# Accepts service terms for this project. By making requests to this API, you
|
2783
|
+
# agree to the terms of service linked below. https://cloud.google.com/retail/
|
2784
|
+
# data-use-terms
|
2785
|
+
# @param [String] project
|
2786
|
+
# Required. Full resource name of the project. Format: `projects/`
|
2787
|
+
# project_number_or_id`/retailProject`
|
2788
|
+
# @param [Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaAcceptTermsRequest] google_cloud_retail_v2alpha_accept_terms_request_object
|
2789
|
+
# @param [String] fields
|
2790
|
+
# Selector specifying which fields to include in a partial response.
|
2791
|
+
# @param [String] quota_user
|
2792
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
2793
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2794
|
+
# @param [Google::Apis::RequestOptions] options
|
2795
|
+
# Request-specific options
|
2796
|
+
#
|
2797
|
+
# @yield [result, err] Result & error if block supplied
|
2798
|
+
# @yieldparam result [Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaProject] parsed result object
|
2799
|
+
# @yieldparam err [StandardError] error object if request failed
|
2800
|
+
#
|
2801
|
+
# @return [Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaProject]
|
2802
|
+
#
|
2803
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2804
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2805
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2806
|
+
def accept_project_retail_project_terms(project, google_cloud_retail_v2alpha_accept_terms_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
2807
|
+
command = make_simple_command(:post, 'v2alpha/{+project}:acceptTerms', options)
|
2808
|
+
command.request_representation = Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaAcceptTermsRequest::Representation
|
2809
|
+
command.request_object = google_cloud_retail_v2alpha_accept_terms_request_object
|
2810
|
+
command.response_representation = Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaProject::Representation
|
2811
|
+
command.response_class = Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaProject
|
2812
|
+
command.params['project'] = project unless project.nil?
|
2813
|
+
command.query['fields'] = fields unless fields.nil?
|
2814
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2815
|
+
execute_or_queue_command(command, &block)
|
2816
|
+
end
|
2681
2817
|
|
2682
2818
|
protected
|
2683
2819
|
|
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.
|
4
|
+
version: 0.82.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-07-
|
11
|
+
date: 2023-07-23 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.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-retail_v2alpha/v0.82.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: []
|