Skip to content

Commit 9ddaafe

Browse files
feat: Automated regeneration of networkconnectivity v1 client (googleapis#20255)
Auto-created at 2024-09-22 09:39:41 +0000 using the toys pull request generator.
1 parent c99ea82 commit 9ddaafe

File tree

5 files changed

+117
-12
lines changed

5 files changed

+117
-12
lines changed

api_names_out.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -257401,6 +257401,8 @@
257401257401
"/networkconnectivity:v1/ConsumerPscConfig/disableGlobalAccess": disable_global_access
257402257402
"/networkconnectivity:v1/ConsumerPscConfig/network": network
257403257403
"/networkconnectivity:v1/ConsumerPscConfig/producerInstanceId": producer_instance_id
257404+
"/networkconnectivity:v1/ConsumerPscConfig/producerInstanceMetadata": producer_instance_metadata
257405+
"/networkconnectivity:v1/ConsumerPscConfig/producerInstanceMetadata/producer_instance_metadatum": producer_instance_metadatum
257404257406
"/networkconnectivity:v1/ConsumerPscConfig/project": project
257405257407
"/networkconnectivity:v1/ConsumerPscConfig/serviceAttachmentIpAddressMap": service_attachment_ip_address_map
257406257408
"/networkconnectivity:v1/ConsumerPscConfig/serviceAttachmentIpAddressMap/service_attachment_ip_address_map": service_attachment_ip_address_map
@@ -257414,6 +257416,8 @@
257414257416
"/networkconnectivity:v1/ConsumerPscConnection/ip": ip
257415257417
"/networkconnectivity:v1/ConsumerPscConnection/network": network
257416257418
"/networkconnectivity:v1/ConsumerPscConnection/producerInstanceId": producer_instance_id
257419+
"/networkconnectivity:v1/ConsumerPscConnection/producerInstanceMetadata": producer_instance_metadata
257420+
"/networkconnectivity:v1/ConsumerPscConnection/producerInstanceMetadata/producer_instance_metadatum": producer_instance_metadatum
257417257421
"/networkconnectivity:v1/ConsumerPscConnection/project": project
257418257422
"/networkconnectivity:v1/ConsumerPscConnection/pscConnectionId": psc_connection_id
257419257423
"/networkconnectivity:v1/ConsumerPscConnection/selectedSubnetwork": selected_subnetwork
@@ -257490,6 +257494,7 @@
257490257494
"/networkconnectivity:v1/InternalRange/ipCidrRange": ip_cidr_range
257491257495
"/networkconnectivity:v1/InternalRange/labels": labels
257492257496
"/networkconnectivity:v1/InternalRange/labels/label": label
257497+
"/networkconnectivity:v1/InternalRange/migration": migration
257493257498
"/networkconnectivity:v1/InternalRange/name": name
257494257499
"/networkconnectivity:v1/InternalRange/network": network
257495257500
"/networkconnectivity:v1/InternalRange/overlaps": overlaps
@@ -257624,6 +257629,9 @@
257624257629
"/networkconnectivity:v1/LocationMetadata": location_metadata
257625257630
"/networkconnectivity:v1/LocationMetadata/locationFeatures": location_features
257626257631
"/networkconnectivity:v1/LocationMetadata/locationFeatures/location_feature": location_feature
257632+
"/networkconnectivity:v1/Migration": migration
257633+
"/networkconnectivity:v1/Migration/source": source
257634+
"/networkconnectivity:v1/Migration/target": target
257627257635
"/networkconnectivity:v1/NextHopInterconnectAttachment": next_hop_interconnect_attachment
257628257636
"/networkconnectivity:v1/NextHopInterconnectAttachment/siteToSiteDataTransfer": site_to_site_data_transfer
257629257637
"/networkconnectivity:v1/NextHopInterconnectAttachment/uri": uri
@@ -257689,8 +257697,11 @@
257689257697
"/networkconnectivity:v1/PscConnection/errorType": error_type
257690257698
"/networkconnectivity:v1/PscConnection/gceOperation": gce_operation
257691257699
"/networkconnectivity:v1/PscConnection/producerInstanceId": producer_instance_id
257700+
"/networkconnectivity:v1/PscConnection/producerInstanceMetadata": producer_instance_metadata
257701+
"/networkconnectivity:v1/PscConnection/producerInstanceMetadata/producer_instance_metadatum": producer_instance_metadatum
257692257702
"/networkconnectivity:v1/PscConnection/pscConnectionId": psc_connection_id
257693257703
"/networkconnectivity:v1/PscConnection/selectedSubnetwork": selected_subnetwork
257704+
"/networkconnectivity:v1/PscConnection/serviceClass": service_class
257694257705
"/networkconnectivity:v1/PscConnection/state": state
257695257706
"/networkconnectivity:v1/RegionalEndpoint": regional_endpoint
257696257707
"/networkconnectivity:v1/RegionalEndpoint/accessType": access_type

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

3+
### v0.47.0 (2024-09-22)
4+
5+
* Regenerated from discovery document revision 20240911
6+
37
### v0.46.0 (2024-08-18)
48

59
* Regenerated from discovery document revision 20240807

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

Lines changed: 80 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -306,11 +306,17 @@ class ConsumerPscConfig
306306
# @return [String]
307307
attr_accessor :network
308308

309-
# Immutable. An immutable identifier for the producer instance.
309+
# Immutable. Deprecated. Use producer_instance_metadata instead. An immutable
310+
# identifier for the producer instance.
310311
# Corresponds to the JSON property `producerInstanceId`
311312
# @return [String]
312313
attr_accessor :producer_instance_id
313314

315+
# Immutable. An immutable map for the producer instance metadata.
316+
# Corresponds to the JSON property `producerInstanceMetadata`
317+
# @return [Hash<String,String>]
318+
attr_accessor :producer_instance_metadata
319+
314320
# The consumer project where PSC connections are allowed to be created in.
315321
# Corresponds to the JSON property `project`
316322
# @return [String]
@@ -339,6 +345,7 @@ def update!(**args)
339345
@disable_global_access = args[:disable_global_access] if args.key?(:disable_global_access)
340346
@network = args[:network] if args.key?(:network)
341347
@producer_instance_id = args[:producer_instance_id] if args.key?(:producer_instance_id)
348+
@producer_instance_metadata = args[:producer_instance_metadata] if args.key?(:producer_instance_metadata)
342349
@project = args[:project] if args.key?(:project)
343350
@service_attachment_ip_address_map = args[:service_attachment_ip_address_map] if args.key?(:service_attachment_ip_address_map)
344351
@state = args[:state] if args.key?(:state)
@@ -402,11 +409,17 @@ class ConsumerPscConnection
402409
# @return [String]
403410
attr_accessor :network
404411

405-
# Immutable. An immutable identifier for the producer instance.
412+
# Immutable. Deprecated. Use producer_instance_metadata instead. An immutable
413+
# identifier for the producer instance.
406414
# Corresponds to the JSON property `producerInstanceId`
407415
# @return [String]
408416
attr_accessor :producer_instance_id
409417

418+
# Immutable. An immutable map for the producer instance metadata.
419+
# Corresponds to the JSON property `producerInstanceMetadata`
420+
# @return [Hash<String,String>]
421+
attr_accessor :producer_instance_metadata
422+
410423
# The consumer project whose PSC forwarding rule is connected to the service
411424
# attachments in this service connection map.
412425
# Corresponds to the JSON property `project`
@@ -449,6 +462,7 @@ def update!(**args)
449462
@ip = args[:ip] if args.key?(:ip)
450463
@network = args[:network] if args.key?(:network)
451464
@producer_instance_id = args[:producer_instance_id] if args.key?(:producer_instance_id)
465+
@producer_instance_metadata = args[:producer_instance_metadata] if args.key?(:producer_instance_metadata)
452466
@project = args[:project] if args.key?(:project)
453467
@psc_connection_id = args[:psc_connection_id] if args.key?(:psc_connection_id)
454468
@selected_subnetwork = args[:selected_subnetwork] if args.key?(:selected_subnetwork)
@@ -994,7 +1008,9 @@ class InternalRange
9941008
# @return [String]
9951009
attr_accessor :description
9961010

997-
# The IP range that this internal range defines.
1011+
# The IP range that this internal range defines. NOTE: IPv6 ranges are limited
1012+
# to usage=EXTERNAL_TO_VPC and peering=FOR_SELF. NOTE: For IPv6 Ranges this
1013+
# field is compulsory, i.e. the address range must be specified explicitly.
9981014
# Corresponds to the JSON property `ipCidrRange`
9991015
# @return [String]
10001016
attr_accessor :ip_cidr_range
@@ -1004,6 +1020,11 @@ class InternalRange
10041020
# @return [Hash<String,String>]
10051021
attr_accessor :labels
10061022

1023+
# Specification for migration with source and target resource names.
1024+
# Corresponds to the JSON property `migration`
1025+
# @return [Google::Apis::NetworkconnectivityV1::Migration]
1026+
attr_accessor :migration
1027+
10071028
# Immutable. The name of an internal range. Format: projects/`project`/locations/
10081029
# `location`/internalRanges/`internal_range` See: https://google.aip.dev/122#
10091030
# fields-representing-resource-names
@@ -1031,10 +1052,13 @@ class InternalRange
10311052
# @return [String]
10321053
attr_accessor :peering
10331054

1034-
# An alternate to ip_cidr_range. Can be set when trying to create a reservation
1035-
# that automatically finds a free range of the given size. If both ip_cidr_range
1036-
# and prefix_length are set, there is an error if the range sizes do not match.
1037-
# Can also be used during updates to change the range size.
1055+
# An alternate to ip_cidr_range. Can be set when trying to create an IPv4
1056+
# reservation that automatically finds a free range of the given size. If both
1057+
# ip_cidr_range and prefix_length are set, there is an error if the range sizes
1058+
# do not match. Can also be used during updates to change the range size. NOTE:
1059+
# For IPv6 this field only works if ip_cidr_range is set as well, and both
1060+
# fields must match. In other words, with IPv6 this field only works as a
1061+
# redundant parameter.
10381062
# Corresponds to the JSON property `prefixLength`
10391063
# @return [Fixnum]
10401064
attr_accessor :prefix_length
@@ -1077,6 +1101,7 @@ def update!(**args)
10771101
@description = args[:description] if args.key?(:description)
10781102
@ip_cidr_range = args[:ip_cidr_range] if args.key?(:ip_cidr_range)
10791103
@labels = args[:labels] if args.key?(:labels)
1104+
@migration = args[:migration] if args.key?(:migration)
10801105
@name = args[:name] if args.key?(:name)
10811106
@network = args[:network] if args.key?(:network)
10821107
@overlaps = args[:overlaps] if args.key?(:overlaps)
@@ -1781,6 +1806,36 @@ def update!(**args)
17811806
end
17821807
end
17831808

1809+
# Specification for migration with source and target resource names.
1810+
class Migration
1811+
include Google::Apis::Core::Hashable
1812+
1813+
# Immutable. Resource path as an URI of the source resource, for example a
1814+
# subnet. The project for the source resource should match the project for the
1815+
# InternalRange. An example: /projects/`project`/regions/`region`/subnetworks/`
1816+
# subnet`
1817+
# Corresponds to the JSON property `source`
1818+
# @return [String]
1819+
attr_accessor :source
1820+
1821+
# Immutable. Resource path of the target resource. The target project can be
1822+
# different, as in the cases when migrating to peer networks. The resource For
1823+
# example: /projects/`project`/regions/`region`/subnetworks/`subnet`
1824+
# Corresponds to the JSON property `target`
1825+
# @return [String]
1826+
attr_accessor :target
1827+
1828+
def initialize(**args)
1829+
update!(**args)
1830+
end
1831+
1832+
# Update properties of this object
1833+
def update!(**args)
1834+
@source = args[:source] if args.key?(:source)
1835+
@target = args[:target] if args.key?(:target)
1836+
end
1837+
end
1838+
17841839
# A route next hop that leads to an interconnect attachment resource.
17851840
class NextHopInterconnectAttachment
17861841
include Google::Apis::Core::Hashable
@@ -2301,11 +2356,17 @@ class PscConnection
23012356
# @return [String]
23022357
attr_accessor :gce_operation
23032358

2304-
# Immutable. An immutable identifier for the producer instance.
2359+
# Immutable. Deprecated. Use producer_instance_metadata instead. An immutable
2360+
# identifier for the producer instance.
23052361
# Corresponds to the JSON property `producerInstanceId`
23062362
# @return [String]
23072363
attr_accessor :producer_instance_id
23082364

2365+
# Immutable. An immutable map for the producer instance metadata.
2366+
# Corresponds to the JSON property `producerInstanceMetadata`
2367+
# @return [Hash<String,String>]
2368+
attr_accessor :producer_instance_metadata
2369+
23092370
# The PSC connection id of the PSC forwarding rule.
23102371
# Corresponds to the JSON property `pscConnectionId`
23112372
# @return [String]
@@ -2317,6 +2378,13 @@ class PscConnection
23172378
# @return [String]
23182379
attr_accessor :selected_subnetwork
23192380

2381+
# Output only. [Output only] The service class associated with this PSC
2382+
# Connection. The value is derived from the SCPolicy and matches the service
2383+
# class name provided by the customer.
2384+
# Corresponds to the JSON property `serviceClass`
2385+
# @return [String]
2386+
attr_accessor :service_class
2387+
23202388
# State of the PSC Connection
23212389
# Corresponds to the JSON property `state`
23222390
# @return [String]
@@ -2336,8 +2404,10 @@ def update!(**args)
23362404
@error_type = args[:error_type] if args.key?(:error_type)
23372405
@gce_operation = args[:gce_operation] if args.key?(:gce_operation)
23382406
@producer_instance_id = args[:producer_instance_id] if args.key?(:producer_instance_id)
2407+
@producer_instance_metadata = args[:producer_instance_metadata] if args.key?(:producer_instance_metadata)
23392408
@psc_connection_id = args[:psc_connection_id] if args.key?(:psc_connection_id)
23402409
@selected_subnetwork = args[:selected_subnetwork] if args.key?(:selected_subnetwork)
2410+
@service_class = args[:service_class] if args.key?(:service_class)
23412411
@state = args[:state] if args.key?(:state)
23422412
end
23432413
end
@@ -2908,7 +2978,7 @@ def update!(**args)
29082978
class ServiceConnectionPolicy
29092979
include Google::Apis::Core::Hashable
29102980

2911-
# Output only. Time when the ServiceConnectionMap was created.
2981+
# Output only. Time when the ServiceConnectionPolicy was created.
29122982
# Corresponds to the JSON property `createTime`
29132983
# @return [String]
29142984
attr_accessor :create_time
@@ -2968,7 +3038,7 @@ class ServiceConnectionPolicy
29683038
# @return [String]
29693039
attr_accessor :service_class
29703040

2971-
# Output only. Time when the ServiceConnectionMap was updated.
3041+
# Output only. Time when the ServiceConnectionPolicy was updated.
29723042
# Corresponds to the JSON property `updateTime`
29733043
# @return [String]
29743044
attr_accessor :update_time

generated/google-apis-networkconnectivity_v1/lib/google/apis/networkconnectivity_v1/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 NetworkconnectivityV1
1818
# Version of the google-apis-networkconnectivity_v1 gem
19-
GEM_VERSION = "0.46.0"
19+
GEM_VERSION = "0.47.0"
2020

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

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

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

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -262,6 +262,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
262262
include Google::Apis::Core::JsonObjectSupport
263263
end
264264

265+
class Migration
266+
class Representation < Google::Apis::Core::JsonRepresentation; end
267+
268+
include Google::Apis::Core::JsonObjectSupport
269+
end
270+
265271
class NextHopInterconnectAttachment
266272
class Representation < Google::Apis::Core::JsonRepresentation; end
267273

@@ -511,6 +517,7 @@ class Representation < Google::Apis::Core::JsonRepresentation
511517
property :disable_global_access, as: 'disableGlobalAccess'
512518
property :network, as: 'network'
513519
property :producer_instance_id, as: 'producerInstanceId'
520+
hash :producer_instance_metadata, as: 'producerInstanceMetadata'
514521
property :project, as: 'project'
515522
hash :service_attachment_ip_address_map, as: 'serviceAttachmentIpAddressMap'
516523
property :state, as: 'state'
@@ -530,6 +537,7 @@ class Representation < Google::Apis::Core::JsonRepresentation
530537
property :ip, as: 'ip'
531538
property :network, as: 'network'
532539
property :producer_instance_id, as: 'producerInstanceId'
540+
hash :producer_instance_metadata, as: 'producerInstanceMetadata'
533541
property :project, as: 'project'
534542
property :psc_connection_id, as: 'pscConnectionId'
535543
property :selected_subnetwork, as: 'selectedSubnetwork'
@@ -660,6 +668,8 @@ class Representation < Google::Apis::Core::JsonRepresentation
660668
property :description, as: 'description'
661669
property :ip_cidr_range, as: 'ipCidrRange'
662670
hash :labels, as: 'labels'
671+
property :migration, as: 'migration', class: Google::Apis::NetworkconnectivityV1::Migration, decorator: Google::Apis::NetworkconnectivityV1::Migration::Representation
672+
663673
property :name, as: 'name'
664674
property :network, as: 'network'
665675
collection :overlaps, as: 'overlaps'
@@ -870,6 +880,14 @@ class Representation < Google::Apis::Core::JsonRepresentation
870880
end
871881
end
872882

883+
class Migration
884+
# @private
885+
class Representation < Google::Apis::Core::JsonRepresentation
886+
property :source, as: 'source'
887+
property :target, as: 'target'
888+
end
889+
end
890+
873891
class NextHopInterconnectAttachment
874892
# @private
875893
class Representation < Google::Apis::Core::JsonRepresentation
@@ -984,8 +1002,10 @@ class Representation < Google::Apis::Core::JsonRepresentation
9841002
property :error_type, as: 'errorType'
9851003
property :gce_operation, as: 'gceOperation'
9861004
property :producer_instance_id, as: 'producerInstanceId'
1005+
hash :producer_instance_metadata, as: 'producerInstanceMetadata'
9871006
property :psc_connection_id, as: 'pscConnectionId'
9881007
property :selected_subnetwork, as: 'selectedSubnetwork'
1008+
property :service_class, as: 'serviceClass'
9891009
property :state, as: 'state'
9901010
end
9911011
end

0 commit comments

Comments
 (0)