Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions api_names_out.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -298593,6 +298593,14 @@
"/networkconnectivity:v1/Binding/members": members
"/networkconnectivity:v1/Binding/members/member": member
"/networkconnectivity:v1/Binding/role": role
"/networkconnectivity:v1/CheckConsumerConfigRequest": check_consumer_config_request
"/networkconnectivity:v1/CheckConsumerConfigRequest/consumerNetwork": consumer_network
"/networkconnectivity:v1/CheckConsumerConfigRequest/endpointProject": endpoint_project
"/networkconnectivity:v1/CheckConsumerConfigRequest/requestedIpVersion": requested_ip_version
"/networkconnectivity:v1/CheckConsumerConfigRequest/serviceClass": service_class
"/networkconnectivity:v1/CheckConsumerConfigResponse": check_consumer_config_response
"/networkconnectivity:v1/CheckConsumerConfigResponse/errors": errors
"/networkconnectivity:v1/CheckConsumerConfigResponse/errors/error": error
"/networkconnectivity:v1/ConsumerPscConfig": consumer_psc_config
"/networkconnectivity:v1/ConsumerPscConfig/consumerInstanceProject": consumer_instance_project
"/networkconnectivity:v1/ConsumerPscConfig/disableGlobalAccess": disable_global_access
Expand Down Expand Up @@ -298656,6 +298664,8 @@
"/networkconnectivity:v1/GoogleLongrunningListOperationsResponse/nextPageToken": next_page_token
"/networkconnectivity:v1/GoogleLongrunningListOperationsResponse/operations": operations
"/networkconnectivity:v1/GoogleLongrunningListOperationsResponse/operations/operation": operation
"/networkconnectivity:v1/GoogleLongrunningListOperationsResponse/unreachable": unreachable
"/networkconnectivity:v1/GoogleLongrunningListOperationsResponse/unreachable/unreachable": unreachable
"/networkconnectivity:v1/GoogleLongrunningOperation": google_longrunning_operation
"/networkconnectivity:v1/GoogleLongrunningOperation/done": done
"/networkconnectivity:v1/GoogleLongrunningOperation/error": error
Expand Down Expand Up @@ -299202,6 +299212,7 @@
"/networkconnectivity:v1/Transport": transport
"/networkconnectivity:v1/Transport/adminEnabled": admin_enabled
"/networkconnectivity:v1/Transport/advertisedRoutes": advertised_routes
"/networkconnectivity:v1/Transport/advertisedRoutes/advertised_route": advertised_route
"/networkconnectivity:v1/Transport/bandwidth": bandwidth
"/networkconnectivity:v1/Transport/createTime": create_time
"/networkconnectivity:v1/Transport/description": description
Expand All @@ -299227,6 +299238,8 @@
"/networkconnectivity:v1/Warnings/warningMessage": warning_message
"/networkconnectivity:v1/fields": fields
"/networkconnectivity:v1/key": key
"/networkconnectivity:v1/networkconnectivity.projects.locations.checkConsumerConfig": check_location_consumer_config
"/networkconnectivity:v1/networkconnectivity.projects.locations.checkConsumerConfig/location": location
"/networkconnectivity:v1/networkconnectivity.projects.locations.get": get_project_location
"/networkconnectivity:v1/networkconnectivity.projects.locations.get/name": name
"/networkconnectivity:v1/networkconnectivity.projects.locations.global.hubs.acceptSpoke": accept_project_location_global_hub_spoke
Expand Down Expand Up @@ -299429,6 +299442,7 @@
"/networkconnectivity:v1/networkconnectivity.projects.locations.operations.list/name": name
"/networkconnectivity:v1/networkconnectivity.projects.locations.operations.list/pageSize": page_size
"/networkconnectivity:v1/networkconnectivity.projects.locations.operations.list/pageToken": page_token
"/networkconnectivity:v1/networkconnectivity.projects.locations.operations.list/returnPartialSuccess": return_partial_success
"/networkconnectivity:v1/networkconnectivity.projects.locations.regionalEndpoints.create": create_project_location_regional_endpoint
"/networkconnectivity:v1/networkconnectivity.projects.locations.regionalEndpoints.create/parent": parent
"/networkconnectivity:v1/networkconnectivity.projects.locations.regionalEndpoints.create/regionalEndpointId": regional_endpoint_id
Expand Down
4 changes: 4 additions & 0 deletions generated/google-apis-networkconnectivity_v1/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Release history for google-apis-networkconnectivity_v1

### v0.66.0 (2025-10-05)

* Regenerated from discovery document revision 20250925

### v0.65.0 (2025-09-21)

* Regenerated from discovery document revision 20250910
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -389,6 +389,63 @@ def update!(**args)
end
end

# Request for CheckConsumerConfig.
class CheckConsumerConfigRequest
include Google::Apis::Core::Hashable

# Required. Full resource name of the consumer network. Example: - projects/`
# project`/global/networks/`network`.
# Corresponds to the JSON property `consumerNetwork`
# @return [String]
attr_accessor :consumer_network

# The project number or ID where the PSC endpoint is to be created.
# Corresponds to the JSON property `endpointProject`
# @return [String]
attr_accessor :endpoint_project

# The requested IP Version
# Corresponds to the JSON property `requestedIpVersion`
# @return [String]
attr_accessor :requested_ip_version

# Required. The service class identifier of the producer.
# Corresponds to the JSON property `serviceClass`
# @return [String]
attr_accessor :service_class

def initialize(**args)
update!(**args)
end

# Update properties of this object
def update!(**args)
@consumer_network = args[:consumer_network] if args.key?(:consumer_network)
@endpoint_project = args[:endpoint_project] if args.key?(:endpoint_project)
@requested_ip_version = args[:requested_ip_version] if args.key?(:requested_ip_version)
@service_class = args[:service_class] if args.key?(:service_class)
end
end

# Response for CheckConsumerConfig.
class CheckConsumerConfigResponse
include Google::Apis::Core::Hashable

# List of validation errors. If the list is empty, the consumer config is valid.
# Corresponds to the JSON property `errors`
# @return [Array<String>]
attr_accessor :errors

def initialize(**args)
update!(**args)
end

# Update properties of this object
def update!(**args)
@errors = args[:errors] if args.key?(:errors)
end
end

# Allow the producer to specify which consumers can connect to it.
class ConsumerPscConfig
include Google::Apis::Core::Hashable
Expand Down Expand Up @@ -854,6 +911,13 @@ class GoogleLongrunningListOperationsResponse
# @return [Array<Google::Apis::NetworkconnectivityV1::GoogleLongrunningOperation>]
attr_accessor :operations

# Unordered list. Unreachable resources. Populated when the request sets `
# ListOperationsRequest.return_partial_success` and reads across collections e.g.
# when attempting to list all resources across all supported locations.
# Corresponds to the JSON property `unreachable`
# @return [Array<String>]
attr_accessor :unreachable

def initialize(**args)
update!(**args)
end
Expand All @@ -862,6 +926,7 @@ def initialize(**args)
def update!(**args)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
@operations = args[:operations] if args.key?(:operations)
@unreachable = args[:unreachable] if args.key?(:unreachable)
end
end

Expand Down Expand Up @@ -3231,8 +3296,8 @@ class RegionalEndpoint
# @return [String]
attr_accessor :name

# The name of the VPC network for this private regional endpoint. Format: `
# projects/`project`/global/networks/`network``
# Optional. The name of the VPC network for this private regional endpoint.
# Format: `projects/`project`/global/networks/`network``
# Corresponds to the JSON property `network`
# @return [String]
attr_accessor :network
Expand All @@ -3244,8 +3309,9 @@ class RegionalEndpoint
# @return [String]
attr_accessor :psc_forwarding_rule

# The name of the subnetwork from which the IP address will be allocated. Format:
# `projects/`project`/regions/`region`/subnetworks/`subnetwork``
# Optional. The name of the subnetwork from which the IP address will be
# allocated. Format: `projects/`project`/regions/`region`/subnetworks/`
# subnetwork``
# Corresponds to the JSON property `subnetwork`
# @return [String]
attr_accessor :subnetwork
Expand Down Expand Up @@ -4531,7 +4597,7 @@ class Transport
# Optional. [Preview only] List of IP Prefixes that will be advertised to the
# remote provider. Both IPv4 and IPv6 addresses are supported.
# Corresponds to the JSON property `advertisedRoutes`
# @return [String]
# @return [Array<String>]
attr_accessor :advertised_routes

# Required. Bandwidth of the Transport. This must be one of the supported
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@ module Google
module Apis
module NetworkconnectivityV1
# Version of the google-apis-networkconnectivity_v1 gem
GEM_VERSION = "0.65.0"
GEM_VERSION = "0.66.0"

# Version of the code generator used to generate this client
GENERATOR_VERSION = "0.18.0"

# Revision of the discovery document this client was generated from
REVISION = "20250910"
REVISION = "20250925"
end
end
end
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,18 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end

class CheckConsumerConfigRequest
class Representation < Google::Apis::Core::JsonRepresentation; end

include Google::Apis::Core::JsonObjectSupport
end

class CheckConsumerConfigResponse
class Representation < Google::Apis::Core::JsonRepresentation; end

include Google::Apis::Core::JsonObjectSupport
end

class ConsumerPscConfig
class Representation < Google::Apis::Core::JsonRepresentation; end

Expand Down Expand Up @@ -675,6 +687,23 @@ class Representation < Google::Apis::Core::JsonRepresentation
end
end

class CheckConsumerConfigRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :consumer_network, as: 'consumerNetwork'
property :endpoint_project, as: 'endpointProject'
property :requested_ip_version, as: 'requestedIpVersion'
property :service_class, as: 'serviceClass'
end
end

class CheckConsumerConfigResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :errors, as: 'errors'
end
end

class ConsumerPscConfig
# @private
class Representation < Google::Apis::Core::JsonRepresentation
Expand Down Expand Up @@ -779,6 +808,7 @@ class Representation < Google::Apis::Core::JsonRepresentation
property :next_page_token, as: 'nextPageToken'
collection :operations, as: 'operations', class: Google::Apis::NetworkconnectivityV1::GoogleLongrunningOperation, decorator: Google::Apis::NetworkconnectivityV1::GoogleLongrunningOperation::Representation

collection :unreachable, as: 'unreachable'
end
end

Expand Down Expand Up @@ -1658,7 +1688,7 @@ class Transport
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :admin_enabled, as: 'adminEnabled'
property :advertised_routes, as: 'advertisedRoutes'
collection :advertised_routes, as: 'advertisedRoutes'
property :bandwidth, as: 'bandwidth'
property :create_time, as: 'createTime'
property :description, as: 'description'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,47 @@ def initialize
@batch_path = 'batch'
end

# CheckConsumerConfig validates the consumer network and project for potential
# PSC connection creation. This method performs several checks, including: -
# Validating the existence and permissions of the service class. - Ensuring the
# consumer network exists and is accessible. - Verifying XPN relationships if
# applicable. - Checking for compatible IP versions between the consumer network
# and the requested version. This method performs a dynamic IAM check for the `
# networkconnectivity.serviceClasses.use` permission on the service class
# resource in the Prepare phase.
# @param [String] location
# Required. The location resource path. Example: - projects/`project`/locations/`
# location`
# @param [Google::Apis::NetworkconnectivityV1::CheckConsumerConfigRequest] check_consumer_config_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::NetworkconnectivityV1::CheckConsumerConfigResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::NetworkconnectivityV1::CheckConsumerConfigResponse]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def check_location_consumer_config(location, check_consumer_config_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1/{+location}:checkConsumerConfig', options)
command.request_representation = Google::Apis::NetworkconnectivityV1::CheckConsumerConfigRequest::Representation
command.request_object = check_consumer_config_request_object
command.response_representation = Google::Apis::NetworkconnectivityV1::CheckConsumerConfigResponse::Representation
command.response_class = Google::Apis::NetworkconnectivityV1::CheckConsumerConfigResponse
command.params['location'] = location unless location.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end

# Gets information about a location.
# @param [String] name
# Resource name for the location.
Expand Down Expand Up @@ -2373,6 +2414,13 @@ def get_project_location_operation(name, fields: nil, quota_user: nil, options:
# The standard list page size.
# @param [String] page_token
# The standard list page token.
# @param [Boolean] return_partial_success
# When set to `true`, operations that are reachable are returned as normal, and
# those that are unreachable are returned in the [ListOperationsResponse.
# unreachable] field. This can only be `true` when reading across collections e.
# g. when `parent` is set to `"projects/example/locations/-"`. This field is not
# by default supported and will result in an `UNIMPLEMENTED` error if set unless
# explicitly documented otherwise in service or product specific documentation.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
Expand All @@ -2390,14 +2438,15 @@ def get_project_location_operation(name, fields: nil, quota_user: nil, options:
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def list_project_location_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
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)
command = make_simple_command(:get, 'v1/{+name}/operations', options)
command.response_representation = Google::Apis::NetworkconnectivityV1::GoogleLongrunningListOperationsResponse::Representation
command.response_class = Google::Apis::NetworkconnectivityV1::GoogleLongrunningListOperationsResponse
command.params['name'] = name unless name.nil?
command.query['filter'] = filter unless filter.nil?
command.query['pageSize'] = page_size unless page_size.nil?
command.query['pageToken'] = page_token unless page_token.nil?
command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
Expand Down