google-cloud-functions-v1 0.11.0 → 0.12.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: 105f0d1fa325f7e0004e7a89174e5db940bccf3b38848bb10ee8724194319fcd
4
- data.tar.gz: a4de28d40260c63a5972f510872a5b31a3e96e199405d02da5677fe94dbebd9d
3
+ metadata.gz: 3fba3fb2c098d2470a15bd03cb16d7165121a250ca6d0e9ae18a121fcb302c9c
4
+ data.tar.gz: 852239166c3c69109ad71fb82a8708544290a7ed62b96a2f10b843d7ac2c4389
5
5
  SHA512:
6
- metadata.gz: 70479d996f0072dcb5d701e934290a48e800832c4f3519cd1aab52526752e6bfc30ba2a376193c5a469228cac841d152c3dd4ac8900a7b0ac092b1b7e36fe2c8
7
- data.tar.gz: 6f5ceb3dd730e8533fbd4fed2a76cd2f7963a008fa660aeeec9105961a4d0dbc5ca694e7dbfc745177db0b35f4f03207af8956d9579dbc05bfab3e2d26bb95d8
6
+ metadata.gz: 2079f69ef96bd938584ad79752c0fa7b73c3262aadbd138649dc3582b14c97b6e42b9a0fce93d286bf4363f7b030b58b6eca3c550779821db5f2f4193ccd7f5f
7
+ data.tar.gz: ddf0842cbb852efd37a073b8c8e5d87349a711d685e3b643068a108fa739d49a969d78ff133f52cc7d3619342a39812e7498aa9d074250a17461bf887eb844b9
@@ -182,7 +182,8 @@ module Google
182
182
  credentials: credentials,
183
183
  endpoint: @config.endpoint,
184
184
  channel_args: @config.channel_args,
185
- interceptors: @config.interceptors
185
+ interceptors: @config.interceptors,
186
+ channel_pool_config: @config.channel_pool
186
187
  )
187
188
  end
188
189
 
@@ -1397,6 +1398,14 @@ module Google
1397
1398
  end
1398
1399
  end
1399
1400
 
1401
+ ##
1402
+ # Configuration for the channel pool
1403
+ # @return [::Gapic::ServiceStub::ChannelPool::Configuration]
1404
+ #
1405
+ def channel_pool
1406
+ @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
1407
+ end
1408
+
1400
1409
  ##
1401
1410
  # Configuration RPC class for the CloudFunctionsService API.
1402
1411
  #
@@ -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
@@ -693,6 +694,14 @@ module Google
693
694
  end
694
695
  end
695
696
 
697
+ ##
698
+ # Configuration for the channel pool
699
+ # @return [::Gapic::ServiceStub::ChannelPool::Configuration]
700
+ #
701
+ def channel_pool
702
+ @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
703
+ end
704
+
696
705
  ##
697
706
  # Configuration RPC class for the Operations API.
698
707
  #
@@ -240,6 +240,26 @@ module Google
240
240
  # @return [::Google::Cloud::Functions::V1::ListFunctionsResponse]
241
241
  #
242
242
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
243
+ #
244
+ # @example Basic example
245
+ # require "google/cloud/functions/v1"
246
+ #
247
+ # # Create a client object. The client can be reused for multiple calls.
248
+ # client = Google::Cloud::Functions::V1::CloudFunctionsService::Rest::Client.new
249
+ #
250
+ # # Create a request. To set request fields, pass in keyword arguments.
251
+ # request = Google::Cloud::Functions::V1::ListFunctionsRequest.new
252
+ #
253
+ # # Call the list_functions method.
254
+ # result = client.list_functions request
255
+ #
256
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
257
+ # # over elements, and API calls will be issued to fetch pages as needed.
258
+ # result.each do |item|
259
+ # # Each element is of type ::Google::Cloud::Functions::V1::CloudFunction.
260
+ # p item
261
+ # end
262
+ #
243
263
  def list_functions request, options = nil
244
264
  raise ::ArgumentError, "request must be provided" if request.nil?
245
265
 
@@ -302,6 +322,22 @@ module Google
302
322
  # @return [::Google::Cloud::Functions::V1::CloudFunction]
303
323
  #
304
324
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
325
+ #
326
+ # @example Basic example
327
+ # require "google/cloud/functions/v1"
328
+ #
329
+ # # Create a client object. The client can be reused for multiple calls.
330
+ # client = Google::Cloud::Functions::V1::CloudFunctionsService::Rest::Client.new
331
+ #
332
+ # # Create a request. To set request fields, pass in keyword arguments.
333
+ # request = Google::Cloud::Functions::V1::GetFunctionRequest.new
334
+ #
335
+ # # Call the get_function method.
336
+ # result = client.get_function request
337
+ #
338
+ # # The returned object is of type Google::Cloud::Functions::V1::CloudFunction.
339
+ # p result
340
+ #
305
341
  def get_function request, options = nil
306
342
  raise ::ArgumentError, "request must be provided" if request.nil?
307
343
 
@@ -369,6 +405,29 @@ module Google
369
405
  # @return [::Gapic::Operation]
370
406
  #
371
407
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
408
+ #
409
+ # @example Basic example
410
+ # require "google/cloud/functions/v1"
411
+ #
412
+ # # Create a client object. The client can be reused for multiple calls.
413
+ # client = Google::Cloud::Functions::V1::CloudFunctionsService::Rest::Client.new
414
+ #
415
+ # # Create a request. To set request fields, pass in keyword arguments.
416
+ # request = Google::Cloud::Functions::V1::CreateFunctionRequest.new
417
+ #
418
+ # # Call the create_function method.
419
+ # result = client.create_function request
420
+ #
421
+ # # The returned object is of type Gapic::Operation. You can use it to
422
+ # # check the status of an operation, cancel it, or wait for results.
423
+ # # Here is how to wait for a response.
424
+ # result.wait_until_done! timeout: 60
425
+ # if result.response?
426
+ # p result.response
427
+ # else
428
+ # puts "No response received."
429
+ # end
430
+ #
372
431
  def create_function request, options = nil
373
432
  raise ::ArgumentError, "request must be provided" if request.nil?
374
433
 
@@ -434,6 +493,29 @@ module Google
434
493
  # @return [::Gapic::Operation]
435
494
  #
436
495
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
496
+ #
497
+ # @example Basic example
498
+ # require "google/cloud/functions/v1"
499
+ #
500
+ # # Create a client object. The client can be reused for multiple calls.
501
+ # client = Google::Cloud::Functions::V1::CloudFunctionsService::Rest::Client.new
502
+ #
503
+ # # Create a request. To set request fields, pass in keyword arguments.
504
+ # request = Google::Cloud::Functions::V1::UpdateFunctionRequest.new
505
+ #
506
+ # # Call the update_function method.
507
+ # result = client.update_function 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
+ #
437
519
  def update_function request, options = nil
438
520
  raise ::ArgumentError, "request must be provided" if request.nil?
439
521
 
@@ -499,6 +581,29 @@ module Google
499
581
  # @return [::Gapic::Operation]
500
582
  #
501
583
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
584
+ #
585
+ # @example Basic example
586
+ # require "google/cloud/functions/v1"
587
+ #
588
+ # # Create a client object. The client can be reused for multiple calls.
589
+ # client = Google::Cloud::Functions::V1::CloudFunctionsService::Rest::Client.new
590
+ #
591
+ # # Create a request. To set request fields, pass in keyword arguments.
592
+ # request = Google::Cloud::Functions::V1::DeleteFunctionRequest.new
593
+ #
594
+ # # Call the delete_function method.
595
+ # result = client.delete_function request
596
+ #
597
+ # # The returned object is of type Gapic::Operation. You can use it to
598
+ # # check the status of an operation, cancel it, or wait for results.
599
+ # # Here is how to wait for a response.
600
+ # result.wait_until_done! timeout: 60
601
+ # if result.response?
602
+ # p result.response
603
+ # else
604
+ # puts "No response received."
605
+ # end
606
+ #
502
607
  def delete_function request, options = nil
503
608
  raise ::ArgumentError, "request must be provided" if request.nil?
504
609
 
@@ -567,6 +672,22 @@ module Google
567
672
  # @return [::Google::Cloud::Functions::V1::CallFunctionResponse]
568
673
  #
569
674
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
675
+ #
676
+ # @example Basic example
677
+ # require "google/cloud/functions/v1"
678
+ #
679
+ # # Create a client object. The client can be reused for multiple calls.
680
+ # client = Google::Cloud::Functions::V1::CloudFunctionsService::Rest::Client.new
681
+ #
682
+ # # Create a request. To set request fields, pass in keyword arguments.
683
+ # request = Google::Cloud::Functions::V1::CallFunctionRequest.new
684
+ #
685
+ # # Call the call_function method.
686
+ # result = client.call_function request
687
+ #
688
+ # # The returned object is of type Google::Cloud::Functions::V1::CallFunctionResponse.
689
+ # p result
690
+ #
570
691
  def call_function request, options = nil
571
692
  raise ::ArgumentError, "request must be provided" if request.nil?
572
693
 
@@ -672,6 +793,22 @@ module Google
672
793
  # @return [::Google::Cloud::Functions::V1::GenerateUploadUrlResponse]
673
794
  #
674
795
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
796
+ #
797
+ # @example Basic example
798
+ # require "google/cloud/functions/v1"
799
+ #
800
+ # # Create a client object. The client can be reused for multiple calls.
801
+ # client = Google::Cloud::Functions::V1::CloudFunctionsService::Rest::Client.new
802
+ #
803
+ # # Create a request. To set request fields, pass in keyword arguments.
804
+ # request = Google::Cloud::Functions::V1::GenerateUploadUrlRequest.new
805
+ #
806
+ # # Call the generate_upload_url method.
807
+ # result = client.generate_upload_url request
808
+ #
809
+ # # The returned object is of type Google::Cloud::Functions::V1::GenerateUploadUrlResponse.
810
+ # p result
811
+ #
675
812
  def generate_upload_url request, options = nil
676
813
  raise ::ArgumentError, "request must be provided" if request.nil?
677
814
 
@@ -742,6 +879,22 @@ module Google
742
879
  # @return [::Google::Cloud::Functions::V1::GenerateDownloadUrlResponse]
743
880
  #
744
881
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
882
+ #
883
+ # @example Basic example
884
+ # require "google/cloud/functions/v1"
885
+ #
886
+ # # Create a client object. The client can be reused for multiple calls.
887
+ # client = Google::Cloud::Functions::V1::CloudFunctionsService::Rest::Client.new
888
+ #
889
+ # # Create a request. To set request fields, pass in keyword arguments.
890
+ # request = Google::Cloud::Functions::V1::GenerateDownloadUrlRequest.new
891
+ #
892
+ # # Call the generate_download_url method.
893
+ # result = client.generate_download_url request
894
+ #
895
+ # # The returned object is of type Google::Cloud::Functions::V1::GenerateDownloadUrlResponse.
896
+ # p result
897
+ #
745
898
  def generate_download_url request, options = nil
746
899
  raise ::ArgumentError, "request must be provided" if request.nil?
747
900
 
@@ -817,6 +970,22 @@ module Google
817
970
  # @return [::Google::Iam::V1::Policy]
818
971
  #
819
972
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
973
+ #
974
+ # @example Basic example
975
+ # require "google/cloud/functions/v1"
976
+ #
977
+ # # Create a client object. The client can be reused for multiple calls.
978
+ # client = Google::Cloud::Functions::V1::CloudFunctionsService::Rest::Client.new
979
+ #
980
+ # # Create a request. To set request fields, pass in keyword arguments.
981
+ # request = Google::Iam::V1::SetIamPolicyRequest.new
982
+ #
983
+ # # Call the set_iam_policy method.
984
+ # result = client.set_iam_policy request
985
+ #
986
+ # # The returned object is of type Google::Iam::V1::Policy.
987
+ # p result
988
+ #
820
989
  def set_iam_policy request, options = nil
821
990
  raise ::ArgumentError, "request must be provided" if request.nil?
822
991
 
@@ -885,6 +1054,22 @@ module Google
885
1054
  # @return [::Google::Iam::V1::Policy]
886
1055
  #
887
1056
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1057
+ #
1058
+ # @example Basic example
1059
+ # require "google/cloud/functions/v1"
1060
+ #
1061
+ # # Create a client object. The client can be reused for multiple calls.
1062
+ # client = Google::Cloud::Functions::V1::CloudFunctionsService::Rest::Client.new
1063
+ #
1064
+ # # Create a request. To set request fields, pass in keyword arguments.
1065
+ # request = Google::Iam::V1::GetIamPolicyRequest.new
1066
+ #
1067
+ # # Call the get_iam_policy method.
1068
+ # result = client.get_iam_policy request
1069
+ #
1070
+ # # The returned object is of type Google::Iam::V1::Policy.
1071
+ # p result
1072
+ #
888
1073
  def get_iam_policy request, options = nil
889
1074
  raise ::ArgumentError, "request must be provided" if request.nil?
890
1075
 
@@ -956,6 +1141,22 @@ module Google
956
1141
  # @return [::Google::Iam::V1::TestIamPermissionsResponse]
957
1142
  #
958
1143
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1144
+ #
1145
+ # @example Basic example
1146
+ # require "google/cloud/functions/v1"
1147
+ #
1148
+ # # Create a client object. The client can be reused for multiple calls.
1149
+ # client = Google::Cloud::Functions::V1::CloudFunctionsService::Rest::Client.new
1150
+ #
1151
+ # # Create a request. To set request fields, pass in keyword arguments.
1152
+ # request = Google::Iam::V1::TestIamPermissionsRequest.new
1153
+ #
1154
+ # # Call the test_iam_permissions method.
1155
+ # result = client.test_iam_permissions request
1156
+ #
1157
+ # # The returned object is of type Google::Iam::V1::TestIamPermissionsResponse.
1158
+ # p result
1159
+ #
959
1160
  def test_iam_permissions request, options = nil
960
1161
  raise ::ArgumentError, "request must be provided" if request.nil?
961
1162
 
@@ -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 Functions
23
23
  module V1
24
- VERSION = "0.11.0"
24
+ VERSION = "0.12.0"
25
25
  end
26
26
  end
27
27
  end
@@ -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-functions-v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.11.0
4
+ version: 0.12.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-06-06 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
@@ -260,7 +260,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
260
260
  - !ruby/object:Gem::Version
261
261
  version: '0'
262
262
  requirements: []
263
- rubygems_version: 3.4.2
263
+ rubygems_version: 3.4.19
264
264
  signing_key:
265
265
  specification_version: 4
266
266
  summary: Manages lightweight user-provided functions executed in response to events.