google-cloud-functions-v2 0.9.0 → 1.0.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b774495f1d693997cfe10fb31d663a4f128548802cb3449d9fcdfe5079b4f93a
4
- data.tar.gz: 9a1da3a2ea879170c4fef77f910fbc15bb1ee12b363b088d8424fdfb224b2d9b
3
+ metadata.gz: a7d88a87dc881ddcc31702e94be559fed87e3b63de9e3e2fdd5566492ae4aae2
4
+ data.tar.gz: b25988f9a55b18fce4b76b31a95c9426c79c68d956e26c16b9b917a371a3a02c
5
5
  SHA512:
6
- metadata.gz: 93323a90fc85d1530179779c211e528ca42988943811e315a8814f77a4969d463405b3afbbb7477ffd84575b7cdce8f444cd3a482f16d96d552a23c8c290a1f2
7
- data.tar.gz: f25ca9d159ad902b113ecf73afee53f410ff9f05770d0ee209d3f6b28a9605c7d7160cfcb27e1867aa1aa21fd709f436131f7be71479a61a2e2d8013ddde4475
6
+ metadata.gz: a2e95025845169f693dc950442f8d4517d7aaac5da6689813183dae93d4981e4aa8e6ee516dead44412aa18efd56f98c6f6fbfeb5addf54ba34eb4f91ab58937
7
+ data.tar.gz: e8e9e9a0efbe0d7a2fb4a9d6e87ca1c623d7507f22a171b87b6fdf849ab0d9d3116371ad2580dfbc2c7342a31679f958948a291e5dcc7859fb6986e9f6d03a3d
data/README.md CHANGED
@@ -86,7 +86,7 @@ To browse ready to use code samples check [Google Cloud Samples](https://cloud.g
86
86
 
87
87
  ## Supported Ruby Versions
88
88
 
89
- This library is supported on Ruby 2.7+.
89
+ This library is supported on Ruby 3.0+.
90
90
 
91
91
  Google provides official support for Ruby versions that are actively supported
92
92
  by Ruby Core—that is, Ruby versions that are either in normal maintenance or
@@ -1089,6 +1089,13 @@ module Google
1089
1089
  # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
1090
1090
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
1091
1091
  # * (`nil`) indicating no credentials
1092
+ #
1093
+ # Warning: If you accept a credential configuration (JSON file or Hash) from an
1094
+ # external source for authentication to Google Cloud, you must validate it before
1095
+ # providing it to a Google API client library. Providing an unvalidated credential
1096
+ # configuration to Google APIs can compromise the security of your systems and data.
1097
+ # For more information, refer to [Validate credential configurations from external
1098
+ # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials).
1092
1099
  # @return [::Object]
1093
1100
  # @!attribute [rw] scope
1094
1101
  # The OAuth scopes
@@ -640,6 +640,13 @@ module Google
640
640
  # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
641
641
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
642
642
  # * (`nil`) indicating no credentials
643
+ #
644
+ # Warning: If you accept a credential configuration (JSON file or Hash) from an
645
+ # external source for authentication to Google Cloud, you must validate it before
646
+ # providing it to a Google API client library. Providing an unvalidated credential
647
+ # configuration to Google APIs can compromise the security of your systems and data.
648
+ # For more information, refer to [Validate credential configurations from external
649
+ # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials).
643
650
  # @return [::Object]
644
651
  # @!attribute [rw] scope
645
652
  # The OAuth scopes
@@ -357,10 +357,10 @@ module Google
357
357
  # separated list of fields. The default sorting oder is ascending.
358
358
  # See https://google.aip.dev/132#ordering.
359
359
  # @yield [result, operation] Access the result along with the TransportOperation object
360
- # @yieldparam result [::Google::Cloud::Functions::V2::ListFunctionsResponse]
360
+ # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Functions::V2::Function>]
361
361
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
362
362
  #
363
- # @return [::Google::Cloud::Functions::V2::ListFunctionsResponse]
363
+ # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Functions::V2::Function>]
364
364
  #
365
365
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
366
366
  #
@@ -412,7 +412,9 @@ module Google
412
412
  retry_policy: @config.retry_policy
413
413
 
414
414
  @function_service_stub.list_functions request, options do |result, operation|
415
+ result = ::Gapic::Rest::PagedEnumerable.new @function_service_stub, :list_functions, "functions", request, result, options
415
416
  yield result, operation if block_given?
417
+ throw :response, result
416
418
  end
417
419
  rescue ::Gapic::Rest::Error => e
418
420
  raise ::Google::Cloud::Error.from_error(e)
@@ -1024,6 +1026,13 @@ module Google
1024
1026
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
1025
1027
  # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
1026
1028
  # * (`nil`) indicating no credentials
1029
+ #
1030
+ # Warning: If you accept a credential configuration (JSON file or Hash) from an
1031
+ # external source for authentication to Google Cloud, you must validate it before
1032
+ # providing it to a Google API client library. Providing an unvalidated credential
1033
+ # configuration to Google APIs can compromise the security of your systems and data.
1034
+ # For more information, refer to [Validate credential configurations from external
1035
+ # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials).
1027
1036
  # @return [::Object]
1028
1037
  # @!attribute [rw] scope
1029
1038
  # The OAuth scopes
@@ -502,6 +502,13 @@ module Google
502
502
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
503
503
  # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
504
504
  # * (`nil`) indicating no credentials
505
+ #
506
+ # Warning: If you accept a credential configuration (JSON file or Hash) from an
507
+ # external source for authentication to Google Cloud, you must validate it before
508
+ # providing it to a Google API client library. Providing an unvalidated credential
509
+ # configuration to Google APIs can compromise the security of your systems and data.
510
+ # For more information, refer to [Validate credential configurations from external
511
+ # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials).
505
512
  # @return [::Object]
506
513
  # @!attribute [rw] scope
507
514
  # The OAuth scopes
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module Functions
23
23
  module V2
24
- VERSION = "0.9.0"
24
+ VERSION = "1.0.0"
25
25
  end
26
26
  end
27
27
  end
@@ -409,6 +409,14 @@ module Google
409
409
  # @return [::Array<::String>]
410
410
  # An allowlist of the fully qualified names of RPCs that should be included
411
411
  # on public client surfaces.
412
+ # @!attribute [rw] generate_omitted_as_internal
413
+ # @return [::Boolean]
414
+ # Setting this to true indicates to the client generators that methods
415
+ # that would be excluded from the generation should instead be generated
416
+ # in a way that indicates these methods should not be consumed by
417
+ # end users. How this is expressed is up to individual language
418
+ # implementations to decide. Some examples may be: added annotations,
419
+ # obfuscated identifiers, or other language idiomatic patterns.
412
420
  class SelectiveGapicGeneration
413
421
  include ::Google::Protobuf::MessageExts
414
422
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -173,15 +173,21 @@ module Google
173
173
  #
174
174
  # The syntax of the regular expressions accepted is the syntax accepted by
175
175
  # RE2 and described at https://github.com/google/re2/wiki/Syntax
176
+ #
177
+ # Note: The following fields are mutually exclusive: `branch_name`, `tag_name`, `commit_sha`. If a field in that set is populated, all other fields in the set will automatically be cleared.
176
178
  # @!attribute [rw] tag_name
177
179
  # @return [::String]
178
180
  # Regex matching tags to build.
179
181
  #
180
182
  # The syntax of the regular expressions accepted is the syntax accepted by
181
183
  # RE2 and described at https://github.com/google/re2/wiki/Syntax
184
+ #
185
+ # Note: The following fields are mutually exclusive: `tag_name`, `branch_name`, `commit_sha`. If a field in that set is populated, all other fields in the set will automatically be cleared.
182
186
  # @!attribute [rw] commit_sha
183
187
  # @return [::String]
184
188
  # Explicit commit SHA to build.
189
+ #
190
+ # Note: The following fields are mutually exclusive: `commit_sha`, `branch_name`, `tag_name`. If a field in that set is populated, all other fields in the set will automatically be cleared.
185
191
  # @!attribute [rw] project_id
186
192
  # @return [::String]
187
193
  # ID of the project that owns the Cloud Source Repository. If omitted, the
@@ -209,15 +215,21 @@ module Google
209
215
  # @!attribute [rw] storage_source
210
216
  # @return [::Google::Cloud::Functions::V2::StorageSource]
211
217
  # If provided, get the source from this location in Google Cloud Storage.
218
+ #
219
+ # Note: The following fields are mutually exclusive: `storage_source`, `repo_source`, `git_uri`. If a field in that set is populated, all other fields in the set will automatically be cleared.
212
220
  # @!attribute [rw] repo_source
213
221
  # @return [::Google::Cloud::Functions::V2::RepoSource]
214
222
  # If provided, get the source from this location in a Cloud Source
215
223
  # Repository.
224
+ #
225
+ # Note: The following fields are mutually exclusive: `repo_source`, `storage_source`, `git_uri`. If a field in that set is populated, all other fields in the set will automatically be cleared.
216
226
  # @!attribute [rw] git_uri
217
227
  # @return [::String]
218
228
  # If provided, get the source from GitHub repository. This option is valid
219
229
  # only for GCF 1st Gen function.
220
230
  # Example: https://github.com/<user>/<repo>/blob/<commit>/<path-to-code>
231
+ #
232
+ # Note: The following fields are mutually exclusive: `git_uri`, `storage_source`, `repo_source`. If a field in that set is populated, all other fields in the set will automatically be cleared.
221
233
  class Source
222
234
  include ::Google::Protobuf::MessageExts
223
235
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -246,8 +258,10 @@ module Google
246
258
  # given source.
247
259
  # @!attribute [rw] automatic_update_policy
248
260
  # @return [::Google::Cloud::Functions::V2::AutomaticUpdatePolicy]
261
+ # Note: The following fields are mutually exclusive: `automatic_update_policy`, `on_deploy_update_policy`. If a field in that set is populated, all other fields in the set will automatically be cleared.
249
262
  # @!attribute [rw] on_deploy_update_policy
250
263
  # @return [::Google::Cloud::Functions::V2::OnDeployUpdatePolicy]
264
+ # Note: The following fields are mutually exclusive: `on_deploy_update_policy`, `automatic_update_policy`. If a field in that set is populated, all other fields in the set will automatically be cleared.
251
265
  # @!attribute [r] build
252
266
  # @return [::String]
253
267
  # Output only. The Cloud Build name of the latest successful deployment of
@@ -40,6 +40,8 @@ module Google
40
40
  # @!attribute [rw] error
41
41
  # @return [::Google::Rpc::Status]
42
42
  # The error result of the operation in case of failure or cancellation.
43
+ #
44
+ # Note: The following fields are mutually exclusive: `error`, `response`. If a field in that set is populated, all other fields in the set will automatically be cleared.
43
45
  # @!attribute [rw] response
44
46
  # @return [::Google::Protobuf::Any]
45
47
  # The normal, successful response of the operation. If the original
@@ -50,6 +52,8 @@ module Google
50
52
  # is the original method name. For example, if the original method name
51
53
  # is `TakeSnapshot()`, the inferred response type is
52
54
  # `TakeSnapshotResponse`.
55
+ #
56
+ # Note: The following fields are mutually exclusive: `response`, `error`. If a field in that set is populated, all other fields in the set will automatically be cleared.
53
57
  class Operation
54
58
  include ::Google::Protobuf::MessageExts
55
59
  extend ::Google::Protobuf::MessageExts::ClassMethods
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-functions-v2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.0
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
- autorequire:
9
8
  bindir: bin
10
9
  cert_chain: []
11
- date: 2024-12-10 00:00:00.000000000 Z
10
+ date: 2025-02-07 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: gapic-common
@@ -16,7 +15,7 @@ dependencies:
16
15
  requirements:
17
16
  - - ">="
18
17
  - !ruby/object:Gem::Version
19
- version: 0.24.0
18
+ version: 0.25.0
20
19
  - - "<"
21
20
  - !ruby/object:Gem::Version
22
21
  version: 2.a
@@ -26,7 +25,7 @@ dependencies:
26
25
  requirements:
27
26
  - - ">="
28
27
  - !ruby/object:Gem::Version
29
- version: 0.24.0
28
+ version: 0.25.0
30
29
  - - "<"
31
30
  - !ruby/object:Gem::Version
32
31
  version: 2.a
@@ -132,7 +131,6 @@ homepage: https://github.com/googleapis/google-cloud-ruby
132
131
  licenses:
133
132
  - Apache-2.0
134
133
  metadata: {}
135
- post_install_message:
136
134
  rdoc_options: []
137
135
  require_paths:
138
136
  - lib
@@ -140,15 +138,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
140
138
  requirements:
141
139
  - - ">="
142
140
  - !ruby/object:Gem::Version
143
- version: '2.7'
141
+ version: '3.0'
144
142
  required_rubygems_version: !ruby/object:Gem::Requirement
145
143
  requirements:
146
144
  - - ">="
147
145
  - !ruby/object:Gem::Version
148
146
  version: '0'
149
147
  requirements: []
150
- rubygems_version: 3.5.23
151
- signing_key:
148
+ rubygems_version: 3.6.3
152
149
  specification_version: 4
153
150
  summary: Manages lightweight user-provided functions executed in response to events.
154
151
  test_files: []