google-apis-retail_v2alpha 0.80.0 → 0.81.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: c61f8cbbc7f029e024dfbdc11d4347aacb9734ded4f21d8cd3b22997598160f3
|
4
|
+
data.tar.gz: 3726b8c5dbbead007c24120f89676cb24057ba997d404553269880081ceb2968
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b55a14b9f4ae88dda734daac4654bad0ea077f059da9a8fb31478cceb572e0ece69276b0cf59520fc2402fcb53235c783d537a05e9590ef192492b2e791fd45f
|
7
|
+
data.tar.gz: 9be57a4cebc493ece8a98327f458ab8185cb6aec1f72b8f6c0cf189060b6bc2080c6182976bfae2676a0325dacb7fc87739676b6f2e4ae49a440a56b91886608
|
data/CHANGELOG.md
CHANGED
@@ -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,72 @@ 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
|
+
# Solution use case to enroll. Currently settable for Browse to enroll. It
|
2201
|
+
# should be only set when [solution] is set as SolutionType.SOLUTION_TYPE_SEARCH
|
2202
|
+
# or an INVALID_ARGUMENT error is thrown.
|
2203
|
+
# Corresponds to the JSON property `searchSolutionUseCase`
|
2204
|
+
# @return [String]
|
2205
|
+
attr_accessor :search_solution_use_case
|
2206
|
+
|
2207
|
+
# Required. Solution to enroll.
|
2208
|
+
# Corresponds to the JSON property `solution`
|
2209
|
+
# @return [String]
|
2210
|
+
attr_accessor :solution
|
2211
|
+
|
2212
|
+
def initialize(**args)
|
2213
|
+
update!(**args)
|
2214
|
+
end
|
2215
|
+
|
2216
|
+
# Update properties of this object
|
2217
|
+
def update!(**args)
|
2218
|
+
@search_solution_use_case = args[:search_solution_use_case] if args.key?(:search_solution_use_case)
|
2219
|
+
@solution = args[:solution] if args.key?(:solution)
|
2220
|
+
end
|
2221
|
+
end
|
2222
|
+
|
2223
|
+
# Response for EnrollSolution method.
|
2224
|
+
class GoogleCloudRetailV2alphaEnrollSolutionResponse
|
2225
|
+
include Google::Apis::Core::Hashable
|
2226
|
+
|
2227
|
+
# Retail API solution that the project has enrolled.
|
2228
|
+
# Corresponds to the JSON property `enrolledSolution`
|
2229
|
+
# @return [String]
|
2230
|
+
attr_accessor :enrolled_solution
|
2231
|
+
|
2232
|
+
# Search solution use case that the project has enrolled.
|
2233
|
+
# Corresponds to the JSON property `searchSolutionUseCase`
|
2234
|
+
# @return [String]
|
2235
|
+
attr_accessor :search_solution_use_case
|
2236
|
+
|
2237
|
+
def initialize(**args)
|
2238
|
+
update!(**args)
|
2239
|
+
end
|
2240
|
+
|
2241
|
+
# Update properties of this object
|
2242
|
+
def update!(**args)
|
2243
|
+
@enrolled_solution = args[:enrolled_solution] if args.key?(:enrolled_solution)
|
2244
|
+
@search_solution_use_case = args[:search_solution_use_case] if args.key?(:search_solution_use_case)
|
2245
|
+
end
|
2246
|
+
end
|
2247
|
+
|
2169
2248
|
# Metadata for active A/B testing Experiment.
|
2170
2249
|
class GoogleCloudRetailV2alphaExperimentInfo
|
2171
2250
|
include Google::Apis::Core::Hashable
|
@@ -2878,6 +2957,25 @@ module Google
|
|
2878
2957
|
end
|
2879
2958
|
end
|
2880
2959
|
|
2960
|
+
# Response for ListEnrolledSolutions method.
|
2961
|
+
class GoogleCloudRetailV2alphaListEnrolledSolutionsResponse
|
2962
|
+
include Google::Apis::Core::Hashable
|
2963
|
+
|
2964
|
+
# Retail API solutions that the project has enrolled.
|
2965
|
+
# Corresponds to the JSON property `enrolledSolutions`
|
2966
|
+
# @return [Array<String>]
|
2967
|
+
attr_accessor :enrolled_solutions
|
2968
|
+
|
2969
|
+
def initialize(**args)
|
2970
|
+
update!(**args)
|
2971
|
+
end
|
2972
|
+
|
2973
|
+
# Update properties of this object
|
2974
|
+
def update!(**args)
|
2975
|
+
@enrolled_solutions = args[:enrolled_solutions] if args.key?(:enrolled_solutions)
|
2976
|
+
end
|
2977
|
+
end
|
2978
|
+
|
2881
2979
|
# Response for MerchantCenterAccountLinkService.ListMerchantCenterAccountLinks
|
2882
2980
|
# method.
|
2883
2981
|
class GoogleCloudRetailV2alphaListMerchantCenterAccountLinksResponse
|
@@ -4418,6 +4516,32 @@ module Google
|
|
4418
4516
|
end
|
4419
4517
|
end
|
4420
4518
|
|
4519
|
+
# Metadata that describes a Cloud Retail Project.
|
4520
|
+
class GoogleCloudRetailV2alphaProject
|
4521
|
+
include Google::Apis::Core::Hashable
|
4522
|
+
|
4523
|
+
# Output only. Retail API solutions that the project has enrolled.
|
4524
|
+
# Corresponds to the JSON property `enrolledSolutions`
|
4525
|
+
# @return [Array<String>]
|
4526
|
+
attr_accessor :enrolled_solutions
|
4527
|
+
|
4528
|
+
# Output only. Full resource name of the retail project, such as `projects/`
|
4529
|
+
# project_id_or_number`/retailProject`.
|
4530
|
+
# Corresponds to the JSON property `name`
|
4531
|
+
# @return [String]
|
4532
|
+
attr_accessor :name
|
4533
|
+
|
4534
|
+
def initialize(**args)
|
4535
|
+
update!(**args)
|
4536
|
+
end
|
4537
|
+
|
4538
|
+
# Update properties of this object
|
4539
|
+
def update!(**args)
|
4540
|
+
@enrolled_solutions = args[:enrolled_solutions] if args.key?(:enrolled_solutions)
|
4541
|
+
@name = args[:name] if args.key?(:name)
|
4542
|
+
end
|
4543
|
+
end
|
4544
|
+
|
4421
4545
|
# Promotion specification.
|
4422
4546
|
class GoogleCloudRetailV2alphaPromotion
|
4423
4547
|
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.81.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 = "20230629"
|
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,28 @@ 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 :search_solution_use_case, as: 'searchSolutionUseCase'
|
1989
|
+
property :solution, as: 'solution'
|
1990
|
+
end
|
1991
|
+
end
|
1992
|
+
|
1993
|
+
class GoogleCloudRetailV2alphaEnrollSolutionResponse
|
1994
|
+
# @private
|
1995
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1996
|
+
property :enrolled_solution, as: 'enrolledSolution'
|
1997
|
+
property :search_solution_use_case, as: 'searchSolutionUseCase'
|
1998
|
+
end
|
1999
|
+
end
|
2000
|
+
|
1937
2001
|
class GoogleCloudRetailV2alphaExperimentInfo
|
1938
2002
|
# @private
|
1939
2003
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -2144,6 +2208,13 @@ module Google
|
|
2144
2208
|
end
|
2145
2209
|
end
|
2146
2210
|
|
2211
|
+
class GoogleCloudRetailV2alphaListEnrolledSolutionsResponse
|
2212
|
+
# @private
|
2213
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
2214
|
+
collection :enrolled_solutions, as: 'enrolledSolutions'
|
2215
|
+
end
|
2216
|
+
end
|
2217
|
+
|
2147
2218
|
class GoogleCloudRetailV2alphaListMerchantCenterAccountLinksResponse
|
2148
2219
|
# @private
|
2149
2220
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -2481,6 +2552,14 @@ module Google
|
|
2481
2552
|
end
|
2482
2553
|
end
|
2483
2554
|
|
2555
|
+
class GoogleCloudRetailV2alphaProject
|
2556
|
+
# @private
|
2557
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
2558
|
+
collection :enrolled_solutions, as: 'enrolledSolutions'
|
2559
|
+
property :name, as: 'name'
|
2560
|
+
end
|
2561
|
+
end
|
2562
|
+
|
2484
2563
|
class GoogleCloudRetailV2alphaPromotion
|
2485
2564
|
# @private
|
2486
2565
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -51,6 +51,105 @@ module Google
|
|
51
51
|
@batch_path = 'batch'
|
52
52
|
end
|
53
53
|
|
54
|
+
# Enrolls retail API solution for the project. Recommendation solution is
|
55
|
+
# enrolled by default when your project enables Retail API. You don't need to
|
56
|
+
# call this API for the recommendation solution.
|
57
|
+
# @param [String] project
|
58
|
+
# Required. Full resource name of parent. Format: `projects/`
|
59
|
+
# project_number_or_id``
|
60
|
+
# @param [Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaEnrollSolutionRequest] google_cloud_retail_v2alpha_enroll_solution_request_object
|
61
|
+
# @param [String] fields
|
62
|
+
# Selector specifying which fields to include in a partial response.
|
63
|
+
# @param [String] quota_user
|
64
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
65
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
66
|
+
# @param [Google::Apis::RequestOptions] options
|
67
|
+
# Request-specific options
|
68
|
+
#
|
69
|
+
# @yield [result, err] Result & error if block supplied
|
70
|
+
# @yieldparam result [Google::Apis::RetailV2alpha::GoogleLongrunningOperation] parsed result object
|
71
|
+
# @yieldparam err [StandardError] error object if request failed
|
72
|
+
#
|
73
|
+
# @return [Google::Apis::RetailV2alpha::GoogleLongrunningOperation]
|
74
|
+
#
|
75
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
76
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
77
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
78
|
+
def enroll_project_solution(project, google_cloud_retail_v2alpha_enroll_solution_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
79
|
+
command = make_simple_command(:post, 'v2alpha/{+project}:enrollSolution', options)
|
80
|
+
command.request_representation = Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaEnrollSolutionRequest::Representation
|
81
|
+
command.request_object = google_cloud_retail_v2alpha_enroll_solution_request_object
|
82
|
+
command.response_representation = Google::Apis::RetailV2alpha::GoogleLongrunningOperation::Representation
|
83
|
+
command.response_class = Google::Apis::RetailV2alpha::GoogleLongrunningOperation
|
84
|
+
command.params['project'] = project unless project.nil?
|
85
|
+
command.query['fields'] = fields unless fields.nil?
|
86
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
87
|
+
execute_or_queue_command(command, &block)
|
88
|
+
end
|
89
|
+
|
90
|
+
# Gets the project. Throws NOT_FOUND if the project wasn't initialized for
|
91
|
+
# Retail API Service.
|
92
|
+
# @param [String] name
|
93
|
+
# Required. Full resource name of the project. Format: `projects/`
|
94
|
+
# project_number_or_id`/retailProject`
|
95
|
+
# @param [String] fields
|
96
|
+
# Selector specifying which fields to include in a partial response.
|
97
|
+
# @param [String] quota_user
|
98
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
99
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
100
|
+
# @param [Google::Apis::RequestOptions] options
|
101
|
+
# Request-specific options
|
102
|
+
#
|
103
|
+
# @yield [result, err] Result & error if block supplied
|
104
|
+
# @yieldparam result [Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaProject] parsed result object
|
105
|
+
# @yieldparam err [StandardError] error object if request failed
|
106
|
+
#
|
107
|
+
# @return [Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaProject]
|
108
|
+
#
|
109
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
110
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
111
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
112
|
+
def get_project_retail_project(name, fields: nil, quota_user: nil, options: nil, &block)
|
113
|
+
command = make_simple_command(:get, 'v2alpha/{+name}', options)
|
114
|
+
command.response_representation = Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaProject::Representation
|
115
|
+
command.response_class = Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaProject
|
116
|
+
command.params['name'] = name unless name.nil?
|
117
|
+
command.query['fields'] = fields unless fields.nil?
|
118
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
119
|
+
execute_or_queue_command(command, &block)
|
120
|
+
end
|
121
|
+
|
122
|
+
# Lists all the retail API solutions the project has enrolled.
|
123
|
+
# @param [String] parent
|
124
|
+
# Required. Full resource name of parent. Format: `projects/`
|
125
|
+
# project_number_or_id``
|
126
|
+
# @param [String] fields
|
127
|
+
# Selector specifying which fields to include in a partial response.
|
128
|
+
# @param [String] quota_user
|
129
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
130
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
131
|
+
# @param [Google::Apis::RequestOptions] options
|
132
|
+
# Request-specific options
|
133
|
+
#
|
134
|
+
# @yield [result, err] Result & error if block supplied
|
135
|
+
# @yieldparam result [Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaListEnrolledSolutionsResponse] parsed result object
|
136
|
+
# @yieldparam err [StandardError] error object if request failed
|
137
|
+
#
|
138
|
+
# @return [Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaListEnrolledSolutionsResponse]
|
139
|
+
#
|
140
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
141
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
142
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
143
|
+
def list_project_enrolled_solutions(parent, fields: nil, quota_user: nil, options: nil, &block)
|
144
|
+
command = make_simple_command(:get, 'v2alpha/{+parent}:enrolledSolutions', options)
|
145
|
+
command.response_representation = Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaListEnrolledSolutionsResponse::Representation
|
146
|
+
command.response_class = Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaListEnrolledSolutionsResponse
|
147
|
+
command.params['parent'] = parent unless parent.nil?
|
148
|
+
command.query['fields'] = fields unless fields.nil?
|
149
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
150
|
+
execute_or_queue_command(command, &block)
|
151
|
+
end
|
152
|
+
|
54
153
|
# Completes the specified prefix with keyword suggestions. This feature is only
|
55
154
|
# available for users who have Retail Search enabled. Enable Retail Search on
|
56
155
|
# Cloud Console before using this feature.
|
@@ -2678,6 +2777,42 @@ module Google
|
|
2678
2777
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2679
2778
|
execute_or_queue_command(command, &block)
|
2680
2779
|
end
|
2780
|
+
|
2781
|
+
# Accepts service terms for this project. By making requests to this API, you
|
2782
|
+
# agree to the terms of service linked below. https://cloud.google.com/retail/
|
2783
|
+
# data-use-terms
|
2784
|
+
# @param [String] project
|
2785
|
+
# Required. Full resource name of the project. Format: `projects/`
|
2786
|
+
# project_number_or_id`/retailProject`
|
2787
|
+
# @param [Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaAcceptTermsRequest] google_cloud_retail_v2alpha_accept_terms_request_object
|
2788
|
+
# @param [String] fields
|
2789
|
+
# Selector specifying which fields to include in a partial response.
|
2790
|
+
# @param [String] quota_user
|
2791
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
2792
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2793
|
+
# @param [Google::Apis::RequestOptions] options
|
2794
|
+
# Request-specific options
|
2795
|
+
#
|
2796
|
+
# @yield [result, err] Result & error if block supplied
|
2797
|
+
# @yieldparam result [Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaProject] parsed result object
|
2798
|
+
# @yieldparam err [StandardError] error object if request failed
|
2799
|
+
#
|
2800
|
+
# @return [Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaProject]
|
2801
|
+
#
|
2802
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2803
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2804
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2805
|
+
def accept_project_retail_project_terms(project, google_cloud_retail_v2alpha_accept_terms_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
2806
|
+
command = make_simple_command(:post, 'v2alpha/{+project}:acceptTerms', options)
|
2807
|
+
command.request_representation = Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaAcceptTermsRequest::Representation
|
2808
|
+
command.request_object = google_cloud_retail_v2alpha_accept_terms_request_object
|
2809
|
+
command.response_representation = Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaProject::Representation
|
2810
|
+
command.response_class = Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaProject
|
2811
|
+
command.params['project'] = project unless project.nil?
|
2812
|
+
command.query['fields'] = fields unless fields.nil?
|
2813
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2814
|
+
execute_or_queue_command(command, &block)
|
2815
|
+
end
|
2681
2816
|
|
2682
2817
|
protected
|
2683
2818
|
|
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.81.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-09 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.81.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: []
|