google-apis-cloudfunctions_v2 0.56.0 → 0.58.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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: b77d16f7448559f5e543c4ac1d57f6b9833d9878e1a2bd54b8de57a1c5366bc1
|
|
4
|
+
data.tar.gz: '0428835a7096c6b7bc88980c4f0eb40c3f11716b23aa51a2d79c8714eef18271'
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 595ee62eeb27173ed37c5361d7bed2184b890c91f50c5d022645be94f8f85c3b0546c303fd1c3a610445f8fa9e97145294d157d86465f32325313c7f7aefeeac
|
|
7
|
+
data.tar.gz: 9b4f62044e61a2df104ae8b09d7c5acf4450c7ef7f4e6bb06fcadc82ae5f1bd178b18e1d38efa5cd7957fb2412876bdc09e908a1038f799b05a56dba31ee6dbc
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# Release history for google-apis-cloudfunctions_v2
|
|
2
2
|
|
|
3
|
+
### v0.58.0 (2026-01-11)
|
|
4
|
+
|
|
5
|
+
* Regenerated from discovery document revision 20260101
|
|
6
|
+
|
|
7
|
+
### v0.57.0 (2025-12-14)
|
|
8
|
+
|
|
9
|
+
* Regenerated from discovery document revision 20251204
|
|
10
|
+
|
|
3
11
|
### v0.56.0 (2025-11-02)
|
|
4
12
|
|
|
5
13
|
* Regenerated from discovery document revision 20251023
|
|
@@ -344,6 +344,44 @@ module Google
|
|
|
344
344
|
end
|
|
345
345
|
end
|
|
346
346
|
|
|
347
|
+
# Contains overrides related to the function's build configuration.
|
|
348
|
+
class BuildConfigOverrides
|
|
349
|
+
include Google::Apis::Core::Hashable
|
|
350
|
+
|
|
351
|
+
# Optional. Specifies the desired runtime for the new Cloud Run function. (e.g.,
|
|
352
|
+
# `"nodejs20"`, `"python312"`). Constraints: 1. This field CANNOT be used to
|
|
353
|
+
# change the runtime language (e.g., from `NODEJS` to `PYTHON`). The backend
|
|
354
|
+
# will enforce this. 2. This field can ONLY be used to upgrade the runtime
|
|
355
|
+
# version (e.g., `nodejs18` to `nodejs20`). Downgrading the version is not
|
|
356
|
+
# permitted. The backend will validate the version change. If provided and valid,
|
|
357
|
+
# this overrides the runtime of the Gen1 function.
|
|
358
|
+
# Corresponds to the JSON property `runtime`
|
|
359
|
+
# @return [String]
|
|
360
|
+
attr_accessor :runtime
|
|
361
|
+
|
|
362
|
+
def initialize(**args)
|
|
363
|
+
update!(**args)
|
|
364
|
+
end
|
|
365
|
+
|
|
366
|
+
# Update properties of this object
|
|
367
|
+
def update!(**args)
|
|
368
|
+
@runtime = args[:runtime] if args.key?(:runtime)
|
|
369
|
+
end
|
|
370
|
+
end
|
|
371
|
+
|
|
372
|
+
# Request for the `CommitFunctionUpgradeAsGen2` method.
|
|
373
|
+
class CommitFunctionUpgradeAsGen2Request
|
|
374
|
+
include Google::Apis::Core::Hashable
|
|
375
|
+
|
|
376
|
+
def initialize(**args)
|
|
377
|
+
update!(**args)
|
|
378
|
+
end
|
|
379
|
+
|
|
380
|
+
# Update properties of this object
|
|
381
|
+
def update!(**args)
|
|
382
|
+
end
|
|
383
|
+
end
|
|
384
|
+
|
|
347
385
|
# Request for the `CommitFunctionUpgrade` method.
|
|
348
386
|
class CommitFunctionUpgradeRequest
|
|
349
387
|
include Google::Apis::Core::Hashable
|
|
@@ -1070,8 +1108,9 @@ module Google
|
|
|
1070
1108
|
attr_accessor :operations
|
|
1071
1109
|
|
|
1072
1110
|
# Unordered list. Unreachable resources. Populated when the request sets `
|
|
1073
|
-
# ListOperationsRequest.return_partial_success` and reads across collections
|
|
1074
|
-
# when attempting to list all resources across all supported
|
|
1111
|
+
# ListOperationsRequest.return_partial_success` and reads across collections.
|
|
1112
|
+
# For example, when attempting to list all resources across all supported
|
|
1113
|
+
# locations.
|
|
1075
1114
|
# Corresponds to the JSON property `unreachable`
|
|
1076
1115
|
# @return [Array<String>]
|
|
1077
1116
|
attr_accessor :unreachable
|
|
@@ -1830,6 +1869,27 @@ module Google
|
|
|
1830
1869
|
end
|
|
1831
1870
|
end
|
|
1832
1871
|
|
|
1872
|
+
# Contains overrides related to the function's service configuration.
|
|
1873
|
+
class ServiceConfigOverrides
|
|
1874
|
+
include Google::Apis::Core::Hashable
|
|
1875
|
+
|
|
1876
|
+
# Optional. Specifies the maximum number of instances for the new Cloud Run
|
|
1877
|
+
# function. If provided, this overrides the max_instance_count setting of the
|
|
1878
|
+
# Gen1 function.
|
|
1879
|
+
# Corresponds to the JSON property `maxInstanceCount`
|
|
1880
|
+
# @return [Fixnum]
|
|
1881
|
+
attr_accessor :max_instance_count
|
|
1882
|
+
|
|
1883
|
+
def initialize(**args)
|
|
1884
|
+
update!(**args)
|
|
1885
|
+
end
|
|
1886
|
+
|
|
1887
|
+
# Update properties of this object
|
|
1888
|
+
def update!(**args)
|
|
1889
|
+
@max_instance_count = args[:max_instance_count] if args.key?(:max_instance_count)
|
|
1890
|
+
end
|
|
1891
|
+
end
|
|
1892
|
+
|
|
1833
1893
|
# Request message for `SetIamPolicy` method.
|
|
1834
1894
|
class SetIamPolicyRequest
|
|
1835
1895
|
include Google::Apis::Core::Hashable
|
|
@@ -1887,6 +1947,16 @@ module Google
|
|
|
1887
1947
|
class SetupFunctionUpgradeConfigRequest
|
|
1888
1948
|
include Google::Apis::Core::Hashable
|
|
1889
1949
|
|
|
1950
|
+
# Contains overrides related to the function's build configuration.
|
|
1951
|
+
# Corresponds to the JSON property `buildConfigOverrides`
|
|
1952
|
+
# @return [Google::Apis::CloudfunctionsV2::BuildConfigOverrides]
|
|
1953
|
+
attr_accessor :build_config_overrides
|
|
1954
|
+
|
|
1955
|
+
# Contains overrides related to the function's service configuration.
|
|
1956
|
+
# Corresponds to the JSON property `serviceConfigOverrides`
|
|
1957
|
+
# @return [Google::Apis::CloudfunctionsV2::ServiceConfigOverrides]
|
|
1958
|
+
attr_accessor :service_config_overrides
|
|
1959
|
+
|
|
1890
1960
|
# Optional. The trigger's service account. The service account must have
|
|
1891
1961
|
# permission to invoke Cloud Run services, the permission is `run.routes.invoke`.
|
|
1892
1962
|
# If empty, defaults to the Compute Engine default service account: ``
|
|
@@ -1901,6 +1971,8 @@ module Google
|
|
|
1901
1971
|
|
|
1902
1972
|
# Update properties of this object
|
|
1903
1973
|
def update!(**args)
|
|
1974
|
+
@build_config_overrides = args[:build_config_overrides] if args.key?(:build_config_overrides)
|
|
1975
|
+
@service_config_overrides = args[:service_config_overrides] if args.key?(:service_config_overrides)
|
|
1904
1976
|
@trigger_service_account = args[:trigger_service_account] if args.key?(:trigger_service_account)
|
|
1905
1977
|
end
|
|
1906
1978
|
end
|
|
@@ -16,13 +16,13 @@ module Google
|
|
|
16
16
|
module Apis
|
|
17
17
|
module CloudfunctionsV2
|
|
18
18
|
# Version of the google-apis-cloudfunctions_v2 gem
|
|
19
|
-
GEM_VERSION = "0.
|
|
19
|
+
GEM_VERSION = "0.58.0"
|
|
20
20
|
|
|
21
21
|
# Version of the code generator used to generate this client
|
|
22
22
|
GENERATOR_VERSION = "0.18.0"
|
|
23
23
|
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
|
25
|
-
REVISION = "
|
|
25
|
+
REVISION = "20260101"
|
|
26
26
|
end
|
|
27
27
|
end
|
|
28
28
|
end
|
|
@@ -58,6 +58,18 @@ module Google
|
|
|
58
58
|
include Google::Apis::Core::JsonObjectSupport
|
|
59
59
|
end
|
|
60
60
|
|
|
61
|
+
class BuildConfigOverrides
|
|
62
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
63
|
+
|
|
64
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
65
|
+
end
|
|
66
|
+
|
|
67
|
+
class CommitFunctionUpgradeAsGen2Request
|
|
68
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
69
|
+
|
|
70
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
71
|
+
end
|
|
72
|
+
|
|
61
73
|
class CommitFunctionUpgradeRequest
|
|
62
74
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
63
75
|
|
|
@@ -250,6 +262,12 @@ module Google
|
|
|
250
262
|
include Google::Apis::Core::JsonObjectSupport
|
|
251
263
|
end
|
|
252
264
|
|
|
265
|
+
class ServiceConfigOverrides
|
|
266
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
267
|
+
|
|
268
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
269
|
+
end
|
|
270
|
+
|
|
253
271
|
class SetIamPolicyRequest
|
|
254
272
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
255
273
|
|
|
@@ -366,6 +384,19 @@ module Google
|
|
|
366
384
|
end
|
|
367
385
|
end
|
|
368
386
|
|
|
387
|
+
class BuildConfigOverrides
|
|
388
|
+
# @private
|
|
389
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
390
|
+
property :runtime, as: 'runtime'
|
|
391
|
+
end
|
|
392
|
+
end
|
|
393
|
+
|
|
394
|
+
class CommitFunctionUpgradeAsGen2Request
|
|
395
|
+
# @private
|
|
396
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
397
|
+
end
|
|
398
|
+
end
|
|
399
|
+
|
|
369
400
|
class CommitFunctionUpgradeRequest
|
|
370
401
|
# @private
|
|
371
402
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
@@ -716,6 +747,13 @@ module Google
|
|
|
716
747
|
end
|
|
717
748
|
end
|
|
718
749
|
|
|
750
|
+
class ServiceConfigOverrides
|
|
751
|
+
# @private
|
|
752
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
753
|
+
property :max_instance_count, as: 'maxInstanceCount'
|
|
754
|
+
end
|
|
755
|
+
end
|
|
756
|
+
|
|
719
757
|
class SetIamPolicyRequest
|
|
720
758
|
# @private
|
|
721
759
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
@@ -728,6 +766,10 @@ module Google
|
|
|
728
766
|
class SetupFunctionUpgradeConfigRequest
|
|
729
767
|
# @private
|
|
730
768
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
769
|
+
property :build_config_overrides, as: 'buildConfigOverrides', class: Google::Apis::CloudfunctionsV2::BuildConfigOverrides, decorator: Google::Apis::CloudfunctionsV2::BuildConfigOverrides::Representation
|
|
770
|
+
|
|
771
|
+
property :service_config_overrides, as: 'serviceConfigOverrides', class: Google::Apis::CloudfunctionsV2::ServiceConfigOverrides, decorator: Google::Apis::CloudfunctionsV2::ServiceConfigOverrides::Representation
|
|
772
|
+
|
|
731
773
|
property :trigger_service_account, as: 'triggerServiceAccount'
|
|
732
774
|
end
|
|
733
775
|
end
|
|
@@ -168,6 +168,42 @@ module Google
|
|
|
168
168
|
execute_or_queue_command(command, &block)
|
|
169
169
|
end
|
|
170
170
|
|
|
171
|
+
# Commits a function upgrade from GCF Gen1 to GCF Gen2. This action deletes the
|
|
172
|
+
# Gen1 function, leaving the Gen2 function active and manageable by the GCFv2
|
|
173
|
+
# API.
|
|
174
|
+
# @param [String] name
|
|
175
|
+
# Required. The name of the function for which upgrade should be committed to
|
|
176
|
+
# Gen2.
|
|
177
|
+
# @param [Google::Apis::CloudfunctionsV2::CommitFunctionUpgradeAsGen2Request] commit_function_upgrade_as_gen2_request_object
|
|
178
|
+
# @param [String] fields
|
|
179
|
+
# Selector specifying which fields to include in a partial response.
|
|
180
|
+
# @param [String] quota_user
|
|
181
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
182
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
183
|
+
# @param [Google::Apis::RequestOptions] options
|
|
184
|
+
# Request-specific options
|
|
185
|
+
#
|
|
186
|
+
# @yield [result, err] Result & error if block supplied
|
|
187
|
+
# @yieldparam result [Google::Apis::CloudfunctionsV2::Operation] parsed result object
|
|
188
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
189
|
+
#
|
|
190
|
+
# @return [Google::Apis::CloudfunctionsV2::Operation]
|
|
191
|
+
#
|
|
192
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
193
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
194
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
195
|
+
def commit_function_upgrade_as_gen2(name, commit_function_upgrade_as_gen2_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
196
|
+
command = make_simple_command(:post, 'v2/{+name}:commitFunctionUpgradeAsGen2', options)
|
|
197
|
+
command.request_representation = Google::Apis::CloudfunctionsV2::CommitFunctionUpgradeAsGen2Request::Representation
|
|
198
|
+
command.request_object = commit_function_upgrade_as_gen2_request_object
|
|
199
|
+
command.response_representation = Google::Apis::CloudfunctionsV2::Operation::Representation
|
|
200
|
+
command.response_class = Google::Apis::CloudfunctionsV2::Operation
|
|
201
|
+
command.params['name'] = name unless name.nil?
|
|
202
|
+
command.query['fields'] = fields unless fields.nil?
|
|
203
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
204
|
+
execute_or_queue_command(command, &block)
|
|
205
|
+
end
|
|
206
|
+
|
|
171
207
|
# Creates a new function. If a function with the given name already exists in
|
|
172
208
|
# the specified project, the long running operation will return `ALREADY_EXISTS`
|
|
173
209
|
# error.
|
|
@@ -761,11 +797,12 @@ module Google
|
|
|
761
797
|
# The standard list page token.
|
|
762
798
|
# @param [Boolean] return_partial_success
|
|
763
799
|
# When set to `true`, operations that are reachable are returned as normal, and
|
|
764
|
-
# those that are unreachable are returned in the
|
|
765
|
-
# unreachable
|
|
766
|
-
#
|
|
767
|
-
# by default
|
|
768
|
-
# explicitly documented otherwise in service or product specific
|
|
800
|
+
# those that are unreachable are returned in the ListOperationsResponse.
|
|
801
|
+
# unreachable field. This can only be `true` when reading across collections.
|
|
802
|
+
# For example, when `parent` is set to `"projects/example/locations/-"`. This
|
|
803
|
+
# field is not supported by default and will result in an `UNIMPLEMENTED` error
|
|
804
|
+
# if set unless explicitly documented otherwise in service or product specific
|
|
805
|
+
# documentation.
|
|
769
806
|
# @param [String] fields
|
|
770
807
|
# Selector specifying which fields to include in a partial response.
|
|
771
808
|
# @param [String] quota_user
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: google-apis-cloudfunctions_v2
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.58.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Google LLC
|
|
@@ -57,7 +57,7 @@ licenses:
|
|
|
57
57
|
metadata:
|
|
58
58
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
|
59
59
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-cloudfunctions_v2/CHANGELOG.md
|
|
60
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-cloudfunctions_v2/v0.
|
|
60
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-cloudfunctions_v2/v0.58.0
|
|
61
61
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-cloudfunctions_v2
|
|
62
62
|
rdoc_options: []
|
|
63
63
|
require_paths:
|