google-cloud-optimization-v1 0.5.0 → 0.6.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: 1fdd08b9a744b9d517229294bcb5ea8f33a453b6d7ef9bf1b6dbb607ce3bc728
4
- data.tar.gz: cc7658a51ffc4ad6a623e4de95af18a34a3d017d7c981b05e8b619cfef28b66d
3
+ metadata.gz: 347fef24129900a80d6dc6efd44f8b744f6294b8171e02b97f584a18c1616a8d
4
+ data.tar.gz: 0a7408ff319b60fc1b73f00b9cb2f4477c3449999c131d83f89b0ddc9d5188a4
5
5
  SHA512:
6
- metadata.gz: 685ed96b0fbcf5377735aeda694c36bbce6fa4f50e737f73d81cbd7d1ef37dc77cbefc9cf0a86d08b27c0dc181b28e831e7fe8a123d5072db5101a285a99612f
7
- data.tar.gz: ad132a3d87e3c31eda380f8fbde0737a8a76f0325c6021e18d50ef1f987d46e27a4e290a1ee796bdd8fb29e8904cae6bb955fbd343b90e67dc796f597a2e9b7d
6
+ metadata.gz: d1a7fefdef63ed207fd9df2b9378590ec5116f6c11a58a35472d3919dd686393210fdbe14df2e787f005d237d9e0b012e70036e6c3431fb0b85af58d9e2a785f
7
+ data.tar.gz: 0feb6fe400465bf52e9e3c00ee3beda8a56447a020a429382039f78fcb7dfe3d87b43c6b718935502c7c31c6e18837a17faffa515a071d7ecef686e6bf07859b
@@ -168,7 +168,8 @@ module Google
168
168
  credentials: credentials,
169
169
  endpoint: @config.endpoint,
170
170
  channel_args: @config.channel_args,
171
- interceptors: @config.interceptors
171
+ interceptors: @config.interceptors,
172
+ channel_pool_config: @config.channel_pool
172
173
  )
173
174
  end
174
175
 
@@ -694,6 +695,14 @@ module Google
694
695
  end
695
696
  end
696
697
 
698
+ ##
699
+ # Configuration for the channel pool
700
+ # @return [::Gapic::ServiceStub::ChannelPool::Configuration]
701
+ #
702
+ def channel_pool
703
+ @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
704
+ end
705
+
697
706
  ##
698
707
  # Configuration RPC class for the FleetRouting API.
699
708
  #
@@ -93,7 +93,8 @@ module Google
93
93
  credentials: credentials,
94
94
  endpoint: @config.endpoint,
95
95
  channel_args: @config.channel_args,
96
- interceptors: @config.interceptors
96
+ interceptors: @config.interceptors,
97
+ channel_pool_config: @config.channel_pool
97
98
  )
98
99
 
99
100
  # Used by an LRO wrapper for some methods of this service
@@ -701,6 +702,14 @@ module Google
701
702
  end
702
703
  end
703
704
 
705
+ ##
706
+ # Configuration for the channel pool
707
+ # @return [::Gapic::ServiceStub::ChannelPool::Configuration]
708
+ #
709
+ def channel_pool
710
+ @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
711
+ end
712
+
704
713
  ##
705
714
  # Configuration RPC class for the Operations API.
706
715
  #
@@ -399,6 +399,22 @@ module Google
399
399
  # @return [::Google::Cloud::Optimization::V1::OptimizeToursResponse]
400
400
  #
401
401
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
402
+ #
403
+ # @example Basic example
404
+ # require "google/cloud/optimization/v1"
405
+ #
406
+ # # Create a client object. The client can be reused for multiple calls.
407
+ # client = Google::Cloud::Optimization::V1::FleetRouting::Rest::Client.new
408
+ #
409
+ # # Create a request. To set request fields, pass in keyword arguments.
410
+ # request = Google::Cloud::Optimization::V1::OptimizeToursRequest.new
411
+ #
412
+ # # Call the optimize_tours method.
413
+ # result = client.optimize_tours request
414
+ #
415
+ # # The returned object is of type Google::Cloud::Optimization::V1::OptimizeToursResponse.
416
+ # p result
417
+ #
402
418
  def optimize_tours request, options = nil
403
419
  raise ::ArgumentError, "request must be provided" if request.nil?
404
420
 
@@ -477,6 +493,29 @@ module Google
477
493
  # @return [::Gapic::Operation]
478
494
  #
479
495
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
496
+ #
497
+ # @example Basic example
498
+ # require "google/cloud/optimization/v1"
499
+ #
500
+ # # Create a client object. The client can be reused for multiple calls.
501
+ # client = Google::Cloud::Optimization::V1::FleetRouting::Rest::Client.new
502
+ #
503
+ # # Create a request. To set request fields, pass in keyword arguments.
504
+ # request = Google::Cloud::Optimization::V1::BatchOptimizeToursRequest.new
505
+ #
506
+ # # Call the batch_optimize_tours method.
507
+ # result = client.batch_optimize_tours request
508
+ #
509
+ # # The returned object is of type Gapic::Operation. You can use it to
510
+ # # check the status of an operation, cancel it, or wait for results.
511
+ # # Here is how to wait for a response.
512
+ # result.wait_until_done! timeout: 60
513
+ # if result.response?
514
+ # p result.response
515
+ # else
516
+ # puts "No response received."
517
+ # end
518
+ #
480
519
  def batch_optimize_tours request, options = nil
481
520
  raise ::ArgumentError, "request must be provided" if request.nil?
482
521
 
@@ -136,6 +136,26 @@ module Google
136
136
  # @return [::Gapic::Operation]
137
137
  #
138
138
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
139
+ #
140
+ # @example Basic example
141
+ # require "google/longrunning"
142
+ #
143
+ # # Create a client object. The client can be reused for multiple calls.
144
+ # client = Google::Longrunning::Operations::Rest::Client.new
145
+ #
146
+ # # Create a request. To set request fields, pass in keyword arguments.
147
+ # request = Google::Longrunning::ListOperationsRequest.new
148
+ #
149
+ # # Call the list_operations method.
150
+ # result = client.list_operations request
151
+ #
152
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
153
+ # # over elements, and API calls will be issued to fetch pages as needed.
154
+ # result.each do |item|
155
+ # # Each element is of type ::Google::Longrunning::Operation.
156
+ # p item
157
+ # end
158
+ #
139
159
  def list_operations request, options = nil
140
160
  raise ::ArgumentError, "request must be provided" if request.nil?
141
161
 
@@ -201,6 +221,29 @@ module Google
201
221
  # @return [::Gapic::Operation]
202
222
  #
203
223
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
224
+ #
225
+ # @example Basic example
226
+ # require "google/longrunning"
227
+ #
228
+ # # Create a client object. The client can be reused for multiple calls.
229
+ # client = Google::Longrunning::Operations::Rest::Client.new
230
+ #
231
+ # # Create a request. To set request fields, pass in keyword arguments.
232
+ # request = Google::Longrunning::GetOperationRequest.new
233
+ #
234
+ # # Call the get_operation method.
235
+ # result = client.get_operation request
236
+ #
237
+ # # The returned object is of type Gapic::Operation. You can use it to
238
+ # # check the status of an operation, cancel it, or wait for results.
239
+ # # Here is how to wait for a response.
240
+ # result.wait_until_done! timeout: 60
241
+ # if result.response?
242
+ # p result.response
243
+ # else
244
+ # puts "No response received."
245
+ # end
246
+ #
204
247
  def get_operation request, options = nil
205
248
  raise ::ArgumentError, "request must be provided" if request.nil?
206
249
 
@@ -267,6 +310,22 @@ module Google
267
310
  # @return [::Google::Protobuf::Empty]
268
311
  #
269
312
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
313
+ #
314
+ # @example Basic example
315
+ # require "google/longrunning"
316
+ #
317
+ # # Create a client object. The client can be reused for multiple calls.
318
+ # client = Google::Longrunning::Operations::Rest::Client.new
319
+ #
320
+ # # Create a request. To set request fields, pass in keyword arguments.
321
+ # request = Google::Longrunning::DeleteOperationRequest.new
322
+ #
323
+ # # Call the delete_operation method.
324
+ # result = client.delete_operation request
325
+ #
326
+ # # The returned object is of type Google::Protobuf::Empty.
327
+ # p result
328
+ #
270
329
  def delete_operation request, options = nil
271
330
  raise ::ArgumentError, "request must be provided" if request.nil?
272
331
 
@@ -338,6 +397,22 @@ module Google
338
397
  # @return [::Google::Protobuf::Empty]
339
398
  #
340
399
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
400
+ #
401
+ # @example Basic example
402
+ # require "google/longrunning"
403
+ #
404
+ # # Create a client object. The client can be reused for multiple calls.
405
+ # client = Google::Longrunning::Operations::Rest::Client.new
406
+ #
407
+ # # Create a request. To set request fields, pass in keyword arguments.
408
+ # request = Google::Longrunning::CancelOperationRequest.new
409
+ #
410
+ # # Call the cancel_operation method.
411
+ # result = client.cancel_operation request
412
+ #
413
+ # # The returned object is of type Google::Protobuf::Empty.
414
+ # p result
415
+ #
341
416
  def cancel_operation request, options = nil
342
417
  raise ::ArgumentError, "request must be provided" if request.nil?
343
418
 
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module Optimization
23
23
  module V1
24
- VERSION = "0.5.0"
24
+ VERSION = "0.6.0"
25
25
  end
26
26
  end
27
27
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-optimization-v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.6.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-09-07 00:00:00.000000000 Z
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.1
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.19.1
29
+ version: 0.20.0
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a