google-cloud-functions-v1 0.3.2 → 0.3.3

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: f9d10e7dec4894767d859b06568f9938052afbe9aca891be4f1c4b38feaf798b
4
- data.tar.gz: 002d31920553b083775415369dbce1ce6673861abdcc4f526601ad10a2ab8b9d
3
+ metadata.gz: ca5df506812fe0266ce9f3da55968ec1fc194829b275534ce3f9d56307881a49
4
+ data.tar.gz: 7abcfd0ca719a285f1683e1083bcab50d5d3f660ef154de5d0ebb9b45baf164e
5
5
  SHA512:
6
- metadata.gz: e0ea14e55c4075ec5be5ca9e96e69876eb6f957300cb9adae990ce84ef118ac293ead626aefd446b32bb3126c9483e06a4cb743de1dcbcd9f90cbebee8f590d9
7
- data.tar.gz: ef999c7e77ae4372a891d6695b612848f1e01906ae4fff8d8088356d012abd58650aa167183f40b8186f5780e00ae7422b034873335656ae3e9ac689065b5bc3
6
+ metadata.gz: fd307b428df080fa5c961a0a380ca602fd943072c000d6c0218d876f07c6faf5172a36a8ef9c917afcba3a06431aec194d3bd235d5770f3aeeaba4b2b9b9d1fb
7
+ data.tar.gz: 2261d492b03a8b70ce47b7d6ec25c4b95b77577be53651531d9fe48c884e8d8395e731de4565d706bd89b1916d7ef8640faaf8a5fae014abda777208726288f3
@@ -41,13 +41,12 @@ module Google
41
41
  # See {::Google::Cloud::Functions::V1::CloudFunctionsService::Client::Configuration}
42
42
  # for a description of the configuration fields.
43
43
  #
44
- # ## Example
44
+ # @example
45
45
  #
46
- # To modify the configuration for all CloudFunctionsService clients:
47
- #
48
- # ::Google::Cloud::Functions::V1::CloudFunctionsService::Client.configure do |config|
49
- # config.timeout = 10.0
50
- # end
46
+ # # Modify the configuration for all CloudFunctionsService clients
47
+ # ::Google::Cloud::Functions::V1::CloudFunctionsService::Client.configure do |config|
48
+ # config.timeout = 10.0
49
+ # end
51
50
  #
52
51
  # @yield [config] Configure the Client client.
53
52
  # @yieldparam config [Client::Configuration]
@@ -118,19 +117,15 @@ module Google
118
117
  ##
119
118
  # Create a new CloudFunctionsService client object.
120
119
  #
121
- # ## Examples
122
- #
123
- # To create a new CloudFunctionsService client with the default
124
- # configuration:
125
- #
126
- # client = ::Google::Cloud::Functions::V1::CloudFunctionsService::Client.new
120
+ # @example
127
121
  #
128
- # To create a new CloudFunctionsService client with a custom
129
- # configuration:
122
+ # # Create a client using the default configuration
123
+ # client = ::Google::Cloud::Functions::V1::CloudFunctionsService::Client.new
130
124
  #
131
- # client = ::Google::Cloud::Functions::V1::CloudFunctionsService::Client.new do |config|
132
- # config.timeout = 10.0
133
- # end
125
+ # # Create a client using a custom configuration
126
+ # client = ::Google::Cloud::Functions::V1::CloudFunctionsService::Client.new do |config|
127
+ # config.timeout = 10.0
128
+ # end
134
129
  #
135
130
  # @yield [config] Configure the CloudFunctionsService client.
136
131
  # @yieldparam config [Client::Configuration]
@@ -150,10 +145,9 @@ module Google
150
145
 
151
146
  # Create credentials
152
147
  credentials = @config.credentials
153
- # Use self-signed JWT if the scope and endpoint are unchanged from default,
148
+ # Use self-signed JWT if the endpoint is unchanged from default,
154
149
  # but only if the default endpoint does not have a region prefix.
155
- enable_self_signed_jwt = @config.scope == Client.configure.scope &&
156
- @config.endpoint == Client.configure.endpoint &&
150
+ enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
157
151
  !@config.endpoint.split(".").first.include?("-")
158
152
  credentials ||= Credentials.default scope: @config.scope,
159
153
  enable_self_signed_jwt: enable_self_signed_jwt
@@ -253,7 +247,9 @@ module Google
253
247
  options.apply_defaults timeout: @config.rpcs.list_functions.timeout,
254
248
  metadata: metadata,
255
249
  retry_policy: @config.rpcs.list_functions.retry_policy
256
- options.apply_defaults metadata: @config.metadata,
250
+
251
+ options.apply_defaults timeout: @config.timeout,
252
+ metadata: @config.metadata,
257
253
  retry_policy: @config.retry_policy
258
254
 
259
255
  @cloud_functions_service_stub.call_rpc :list_functions, request, options: options do |response, operation|
@@ -320,7 +316,9 @@ module Google
320
316
  options.apply_defaults timeout: @config.rpcs.get_function.timeout,
321
317
  metadata: metadata,
322
318
  retry_policy: @config.rpcs.get_function.retry_policy
323
- options.apply_defaults metadata: @config.metadata,
319
+
320
+ options.apply_defaults timeout: @config.timeout,
321
+ metadata: @config.metadata,
324
322
  retry_policy: @config.retry_policy
325
323
 
326
324
  @cloud_functions_service_stub.call_rpc :get_function, request, options: options do |response, operation|
@@ -391,7 +389,9 @@ module Google
391
389
  options.apply_defaults timeout: @config.rpcs.create_function.timeout,
392
390
  metadata: metadata,
393
391
  retry_policy: @config.rpcs.create_function.retry_policy
394
- options.apply_defaults metadata: @config.metadata,
392
+
393
+ options.apply_defaults timeout: @config.timeout,
394
+ metadata: @config.metadata,
395
395
  retry_policy: @config.retry_policy
396
396
 
397
397
  @cloud_functions_service_stub.call_rpc :create_function, request, options: options do |response, operation|
@@ -460,7 +460,9 @@ module Google
460
460
  options.apply_defaults timeout: @config.rpcs.update_function.timeout,
461
461
  metadata: metadata,
462
462
  retry_policy: @config.rpcs.update_function.retry_policy
463
- options.apply_defaults metadata: @config.metadata,
463
+
464
+ options.apply_defaults timeout: @config.timeout,
465
+ metadata: @config.metadata,
464
466
  retry_policy: @config.retry_policy
465
467
 
466
468
  @cloud_functions_service_stub.call_rpc :update_function, request, options: options do |response, operation|
@@ -529,7 +531,9 @@ module Google
529
531
  options.apply_defaults timeout: @config.rpcs.delete_function.timeout,
530
532
  metadata: metadata,
531
533
  retry_policy: @config.rpcs.delete_function.retry_policy
532
- options.apply_defaults metadata: @config.metadata,
534
+
535
+ options.apply_defaults timeout: @config.timeout,
536
+ metadata: @config.metadata,
533
537
  retry_policy: @config.retry_policy
534
538
 
535
539
  @cloud_functions_service_stub.call_rpc :delete_function, request, options: options do |response, operation|
@@ -601,7 +605,9 @@ module Google
601
605
  options.apply_defaults timeout: @config.rpcs.call_function.timeout,
602
606
  metadata: metadata,
603
607
  retry_policy: @config.rpcs.call_function.retry_policy
604
- options.apply_defaults metadata: @config.metadata,
608
+
609
+ options.apply_defaults timeout: @config.timeout,
610
+ metadata: @config.metadata,
605
611
  retry_policy: @config.retry_policy
606
612
 
607
613
  @cloud_functions_service_stub.call_rpc :call_function, request, options: options do |response, operation|
@@ -692,7 +698,9 @@ module Google
692
698
  options.apply_defaults timeout: @config.rpcs.generate_upload_url.timeout,
693
699
  metadata: metadata,
694
700
  retry_policy: @config.rpcs.generate_upload_url.retry_policy
695
- options.apply_defaults metadata: @config.metadata,
701
+
702
+ options.apply_defaults timeout: @config.timeout,
703
+ metadata: @config.metadata,
696
704
  retry_policy: @config.retry_policy
697
705
 
698
706
  @cloud_functions_service_stub.call_rpc :generate_upload_url, request, options: options do |response, operation|
@@ -766,7 +774,9 @@ module Google
766
774
  options.apply_defaults timeout: @config.rpcs.generate_download_url.timeout,
767
775
  metadata: metadata,
768
776
  retry_policy: @config.rpcs.generate_download_url.retry_policy
769
- options.apply_defaults metadata: @config.metadata,
777
+
778
+ options.apply_defaults timeout: @config.timeout,
779
+ metadata: @config.metadata,
770
780
  retry_policy: @config.retry_policy
771
781
 
772
782
  @cloud_functions_service_stub.call_rpc :generate_download_url, request, options: options do |response, operation|
@@ -839,7 +849,9 @@ module Google
839
849
  options.apply_defaults timeout: @config.rpcs.set_iam_policy.timeout,
840
850
  metadata: metadata,
841
851
  retry_policy: @config.rpcs.set_iam_policy.retry_policy
842
- options.apply_defaults metadata: @config.metadata,
852
+
853
+ options.apply_defaults timeout: @config.timeout,
854
+ metadata: @config.metadata,
843
855
  retry_policy: @config.retry_policy
844
856
 
845
857
  @cloud_functions_service_stub.call_rpc :set_iam_policy, request, options: options do |response, operation|
@@ -911,7 +923,9 @@ module Google
911
923
  options.apply_defaults timeout: @config.rpcs.get_iam_policy.timeout,
912
924
  metadata: metadata,
913
925
  retry_policy: @config.rpcs.get_iam_policy.retry_policy
914
- options.apply_defaults metadata: @config.metadata,
926
+
927
+ options.apply_defaults timeout: @config.timeout,
928
+ metadata: @config.metadata,
915
929
  retry_policy: @config.retry_policy
916
930
 
917
931
  @cloud_functions_service_stub.call_rpc :get_iam_policy, request, options: options do |response, operation|
@@ -986,7 +1000,9 @@ module Google
986
1000
  options.apply_defaults timeout: @config.rpcs.test_iam_permissions.timeout,
987
1001
  metadata: metadata,
988
1002
  retry_policy: @config.rpcs.test_iam_permissions.retry_policy
989
- options.apply_defaults metadata: @config.metadata,
1003
+
1004
+ options.apply_defaults timeout: @config.timeout,
1005
+ metadata: @config.metadata,
990
1006
  retry_policy: @config.retry_policy
991
1007
 
992
1008
  @cloud_functions_service_stub.call_rpc :test_iam_permissions, request, options: options do |response, operation|
@@ -1010,22 +1026,21 @@ module Google
1010
1026
  # Configuration can be applied globally to all clients, or to a single client
1011
1027
  # on construction.
1012
1028
  #
1013
- # # Examples
1014
- #
1015
- # To modify the global config, setting the timeout for list_functions
1016
- # to 20 seconds, and all remaining timeouts to 10 seconds:
1017
- #
1018
- # ::Google::Cloud::Functions::V1::CloudFunctionsService::Client.configure do |config|
1019
- # config.timeout = 10.0
1020
- # config.rpcs.list_functions.timeout = 20.0
1021
- # end
1022
- #
1023
- # To apply the above configuration only to a new client:
1024
- #
1025
- # client = ::Google::Cloud::Functions::V1::CloudFunctionsService::Client.new do |config|
1026
- # config.timeout = 10.0
1027
- # config.rpcs.list_functions.timeout = 20.0
1028
- # end
1029
+ # @example
1030
+ #
1031
+ # # Modify the global config, setting the timeout for
1032
+ # # list_functions to 20 seconds,
1033
+ # # and all remaining timeouts to 10 seconds.
1034
+ # ::Google::Cloud::Functions::V1::CloudFunctionsService::Client.configure do |config|
1035
+ # config.timeout = 10.0
1036
+ # config.rpcs.list_functions.timeout = 20.0
1037
+ # end
1038
+ #
1039
+ # # Apply the above configuration only to a new client.
1040
+ # client = ::Google::Cloud::Functions::V1::CloudFunctionsService::Client.new do |config|
1041
+ # config.timeout = 10.0
1042
+ # config.rpcs.list_functions.timeout = 20.0
1043
+ # end
1029
1044
  #
1030
1045
  # @!attribute [rw] endpoint
1031
1046
  # The hostname or hostname:port of the service endpoint.
@@ -169,7 +169,9 @@ module Google
169
169
  options.apply_defaults timeout: @config.rpcs.list_operations.timeout,
170
170
  metadata: metadata,
171
171
  retry_policy: @config.rpcs.list_operations.retry_policy
172
- options.apply_defaults metadata: @config.metadata,
172
+
173
+ options.apply_defaults timeout: @config.timeout,
174
+ metadata: @config.metadata,
173
175
  retry_policy: @config.retry_policy
174
176
 
175
177
  @operations_stub.call_rpc :list_operations, request, options: options do |response, operation|
@@ -239,7 +241,9 @@ module Google
239
241
  options.apply_defaults timeout: @config.rpcs.get_operation.timeout,
240
242
  metadata: metadata,
241
243
  retry_policy: @config.rpcs.get_operation.retry_policy
242
- options.apply_defaults metadata: @config.metadata,
244
+
245
+ options.apply_defaults timeout: @config.timeout,
246
+ metadata: @config.metadata,
243
247
  retry_policy: @config.retry_policy
244
248
 
245
249
  @operations_stub.call_rpc :get_operation, request, options: options do |response, operation|
@@ -309,7 +313,9 @@ module Google
309
313
  options.apply_defaults timeout: @config.rpcs.delete_operation.timeout,
310
314
  metadata: metadata,
311
315
  retry_policy: @config.rpcs.delete_operation.retry_policy
312
- options.apply_defaults metadata: @config.metadata,
316
+
317
+ options.apply_defaults timeout: @config.timeout,
318
+ metadata: @config.metadata,
313
319
  retry_policy: @config.retry_policy
314
320
 
315
321
  @operations_stub.call_rpc :delete_operation, request, options: options do |response, operation|
@@ -384,7 +390,9 @@ module Google
384
390
  options.apply_defaults timeout: @config.rpcs.cancel_operation.timeout,
385
391
  metadata: metadata,
386
392
  retry_policy: @config.rpcs.cancel_operation.retry_policy
387
- options.apply_defaults metadata: @config.metadata,
393
+
394
+ options.apply_defaults timeout: @config.timeout,
395
+ metadata: @config.metadata,
388
396
  retry_policy: @config.retry_policy
389
397
 
390
398
  @operations_stub.call_rpc :cancel_operation, request, options: options do |response, operation|
@@ -456,7 +464,9 @@ module Google
456
464
  options.apply_defaults timeout: @config.rpcs.wait_operation.timeout,
457
465
  metadata: metadata,
458
466
  retry_policy: @config.rpcs.wait_operation.retry_policy
459
- options.apply_defaults metadata: @config.metadata,
467
+
468
+ options.apply_defaults timeout: @config.timeout,
469
+ metadata: @config.metadata,
460
470
  retry_policy: @config.retry_policy
461
471
 
462
472
  @operations_stub.call_rpc :wait_operation, request, options: options do |response, operation|
@@ -481,22 +491,21 @@ module Google
481
491
  # Configuration can be applied globally to all clients, or to a single client
482
492
  # on construction.
483
493
  #
484
- # # Examples
485
- #
486
- # To modify the global config, setting the timeout for list_operations
487
- # to 20 seconds, and all remaining timeouts to 10 seconds:
488
- #
489
- # ::Google::Longrunning::Operations::Client.configure do |config|
490
- # config.timeout = 10.0
491
- # config.rpcs.list_operations.timeout = 20.0
492
- # end
493
- #
494
- # To apply the above configuration only to a new client:
495
- #
496
- # client = ::Google::Longrunning::Operations::Client.new do |config|
497
- # config.timeout = 10.0
498
- # config.rpcs.list_operations.timeout = 20.0
499
- # end
494
+ # @example
495
+ #
496
+ # # Modify the global config, setting the timeout for
497
+ # # list_operations to 20 seconds,
498
+ # # and all remaining timeouts to 10 seconds.
499
+ # ::Google::Longrunning::Operations::Client.configure do |config|
500
+ # config.timeout = 10.0
501
+ # config.rpcs.list_operations.timeout = 20.0
502
+ # end
503
+ #
504
+ # # Apply the above configuration only to a new client.
505
+ # client = ::Google::Longrunning::Operations::Client.new do |config|
506
+ # config.timeout = 10.0
507
+ # config.rpcs.list_operations.timeout = 20.0
508
+ # end
500
509
  #
501
510
  # @!attribute [rw] endpoint
502
511
  # The hostname or hostname:port of the service endpoint.
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module Functions
23
23
  module V1
24
- VERSION = "0.3.2"
24
+ VERSION = "0.3.3"
25
25
  end
26
26
  end
27
27
  end
@@ -32,7 +32,7 @@ module Google
32
32
  # User-provided description of a function.
33
33
  # @!attribute [rw] source_archive_url
34
34
  # @return [::String]
35
- # The Google Cloud Storage URL, starting with gs://, pointing to the zip
35
+ # The Google Cloud Storage URL, starting with `gs://`, pointing to the zip
36
36
  # archive which contains the function.
37
37
  # @!attribute [rw] source_repository
38
38
  # @return [::Google::Cloud::Functions::V1::SourceRepository]
@@ -42,7 +42,11 @@ module Google
42
42
  # @!attribute [rw] source_upload_url
43
43
  # @return [::String]
44
44
  # The Google Cloud Storage signed URL used for source uploading, generated
45
- # by [google.cloud.functions.v1.GenerateUploadUrl][]
45
+ # by calling [google.cloud.functions.v1.GenerateUploadUrl].
46
+ #
47
+ # The signature is validated on write methods (Create, Update)
48
+ # The signature is stripped from the Function object on read methods (Get,
49
+ # List)
46
50
  # @!attribute [rw] https_trigger
47
51
  # @return [::Google::Cloud::Functions::V1::HttpsTrigger]
48
52
  # An HTTPS endpoint type of source that can be triggered via URL.
@@ -66,7 +70,7 @@ module Google
66
70
  # function, optional when updating an existing function. For a complete
67
71
  # list of possible choices, see the
68
72
  # [`gcloud` command
69
- # reference](/sdk/gcloud/reference/functions/deploy#--runtime).
73
+ # reference](https://cloud.google.com/sdk/gcloud/reference/functions/deploy#--runtime).
70
74
  # @!attribute [rw] timeout
71
75
  # @return [::Google::Protobuf::Duration]
72
76
  # The function execution timeout. Execution is considered failed and
@@ -101,8 +105,8 @@ module Google
101
105
  # project. Otherwise, it must belong to a project within the same
102
106
  # organization. The format of this field is either
103
107
  # `projects/{project}/global/networks/{network}` or `{network}`, where
104
- # \\{project} is a project id where the network is defined, and \\{network} is
105
- # the short name of the network.
108
+ # `{project}` is a project id where the network is defined, and `{network}`
109
+ # is the short name of the network.
106
110
  #
107
111
  # This field is mutually exclusive with `vpc_connector` and will be replaced
108
112
  # by it.
@@ -25,7 +25,7 @@ module Google
25
25
  # @!attribute [rw] target
26
26
  # @return [::String]
27
27
  # Target of the operation - for example
28
- # projects/project-1/locations/region-1/functions/function-1
28
+ # `projects/project-1/locations/region-1/functions/function-1`
29
29
  # @!attribute [rw] type
30
30
  # @return [::Google::Cloud::Functions::V1::OperationType]
31
31
  # Type of operation.
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.3.2
4
+ version: 0.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-07-12 00:00:00.000000000 Z
11
+ date: 2021-08-19 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.5'
19
+ version: '0.7'
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.5'
29
+ version: '0.7'
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a