Skip to content

Commit 7d80ee4

Browse files
feat: Automated regeneration of networkconnectivity v1 client (#24515)
Auto-created at 2025-10-05 10:18:45 +0000 using the toys pull request generator.
1 parent be90d58 commit 7d80ee4

File tree

6 files changed

+172
-9
lines changed

6 files changed

+172
-9
lines changed

api_names_out.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -299095,6 +299095,14 @@
299095299095
"/networkconnectivity:v1/Binding/members": members
299096299096
"/networkconnectivity:v1/Binding/members/member": member
299097299097
"/networkconnectivity:v1/Binding/role": role
299098+
"/networkconnectivity:v1/CheckConsumerConfigRequest": check_consumer_config_request
299099+
"/networkconnectivity:v1/CheckConsumerConfigRequest/consumerNetwork": consumer_network
299100+
"/networkconnectivity:v1/CheckConsumerConfigRequest/endpointProject": endpoint_project
299101+
"/networkconnectivity:v1/CheckConsumerConfigRequest/requestedIpVersion": requested_ip_version
299102+
"/networkconnectivity:v1/CheckConsumerConfigRequest/serviceClass": service_class
299103+
"/networkconnectivity:v1/CheckConsumerConfigResponse": check_consumer_config_response
299104+
"/networkconnectivity:v1/CheckConsumerConfigResponse/errors": errors
299105+
"/networkconnectivity:v1/CheckConsumerConfigResponse/errors/error": error
299098299106
"/networkconnectivity:v1/ConsumerPscConfig": consumer_psc_config
299099299107
"/networkconnectivity:v1/ConsumerPscConfig/consumerInstanceProject": consumer_instance_project
299100299108
"/networkconnectivity:v1/ConsumerPscConfig/disableGlobalAccess": disable_global_access
@@ -299158,6 +299166,8 @@
299158299166
"/networkconnectivity:v1/GoogleLongrunningListOperationsResponse/nextPageToken": next_page_token
299159299167
"/networkconnectivity:v1/GoogleLongrunningListOperationsResponse/operations": operations
299160299168
"/networkconnectivity:v1/GoogleLongrunningListOperationsResponse/operations/operation": operation
299169+
"/networkconnectivity:v1/GoogleLongrunningListOperationsResponse/unreachable": unreachable
299170+
"/networkconnectivity:v1/GoogleLongrunningListOperationsResponse/unreachable/unreachable": unreachable
299161299171
"/networkconnectivity:v1/GoogleLongrunningOperation": google_longrunning_operation
299162299172
"/networkconnectivity:v1/GoogleLongrunningOperation/done": done
299163299173
"/networkconnectivity:v1/GoogleLongrunningOperation/error": error
@@ -299704,6 +299714,7 @@
299704299714
"/networkconnectivity:v1/Transport": transport
299705299715
"/networkconnectivity:v1/Transport/adminEnabled": admin_enabled
299706299716
"/networkconnectivity:v1/Transport/advertisedRoutes": advertised_routes
299717+
"/networkconnectivity:v1/Transport/advertisedRoutes/advertised_route": advertised_route
299707299718
"/networkconnectivity:v1/Transport/bandwidth": bandwidth
299708299719
"/networkconnectivity:v1/Transport/createTime": create_time
299709299720
"/networkconnectivity:v1/Transport/description": description
@@ -299729,6 +299740,8 @@
299729299740
"/networkconnectivity:v1/Warnings/warningMessage": warning_message
299730299741
"/networkconnectivity:v1/fields": fields
299731299742
"/networkconnectivity:v1/key": key
299743+
"/networkconnectivity:v1/networkconnectivity.projects.locations.checkConsumerConfig": check_location_consumer_config
299744+
"/networkconnectivity:v1/networkconnectivity.projects.locations.checkConsumerConfig/location": location
299732299745
"/networkconnectivity:v1/networkconnectivity.projects.locations.get": get_project_location
299733299746
"/networkconnectivity:v1/networkconnectivity.projects.locations.get/name": name
299734299747
"/networkconnectivity:v1/networkconnectivity.projects.locations.global.hubs.acceptSpoke": accept_project_location_global_hub_spoke
@@ -299931,6 +299944,7 @@
299931299944
"/networkconnectivity:v1/networkconnectivity.projects.locations.operations.list/name": name
299932299945
"/networkconnectivity:v1/networkconnectivity.projects.locations.operations.list/pageSize": page_size
299933299946
"/networkconnectivity:v1/networkconnectivity.projects.locations.operations.list/pageToken": page_token
299947+
"/networkconnectivity:v1/networkconnectivity.projects.locations.operations.list/returnPartialSuccess": return_partial_success
299934299948
"/networkconnectivity:v1/networkconnectivity.projects.locations.regionalEndpoints.create": create_project_location_regional_endpoint
299935299949
"/networkconnectivity:v1/networkconnectivity.projects.locations.regionalEndpoints.create/parent": parent
299936299950
"/networkconnectivity:v1/networkconnectivity.projects.locations.regionalEndpoints.create/regionalEndpointId": regional_endpoint_id

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.66.0 (2025-10-05)
4+
5+
* Regenerated from discovery document revision 20250925
6+
37
### v0.65.0 (2025-09-21)
48

59
* Regenerated from discovery document revision 20250910

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

Lines changed: 71 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -389,6 +389,63 @@ def update!(**args)
389389
end
390390
end
391391

392+
# Request for CheckConsumerConfig.
393+
class CheckConsumerConfigRequest
394+
include Google::Apis::Core::Hashable
395+
396+
# Required. Full resource name of the consumer network. Example: - projects/`
397+
# project`/global/networks/`network`.
398+
# Corresponds to the JSON property `consumerNetwork`
399+
# @return [String]
400+
attr_accessor :consumer_network
401+
402+
# The project number or ID where the PSC endpoint is to be created.
403+
# Corresponds to the JSON property `endpointProject`
404+
# @return [String]
405+
attr_accessor :endpoint_project
406+
407+
# The requested IP Version
408+
# Corresponds to the JSON property `requestedIpVersion`
409+
# @return [String]
410+
attr_accessor :requested_ip_version
411+
412+
# Required. The service class identifier of the producer.
413+
# Corresponds to the JSON property `serviceClass`
414+
# @return [String]
415+
attr_accessor :service_class
416+
417+
def initialize(**args)
418+
update!(**args)
419+
end
420+
421+
# Update properties of this object
422+
def update!(**args)
423+
@consumer_network = args[:consumer_network] if args.key?(:consumer_network)
424+
@endpoint_project = args[:endpoint_project] if args.key?(:endpoint_project)
425+
@requested_ip_version = args[:requested_ip_version] if args.key?(:requested_ip_version)
426+
@service_class = args[:service_class] if args.key?(:service_class)
427+
end
428+
end
429+
430+
# Response for CheckConsumerConfig.
431+
class CheckConsumerConfigResponse
432+
include Google::Apis::Core::Hashable
433+
434+
# List of validation errors. If the list is empty, the consumer config is valid.
435+
# Corresponds to the JSON property `errors`
436+
# @return [Array<String>]
437+
attr_accessor :errors
438+
439+
def initialize(**args)
440+
update!(**args)
441+
end
442+
443+
# Update properties of this object
444+
def update!(**args)
445+
@errors = args[:errors] if args.key?(:errors)
446+
end
447+
end
448+
392449
# Allow the producer to specify which consumers can connect to it.
393450
class ConsumerPscConfig
394451
include Google::Apis::Core::Hashable
@@ -854,6 +911,13 @@ class GoogleLongrunningListOperationsResponse
854911
# @return [Array<Google::Apis::NetworkconnectivityV1::GoogleLongrunningOperation>]
855912
attr_accessor :operations
856913

914+
# Unordered list. Unreachable resources. Populated when the request sets `
915+
# ListOperationsRequest.return_partial_success` and reads across collections e.g.
916+
# when attempting to list all resources across all supported locations.
917+
# Corresponds to the JSON property `unreachable`
918+
# @return [Array<String>]
919+
attr_accessor :unreachable
920+
857921
def initialize(**args)
858922
update!(**args)
859923
end
@@ -862,6 +926,7 @@ def initialize(**args)
862926
def update!(**args)
863927
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
864928
@operations = args[:operations] if args.key?(:operations)
929+
@unreachable = args[:unreachable] if args.key?(:unreachable)
865930
end
866931
end
867932

@@ -3231,8 +3296,8 @@ class RegionalEndpoint
32313296
# @return [String]
32323297
attr_accessor :name
32333298

3234-
# The name of the VPC network for this private regional endpoint. Format: `
3235-
# projects/`project`/global/networks/`network``
3299+
# Optional. The name of the VPC network for this private regional endpoint.
3300+
# Format: `projects/`project`/global/networks/`network``
32363301
# Corresponds to the JSON property `network`
32373302
# @return [String]
32383303
attr_accessor :network
@@ -3244,8 +3309,9 @@ class RegionalEndpoint
32443309
# @return [String]
32453310
attr_accessor :psc_forwarding_rule
32463311

3247-
# The name of the subnetwork from which the IP address will be allocated. Format:
3248-
# `projects/`project`/regions/`region`/subnetworks/`subnetwork``
3312+
# Optional. The name of the subnetwork from which the IP address will be
3313+
# allocated. Format: `projects/`project`/regions/`region`/subnetworks/`
3314+
# subnetwork``
32493315
# Corresponds to the JSON property `subnetwork`
32503316
# @return [String]
32513317
attr_accessor :subnetwork
@@ -4531,7 +4597,7 @@ class Transport
45314597
# Optional. [Preview only] List of IP Prefixes that will be advertised to the
45324598
# remote provider. Both IPv4 and IPv6 addresses are supported.
45334599
# Corresponds to the JSON property `advertisedRoutes`
4534-
# @return [String]
4600+
# @return [Array<String>]
45354601
attr_accessor :advertised_routes
45364602

45374603
# Required. Bandwidth of the Transport. This must be one of the supported

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.65.0"
19+
GEM_VERSION = "0.66.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 = "20250910"
25+
REVISION = "20250925"
2626
end
2727
end
2828
end

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

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

79+
class CheckConsumerConfigRequest
80+
class Representation < Google::Apis::Core::JsonRepresentation; end
81+
82+
include Google::Apis::Core::JsonObjectSupport
83+
end
84+
85+
class CheckConsumerConfigResponse
86+
class Representation < Google::Apis::Core::JsonRepresentation; end
87+
88+
include Google::Apis::Core::JsonObjectSupport
89+
end
90+
7991
class ConsumerPscConfig
8092
class Representation < Google::Apis::Core::JsonRepresentation; end
8193

@@ -675,6 +687,23 @@ class Representation < Google::Apis::Core::JsonRepresentation
675687
end
676688
end
677689

690+
class CheckConsumerConfigRequest
691+
# @private
692+
class Representation < Google::Apis::Core::JsonRepresentation
693+
property :consumer_network, as: 'consumerNetwork'
694+
property :endpoint_project, as: 'endpointProject'
695+
property :requested_ip_version, as: 'requestedIpVersion'
696+
property :service_class, as: 'serviceClass'
697+
end
698+
end
699+
700+
class CheckConsumerConfigResponse
701+
# @private
702+
class Representation < Google::Apis::Core::JsonRepresentation
703+
collection :errors, as: 'errors'
704+
end
705+
end
706+
678707
class ConsumerPscConfig
679708
# @private
680709
class Representation < Google::Apis::Core::JsonRepresentation
@@ -779,6 +808,7 @@ class Representation < Google::Apis::Core::JsonRepresentation
779808
property :next_page_token, as: 'nextPageToken'
780809
collection :operations, as: 'operations', class: Google::Apis::NetworkconnectivityV1::GoogleLongrunningOperation, decorator: Google::Apis::NetworkconnectivityV1::GoogleLongrunningOperation::Representation
781810

811+
collection :unreachable, as: 'unreachable'
782812
end
783813
end
784814

@@ -1658,7 +1688,7 @@ class Transport
16581688
# @private
16591689
class Representation < Google::Apis::Core::JsonRepresentation
16601690
property :admin_enabled, as: 'adminEnabled'
1661-
property :advertised_routes, as: 'advertisedRoutes'
1691+
collection :advertised_routes, as: 'advertisedRoutes'
16621692
property :bandwidth, as: 'bandwidth'
16631693
property :create_time, as: 'createTime'
16641694
property :description, as: 'description'

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

Lines changed: 50 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,47 @@ def initialize
5151
@batch_path = 'batch'
5252
end
5353

54+
# CheckConsumerConfig validates the consumer network and project for potential
55+
# PSC connection creation. This method performs several checks, including: -
56+
# Validating the existence and permissions of the service class. - Ensuring the
57+
# consumer network exists and is accessible. - Verifying XPN relationships if
58+
# applicable. - Checking for compatible IP versions between the consumer network
59+
# and the requested version. This method performs a dynamic IAM check for the `
60+
# networkconnectivity.serviceClasses.use` permission on the service class
61+
# resource in the Prepare phase.
62+
# @param [String] location
63+
# Required. The location resource path. Example: - projects/`project`/locations/`
64+
# location`
65+
# @param [Google::Apis::NetworkconnectivityV1::CheckConsumerConfigRequest] check_consumer_config_request_object
66+
# @param [String] fields
67+
# Selector specifying which fields to include in a partial response.
68+
# @param [String] quota_user
69+
# Available to use for quota purposes for server-side applications. Can be any
70+
# arbitrary string assigned to a user, but should not exceed 40 characters.
71+
# @param [Google::Apis::RequestOptions] options
72+
# Request-specific options
73+
#
74+
# @yield [result, err] Result & error if block supplied
75+
# @yieldparam result [Google::Apis::NetworkconnectivityV1::CheckConsumerConfigResponse] parsed result object
76+
# @yieldparam err [StandardError] error object if request failed
77+
#
78+
# @return [Google::Apis::NetworkconnectivityV1::CheckConsumerConfigResponse]
79+
#
80+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
81+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
82+
# @raise [Google::Apis::AuthorizationError] Authorization is required
83+
def check_location_consumer_config(location, check_consumer_config_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
84+
command = make_simple_command(:post, 'v1/{+location}:checkConsumerConfig', options)
85+
command.request_representation = Google::Apis::NetworkconnectivityV1::CheckConsumerConfigRequest::Representation
86+
command.request_object = check_consumer_config_request_object
87+
command.response_representation = Google::Apis::NetworkconnectivityV1::CheckConsumerConfigResponse::Representation
88+
command.response_class = Google::Apis::NetworkconnectivityV1::CheckConsumerConfigResponse
89+
command.params['location'] = location unless location.nil?
90+
command.query['fields'] = fields unless fields.nil?
91+
command.query['quotaUser'] = quota_user unless quota_user.nil?
92+
execute_or_queue_command(command, &block)
93+
end
94+
5495
# Gets information about a location.
5596
# @param [String] name
5697
# Resource name for the location.
@@ -2373,6 +2414,13 @@ def get_project_location_operation(name, fields: nil, quota_user: nil, options:
23732414
# The standard list page size.
23742415
# @param [String] page_token
23752416
# The standard list page token.
2417+
# @param [Boolean] return_partial_success
2418+
# When set to `true`, operations that are reachable are returned as normal, and
2419+
# those that are unreachable are returned in the [ListOperationsResponse.
2420+
# unreachable] field. This can only be `true` when reading across collections e.
2421+
# g. when `parent` is set to `"projects/example/locations/-"`. This field is not
2422+
# by default supported and will result in an `UNIMPLEMENTED` error if set unless
2423+
# explicitly documented otherwise in service or product specific documentation.
23762424
# @param [String] fields
23772425
# Selector specifying which fields to include in a partial response.
23782426
# @param [String] quota_user
@@ -2390,14 +2438,15 @@ def get_project_location_operation(name, fields: nil, quota_user: nil, options:
23902438
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
23912439
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
23922440
# @raise [Google::Apis::AuthorizationError] Authorization is required
2393-
def list_project_location_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
2441+
def list_project_location_operations(name, filter: nil, page_size: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, options: nil, &block)
23942442
command = make_simple_command(:get, 'v1/{+name}/operations', options)
23952443
command.response_representation = Google::Apis::NetworkconnectivityV1::GoogleLongrunningListOperationsResponse::Representation
23962444
command.response_class = Google::Apis::NetworkconnectivityV1::GoogleLongrunningListOperationsResponse
23972445
command.params['name'] = name unless name.nil?
23982446
command.query['filter'] = filter unless filter.nil?
23992447
command.query['pageSize'] = page_size unless page_size.nil?
24002448
command.query['pageToken'] = page_token unless page_token.nil?
2449+
command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
24012450
command.query['fields'] = fields unless fields.nil?
24022451
command.query['quotaUser'] = quota_user unless quota_user.nil?
24032452
execute_or_queue_command(command, &block)

0 commit comments

Comments
 (0)