google-apis-networkconnectivity_v1 0.65.0 → 0.66.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/google/apis/networkconnectivity_v1/classes.rb +71 -5
- data/lib/google/apis/networkconnectivity_v1/gem_version.rb +2 -2
- data/lib/google/apis/networkconnectivity_v1/representations.rb +31 -1
- data/lib/google/apis/networkconnectivity_v1/service.rb +50 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2c15876a7fcadd67a059a835d0a00bbc2496b4e23742958f0776e27bd7252745
|
4
|
+
data.tar.gz: d4e3e885378eb2138dee25c103a33dfc0169845523656855abe12d64e719710e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7e994be7c3d290052b353c74ff2e88c10e18e094d074f270a9f19bfa2d0f8b6ea0659b7de76fb4ccde0cc0004a82e31c499bf92ead75ccf1c31160aa5b778d73
|
7
|
+
data.tar.gz: 6e0b8623873405c0b60773807402f353e3a05a4a8d3135e67196edbe96754ec009e1b948bf676c19486a528401b131f5e5cc8024d7779576474e8f5d98074dcf
|
data/CHANGELOG.md
CHANGED
@@ -389,6 +389,63 @@ module Google
|
|
389
389
|
end
|
390
390
|
end
|
391
391
|
|
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
|
+
|
392
449
|
# Allow the producer to specify which consumers can connect to it.
|
393
450
|
class ConsumerPscConfig
|
394
451
|
include Google::Apis::Core::Hashable
|
@@ -854,6 +911,13 @@ module Google
|
|
854
911
|
# @return [Array<Google::Apis::NetworkconnectivityV1::GoogleLongrunningOperation>]
|
855
912
|
attr_accessor :operations
|
856
913
|
|
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
|
+
|
857
921
|
def initialize(**args)
|
858
922
|
update!(**args)
|
859
923
|
end
|
@@ -862,6 +926,7 @@ module Google
|
|
862
926
|
def update!(**args)
|
863
927
|
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
864
928
|
@operations = args[:operations] if args.key?(:operations)
|
929
|
+
@unreachable = args[:unreachable] if args.key?(:unreachable)
|
865
930
|
end
|
866
931
|
end
|
867
932
|
|
@@ -3231,8 +3296,8 @@ module Google
|
|
3231
3296
|
# @return [String]
|
3232
3297
|
attr_accessor :name
|
3233
3298
|
|
3234
|
-
# The name of the VPC network for this private regional endpoint.
|
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``
|
3236
3301
|
# Corresponds to the JSON property `network`
|
3237
3302
|
# @return [String]
|
3238
3303
|
attr_accessor :network
|
@@ -3244,8 +3309,9 @@ module Google
|
|
3244
3309
|
# @return [String]
|
3245
3310
|
attr_accessor :psc_forwarding_rule
|
3246
3311
|
|
3247
|
-
# The name of the subnetwork from which the IP address will be
|
3248
|
-
# `projects/`project`/regions/`region`/subnetworks/`
|
3312
|
+
# Optional. The name of the subnetwork from which the IP address will be
|
3313
|
+
# allocated. Format: `projects/`project`/regions/`region`/subnetworks/`
|
3314
|
+
# subnetwork``
|
3249
3315
|
# Corresponds to the JSON property `subnetwork`
|
3250
3316
|
# @return [String]
|
3251
3317
|
attr_accessor :subnetwork
|
@@ -4531,7 +4597,7 @@ module Google
|
|
4531
4597
|
# Optional. [Preview only] List of IP Prefixes that will be advertised to the
|
4532
4598
|
# remote provider. Both IPv4 and IPv6 addresses are supported.
|
4533
4599
|
# Corresponds to the JSON property `advertisedRoutes`
|
4534
|
-
# @return [String]
|
4600
|
+
# @return [Array<String>]
|
4535
4601
|
attr_accessor :advertised_routes
|
4536
4602
|
|
4537
4603
|
# Required. Bandwidth of the Transport. This must be one of the supported
|
@@ -16,13 +16,13 @@ module Google
|
|
16
16
|
module Apis
|
17
17
|
module NetworkconnectivityV1
|
18
18
|
# Version of the google-apis-networkconnectivity_v1 gem
|
19
|
-
GEM_VERSION = "0.
|
19
|
+
GEM_VERSION = "0.66.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
22
|
GENERATOR_VERSION = "0.18.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20250925"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -76,6 +76,18 @@ module Google
|
|
76
76
|
include Google::Apis::Core::JsonObjectSupport
|
77
77
|
end
|
78
78
|
|
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
|
+
|
79
91
|
class ConsumerPscConfig
|
80
92
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
81
93
|
|
@@ -675,6 +687,23 @@ module Google
|
|
675
687
|
end
|
676
688
|
end
|
677
689
|
|
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
|
+
|
678
707
|
class ConsumerPscConfig
|
679
708
|
# @private
|
680
709
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -779,6 +808,7 @@ module Google
|
|
779
808
|
property :next_page_token, as: 'nextPageToken'
|
780
809
|
collection :operations, as: 'operations', class: Google::Apis::NetworkconnectivityV1::GoogleLongrunningOperation, decorator: Google::Apis::NetworkconnectivityV1::GoogleLongrunningOperation::Representation
|
781
810
|
|
811
|
+
collection :unreachable, as: 'unreachable'
|
782
812
|
end
|
783
813
|
end
|
784
814
|
|
@@ -1658,7 +1688,7 @@ module Google
|
|
1658
1688
|
# @private
|
1659
1689
|
class Representation < Google::Apis::Core::JsonRepresentation
|
1660
1690
|
property :admin_enabled, as: 'adminEnabled'
|
1661
|
-
|
1691
|
+
collection :advertised_routes, as: 'advertisedRoutes'
|
1662
1692
|
property :bandwidth, as: 'bandwidth'
|
1663
1693
|
property :create_time, as: 'createTime'
|
1664
1694
|
property :description, as: 'description'
|
@@ -51,6 +51,47 @@ module Google
|
|
51
51
|
@batch_path = 'batch'
|
52
52
|
end
|
53
53
|
|
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
|
+
|
54
95
|
# Gets information about a location.
|
55
96
|
# @param [String] name
|
56
97
|
# Resource name for the location.
|
@@ -2373,6 +2414,13 @@ module Google
|
|
2373
2414
|
# The standard list page size.
|
2374
2415
|
# @param [String] page_token
|
2375
2416
|
# 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.
|
2376
2424
|
# @param [String] fields
|
2377
2425
|
# Selector specifying which fields to include in a partial response.
|
2378
2426
|
# @param [String] quota_user
|
@@ -2390,7 +2438,7 @@ module Google
|
|
2390
2438
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2391
2439
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2392
2440
|
# @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)
|
2394
2442
|
command = make_simple_command(:get, 'v1/{+name}/operations', options)
|
2395
2443
|
command.response_representation = Google::Apis::NetworkconnectivityV1::GoogleLongrunningListOperationsResponse::Representation
|
2396
2444
|
command.response_class = Google::Apis::NetworkconnectivityV1::GoogleLongrunningListOperationsResponse
|
@@ -2398,6 +2446,7 @@ module Google
|
|
2398
2446
|
command.query['filter'] = filter unless filter.nil?
|
2399
2447
|
command.query['pageSize'] = page_size unless page_size.nil?
|
2400
2448
|
command.query['pageToken'] = page_token unless page_token.nil?
|
2449
|
+
command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
|
2401
2450
|
command.query['fields'] = fields unless fields.nil?
|
2402
2451
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2403
2452
|
execute_or_queue_command(command, &block)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-apis-networkconnectivity_v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.66.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
@@ -57,7 +57,7 @@ licenses:
|
|
57
57
|
metadata:
|
58
58
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
59
59
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-networkconnectivity_v1/CHANGELOG.md
|
60
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-networkconnectivity_v1/v0.
|
60
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-networkconnectivity_v1/v0.66.0
|
61
61
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-networkconnectivity_v1
|
62
62
|
rdoc_options: []
|
63
63
|
require_paths:
|