google-cloud-functions-v1 1.2.0 → 2.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: b16872c050248b2e587940af6977f18daf6c0d341aa5e3b0c340f86f1291fd5d
4
- data.tar.gz: a406884c0ca0d8babd54bb58e3ee7392fc28ac937aae6a7acd2598a259b88c74
3
+ metadata.gz: 7c6f37b93db835ba4a5a57b8b96ced070b5cbd5913e61e4e1a05bb7f8720adc2
4
+ data.tar.gz: 5c575a10fefa9b7bc741b696dba2d4b4fd4e67b20db309e4ad7429942dcc8dce
5
5
  SHA512:
6
- metadata.gz: 40b7810390487238c2b044fa43a32743dc4a5071dcf42366bac87eb365d38ede5f4c59290950c8b2e394ba4cdfdbd312c5c4df36b4fb371e8a86a62e1b9ce4e8
7
- data.tar.gz: f324b6d0f539396ddbafed4cca2140ada114968ed0c9521dddf9476122d20460157020dff5314883d2e8b35ec71345a95453a1695056be5fa32746d58483af39
6
+ metadata.gz: 418dc2ef178b12bd312e5f87b593c0f9892061ac7ed218acae2139458bf1c99e4a7efc4811f0467df723c9a396991b9101c62a9099666876745543bde82d741c
7
+ data.tar.gz: 9ab433594ac904a73db1e570a32e4e58b2bb3a8cab339bb3f2a44a2585c9558648f58e5f6ddf952f2178f67d1f62da1f41e35a6fe16df2b11de293449b37b6a8
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
@@ -1377,6 +1377,13 @@ module Google
1377
1377
  # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
1378
1378
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
1379
1379
  # * (`nil`) indicating no credentials
1380
+ #
1381
+ # Warning: If you accept a credential configuration (JSON file or Hash) from an
1382
+ # external source for authentication to Google Cloud, you must validate it before
1383
+ # providing it to a Google API client library. Providing an unvalidated credential
1384
+ # configuration to Google APIs can compromise the security of your systems and data.
1385
+ # For more information, refer to [Validate credential configurations from external
1386
+ # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials).
1380
1387
  # @return [::Object]
1381
1388
  # @!attribute [rw] scope
1382
1389
  # The OAuth scopes
@@ -632,6 +632,13 @@ module Google
632
632
  # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
633
633
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
634
634
  # * (`nil`) indicating no credentials
635
+ #
636
+ # Warning: If you accept a credential configuration (JSON file or Hash) from an
637
+ # external source for authentication to Google Cloud, you must validate it before
638
+ # providing it to a Google API client library. Providing an unvalidated credential
639
+ # configuration to Google APIs can compromise the security of your systems and data.
640
+ # For more information, refer to [Validate credential configurations from external
641
+ # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials).
635
642
  # @return [::Object]
636
643
  # @!attribute [rw] scope
637
644
  # The OAuth scopes
@@ -280,10 +280,10 @@ module Google
280
280
  # this is a continuation of a prior `ListFunctions` call, and that the
281
281
  # system should return the next page of data.
282
282
  # @yield [result, operation] Access the result along with the TransportOperation object
283
- # @yieldparam result [::Google::Cloud::Functions::V1::ListFunctionsResponse]
283
+ # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Functions::V1::CloudFunction>]
284
284
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
285
285
  #
286
- # @return [::Google::Cloud::Functions::V1::ListFunctionsResponse]
286
+ # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Functions::V1::CloudFunction>]
287
287
  #
288
288
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
289
289
  #
@@ -335,7 +335,9 @@ module Google
335
335
  retry_policy: @config.retry_policy
336
336
 
337
337
  @cloud_functions_service_stub.list_functions request, options do |result, operation|
338
+ result = ::Gapic::Rest::PagedEnumerable.new @cloud_functions_service_stub, :list_functions, "functions", request, result, options
338
339
  yield result, operation if block_given?
340
+ throw :response, result
339
341
  end
340
342
  rescue ::Gapic::Rest::Error => e
341
343
  raise ::Google::Cloud::Error.from_error(e)
@@ -1290,6 +1292,13 @@ module Google
1290
1292
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
1291
1293
  # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
1292
1294
  # * (`nil`) indicating no credentials
1295
+ #
1296
+ # Warning: If you accept a credential configuration (JSON file or Hash) from an
1297
+ # external source for authentication to Google Cloud, you must validate it before
1298
+ # providing it to a Google API client library. Providing an unvalidated credential
1299
+ # configuration to Google APIs can compromise the security of your systems and data.
1300
+ # For more information, refer to [Validate credential configurations from external
1301
+ # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials).
1293
1302
  # @return [::Object]
1294
1303
  # @!attribute [rw] scope
1295
1304
  # 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 V1
24
- VERSION = "1.2.0"
24
+ VERSION = "2.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
@@ -34,11 +34,15 @@ module Google
34
34
  # @return [::String]
35
35
  # The Google Cloud Storage URL, starting with `gs://`, pointing to the zip
36
36
  # archive which contains the function.
37
+ #
38
+ # Note: The following fields are mutually exclusive: `source_archive_url`, `source_repository`, `source_upload_url`. If a field in that set is populated, all other fields in the set will automatically be cleared.
37
39
  # @!attribute [rw] source_repository
38
40
  # @return [::Google::Cloud::Functions::V1::SourceRepository]
39
41
  # **Beta Feature**
40
42
  #
41
43
  # The source repository where a function is hosted.
44
+ #
45
+ # Note: The following fields are mutually exclusive: `source_repository`, `source_archive_url`, `source_upload_url`. If a field in that set is populated, all other fields in the set will automatically be cleared.
42
46
  # @!attribute [rw] source_upload_url
43
47
  # @return [::String]
44
48
  # The Google Cloud Storage signed URL used for source uploading, generated
@@ -47,12 +51,18 @@ module Google
47
51
  # The signature is validated on write methods (Create, Update)
48
52
  # The signature is stripped from the Function object on read methods (Get,
49
53
  # List)
54
+ #
55
+ # Note: The following fields are mutually exclusive: `source_upload_url`, `source_archive_url`, `source_repository`. If a field in that set is populated, all other fields in the set will automatically be cleared.
50
56
  # @!attribute [rw] https_trigger
51
57
  # @return [::Google::Cloud::Functions::V1::HttpsTrigger]
52
58
  # An HTTPS endpoint type of source that can be triggered via URL.
59
+ #
60
+ # Note: The following fields are mutually exclusive: `https_trigger`, `event_trigger`. If a field in that set is populated, all other fields in the set will automatically be cleared.
53
61
  # @!attribute [rw] event_trigger
54
62
  # @return [::Google::Cloud::Functions::V1::EventTrigger]
55
63
  # A source that fires events in response to a condition in another service.
64
+ #
65
+ # Note: The following fields are mutually exclusive: `event_trigger`, `https_trigger`. If a field in that set is populated, all other fields in the set will automatically be cleared.
56
66
  # @!attribute [r] status
57
67
  # @return [::Google::Cloud::Functions::V1::CloudFunctionStatus]
58
68
  # Output only. Status of the function deployment.
@@ -226,8 +236,10 @@ module Google
226
236
  # unspecified or set to `ARTIFACT_REGISTRY`.
227
237
  # @!attribute [rw] automatic_update_policy
228
238
  # @return [::Google::Cloud::Functions::V1::CloudFunction::AutomaticUpdatePolicy]
239
+ # 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.
229
240
  # @!attribute [rw] on_deploy_update_policy
230
241
  # @return [::Google::Cloud::Functions::V1::CloudFunction::OnDeployUpdatePolicy]
242
+ # 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.
231
243
  # @!attribute [rw] build_service_account
232
244
  # @return [::String]
233
245
  # A service account the user provides for use with Cloud Build. The format 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-v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 2.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
@@ -133,7 +132,6 @@ homepage: https://github.com/googleapis/google-cloud-ruby
133
132
  licenses:
134
133
  - Apache-2.0
135
134
  metadata: {}
136
- post_install_message:
137
135
  rdoc_options: []
138
136
  require_paths:
139
137
  - lib
@@ -141,15 +139,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
141
139
  requirements:
142
140
  - - ">="
143
141
  - !ruby/object:Gem::Version
144
- version: '2.7'
142
+ version: '3.0'
145
143
  required_rubygems_version: !ruby/object:Gem::Requirement
146
144
  requirements:
147
145
  - - ">="
148
146
  - !ruby/object:Gem::Version
149
147
  version: '0'
150
148
  requirements: []
151
- rubygems_version: 3.5.23
152
- signing_key:
149
+ rubygems_version: 3.6.3
153
150
  specification_version: 4
154
151
  summary: Manages lightweight user-provided functions executed in response to events.
155
152
  test_files: []