Skip to content

Commit 670761c

Browse files
feat: Automated regeneration of cloudfunctions v2alpha client (#24863)
Auto-created at 2025-11-02 10:53:19 +0000 using the toys pull request generator.
1 parent 5f4dd71 commit 670761c

File tree

6 files changed

+86
-4
lines changed

6 files changed

+86
-4
lines changed

api_names_out.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76610,6 +76610,11 @@
7661076610
"/cloudfunctions:v2alpha/Date/month": month
7661176611
"/cloudfunctions:v2alpha/Date/year": year
7661276612
"/cloudfunctions:v2alpha/DetachFunctionRequest": detach_function_request
76613+
"/cloudfunctions:v2alpha/DirectVpcNetworkInterface": direct_vpc_network_interface
76614+
"/cloudfunctions:v2alpha/DirectVpcNetworkInterface/network": network
76615+
"/cloudfunctions:v2alpha/DirectVpcNetworkInterface/subnetwork": subnetwork
76616+
"/cloudfunctions:v2alpha/DirectVpcNetworkInterface/tags": tags
76617+
"/cloudfunctions:v2alpha/DirectVpcNetworkInterface/tags/tag": tag
7661376618
"/cloudfunctions:v2alpha/EventFilter": event_filter
7661476619
"/cloudfunctions:v2alpha/EventFilter/attribute": attribute
7661576620
"/cloudfunctions:v2alpha/EventFilter/operator": operator
@@ -76842,6 +76847,9 @@
7684276847
"/cloudfunctions:v2alpha/ServiceConfig/availableCpu": available_cpu
7684376848
"/cloudfunctions:v2alpha/ServiceConfig/availableMemory": available_memory
7684476849
"/cloudfunctions:v2alpha/ServiceConfig/binaryAuthorizationPolicy": binary_authorization_policy
76850+
"/cloudfunctions:v2alpha/ServiceConfig/directVpcEgress": direct_vpc_egress
76851+
"/cloudfunctions:v2alpha/ServiceConfig/directVpcNetworkInterface": direct_vpc_network_interface
76852+
"/cloudfunctions:v2alpha/ServiceConfig/directVpcNetworkInterface/direct_vpc_network_interface": direct_vpc_network_interface
7684576853
"/cloudfunctions:v2alpha/ServiceConfig/environmentVariables": environment_variables
7684676854
"/cloudfunctions:v2alpha/ServiceConfig/environmentVariables/environment_variable": environment_variable
7684776855
"/cloudfunctions:v2alpha/ServiceConfig/ingressSettings": ingress_settings

generated/google-apis-cloudfunctions_v2alpha/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Release history for google-apis-cloudfunctions_v2alpha
22

3+
### v0.57.0 (2025-11-02)
4+
5+
* Regenerated from discovery document revision 20251023
6+
37
### v0.56.0 (2025-10-05)
48

59
* Regenerated from discovery document revision 20250929

generated/google-apis-cloudfunctions_v2alpha/lib/google/apis/cloudfunctions_v2alpha/classes.rb

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -411,6 +411,44 @@ def update!(**args)
411411
end
412412
end
413413

414+
# The Direct VPC network interface. This is mutually exclusive with VPC
415+
# Connector.
416+
class DirectVpcNetworkInterface
417+
include Google::Apis::Core::Hashable
418+
419+
# Optional. The name of the VPC network to which the function will be connected.
420+
# Specify either a VPC network or a subnet, or both. If you specify only a
421+
# network, the subnet uses the same name as the network.
422+
# Corresponds to the JSON property `network`
423+
# @return [String]
424+
attr_accessor :network
425+
426+
# Optional. The name of the VPC subnetwork that the Cloud Function resource will
427+
# get IPs from. Specify either a VPC network or a subnet, or both. If both
428+
# network and subnetwork are specified, the given VPC subnetwork must belong to
429+
# the given VPC network. If subnetwork is not specified, the subnetwork with the
430+
# same name with the network will be used.
431+
# Corresponds to the JSON property `subnetwork`
432+
# @return [String]
433+
attr_accessor :subnetwork
434+
435+
# Optional. Network tags applied to this Cloud Function resource.
436+
# Corresponds to the JSON property `tags`
437+
# @return [Array<String>]
438+
attr_accessor :tags
439+
440+
def initialize(**args)
441+
update!(**args)
442+
end
443+
444+
# Update properties of this object
445+
def update!(**args)
446+
@network = args[:network] if args.key?(:network)
447+
@subnetwork = args[:subnetwork] if args.key?(:subnetwork)
448+
@tags = args[:tags] if args.key?(:tags)
449+
end
450+
end
451+
414452
# Filters events based on exact matches on the CloudEvents attributes.
415453
class EventFilter
416454
include Google::Apis::Core::Hashable
@@ -1705,6 +1743,18 @@ class ServiceConfig
17051743
# @return [String]
17061744
attr_accessor :binary_authorization_policy
17071745

1746+
# Optional. Egress settings for direct VPC. If not provided, it defaults to
1747+
# VPC_EGRESS_PRIVATE_RANGES_ONLY.
1748+
# Corresponds to the JSON property `directVpcEgress`
1749+
# @return [String]
1750+
attr_accessor :direct_vpc_egress
1751+
1752+
# Optional. The Direct VPC network interface for the Cloud Function. Currently
1753+
# only a single Direct VPC is supported.
1754+
# Corresponds to the JSON property `directVpcNetworkInterface`
1755+
# @return [Array<Google::Apis::CloudfunctionsV2alpha::DirectVpcNetworkInterface>]
1756+
attr_accessor :direct_vpc_network_interface
1757+
17081758
# Environment variables that shall be available during function execution.
17091759
# Corresponds to the JSON property `environmentVariables`
17101760
# @return [Hash<String,String>]
@@ -1812,6 +1862,8 @@ def update!(**args)
18121862
@available_cpu = args[:available_cpu] if args.key?(:available_cpu)
18131863
@available_memory = args[:available_memory] if args.key?(:available_memory)
18141864
@binary_authorization_policy = args[:binary_authorization_policy] if args.key?(:binary_authorization_policy)
1865+
@direct_vpc_egress = args[:direct_vpc_egress] if args.key?(:direct_vpc_egress)
1866+
@direct_vpc_network_interface = args[:direct_vpc_network_interface] if args.key?(:direct_vpc_network_interface)
18151867
@environment_variables = args[:environment_variables] if args.key?(:environment_variables)
18161868
@ingress_settings = args[:ingress_settings] if args.key?(:ingress_settings)
18171869
@max_instance_count = args[:max_instance_count] if args.key?(:max_instance_count)

generated/google-apis-cloudfunctions_v2alpha/lib/google/apis/cloudfunctions_v2alpha/gem_version.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ module Google
1616
module Apis
1717
module CloudfunctionsV2alpha
1818
# Version of the google-apis-cloudfunctions_v2alpha gem
19-
GEM_VERSION = "0.56.0"
19+
GEM_VERSION = "0.57.0"
2020

2121
# Version of the code generator used to generate this client
2222
GENERATOR_VERSION = "0.18.0"
2323

2424
# Revision of the discovery document this client was generated from
25-
REVISION = "20250929"
25+
REVISION = "20251023"
2626
end
2727
end
2828
end

generated/google-apis-cloudfunctions_v2alpha/lib/google/apis/cloudfunctions_v2alpha/representations.rb

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
7676
include Google::Apis::Core::JsonObjectSupport
7777
end
7878

79+
class DirectVpcNetworkInterface
80+
class Representation < Google::Apis::Core::JsonRepresentation; end
81+
82+
include Google::Apis::Core::JsonObjectSupport
83+
end
84+
7985
class EventFilter
8086
class Representation < Google::Apis::Core::JsonRepresentation; end
8187

@@ -387,6 +393,15 @@ class Representation < Google::Apis::Core::JsonRepresentation
387393
end
388394
end
389395

396+
class DirectVpcNetworkInterface
397+
# @private
398+
class Representation < Google::Apis::Core::JsonRepresentation
399+
property :network, as: 'network'
400+
property :subnetwork, as: 'subnetwork'
401+
collection :tags, as: 'tags'
402+
end
403+
end
404+
390405
class EventFilter
391406
# @private
392407
class Representation < Google::Apis::Core::JsonRepresentation
@@ -696,6 +711,9 @@ class Representation < Google::Apis::Core::JsonRepresentation
696711
property :available_cpu, as: 'availableCpu'
697712
property :available_memory, as: 'availableMemory'
698713
property :binary_authorization_policy, as: 'binaryAuthorizationPolicy'
714+
property :direct_vpc_egress, as: 'directVpcEgress'
715+
collection :direct_vpc_network_interface, as: 'directVpcNetworkInterface', class: Google::Apis::CloudfunctionsV2alpha::DirectVpcNetworkInterface, decorator: Google::Apis::CloudfunctionsV2alpha::DirectVpcNetworkInterface::Representation
716+
699717
hash :environment_variables, as: 'environmentVariables'
700718
property :ingress_settings, as: 'ingressSettings'
701719
property :max_instance_count, as: 'maxInstanceCount'

generated/google-apis-cloudfunctions_v2alpha/lib/google/apis/cloudfunctions_v2alpha/service.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,8 @@ def initialize
5555
# @param [String] name
5656
# The resource that owns the locations collection, if applicable.
5757
# @param [Array<String>, String] extra_location_types
58-
# Optional. Unless explicitly documented otherwise, don't use this unsupported
59-
# field which is primarily intended for internal usage.
58+
# Optional. Do not use this field. It is unsupported and is ignored unless
59+
# explicitly documented otherwise. This is primarily for internal usage.
6060
# @param [String] filter
6161
# A filter to narrow down results to a preferred subset. The filtering language
6262
# accepts strings like `"displayName=tokyo"`, and is documented in more detail

0 commit comments

Comments
 (0)