From 4a139eebb98c942ddb3d8f4db3b293d65a1ddc72 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Sun, 29 Sep 2024 09:55:00 +0000 Subject: [PATCH] feat: Automated regeneration of networkconnectivity v1 client --- api_names_out.yaml | 8 +++ .../CHANGELOG.md | 4 ++ .../apis/networkconnectivity_v1/classes.rb | 64 +++++++++++++++++-- .../networkconnectivity_v1/gem_version.rb | 4 +- .../networkconnectivity_v1/representations.rb | 19 ++++++ 5 files changed, 91 insertions(+), 8 deletions(-) diff --git a/api_names_out.yaml b/api_names_out.yaml index 9e5324d3d29..9aebab79930 100644 --- a/api_names_out.yaml +++ b/api_names_out.yaml @@ -257612,6 +257612,13 @@ "/networkconnectivity:v1/LinkedInterconnectAttachments/uris": uris "/networkconnectivity:v1/LinkedInterconnectAttachments/uris/uri": uri "/networkconnectivity:v1/LinkedInterconnectAttachments/vpcNetwork": vpc_network +"/networkconnectivity:v1/LinkedProducerVpcNetwork": linked_producer_vpc_network +"/networkconnectivity:v1/LinkedProducerVpcNetwork/excludeExportRanges": exclude_export_ranges +"/networkconnectivity:v1/LinkedProducerVpcNetwork/excludeExportRanges/exclude_export_range": exclude_export_range +"/networkconnectivity:v1/LinkedProducerVpcNetwork/network": network +"/networkconnectivity:v1/LinkedProducerVpcNetwork/peering": peering +"/networkconnectivity:v1/LinkedProducerVpcNetwork/producerNetwork": producer_network +"/networkconnectivity:v1/LinkedProducerVpcNetwork/serviceConsumerVpcSpoke": service_consumer_vpc_spoke "/networkconnectivity:v1/LinkedRouterApplianceInstances": linked_router_appliance_instances "/networkconnectivity:v1/LinkedRouterApplianceInstances/includeImportRanges": include_import_ranges "/networkconnectivity:v1/LinkedRouterApplianceInstances/includeImportRanges/include_import_range": include_import_range @@ -257922,6 +257929,7 @@ "/networkconnectivity:v1/Spoke/labels": labels "/networkconnectivity:v1/Spoke/labels/label": label "/networkconnectivity:v1/Spoke/linkedInterconnectAttachments": linked_interconnect_attachments +"/networkconnectivity:v1/Spoke/linkedProducerVpcNetwork": linked_producer_vpc_network "/networkconnectivity:v1/Spoke/linkedRouterApplianceInstances": linked_router_appliance_instances "/networkconnectivity:v1/Spoke/linkedVpcNetwork": linked_vpc_network "/networkconnectivity:v1/Spoke/linkedVpnTunnels": linked_vpn_tunnels diff --git a/generated/google-apis-networkconnectivity_v1/CHANGELOG.md b/generated/google-apis-networkconnectivity_v1/CHANGELOG.md index c800db3306a..9bb5a524c6b 100644 --- a/generated/google-apis-networkconnectivity_v1/CHANGELOG.md +++ b/generated/google-apis-networkconnectivity_v1/CHANGELOG.md @@ -1,5 +1,9 @@ # Release history for google-apis-networkconnectivity_v1 +### v0.48.0 (2024-09-29) + +* Regenerated from discovery document revision 20240923 + ### v0.47.0 (2024-09-22) * Regenerated from discovery document revision 20240911 diff --git a/generated/google-apis-networkconnectivity_v1/lib/google/apis/networkconnectivity_v1/classes.rb b/generated/google-apis-networkconnectivity_v1/lib/google/apis/networkconnectivity_v1/classes.rb index 33ea0ef2005..e1ced5dd1e8 100644 --- a/generated/google-apis-networkconnectivity_v1/lib/google/apis/networkconnectivity_v1/classes.rb +++ b/generated/google-apis-networkconnectivity_v1/lib/google/apis/networkconnectivity_v1/classes.rb @@ -1121,8 +1121,8 @@ def update!(**args) class LinkedInterconnectAttachments include Google::Apis::Core::Hashable - # Optional. IP ranges allowed to be included during import from hub.(does not - # control transit connectivity) The only allowed value for now is " + # Optional. IP ranges allowed to be included during import from hub (does not + # control transit connectivity). The only allowed value for now is " # ALL_IPV4_RANGES". # Corresponds to the JSON property `includeImportRanges` # @return [Array] @@ -1160,6 +1160,52 @@ def update!(**args) end end + # Next ID: 7 + class LinkedProducerVpcNetwork + include Google::Apis::Core::Hashable + + # Optional. IP ranges encompassing the subnets to be excluded from peering. + # Corresponds to the JSON property `excludeExportRanges` + # @return [Array] + attr_accessor :exclude_export_ranges + + # Immutable. The URI of the Service Consumer VPC that the Producer VPC is peered + # with. + # Corresponds to the JSON property `network` + # @return [String] + attr_accessor :network + + # Immutable. The name of the VPC peering between the Service Consumer VPC and + # the Producer VPC (defined in the Tenant project) which is added to the NCC hub. + # This peering must be in ACTIVE state. + # Corresponds to the JSON property `peering` + # @return [String] + attr_accessor :peering + + # Output only. The URI of the Producer VPC. + # Corresponds to the JSON property `producerNetwork` + # @return [String] + attr_accessor :producer_network + + # Output only. The Service Consumer Network spoke. + # Corresponds to the JSON property `serviceConsumerVpcSpoke` + # @return [String] + attr_accessor :service_consumer_vpc_spoke + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @exclude_export_ranges = args[:exclude_export_ranges] if args.key?(:exclude_export_ranges) + @network = args[:network] if args.key?(:network) + @peering = args[:peering] if args.key?(:peering) + @producer_network = args[:producer_network] if args.key?(:producer_network) + @service_consumer_vpc_spoke = args[:service_consumer_vpc_spoke] if args.key?(:service_consumer_vpc_spoke) + end + end + # A collection of router appliance instances. If you configure multiple router # appliance instances to receive data from the same set of sites outside of # Google Cloud, we recommend that you associate those instances with the same @@ -1167,8 +1213,8 @@ def update!(**args) class LinkedRouterApplianceInstances include Google::Apis::Core::Hashable - # Optional. IP ranges allowed to be included during import from hub.(does not - # control transit connectivity) The only allowed value for now is " + # Optional. IP ranges allowed to be included during import from hub (does not + # control transit connectivity). The only allowed value for now is " # ALL_IPV4_RANGES". # Corresponds to the JSON property `includeImportRanges` # @return [Array] @@ -1253,8 +1299,8 @@ def update!(**args) class LinkedVpnTunnels include Google::Apis::Core::Hashable - # Optional. IP ranges allowed to be included during import from hub.(does not - # control transit connectivity) The only allowed value for now is " + # Optional. IP ranges allowed to be included during import from hub (does not + # control transit connectivity). The only allowed value for now is " # ALL_IPV4_RANGES". # Corresponds to the JSON property `includeImportRanges` # @return [Array] @@ -3230,6 +3276,11 @@ class Spoke # @return [Google::Apis::NetworkconnectivityV1::LinkedInterconnectAttachments] attr_accessor :linked_interconnect_attachments + # Next ID: 7 + # Corresponds to the JSON property `linkedProducerVpcNetwork` + # @return [Google::Apis::NetworkconnectivityV1::LinkedProducerVpcNetwork] + attr_accessor :linked_producer_vpc_network + # A collection of router appliance instances. If you configure multiple router # appliance instances to receive data from the same set of sites outside of # Google Cloud, we recommend that you associate those instances with the same @@ -3298,6 +3349,7 @@ def update!(**args) @hub = args[:hub] if args.key?(:hub) @labels = args[:labels] if args.key?(:labels) @linked_interconnect_attachments = args[:linked_interconnect_attachments] if args.key?(:linked_interconnect_attachments) + @linked_producer_vpc_network = args[:linked_producer_vpc_network] if args.key?(:linked_producer_vpc_network) @linked_router_appliance_instances = args[:linked_router_appliance_instances] if args.key?(:linked_router_appliance_instances) @linked_vpc_network = args[:linked_vpc_network] if args.key?(:linked_vpc_network) @linked_vpn_tunnels = args[:linked_vpn_tunnels] if args.key?(:linked_vpn_tunnels) diff --git a/generated/google-apis-networkconnectivity_v1/lib/google/apis/networkconnectivity_v1/gem_version.rb b/generated/google-apis-networkconnectivity_v1/lib/google/apis/networkconnectivity_v1/gem_version.rb index 633203cc034..4eb8945bd48 100644 --- a/generated/google-apis-networkconnectivity_v1/lib/google/apis/networkconnectivity_v1/gem_version.rb +++ b/generated/google-apis-networkconnectivity_v1/lib/google/apis/networkconnectivity_v1/gem_version.rb @@ -16,13 +16,13 @@ module Google module Apis module NetworkconnectivityV1 # Version of the google-apis-networkconnectivity_v1 gem - GEM_VERSION = "0.47.0" + GEM_VERSION = "0.48.0" # Version of the code generator used to generate this client GENERATOR_VERSION = "0.15.1" # Revision of the discovery document this client was generated from - REVISION = "20240911" + REVISION = "20240923" end end end diff --git a/generated/google-apis-networkconnectivity_v1/lib/google/apis/networkconnectivity_v1/representations.rb b/generated/google-apis-networkconnectivity_v1/lib/google/apis/networkconnectivity_v1/representations.rb index ca6f6eace7f..e88ceb8c072 100644 --- a/generated/google-apis-networkconnectivity_v1/lib/google/apis/networkconnectivity_v1/representations.rb +++ b/generated/google-apis-networkconnectivity_v1/lib/google/apis/networkconnectivity_v1/representations.rb @@ -148,6 +148,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end + class LinkedProducerVpcNetwork + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class LinkedRouterApplianceInstances class Representation < Google::Apis::Core::JsonRepresentation; end @@ -692,6 +698,17 @@ class Representation < Google::Apis::Core::JsonRepresentation end end + class LinkedProducerVpcNetwork + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :exclude_export_ranges, as: 'excludeExportRanges' + property :network, as: 'network' + property :peering, as: 'peering' + property :producer_network, as: 'producerNetwork' + property :service_consumer_vpc_spoke, as: 'serviceConsumerVpcSpoke' + end + end + class LinkedRouterApplianceInstances # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -1188,6 +1205,8 @@ class Representation < Google::Apis::Core::JsonRepresentation hash :labels, as: 'labels' property :linked_interconnect_attachments, as: 'linkedInterconnectAttachments', class: Google::Apis::NetworkconnectivityV1::LinkedInterconnectAttachments, decorator: Google::Apis::NetworkconnectivityV1::LinkedInterconnectAttachments::Representation + property :linked_producer_vpc_network, as: 'linkedProducerVpcNetwork', class: Google::Apis::NetworkconnectivityV1::LinkedProducerVpcNetwork, decorator: Google::Apis::NetworkconnectivityV1::LinkedProducerVpcNetwork::Representation + property :linked_router_appliance_instances, as: 'linkedRouterApplianceInstances', class: Google::Apis::NetworkconnectivityV1::LinkedRouterApplianceInstances, decorator: Google::Apis::NetworkconnectivityV1::LinkedRouterApplianceInstances::Representation property :linked_vpc_network, as: 'linkedVpcNetwork', class: Google::Apis::NetworkconnectivityV1::LinkedVpcNetwork, decorator: Google::Apis::NetworkconnectivityV1::LinkedVpcNetwork::Representation