google-cloud-commerce-consumer-procurement-v1 0.1.0 → 0.2.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/lib/google/cloud/commerce/consumer/procurement/v1/consumer_procurement_service/client.rb +10 -1
- data/lib/google/cloud/commerce/consumer/procurement/v1/consumer_procurement_service/operations.rb +10 -1
- data/lib/google/cloud/commerce/consumer/procurement/v1/consumer_procurement_service/rest/client.rb +59 -0
- data/lib/google/cloud/commerce/consumer/procurement/v1/consumer_procurement_service/rest/operations.rb +75 -0
- data/lib/google/cloud/commerce/consumer/procurement/v1/version.rb +1 -1
- data/proto_docs/google/api/field_behavior.rb +14 -0
- metadata +5 -5
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a84183c9530715c208c657cdb470ce4dee0e8577d0c90eef9708dec788113812
|
|
4
|
+
data.tar.gz: 2d37d9c38382a91e0f64fe377799ae2ff9c9dc11a48a0f730e6e501a627bdcc5
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c4ad463d4984766730223bc57cee593936c1797bbba2b67e387602365280842a0c06e17d8b0caed1d6511f57aea5fb7e6498d8b373da968b6d36e4709521f72e
|
|
7
|
+
data.tar.gz: 24dd9af1fb804106843c8f29c96f5393631adcbd0df0a84fe50d87d3958bb5a2911addef288f72908da9db5a7b3b86e3e5c8502c7a3049ec619942547838d3cf
|
data/lib/google/cloud/commerce/consumer/procurement/v1/consumer_procurement_service/client.rb
CHANGED
|
@@ -166,7 +166,8 @@ module Google
|
|
|
166
166
|
credentials: credentials,
|
|
167
167
|
endpoint: @config.endpoint,
|
|
168
168
|
channel_args: @config.channel_args,
|
|
169
|
-
interceptors: @config.interceptors
|
|
169
|
+
interceptors: @config.interceptors,
|
|
170
|
+
channel_pool_config: @config.channel_pool
|
|
170
171
|
)
|
|
171
172
|
end
|
|
172
173
|
|
|
@@ -614,6 +615,14 @@ module Google
|
|
|
614
615
|
end
|
|
615
616
|
end
|
|
616
617
|
|
|
618
|
+
##
|
|
619
|
+
# Configuration for the channel pool
|
|
620
|
+
# @return [::Gapic::ServiceStub::ChannelPool::Configuration]
|
|
621
|
+
#
|
|
622
|
+
def channel_pool
|
|
623
|
+
@channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
|
|
624
|
+
end
|
|
625
|
+
|
|
617
626
|
##
|
|
618
627
|
# Configuration RPC class for the ConsumerProcurementService API.
|
|
619
628
|
#
|
data/lib/google/cloud/commerce/consumer/procurement/v1/consumer_procurement_service/operations.rb
CHANGED
|
@@ -95,7 +95,8 @@ module Google
|
|
|
95
95
|
credentials: credentials,
|
|
96
96
|
endpoint: @config.endpoint,
|
|
97
97
|
channel_args: @config.channel_args,
|
|
98
|
-
interceptors: @config.interceptors
|
|
98
|
+
interceptors: @config.interceptors,
|
|
99
|
+
channel_pool_config: @config.channel_pool
|
|
99
100
|
)
|
|
100
101
|
|
|
101
102
|
# Used by an LRO wrapper for some methods of this service
|
|
@@ -703,6 +704,14 @@ module Google
|
|
|
703
704
|
end
|
|
704
705
|
end
|
|
705
706
|
|
|
707
|
+
##
|
|
708
|
+
# Configuration for the channel pool
|
|
709
|
+
# @return [::Gapic::ServiceStub::ChannelPool::Configuration]
|
|
710
|
+
#
|
|
711
|
+
def channel_pool
|
|
712
|
+
@channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
|
|
713
|
+
end
|
|
714
|
+
|
|
706
715
|
##
|
|
707
716
|
# Configuration RPC class for the Operations API.
|
|
708
717
|
#
|
data/lib/google/cloud/commerce/consumer/procurement/v1/consumer_procurement_service/rest/client.rb
CHANGED
|
@@ -219,6 +219,29 @@ module Google
|
|
|
219
219
|
# @return [::Gapic::Operation]
|
|
220
220
|
#
|
|
221
221
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
222
|
+
#
|
|
223
|
+
# @example Basic example
|
|
224
|
+
# require "google/cloud/commerce/consumer/procurement/v1"
|
|
225
|
+
#
|
|
226
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
227
|
+
# client = Google::Cloud::Commerce::Consumer::Procurement::V1::ConsumerProcurementService::Rest::Client.new
|
|
228
|
+
#
|
|
229
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
230
|
+
# request = Google::Cloud::Commerce::Consumer::Procurement::V1::PlaceOrderRequest.new
|
|
231
|
+
#
|
|
232
|
+
# # Call the place_order method.
|
|
233
|
+
# result = client.place_order request
|
|
234
|
+
#
|
|
235
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
|
236
|
+
# # check the status of an operation, cancel it, or wait for results.
|
|
237
|
+
# # Here is how to wait for a response.
|
|
238
|
+
# result.wait_until_done! timeout: 60
|
|
239
|
+
# if result.response?
|
|
240
|
+
# p result.response
|
|
241
|
+
# else
|
|
242
|
+
# puts "No response received."
|
|
243
|
+
# end
|
|
244
|
+
#
|
|
222
245
|
def place_order request, options = nil
|
|
223
246
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
224
247
|
|
|
@@ -283,6 +306,22 @@ module Google
|
|
|
283
306
|
# @return [::Google::Cloud::Commerce::Consumer::Procurement::V1::Order]
|
|
284
307
|
#
|
|
285
308
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
309
|
+
#
|
|
310
|
+
# @example Basic example
|
|
311
|
+
# require "google/cloud/commerce/consumer/procurement/v1"
|
|
312
|
+
#
|
|
313
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
314
|
+
# client = Google::Cloud::Commerce::Consumer::Procurement::V1::ConsumerProcurementService::Rest::Client.new
|
|
315
|
+
#
|
|
316
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
317
|
+
# request = Google::Cloud::Commerce::Consumer::Procurement::V1::GetOrderRequest.new
|
|
318
|
+
#
|
|
319
|
+
# # Call the get_order method.
|
|
320
|
+
# result = client.get_order request
|
|
321
|
+
#
|
|
322
|
+
# # The returned object is of type Google::Cloud::Commerce::Consumer::Procurement::V1::Order.
|
|
323
|
+
# p result
|
|
324
|
+
#
|
|
286
325
|
def get_order request, options = nil
|
|
287
326
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
288
327
|
|
|
@@ -370,6 +409,26 @@ module Google
|
|
|
370
409
|
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Commerce::Consumer::Procurement::V1::Order>]
|
|
371
410
|
#
|
|
372
411
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
412
|
+
#
|
|
413
|
+
# @example Basic example
|
|
414
|
+
# require "google/cloud/commerce/consumer/procurement/v1"
|
|
415
|
+
#
|
|
416
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
417
|
+
# client = Google::Cloud::Commerce::Consumer::Procurement::V1::ConsumerProcurementService::Rest::Client.new
|
|
418
|
+
#
|
|
419
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
420
|
+
# request = Google::Cloud::Commerce::Consumer::Procurement::V1::ListOrdersRequest.new
|
|
421
|
+
#
|
|
422
|
+
# # Call the list_orders method.
|
|
423
|
+
# result = client.list_orders request
|
|
424
|
+
#
|
|
425
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
|
426
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
|
427
|
+
# result.each do |item|
|
|
428
|
+
# # Each element is of type ::Google::Cloud::Commerce::Consumer::Procurement::V1::Order.
|
|
429
|
+
# p item
|
|
430
|
+
# end
|
|
431
|
+
#
|
|
373
432
|
def list_orders request, options = nil
|
|
374
433
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
375
434
|
|
|
@@ -138,6 +138,26 @@ module Google
|
|
|
138
138
|
# @return [::Gapic::Operation]
|
|
139
139
|
#
|
|
140
140
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
141
|
+
#
|
|
142
|
+
# @example Basic example
|
|
143
|
+
# require "google/longrunning"
|
|
144
|
+
#
|
|
145
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
146
|
+
# client = Google::Longrunning::Operations::Rest::Client.new
|
|
147
|
+
#
|
|
148
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
149
|
+
# request = Google::Longrunning::ListOperationsRequest.new
|
|
150
|
+
#
|
|
151
|
+
# # Call the list_operations method.
|
|
152
|
+
# result = client.list_operations request
|
|
153
|
+
#
|
|
154
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
|
155
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
|
156
|
+
# result.each do |item|
|
|
157
|
+
# # Each element is of type ::Google::Longrunning::Operation.
|
|
158
|
+
# p item
|
|
159
|
+
# end
|
|
160
|
+
#
|
|
141
161
|
def list_operations request, options = nil
|
|
142
162
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
143
163
|
|
|
@@ -203,6 +223,29 @@ module Google
|
|
|
203
223
|
# @return [::Gapic::Operation]
|
|
204
224
|
#
|
|
205
225
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
226
|
+
#
|
|
227
|
+
# @example Basic example
|
|
228
|
+
# require "google/longrunning"
|
|
229
|
+
#
|
|
230
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
231
|
+
# client = Google::Longrunning::Operations::Rest::Client.new
|
|
232
|
+
#
|
|
233
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
234
|
+
# request = Google::Longrunning::GetOperationRequest.new
|
|
235
|
+
#
|
|
236
|
+
# # Call the get_operation method.
|
|
237
|
+
# result = client.get_operation request
|
|
238
|
+
#
|
|
239
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
|
240
|
+
# # check the status of an operation, cancel it, or wait for results.
|
|
241
|
+
# # Here is how to wait for a response.
|
|
242
|
+
# result.wait_until_done! timeout: 60
|
|
243
|
+
# if result.response?
|
|
244
|
+
# p result.response
|
|
245
|
+
# else
|
|
246
|
+
# puts "No response received."
|
|
247
|
+
# end
|
|
248
|
+
#
|
|
206
249
|
def get_operation request, options = nil
|
|
207
250
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
208
251
|
|
|
@@ -269,6 +312,22 @@ module Google
|
|
|
269
312
|
# @return [::Google::Protobuf::Empty]
|
|
270
313
|
#
|
|
271
314
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
315
|
+
#
|
|
316
|
+
# @example Basic example
|
|
317
|
+
# require "google/longrunning"
|
|
318
|
+
#
|
|
319
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
320
|
+
# client = Google::Longrunning::Operations::Rest::Client.new
|
|
321
|
+
#
|
|
322
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
323
|
+
# request = Google::Longrunning::DeleteOperationRequest.new
|
|
324
|
+
#
|
|
325
|
+
# # Call the delete_operation method.
|
|
326
|
+
# result = client.delete_operation request
|
|
327
|
+
#
|
|
328
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
|
329
|
+
# p result
|
|
330
|
+
#
|
|
272
331
|
def delete_operation request, options = nil
|
|
273
332
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
274
333
|
|
|
@@ -340,6 +399,22 @@ module Google
|
|
|
340
399
|
# @return [::Google::Protobuf::Empty]
|
|
341
400
|
#
|
|
342
401
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
402
|
+
#
|
|
403
|
+
# @example Basic example
|
|
404
|
+
# require "google/longrunning"
|
|
405
|
+
#
|
|
406
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
407
|
+
# client = Google::Longrunning::Operations::Rest::Client.new
|
|
408
|
+
#
|
|
409
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
410
|
+
# request = Google::Longrunning::CancelOperationRequest.new
|
|
411
|
+
#
|
|
412
|
+
# # Call the cancel_operation method.
|
|
413
|
+
# result = client.cancel_operation request
|
|
414
|
+
#
|
|
415
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
|
416
|
+
# p result
|
|
417
|
+
#
|
|
343
418
|
def cancel_operation request, options = nil
|
|
344
419
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
345
420
|
|
|
@@ -66,6 +66,20 @@ module Google
|
|
|
66
66
|
# a non-empty value will be returned. The user will not be aware of what
|
|
67
67
|
# non-empty value to expect.
|
|
68
68
|
NON_EMPTY_DEFAULT = 7
|
|
69
|
+
|
|
70
|
+
# Denotes that the field in a resource (a message annotated with
|
|
71
|
+
# google.api.resource) is used in the resource name to uniquely identify the
|
|
72
|
+
# resource. For AIP-compliant APIs, this should only be applied to the
|
|
73
|
+
# `name` field on the resource.
|
|
74
|
+
#
|
|
75
|
+
# This behavior should not be applied to references to other resources within
|
|
76
|
+
# the message.
|
|
77
|
+
#
|
|
78
|
+
# The identifier field of resources often have different field behavior
|
|
79
|
+
# depending on the request it is embedded in (e.g. for Create methods name
|
|
80
|
+
# is optional and unused, while for Update methods it is required). Instead
|
|
81
|
+
# of method-specific annotations, only `IDENTIFIER` is required.
|
|
82
|
+
IDENTIFIER = 8
|
|
69
83
|
end
|
|
70
84
|
end
|
|
71
85
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: google-cloud-commerce-consumer-procurement-v1
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.2.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-
|
|
11
|
+
date: 2023-09-12 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: gapic-common
|
|
@@ -16,7 +16,7 @@ dependencies:
|
|
|
16
16
|
requirements:
|
|
17
17
|
- - ">="
|
|
18
18
|
- !ruby/object:Gem::Version
|
|
19
|
-
version: 0.
|
|
19
|
+
version: 0.20.0
|
|
20
20
|
- - "<"
|
|
21
21
|
- !ruby/object:Gem::Version
|
|
22
22
|
version: 2.a
|
|
@@ -26,7 +26,7 @@ dependencies:
|
|
|
26
26
|
requirements:
|
|
27
27
|
- - ">="
|
|
28
28
|
- !ruby/object:Gem::Version
|
|
29
|
-
version: 0.
|
|
29
|
+
version: 0.20.0
|
|
30
30
|
- - "<"
|
|
31
31
|
- !ruby/object:Gem::Version
|
|
32
32
|
version: 2.a
|
|
@@ -217,7 +217,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
217
217
|
- !ruby/object:Gem::Version
|
|
218
218
|
version: '0'
|
|
219
219
|
requirements: []
|
|
220
|
-
rubygems_version: 3.4.
|
|
220
|
+
rubygems_version: 3.4.19
|
|
221
221
|
signing_key:
|
|
222
222
|
specification_version: 4
|
|
223
223
|
summary: Enables consumers to procure products served by Cloud Marketplace platform.
|