google-apis-cloudfunctions_v2beta 0.54.0 → 0.56.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 +4 -4
- data/CHANGELOG.md +8 -0
- data/lib/google/apis/cloudfunctions_v2beta/classes.rb +68 -2
- data/lib/google/apis/cloudfunctions_v2beta/gem_version.rb +2 -2
- data/lib/google/apis/cloudfunctions_v2beta/representations.rb +30 -0
- data/lib/google/apis/cloudfunctions_v2beta/service.rb +44 -7
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 3d181db00ad8d89408e4c8e35ccf55e57de5d35bfa6067be3e14e5908e9a1871
|
|
4
|
+
data.tar.gz: 514849dca13ee50337e059005f401f585614b01435af2c917c937b82250371d7
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ed1f3bc3319268d44c4a71a29f0500d8731f53ecc2f31d695223a53e171cdaf7405078100ddcfe9c875e8850d144d34538cb1926d02e00e1a3a1b0192d35bf87
|
|
7
|
+
data.tar.gz: ad0976a3574acfc42288e8d50e4da1b7d1f5896d134dbf70ddb5b322d99af0d19900c33e6882d8b1ca7a2e7fe41ac0a385238c582b0fe9a2976654de45a3d0c3
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# Release history for google-apis-cloudfunctions_v2beta
|
|
2
2
|
|
|
3
|
+
### v0.56.0 (2025-12-14)
|
|
4
|
+
|
|
5
|
+
* Regenerated from discovery document revision 20251204
|
|
6
|
+
|
|
7
|
+
### v0.55.0 (2025-11-02)
|
|
8
|
+
|
|
9
|
+
* Regenerated from discovery document revision 20251023
|
|
10
|
+
|
|
3
11
|
### v0.54.0 (2025-10-05)
|
|
4
12
|
|
|
5
13
|
* Regenerated from discovery document revision 20250929
|
|
@@ -344,6 +344,19 @@ module Google
|
|
|
344
344
|
end
|
|
345
345
|
end
|
|
346
346
|
|
|
347
|
+
# Request for the `CommitFunctionUpgradeAsGen2` method.
|
|
348
|
+
class CommitFunctionUpgradeAsGen2Request
|
|
349
|
+
include Google::Apis::Core::Hashable
|
|
350
|
+
|
|
351
|
+
def initialize(**args)
|
|
352
|
+
update!(**args)
|
|
353
|
+
end
|
|
354
|
+
|
|
355
|
+
# Update properties of this object
|
|
356
|
+
def update!(**args)
|
|
357
|
+
end
|
|
358
|
+
end
|
|
359
|
+
|
|
347
360
|
# Request for the `CommitFunctionUpgrade` method.
|
|
348
361
|
class CommitFunctionUpgradeRequest
|
|
349
362
|
include Google::Apis::Core::Hashable
|
|
@@ -411,6 +424,44 @@ module Google
|
|
|
411
424
|
end
|
|
412
425
|
end
|
|
413
426
|
|
|
427
|
+
# The Direct VPC network interface. This is mutually exclusive with VPC
|
|
428
|
+
# Connector.
|
|
429
|
+
class DirectVpcNetworkInterface
|
|
430
|
+
include Google::Apis::Core::Hashable
|
|
431
|
+
|
|
432
|
+
# Optional. The name of the VPC network to which the function will be connected.
|
|
433
|
+
# Specify either a VPC network or a subnet, or both. If you specify only a
|
|
434
|
+
# network, the subnet uses the same name as the network.
|
|
435
|
+
# Corresponds to the JSON property `network`
|
|
436
|
+
# @return [String]
|
|
437
|
+
attr_accessor :network
|
|
438
|
+
|
|
439
|
+
# Optional. The name of the VPC subnetwork that the Cloud Function resource will
|
|
440
|
+
# get IPs from. Specify either a VPC network or a subnet, or both. If both
|
|
441
|
+
# network and subnetwork are specified, the given VPC subnetwork must belong to
|
|
442
|
+
# the given VPC network. If subnetwork is not specified, the subnetwork with the
|
|
443
|
+
# same name with the network will be used.
|
|
444
|
+
# Corresponds to the JSON property `subnetwork`
|
|
445
|
+
# @return [String]
|
|
446
|
+
attr_accessor :subnetwork
|
|
447
|
+
|
|
448
|
+
# Optional. Network tags applied to this Cloud Function resource.
|
|
449
|
+
# Corresponds to the JSON property `tags`
|
|
450
|
+
# @return [Array<String>]
|
|
451
|
+
attr_accessor :tags
|
|
452
|
+
|
|
453
|
+
def initialize(**args)
|
|
454
|
+
update!(**args)
|
|
455
|
+
end
|
|
456
|
+
|
|
457
|
+
# Update properties of this object
|
|
458
|
+
def update!(**args)
|
|
459
|
+
@network = args[:network] if args.key?(:network)
|
|
460
|
+
@subnetwork = args[:subnetwork] if args.key?(:subnetwork)
|
|
461
|
+
@tags = args[:tags] if args.key?(:tags)
|
|
462
|
+
end
|
|
463
|
+
end
|
|
464
|
+
|
|
414
465
|
# Filters events based on exact matches on the CloudEvents attributes.
|
|
415
466
|
class EventFilter
|
|
416
467
|
include Google::Apis::Core::Hashable
|
|
@@ -1070,8 +1121,9 @@ module Google
|
|
|
1070
1121
|
attr_accessor :operations
|
|
1071
1122
|
|
|
1072
1123
|
# 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
|
|
1124
|
+
# ListOperationsRequest.return_partial_success` and reads across collections.
|
|
1125
|
+
# For example, when attempting to list all resources across all supported
|
|
1126
|
+
# locations.
|
|
1075
1127
|
# Corresponds to the JSON property `unreachable`
|
|
1076
1128
|
# @return [Array<String>]
|
|
1077
1129
|
attr_accessor :unreachable
|
|
@@ -1705,6 +1757,18 @@ module Google
|
|
|
1705
1757
|
# @return [String]
|
|
1706
1758
|
attr_accessor :binary_authorization_policy
|
|
1707
1759
|
|
|
1760
|
+
# Optional. Egress settings for direct VPC. If not provided, it defaults to
|
|
1761
|
+
# VPC_EGRESS_PRIVATE_RANGES_ONLY.
|
|
1762
|
+
# Corresponds to the JSON property `directVpcEgress`
|
|
1763
|
+
# @return [String]
|
|
1764
|
+
attr_accessor :direct_vpc_egress
|
|
1765
|
+
|
|
1766
|
+
# Optional. The Direct VPC network interface for the Cloud Function. Currently
|
|
1767
|
+
# only a single Direct VPC is supported.
|
|
1768
|
+
# Corresponds to the JSON property `directVpcNetworkInterface`
|
|
1769
|
+
# @return [Array<Google::Apis::CloudfunctionsV2beta::DirectVpcNetworkInterface>]
|
|
1770
|
+
attr_accessor :direct_vpc_network_interface
|
|
1771
|
+
|
|
1708
1772
|
# Environment variables that shall be available during function execution.
|
|
1709
1773
|
# Corresponds to the JSON property `environmentVariables`
|
|
1710
1774
|
# @return [Hash<String,String>]
|
|
@@ -1812,6 +1876,8 @@ module Google
|
|
|
1812
1876
|
@available_cpu = args[:available_cpu] if args.key?(:available_cpu)
|
|
1813
1877
|
@available_memory = args[:available_memory] if args.key?(:available_memory)
|
|
1814
1878
|
@binary_authorization_policy = args[:binary_authorization_policy] if args.key?(:binary_authorization_policy)
|
|
1879
|
+
@direct_vpc_egress = args[:direct_vpc_egress] if args.key?(:direct_vpc_egress)
|
|
1880
|
+
@direct_vpc_network_interface = args[:direct_vpc_network_interface] if args.key?(:direct_vpc_network_interface)
|
|
1815
1881
|
@environment_variables = args[:environment_variables] if args.key?(:environment_variables)
|
|
1816
1882
|
@ingress_settings = args[:ingress_settings] if args.key?(:ingress_settings)
|
|
1817
1883
|
@max_instance_count = args[:max_instance_count] if args.key?(:max_instance_count)
|
|
@@ -16,13 +16,13 @@ module Google
|
|
|
16
16
|
module Apis
|
|
17
17
|
module CloudfunctionsV2beta
|
|
18
18
|
# Version of the google-apis-cloudfunctions_v2beta gem
|
|
19
|
-
GEM_VERSION = "0.
|
|
19
|
+
GEM_VERSION = "0.56.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 = "20251204"
|
|
26
26
|
end
|
|
27
27
|
end
|
|
28
28
|
end
|
|
@@ -58,6 +58,12 @@ module Google
|
|
|
58
58
|
include Google::Apis::Core::JsonObjectSupport
|
|
59
59
|
end
|
|
60
60
|
|
|
61
|
+
class CommitFunctionUpgradeAsGen2Request
|
|
62
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
63
|
+
|
|
64
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
65
|
+
end
|
|
66
|
+
|
|
61
67
|
class CommitFunctionUpgradeRequest
|
|
62
68
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
63
69
|
|
|
@@ -76,6 +82,12 @@ module Google
|
|
|
76
82
|
include Google::Apis::Core::JsonObjectSupport
|
|
77
83
|
end
|
|
78
84
|
|
|
85
|
+
class DirectVpcNetworkInterface
|
|
86
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
87
|
+
|
|
88
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
89
|
+
end
|
|
90
|
+
|
|
79
91
|
class EventFilter
|
|
80
92
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
81
93
|
|
|
@@ -366,6 +378,12 @@ module Google
|
|
|
366
378
|
end
|
|
367
379
|
end
|
|
368
380
|
|
|
381
|
+
class CommitFunctionUpgradeAsGen2Request
|
|
382
|
+
# @private
|
|
383
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
384
|
+
end
|
|
385
|
+
end
|
|
386
|
+
|
|
369
387
|
class CommitFunctionUpgradeRequest
|
|
370
388
|
# @private
|
|
371
389
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
@@ -387,6 +405,15 @@ module Google
|
|
|
387
405
|
end
|
|
388
406
|
end
|
|
389
407
|
|
|
408
|
+
class DirectVpcNetworkInterface
|
|
409
|
+
# @private
|
|
410
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
411
|
+
property :network, as: 'network'
|
|
412
|
+
property :subnetwork, as: 'subnetwork'
|
|
413
|
+
collection :tags, as: 'tags'
|
|
414
|
+
end
|
|
415
|
+
end
|
|
416
|
+
|
|
390
417
|
class EventFilter
|
|
391
418
|
# @private
|
|
392
419
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
@@ -696,6 +723,9 @@ module Google
|
|
|
696
723
|
property :available_cpu, as: 'availableCpu'
|
|
697
724
|
property :available_memory, as: 'availableMemory'
|
|
698
725
|
property :binary_authorization_policy, as: 'binaryAuthorizationPolicy'
|
|
726
|
+
property :direct_vpc_egress, as: 'directVpcEgress'
|
|
727
|
+
collection :direct_vpc_network_interface, as: 'directVpcNetworkInterface', class: Google::Apis::CloudfunctionsV2beta::DirectVpcNetworkInterface, decorator: Google::Apis::CloudfunctionsV2beta::DirectVpcNetworkInterface::Representation
|
|
728
|
+
|
|
699
729
|
hash :environment_variables, as: 'environmentVariables'
|
|
700
730
|
property :ingress_settings, as: 'ingressSettings'
|
|
701
731
|
property :max_instance_count, as: 'maxInstanceCount'
|
|
@@ -55,8 +55,8 @@ module Google
|
|
|
55
55
|
# @param [String] name
|
|
56
56
|
# The resource that owns the locations collection, if applicable.
|
|
57
57
|
# @param [Array<String>, String] extra_location_types
|
|
58
|
-
# Optional.
|
|
59
|
-
#
|
|
58
|
+
# Optional. Do not use this field. It is unsupported and is ignored unless
|
|
59
|
+
# explicitly documented otherwise. This is primarily for internal usage.
|
|
60
60
|
# @param [String] filter
|
|
61
61
|
# A filter to narrow down results to a preferred subset. The filtering language
|
|
62
62
|
# accepts strings like `"displayName=tokyo"`, and is documented in more detail
|
|
@@ -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::CloudfunctionsV2beta::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::CloudfunctionsV2beta::Operation] parsed result object
|
|
188
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
189
|
+
#
|
|
190
|
+
# @return [Google::Apis::CloudfunctionsV2beta::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, 'v2beta/{+name}:commitFunctionUpgradeAsGen2', options)
|
|
197
|
+
command.request_representation = Google::Apis::CloudfunctionsV2beta::CommitFunctionUpgradeAsGen2Request::Representation
|
|
198
|
+
command.request_object = commit_function_upgrade_as_gen2_request_object
|
|
199
|
+
command.response_representation = Google::Apis::CloudfunctionsV2beta::Operation::Representation
|
|
200
|
+
command.response_class = Google::Apis::CloudfunctionsV2beta::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_v2beta
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.56.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_v2beta/CHANGELOG.md
|
|
60
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-cloudfunctions_v2beta/v0.
|
|
60
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-cloudfunctions_v2beta/v0.56.0
|
|
61
61
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-cloudfunctions_v2beta
|
|
62
62
|
rdoc_options: []
|
|
63
63
|
require_paths:
|