Skip to content

Commit df29ea1

Browse files
feat: Automated regeneration of compute beta client (#10070)
Auto-created at 2022-06-14 11:51:54 +0000 using the toys pull request generator.
1 parent 7e7fe4c commit df29ea1

File tree

5 files changed

+93
-3
lines changed

5 files changed

+93
-3
lines changed

api_names_out.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58216,8 +58216,18 @@
5821658216
"/compute:beta/VmEndpointNatMappingsInterfaceNatMappings/natIpPortRanges/nat_ip_port_range": nat_ip_port_range
5821758217
"/compute:beta/VmEndpointNatMappingsInterfaceNatMappings/numTotalDrainNatPorts": num_total_drain_nat_ports
5821858218
"/compute:beta/VmEndpointNatMappingsInterfaceNatMappings/numTotalNatPorts": num_total_nat_ports
58219+
"/compute:beta/VmEndpointNatMappingsInterfaceNatMappings/ruleMappings": rule_mappings
58220+
"/compute:beta/VmEndpointNatMappingsInterfaceNatMappings/ruleMappings/rule_mapping": rule_mapping
5821958221
"/compute:beta/VmEndpointNatMappingsInterfaceNatMappings/sourceAliasIpRange": source_alias_ip_range
5822058222
"/compute:beta/VmEndpointNatMappingsInterfaceNatMappings/sourceVirtualIp": source_virtual_ip
58223+
"/compute:beta/VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings": vm_endpoint_nat_mappings_interface_nat_mappings_nat_rule_mappings
58224+
"/compute:beta/VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings/drainNatIpPortRanges": drain_nat_ip_port_ranges
58225+
"/compute:beta/VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings/drainNatIpPortRanges/drain_nat_ip_port_range": drain_nat_ip_port_range
58226+
"/compute:beta/VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings/natIpPortRanges": nat_ip_port_ranges
58227+
"/compute:beta/VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings/natIpPortRanges/nat_ip_port_range": nat_ip_port_range
58228+
"/compute:beta/VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings/numTotalDrainNatPorts": num_total_drain_nat_ports
58229+
"/compute:beta/VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings/numTotalNatPorts": num_total_nat_ports
58230+
"/compute:beta/VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings/ruleNumber": rule_number
5822158231
"/compute:beta/VmEndpointNatMappingsList": vm_endpoint_nat_mappings_list
5822258232
"/compute:beta/VmEndpointNatMappingsList/id": id
5822358233
"/compute:beta/VmEndpointNatMappingsList/kind": kind

generated/google-apis-compute_beta/CHANGELOG.md

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

3+
### v0.38.0 (2022-06-14)
4+
5+
* Regenerated from discovery document revision 20220607
6+
* Regenerated using generator version 0.6.0
7+
38
### v0.37.0 (2022-06-10)
49

510
* Regenerated from discovery document revision 20220531

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

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41598,6 +41598,11 @@ class VmEndpointNatMappingsInterfaceNatMappings
4159841598
# @return [Fixnum]
4159941599
attr_accessor :num_total_nat_ports
4160041600

41601+
# Information about mappings provided by rules in this NAT.
41602+
# Corresponds to the JSON property `ruleMappings`
41603+
# @return [Array<Google::Apis::ComputeBeta::VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings>]
41604+
attr_accessor :rule_mappings
41605+
4160141606
# Alias IP range for this interface endpoint. It will be a private (RFC 1918) IP
4160241607
# range. Examples: "10.33.4.55/32", or "192.168.5.0/24".
4160341608
# Corresponds to the JSON property `sourceAliasIpRange`
@@ -41619,11 +41624,62 @@ def update!(**args)
4161941624
@nat_ip_port_ranges = args[:nat_ip_port_ranges] if args.key?(:nat_ip_port_ranges)
4162041625
@num_total_drain_nat_ports = args[:num_total_drain_nat_ports] if args.key?(:num_total_drain_nat_ports)
4162141626
@num_total_nat_ports = args[:num_total_nat_ports] if args.key?(:num_total_nat_ports)
41627+
@rule_mappings = args[:rule_mappings] if args.key?(:rule_mappings)
4162241628
@source_alias_ip_range = args[:source_alias_ip_range] if args.key?(:source_alias_ip_range)
4162341629
@source_virtual_ip = args[:source_virtual_ip] if args.key?(:source_virtual_ip)
4162441630
end
4162541631
end
4162641632

41633+
# Contains information of NAT Mappings provided by a NAT Rule.
41634+
class VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings
41635+
include Google::Apis::Core::Hashable
41636+
41637+
# List of all drain IP:port-range mappings assigned to this interface by this
41638+
# rule. These ranges are inclusive, that is, both the first and the last ports
41639+
# can be used for NAT. Example: ["2.2.2.2:12345-12355", "1.1.1.1:2234-2234"].
41640+
# Corresponds to the JSON property `drainNatIpPortRanges`
41641+
# @return [Array<String>]
41642+
attr_accessor :drain_nat_ip_port_ranges
41643+
41644+
# A list of all IP:port-range mappings assigned to this interface by this rule.
41645+
# These ranges are inclusive, that is, both the first and the last ports can be
41646+
# used for NAT. Example: ["2.2.2.2:12345-12355", "1.1.1.1:2234-2234"].
41647+
# Corresponds to the JSON property `natIpPortRanges`
41648+
# @return [Array<String>]
41649+
attr_accessor :nat_ip_port_ranges
41650+
41651+
# Total number of drain ports across all NAT IPs allocated to this interface by
41652+
# this rule. It equals the aggregated port number in the field
41653+
# drain_nat_ip_port_ranges.
41654+
# Corresponds to the JSON property `numTotalDrainNatPorts`
41655+
# @return [Fixnum]
41656+
attr_accessor :num_total_drain_nat_ports
41657+
41658+
# Total number of ports across all NAT IPs allocated to this interface by this
41659+
# rule. It equals the aggregated port number in the field nat_ip_port_ranges.
41660+
# Corresponds to the JSON property `numTotalNatPorts`
41661+
# @return [Fixnum]
41662+
attr_accessor :num_total_nat_ports
41663+
41664+
# Rule number of the NAT Rule.
41665+
# Corresponds to the JSON property `ruleNumber`
41666+
# @return [Fixnum]
41667+
attr_accessor :rule_number
41668+
41669+
def initialize(**args)
41670+
update!(**args)
41671+
end
41672+
41673+
# Update properties of this object
41674+
def update!(**args)
41675+
@drain_nat_ip_port_ranges = args[:drain_nat_ip_port_ranges] if args.key?(:drain_nat_ip_port_ranges)
41676+
@nat_ip_port_ranges = args[:nat_ip_port_ranges] if args.key?(:nat_ip_port_ranges)
41677+
@num_total_drain_nat_ports = args[:num_total_drain_nat_ports] if args.key?(:num_total_drain_nat_ports)
41678+
@num_total_nat_ports = args[:num_total_nat_ports] if args.key?(:num_total_nat_ports)
41679+
@rule_number = args[:rule_number] if args.key?(:rule_number)
41680+
end
41681+
end
41682+
4162741683
# Contains a list of VmEndpointNatMappings.
4162841684
class VmEndpointNatMappingsList
4162941685
include Google::Apis::Core::Hashable

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ module Google
1616
module Apis
1717
module ComputeBeta
1818
# Version of the google-apis-compute_beta gem
19-
GEM_VERSION = "0.37.0"
19+
GEM_VERSION = "0.38.0"
2020

2121
# Version of the code generator used to generate this client
22-
GENERATOR_VERSION = "0.5.0"
22+
GENERATOR_VERSION = "0.6.0"
2323

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

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

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5482,6 +5482,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
54825482
include Google::Apis::Core::JsonObjectSupport
54835483
end
54845484

5485+
class VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings
5486+
class Representation < Google::Apis::Core::JsonRepresentation; end
5487+
5488+
include Google::Apis::Core::JsonObjectSupport
5489+
end
5490+
54855491
class VmEndpointNatMappingsList
54865492
class Representation < Google::Apis::Core::JsonRepresentation; end
54875493

@@ -15931,11 +15937,24 @@ class Representation < Google::Apis::Core::JsonRepresentation
1593115937
collection :nat_ip_port_ranges, as: 'natIpPortRanges'
1593215938
property :num_total_drain_nat_ports, as: 'numTotalDrainNatPorts'
1593315939
property :num_total_nat_ports, as: 'numTotalNatPorts'
15940+
collection :rule_mappings, as: 'ruleMappings', class: Google::Apis::ComputeBeta::VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings, decorator: Google::Apis::ComputeBeta::VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings::Representation
15941+
1593415942
property :source_alias_ip_range, as: 'sourceAliasIpRange'
1593515943
property :source_virtual_ip, as: 'sourceVirtualIp'
1593615944
end
1593715945
end
1593815946

15947+
class VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings
15948+
# @private
15949+
class Representation < Google::Apis::Core::JsonRepresentation
15950+
collection :drain_nat_ip_port_ranges, as: 'drainNatIpPortRanges'
15951+
collection :nat_ip_port_ranges, as: 'natIpPortRanges'
15952+
property :num_total_drain_nat_ports, as: 'numTotalDrainNatPorts'
15953+
property :num_total_nat_ports, as: 'numTotalNatPorts'
15954+
property :rule_number, as: 'ruleNumber'
15955+
end
15956+
end
15957+
1593915958
class VmEndpointNatMappingsList
1594015959
# @private
1594115960
class Representation < Google::Apis::Core::JsonRepresentation

0 commit comments

Comments
 (0)