Skip to content

Commit 2bf8a0e

Browse files
feat: Automated regeneration of compute v1 client (#10078)
Auto-created at 2022-06-15 11:53:48 +0000 using the toys pull request generator.
1 parent f0e4d99 commit 2bf8a0e

File tree

5 files changed

+164
-3
lines changed

5 files changed

+164
-3
lines changed

api_names_out.yaml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63677,6 +63677,7 @@
6367763677
"/compute:v1/Instance/guestAccelerators/guest_accelerator": guest_accelerator
6367863678
"/compute:v1/Instance/hostname": hostname
6367963679
"/compute:v1/Instance/id": id
63680+
"/compute:v1/Instance/keyRevocationActionType": key_revocation_action_type
6368063681
"/compute:v1/Instance/kind": kind
6368163682
"/compute:v1/Instance/labelFingerprint": label_fingerprint
6368263683
"/compute:v1/Instance/labels": labels
@@ -64023,6 +64024,7 @@
6402364024
"/compute:v1/InstanceProperties/disks/disk": disk
6402464025
"/compute:v1/InstanceProperties/guestAccelerators": guest_accelerators
6402564026
"/compute:v1/InstanceProperties/guestAccelerators/guest_accelerator": guest_accelerator
64027+
"/compute:v1/InstanceProperties/keyRevocationActionType": key_revocation_action_type
6402664028
"/compute:v1/InstanceProperties/labels": labels
6402764029
"/compute:v1/InstanceProperties/labels/label": label
6402864030
"/compute:v1/InstanceProperties/machineType": machine_type
@@ -64379,7 +64381,10 @@
6437964381
"/compute:v1/LocationPolicy/locations/location": location
6438064382
"/compute:v1/LocationPolicy/targetShape": target_shape
6438164383
"/compute:v1/LocationPolicyLocation": location_policy_location
64384+
"/compute:v1/LocationPolicyLocation/constraints": constraints
6438264385
"/compute:v1/LocationPolicyLocation/preference": preference
64386+
"/compute:v1/LocationPolicyLocationConstraints": location_policy_location_constraints
64387+
"/compute:v1/LocationPolicyLocationConstraints/maxCount": max_count
6438364388
"/compute:v1/LogConfig": log_config
6438464389
"/compute:v1/LogConfig/cloudAudit": cloud_audit
6438564390
"/compute:v1/LogConfig/counter": counter
@@ -66321,6 +66326,7 @@
6632166326
"/compute:v1/SourceInstanceProperties/disks/disk": disk
6632266327
"/compute:v1/SourceInstanceProperties/guestAccelerators": guest_accelerators
6632366328
"/compute:v1/SourceInstanceProperties/guestAccelerators/guest_accelerator": guest_accelerator
66329+
"/compute:v1/SourceInstanceProperties/keyRevocationActionType": key_revocation_action_type
6632466330
"/compute:v1/SourceInstanceProperties/labels": labels
6632566331
"/compute:v1/SourceInstanceProperties/labels/label": label
6632666332
"/compute:v1/SourceInstanceProperties/machineType": machine_type
@@ -67067,8 +67073,18 @@
6706767073
"/compute:v1/VmEndpointNatMappingsInterfaceNatMappings/natIpPortRanges/nat_ip_port_range": nat_ip_port_range
6706867074
"/compute:v1/VmEndpointNatMappingsInterfaceNatMappings/numTotalDrainNatPorts": num_total_drain_nat_ports
6706967075
"/compute:v1/VmEndpointNatMappingsInterfaceNatMappings/numTotalNatPorts": num_total_nat_ports
67076+
"/compute:v1/VmEndpointNatMappingsInterfaceNatMappings/ruleMappings": rule_mappings
67077+
"/compute:v1/VmEndpointNatMappingsInterfaceNatMappings/ruleMappings/rule_mapping": rule_mapping
6707067078
"/compute:v1/VmEndpointNatMappingsInterfaceNatMappings/sourceAliasIpRange": source_alias_ip_range
6707167079
"/compute:v1/VmEndpointNatMappingsInterfaceNatMappings/sourceVirtualIp": source_virtual_ip
67080+
"/compute:v1/VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings": vm_endpoint_nat_mappings_interface_nat_mappings_nat_rule_mappings
67081+
"/compute:v1/VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings/drainNatIpPortRanges": drain_nat_ip_port_ranges
67082+
"/compute:v1/VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings/drainNatIpPortRanges/drain_nat_ip_port_range": drain_nat_ip_port_range
67083+
"/compute:v1/VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings/natIpPortRanges": nat_ip_port_ranges
67084+
"/compute:v1/VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings/natIpPortRanges/nat_ip_port_range": nat_ip_port_range
67085+
"/compute:v1/VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings/numTotalDrainNatPorts": num_total_drain_nat_ports
67086+
"/compute:v1/VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings/numTotalNatPorts": num_total_nat_ports
67087+
"/compute:v1/VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings/ruleNumber": rule_number
6707267088
"/compute:v1/VmEndpointNatMappingsList": vm_endpoint_nat_mappings_list
6707367089
"/compute:v1/VmEndpointNatMappingsList/id": id
6707467090
"/compute:v1/VmEndpointNatMappingsList/kind": kind

generated/google-apis-compute_v1/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_v1
22

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

510
* Regenerated from discovery document revision 20220526

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

Lines changed: 103 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12393,6 +12393,12 @@ class Instance
1239312393
# @return [Fixnum]
1239412394
attr_accessor :id
1239512395

12396+
# KeyRevocationActionType of the instance. Supported options are "STOP" and "
12397+
# NONE". The default value is "NONE" if it is not specified.
12398+
# Corresponds to the JSON property `keyRevocationActionType`
12399+
# @return [String]
12400+
attr_accessor :key_revocation_action_type
12401+
1239612402
# [Output Only] Type of the resource. Always compute#instance for instances.
1239712403
# Corresponds to the JSON property `kind`
1239812404
# @return [String]
@@ -12599,6 +12605,7 @@ def update!(**args)
1259912605
@guest_accelerators = args[:guest_accelerators] if args.key?(:guest_accelerators)
1260012606
@hostname = args[:hostname] if args.key?(:hostname)
1260112607
@id = args[:id] if args.key?(:id)
12608+
@key_revocation_action_type = args[:key_revocation_action_type] if args.key?(:key_revocation_action_type)
1260212609
@kind = args[:kind] if args.key?(:kind)
1260312610
@label_fingerprint = args[:label_fingerprint] if args.key?(:label_fingerprint)
1260412611
@labels = args[:labels] if args.key?(:labels)
@@ -15159,6 +15166,12 @@ class InstanceProperties
1515915166
# @return [Array<Google::Apis::ComputeV1::AcceleratorConfig>]
1516015167
attr_accessor :guest_accelerators
1516115168

15169+
# KeyRevocationActionType of the instance. Supported options are "STOP" and "
15170+
# NONE". The default value is "NONE" if it is not specified.
15171+
# Corresponds to the JSON property `keyRevocationActionType`
15172+
# @return [String]
15173+
attr_accessor :key_revocation_action_type
15174+
1516215175
# Labels to apply to instances that are created from these properties.
1516315176
# Corresponds to the JSON property `labels`
1516415177
# @return [Hash<String,String>]
@@ -15254,6 +15267,7 @@ def update!(**args)
1525415267
@description = args[:description] if args.key?(:description)
1525515268
@disks = args[:disks] if args.key?(:disks)
1525615269
@guest_accelerators = args[:guest_accelerators] if args.key?(:guest_accelerators)
15270+
@key_revocation_action_type = args[:key_revocation_action_type] if args.key?(:key_revocation_action_type)
1525715271
@labels = args[:labels] if args.key?(:labels)
1525815272
@machine_type = args[:machine_type] if args.key?(:machine_type)
1525915273
@metadata = args[:metadata] if args.key?(:metadata)
@@ -17924,6 +17938,11 @@ def update!(**args)
1792417938
class LocationPolicyLocation
1792517939
include Google::Apis::Core::Hashable
1792617940

17941+
# Per-zone constraints on location policy for this zone.
17942+
# Corresponds to the JSON property `constraints`
17943+
# @return [Google::Apis::ComputeV1::LocationPolicyLocationConstraints]
17944+
attr_accessor :constraints
17945+
1792717946
# Preference for a given location.
1792817947
# Corresponds to the JSON property `preference`
1792917948
# @return [String]
@@ -17935,10 +17954,31 @@ def initialize(**args)
1793517954

1793617955
# Update properties of this object
1793717956
def update!(**args)
17957+
@constraints = args[:constraints] if args.key?(:constraints)
1793817958
@preference = args[:preference] if args.key?(:preference)
1793917959
end
1794017960
end
1794117961

17962+
# Per-zone constraints on location policy for this zone.
17963+
class LocationPolicyLocationConstraints
17964+
include Google::Apis::Core::Hashable
17965+
17966+
# Maximum number of items that are allowed to be placed in this zone. The value
17967+
# must be non-negative.
17968+
# Corresponds to the JSON property `maxCount`
17969+
# @return [Fixnum]
17970+
attr_accessor :max_count
17971+
17972+
def initialize(**args)
17973+
update!(**args)
17974+
end
17975+
17976+
# Update properties of this object
17977+
def update!(**args)
17978+
@max_count = args[:max_count] if args.key?(:max_count)
17979+
end
17980+
end
17981+
1794217982
# This is deprecated and has no effect. Do not use.
1794317983
class LogConfig
1794417984
include Google::Apis::Core::Hashable
@@ -33343,6 +33383,12 @@ class SourceInstanceProperties
3334333383
# @return [Array<Google::Apis::ComputeV1::AcceleratorConfig>]
3334433384
attr_accessor :guest_accelerators
3334533385

33386+
# KeyRevocationActionType of the instance. Supported options are "STOP" and "
33387+
# NONE". The default value is "NONE" if it is not specified.
33388+
# Corresponds to the JSON property `keyRevocationActionType`
33389+
# @return [String]
33390+
attr_accessor :key_revocation_action_type
33391+
3334633392
# Labels to apply to instances that are created from this machine image.
3334733393
# Corresponds to the JSON property `labels`
3334833394
# @return [Hash<String,String>]
@@ -33401,6 +33447,7 @@ def update!(**args)
3340133447
@description = args[:description] if args.key?(:description)
3340233448
@disks = args[:disks] if args.key?(:disks)
3340333449
@guest_accelerators = args[:guest_accelerators] if args.key?(:guest_accelerators)
33450+
@key_revocation_action_type = args[:key_revocation_action_type] if args.key?(:key_revocation_action_type)
3340433451
@labels = args[:labels] if args.key?(:labels)
3340533452
@machine_type = args[:machine_type] if args.key?(:machine_type)
3340633453
@metadata = args[:metadata] if args.key?(:metadata)
@@ -39446,6 +39493,11 @@ class VmEndpointNatMappingsInterfaceNatMappings
3944639493
# @return [Fixnum]
3944739494
attr_accessor :num_total_nat_ports
3944839495

39496+
# Information about mappings provided by rules in this NAT.
39497+
# Corresponds to the JSON property `ruleMappings`
39498+
# @return [Array<Google::Apis::ComputeV1::VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings>]
39499+
attr_accessor :rule_mappings
39500+
3944939501
# Alias IP range for this interface endpoint. It will be a private (RFC 1918) IP
3945039502
# range. Examples: "10.33.4.55/32", or "192.168.5.0/24".
3945139503
# Corresponds to the JSON property `sourceAliasIpRange`
@@ -39467,11 +39519,62 @@ def update!(**args)
3946739519
@nat_ip_port_ranges = args[:nat_ip_port_ranges] if args.key?(:nat_ip_port_ranges)
3946839520
@num_total_drain_nat_ports = args[:num_total_drain_nat_ports] if args.key?(:num_total_drain_nat_ports)
3946939521
@num_total_nat_ports = args[:num_total_nat_ports] if args.key?(:num_total_nat_ports)
39522+
@rule_mappings = args[:rule_mappings] if args.key?(:rule_mappings)
3947039523
@source_alias_ip_range = args[:source_alias_ip_range] if args.key?(:source_alias_ip_range)
3947139524
@source_virtual_ip = args[:source_virtual_ip] if args.key?(:source_virtual_ip)
3947239525
end
3947339526
end
3947439527

39528+
# Contains information of NAT Mappings provided by a NAT Rule.
39529+
class VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings
39530+
include Google::Apis::Core::Hashable
39531+
39532+
# List of all drain IP:port-range mappings assigned to this interface by this
39533+
# rule. These ranges are inclusive, that is, both the first and the last ports
39534+
# can be used for NAT. Example: ["2.2.2.2:12345-12355", "1.1.1.1:2234-2234"].
39535+
# Corresponds to the JSON property `drainNatIpPortRanges`
39536+
# @return [Array<String>]
39537+
attr_accessor :drain_nat_ip_port_ranges
39538+
39539+
# A list of all IP:port-range mappings assigned to this interface by this rule.
39540+
# These ranges are inclusive, that is, both the first and the last ports can be
39541+
# used for NAT. Example: ["2.2.2.2:12345-12355", "1.1.1.1:2234-2234"].
39542+
# Corresponds to the JSON property `natIpPortRanges`
39543+
# @return [Array<String>]
39544+
attr_accessor :nat_ip_port_ranges
39545+
39546+
# Total number of drain ports across all NAT IPs allocated to this interface by
39547+
# this rule. It equals the aggregated port number in the field
39548+
# drain_nat_ip_port_ranges.
39549+
# Corresponds to the JSON property `numTotalDrainNatPorts`
39550+
# @return [Fixnum]
39551+
attr_accessor :num_total_drain_nat_ports
39552+
39553+
# Total number of ports across all NAT IPs allocated to this interface by this
39554+
# rule. It equals the aggregated port number in the field nat_ip_port_ranges.
39555+
# Corresponds to the JSON property `numTotalNatPorts`
39556+
# @return [Fixnum]
39557+
attr_accessor :num_total_nat_ports
39558+
39559+
# Rule number of the NAT Rule.
39560+
# Corresponds to the JSON property `ruleNumber`
39561+
# @return [Fixnum]
39562+
attr_accessor :rule_number
39563+
39564+
def initialize(**args)
39565+
update!(**args)
39566+
end
39567+
39568+
# Update properties of this object
39569+
def update!(**args)
39570+
@drain_nat_ip_port_ranges = args[:drain_nat_ip_port_ranges] if args.key?(:drain_nat_ip_port_ranges)
39571+
@nat_ip_port_ranges = args[:nat_ip_port_ranges] if args.key?(:nat_ip_port_ranges)
39572+
@num_total_drain_nat_ports = args[:num_total_drain_nat_ports] if args.key?(:num_total_drain_nat_ports)
39573+
@num_total_nat_ports = args[:num_total_nat_ports] if args.key?(:num_total_nat_ports)
39574+
@rule_number = args[:rule_number] if args.key?(:rule_number)
39575+
end
39576+
end
39577+
3947539578
# Contains a list of VmEndpointNatMappings.
3947639579
class VmEndpointNatMappingsList
3947739580
include Google::Apis::Core::Hashable

generated/google-apis-compute_v1/lib/google/apis/compute_v1/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 ComputeV1
1818
# Version of the google-apis-compute_v1 gem
19-
GEM_VERSION = "0.38.0"
19+
GEM_VERSION = "0.39.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 = "20220526"
25+
REVISION = "20220607"
2626
end
2727
end
2828
end

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

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2206,6 +2206,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
22062206
include Google::Apis::Core::JsonObjectSupport
22072207
end
22082208

2209+
class LocationPolicyLocationConstraints
2210+
class Representation < Google::Apis::Core::JsonRepresentation; end
2211+
2212+
include Google::Apis::Core::JsonObjectSupport
2213+
end
2214+
22092215
class LogConfig
22102216
class Representation < Google::Apis::Core::JsonRepresentation; end
22112217

@@ -5236,6 +5242,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
52365242
include Google::Apis::Core::JsonObjectSupport
52375243
end
52385244

5245+
class VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings
5246+
class Representation < Google::Apis::Core::JsonRepresentation; end
5247+
5248+
include Google::Apis::Core::JsonObjectSupport
5249+
end
5250+
52395251
class VmEndpointNatMappingsList
52405252
class Representation < Google::Apis::Core::JsonRepresentation; end
52415253

@@ -8305,6 +8317,7 @@ class Representation < Google::Apis::Core::JsonRepresentation
83058317

83068318
property :hostname, as: 'hostname'
83078319
property :id, :numeric_string => true, as: 'id'
8320+
property :key_revocation_action_type, as: 'keyRevocationActionType'
83088321
property :kind, as: 'kind'
83098322
property :label_fingerprint, :base64 => true, as: 'labelFingerprint'
83108323
hash :labels, as: 'labels'
@@ -9020,6 +9033,7 @@ class Representation < Google::Apis::Core::JsonRepresentation
90209033

90219034
collection :guest_accelerators, as: 'guestAccelerators', class: Google::Apis::ComputeV1::AcceleratorConfig, decorator: Google::Apis::ComputeV1::AcceleratorConfig::Representation
90229035

9036+
property :key_revocation_action_type, as: 'keyRevocationActionType'
90239037
hash :labels, as: 'labels'
90249038
property :machine_type, as: 'machineType'
90259039
property :metadata, as: 'metadata', class: Google::Apis::ComputeV1::Metadata, decorator: Google::Apis::ComputeV1::Metadata::Representation
@@ -9701,10 +9715,19 @@ class Representation < Google::Apis::Core::JsonRepresentation
97019715
class LocationPolicyLocation
97029716
# @private
97039717
class Representation < Google::Apis::Core::JsonRepresentation
9718+
property :constraints, as: 'constraints', class: Google::Apis::ComputeV1::LocationPolicyLocationConstraints, decorator: Google::Apis::ComputeV1::LocationPolicyLocationConstraints::Representation
9719+
97049720
property :preference, as: 'preference'
97059721
end
97069722
end
97079723

9724+
class LocationPolicyLocationConstraints
9725+
# @private
9726+
class Representation < Google::Apis::Core::JsonRepresentation
9727+
property :max_count, as: 'maxCount'
9728+
end
9729+
end
9730+
97089731
class LogConfig
97099732
# @private
97109733
class Representation < Google::Apis::Core::JsonRepresentation
@@ -13646,6 +13669,7 @@ class Representation < Google::Apis::Core::JsonRepresentation
1364613669

1364713670
collection :guest_accelerators, as: 'guestAccelerators', class: Google::Apis::ComputeV1::AcceleratorConfig, decorator: Google::Apis::ComputeV1::AcceleratorConfig::Representation
1364813671

13672+
property :key_revocation_action_type, as: 'keyRevocationActionType'
1364913673
hash :labels, as: 'labels'
1365013674
property :machine_type, as: 'machineType'
1365113675
property :metadata, as: 'metadata', class: Google::Apis::ComputeV1::Metadata, decorator: Google::Apis::ComputeV1::Metadata::Representation
@@ -15179,11 +15203,24 @@ class Representation < Google::Apis::Core::JsonRepresentation
1517915203
collection :nat_ip_port_ranges, as: 'natIpPortRanges'
1518015204
property :num_total_drain_nat_ports, as: 'numTotalDrainNatPorts'
1518115205
property :num_total_nat_ports, as: 'numTotalNatPorts'
15206+
collection :rule_mappings, as: 'ruleMappings', class: Google::Apis::ComputeV1::VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings, decorator: Google::Apis::ComputeV1::VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings::Representation
15207+
1518215208
property :source_alias_ip_range, as: 'sourceAliasIpRange'
1518315209
property :source_virtual_ip, as: 'sourceVirtualIp'
1518415210
end
1518515211
end
1518615212

15213+
class VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings
15214+
# @private
15215+
class Representation < Google::Apis::Core::JsonRepresentation
15216+
collection :drain_nat_ip_port_ranges, as: 'drainNatIpPortRanges'
15217+
collection :nat_ip_port_ranges, as: 'natIpPortRanges'
15218+
property :num_total_drain_nat_ports, as: 'numTotalDrainNatPorts'
15219+
property :num_total_nat_ports, as: 'numTotalNatPorts'
15220+
property :rule_number, as: 'ruleNumber'
15221+
end
15222+
end
15223+
1518715224
class VmEndpointNatMappingsList
1518815225
# @private
1518915226
class Representation < Google::Apis::Core::JsonRepresentation

0 commit comments

Comments
 (0)