google-cloud-network_connectivity-v1 1.6.0 → 1.8.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/lib/google/cloud/network_connectivity/v1/data_transfer_service/client.rb +1765 -0
- data/lib/google/cloud/network_connectivity/v1/data_transfer_service/credentials.rb +51 -0
- data/lib/google/cloud/network_connectivity/v1/data_transfer_service/operations.rb +813 -0
- data/lib/google/cloud/network_connectivity/v1/data_transfer_service/paths.rb +109 -0
- data/lib/google/cloud/network_connectivity/v1/data_transfer_service.rb +50 -0
- data/lib/google/cloud/network_connectivity/v1/internal_range_service/client.rb +983 -0
- data/lib/google/cloud/network_connectivity/v1/internal_range_service/credentials.rb +51 -0
- data/lib/google/cloud/network_connectivity/v1/internal_range_service/operations.rb +813 -0
- data/lib/google/cloud/network_connectivity/v1/internal_range_service/paths.rb +69 -0
- data/lib/google/cloud/network_connectivity/v1/internal_range_service.rb +51 -0
- data/lib/google/cloud/network_connectivity/v1/version.rb +1 -1
- data/lib/google/cloud/network_connectivity/v1.rb +2 -0
- data/lib/google/cloud/networkconnectivity/v1/data_transfer_pb.rb +79 -0
- data/lib/google/cloud/networkconnectivity/v1/data_transfer_services_pb.rb +72 -0
- data/lib/google/cloud/networkconnectivity/v1/internal_range_pb.rb +66 -0
- data/lib/google/cloud/networkconnectivity/v1/internal_range_services_pb.rb +54 -0
- data/proto_docs/google/cloud/networkconnectivity/v1/data_transfer.rb +635 -0
- data/proto_docs/google/cloud/networkconnectivity/v1/internal_range.rb +397 -0
- metadata +20 -4
@@ -0,0 +1,69 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2025 Google LLC
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
|
+
|
19
|
+
|
20
|
+
module Google
|
21
|
+
module Cloud
|
22
|
+
module NetworkConnectivity
|
23
|
+
module V1
|
24
|
+
module InternalRangeService
|
25
|
+
# Path helper methods for the InternalRangeService API.
|
26
|
+
module Paths
|
27
|
+
##
|
28
|
+
# Create a fully-qualified InternalRange resource string.
|
29
|
+
#
|
30
|
+
# The resource will be in the following format:
|
31
|
+
#
|
32
|
+
# `projects/{project}/locations/{location}/internalRanges/{internal_range}`
|
33
|
+
#
|
34
|
+
# @param project [String]
|
35
|
+
# @param location [String]
|
36
|
+
# @param internal_range [String]
|
37
|
+
#
|
38
|
+
# @return [::String]
|
39
|
+
def internal_range_path project:, location:, internal_range:
|
40
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
41
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
42
|
+
|
43
|
+
"projects/#{project}/locations/#{location}/internalRanges/#{internal_range}"
|
44
|
+
end
|
45
|
+
|
46
|
+
##
|
47
|
+
# Create a fully-qualified Location resource string.
|
48
|
+
#
|
49
|
+
# The resource will be in the following format:
|
50
|
+
#
|
51
|
+
# `projects/{project}/locations/{location}`
|
52
|
+
#
|
53
|
+
# @param project [String]
|
54
|
+
# @param location [String]
|
55
|
+
#
|
56
|
+
# @return [::String]
|
57
|
+
def location_path project:, location:
|
58
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
59
|
+
|
60
|
+
"projects/#{project}/locations/#{location}"
|
61
|
+
end
|
62
|
+
|
63
|
+
extend self
|
64
|
+
end
|
65
|
+
end
|
66
|
+
end
|
67
|
+
end
|
68
|
+
end
|
69
|
+
end
|
@@ -0,0 +1,51 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2025 Google LLC
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
|
+
|
19
|
+
require "gapic/common"
|
20
|
+
require "gapic/config"
|
21
|
+
require "gapic/config/method"
|
22
|
+
|
23
|
+
require "google/cloud/network_connectivity/v1/version"
|
24
|
+
|
25
|
+
require "google/cloud/network_connectivity/v1/internal_range_service/credentials"
|
26
|
+
require "google/cloud/network_connectivity/v1/internal_range_service/paths"
|
27
|
+
require "google/cloud/network_connectivity/v1/internal_range_service/operations"
|
28
|
+
require "google/cloud/network_connectivity/v1/internal_range_service/client"
|
29
|
+
|
30
|
+
module Google
|
31
|
+
module Cloud
|
32
|
+
module NetworkConnectivity
|
33
|
+
module V1
|
34
|
+
##
|
35
|
+
# The CLH-based service for internal range resources used to perform IPAM
|
36
|
+
# operations within a VPC network.
|
37
|
+
#
|
38
|
+
# @example Load this service and instantiate a gRPC client
|
39
|
+
#
|
40
|
+
# require "google/cloud/network_connectivity/v1/internal_range_service"
|
41
|
+
# client = ::Google::Cloud::NetworkConnectivity::V1::InternalRangeService::Client.new
|
42
|
+
#
|
43
|
+
module InternalRangeService
|
44
|
+
end
|
45
|
+
end
|
46
|
+
end
|
47
|
+
end
|
48
|
+
end
|
49
|
+
|
50
|
+
helper_path = ::File.join __dir__, "internal_range_service", "helpers.rb"
|
51
|
+
require "google/cloud/network_connectivity/v1/internal_range_service/helpers" if ::File.file? helper_path
|
@@ -17,7 +17,9 @@
|
|
17
17
|
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
18
|
|
19
19
|
require "google/cloud/network_connectivity/v1/cross_network_automation_service"
|
20
|
+
require "google/cloud/network_connectivity/v1/data_transfer_service"
|
20
21
|
require "google/cloud/network_connectivity/v1/hub_service"
|
22
|
+
require "google/cloud/network_connectivity/v1/internal_range_service"
|
21
23
|
require "google/cloud/network_connectivity/v1/policy_based_routing_service"
|
22
24
|
require "google/cloud/network_connectivity/v1/version"
|
23
25
|
|
@@ -0,0 +1,79 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
3
|
+
# source: google/cloud/networkconnectivity/v1/data_transfer.proto
|
4
|
+
|
5
|
+
require 'google/protobuf'
|
6
|
+
|
7
|
+
require 'google/api/annotations_pb'
|
8
|
+
require 'google/api/client_pb'
|
9
|
+
require 'google/api/field_behavior_pb'
|
10
|
+
require 'google/api/field_info_pb'
|
11
|
+
require 'google/api/resource_pb'
|
12
|
+
require 'google/cloud/networkconnectivity/v1/common_pb'
|
13
|
+
require 'google/longrunning/operations_pb'
|
14
|
+
require 'google/protobuf/empty_pb'
|
15
|
+
require 'google/protobuf/field_mask_pb'
|
16
|
+
require 'google/protobuf/timestamp_pb'
|
17
|
+
|
18
|
+
|
19
|
+
descriptor_data = "\n7google/cloud/networkconnectivity/v1/data_transfer.proto\x12#google.cloud.networkconnectivity.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x1bgoogle/api/field_info.proto\x1a\x19google/api/resource.proto\x1a\x30google/cloud/networkconnectivity/v1/common.proto\x1a#google/longrunning/operations.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xf6\x06\n\x1cMulticloudDataTransferConfig\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12\x34\n\x0b\x63reate_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x62\n\x06labels\x18\x04 \x03(\x0b\x32M.google.cloud.networkconnectivity.v1.MulticloudDataTransferConfig.LabelsEntryB\x03\xe0\x41\x01\x12\x0c\n\x04\x65tag\x18\x05 \x01(\t\x12\x18\n\x0b\x64\x65scription\x18\x06 \x01(\tB\x03\xe0\x41\x01\x12\x1f\n\x12\x64\x65stinations_count\x18\x07 \x01(\x05\x42\x03\xe0\x41\x03\x12&\n\x19\x64\x65stinations_active_count\x18\x08 \x01(\x05\x42\x03\xe0\x41\x03\x12\x66\n\x08services\x18\t \x03(\x0b\x32O.google.cloud.networkconnectivity.v1.MulticloudDataTransferConfig.ServicesEntryB\x03\xe0\x41\x01\x12\x18\n\x03uid\x18\n \x01(\tB\x0b\xe0\x41\x03\xe2\x8c\xcf\xd7\x08\x02\x08\x01\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a\x63\n\rServicesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x41\n\x05value\x18\x02 \x01(\x0b\x32\x32.google.cloud.networkconnectivity.v1.StateTimeline:\x02\x38\x01:\xeb\x01\xea\x41\xe7\x01\n?networkconnectivity.googleapis.com/MulticloudDataTransferConfig\x12gprojects/{project}/locations/{location}/multicloudDataTransferConfigs/{multicloud_data_transfer_config}*\x1dmulticloudDataTransferConfigs2\x1cmulticloudDataTransferConfig\"\xe7\x01\n(ListMulticloudDataTransferConfigsRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!locations.googleapis.com/Location\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06\x66ilter\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x15\n\x08order_by\x18\x05 \x01(\tB\x03\xe0\x41\x01\x12#\n\x16return_partial_success\x18\x06 \x01(\x08\x42\x03\xe0\x41\x01\"\xc6\x01\n)ListMulticloudDataTransferConfigsResponse\x12k\n multicloud_data_transfer_configs\x18\x01 \x03(\x0b\x32\x41.google.cloud.networkconnectivity.v1.MulticloudDataTransferConfig\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x13\n\x0bunreachable\x18\x03 \x03(\t\"\x7f\n&GetMulticloudDataTransferConfigRequest\x12U\n\x04name\x18\x01 \x01(\tBG\xe0\x41\x02\xfa\x41\x41\n?networkconnectivity.googleapis.com/MulticloudDataTransferConfig\"\xa9\x02\n)CreateMulticloudDataTransferConfigRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!locations.googleapis.com/Location\x12/\n\"multicloud_data_transfer_config_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12o\n\x1fmulticloud_data_transfer_config\x18\x03 \x01(\x0b\x32\x41.google.cloud.networkconnectivity.v1.MulticloudDataTransferConfigB\x03\xe0\x41\x02\x12\x1f\n\nrequest_id\x18\x04 \x01(\tB\x0b\xe0\x41\x01\xe2\x8c\xcf\xd7\x08\x02\x08\x01\"\xf3\x01\n)UpdateMulticloudDataTransferConfigRequest\x12\x34\n\x0bupdate_mask\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x01\x12o\n\x1fmulticloud_data_transfer_config\x18\x02 \x01(\x0b\x32\x41.google.cloud.networkconnectivity.v1.MulticloudDataTransferConfigB\x03\xe0\x41\x02\x12\x1f\n\nrequest_id\x18\x03 \x01(\tB\x0b\xe0\x41\x01\xe2\x8c\xcf\xd7\x08\x02\x08\x01\"\xb6\x01\n)DeleteMulticloudDataTransferConfigRequest\x12U\n\x04name\x18\x01 \x01(\tBG\xe0\x41\x02\xfa\x41\x41\n?networkconnectivity.googleapis.com/MulticloudDataTransferConfig\x12\x1f\n\nrequest_id\x18\x02 \x01(\tB\x0b\xe0\x41\x01\xe2\x8c\xcf\xd7\x08\x02\x08\x01\x12\x11\n\x04\x65tag\x18\x03 \x01(\tB\x03\xe0\x41\x01\"\xfe\x07\n\x0b\x44\x65stination\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12\x34\n\x0b\x63reate_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12Q\n\x06labels\x18\x04 \x03(\x0b\x32<.google.cloud.networkconnectivity.v1.Destination.LabelsEntryB\x03\xe0\x41\x01\x12\x0c\n\x04\x65tag\x18\x05 \x01(\t\x12\x18\n\x0b\x64\x65scription\x18\x06 \x01(\tB\x03\xe0\x41\x01\x12\x19\n\tip_prefix\x18\x07 \x01(\tB\x06\xe0\x41\x02\xe0\x41\x05\x12_\n\tendpoints\x18\x08 \x03(\x0b\x32\x44.google.cloud.networkconnectivity.v1.Destination.DestinationEndpointB\x06\xe0\x41\x06\xe0\x41\x02\x12O\n\x0estate_timeline\x18\t \x01(\x0b\x32\x32.google.cloud.networkconnectivity.v1.StateTimelineB\x03\xe0\x41\x03\x12\x18\n\x03uid\x18\n \x01(\tB\x0b\xe0\x41\x03\xe2\x8c\xcf\xd7\x08\x02\x08\x01\x1a\x87\x02\n\x13\x44\x65stinationEndpoint\x12\x10\n\x03\x61sn\x18\x01 \x01(\x03\x42\x03\xe0\x41\x02\x12\x10\n\x03\x63sp\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12^\n\x05state\x18\x03 \x01(\x0e\x32J.google.cloud.networkconnectivity.v1.Destination.DestinationEndpoint.StateB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\"6\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\t\n\x05VALID\x10\x01\x12\x0b\n\x07INVALID\x10\x02\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01:\xd4\x01\xea\x41\xd0\x01\n.networkconnectivity.googleapis.com/Destination\x12\x82\x01projects/{project}/locations/{location}/multicloudDataTransferConfigs/{multicloud_data_transfer_config}/destinations/{destination}*\x0c\x64\x65stinations2\x0b\x64\x65stination\"\xf4\x01\n\x17ListDestinationsRequest\x12W\n\x06parent\x18\x01 \x01(\tBG\xe0\x41\x02\xfa\x41\x41\n?networkconnectivity.googleapis.com/MulticloudDataTransferConfig\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06\x66ilter\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x15\n\x08order_by\x18\x05 \x01(\tB\x03\xe0\x41\x01\x12#\n\x16return_partial_success\x18\x06 \x01(\x08\x42\x03\xe0\x41\x01\"\x90\x01\n\x18ListDestinationsResponse\x12\x46\n\x0c\x64\x65stinations\x18\x01 \x03(\x0b\x32\x30.google.cloud.networkconnectivity.v1.Destination\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x13\n\x0bunreachable\x18\x03 \x03(\t\"]\n\x15GetDestinationRequest\x12\x44\n\x04name\x18\x01 \x01(\tB6\xe0\x41\x02\xfa\x41\x30\n.networkconnectivity.googleapis.com/Destination\"\xfd\x01\n\x18\x43reateDestinationRequest\x12W\n\x06parent\x18\x01 \x01(\tBG\xe0\x41\x02\xfa\x41\x41\n?networkconnectivity.googleapis.com/MulticloudDataTransferConfig\x12\x1b\n\x0e\x64\x65stination_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12J\n\x0b\x64\x65stination\x18\x03 \x01(\x0b\x32\x30.google.cloud.networkconnectivity.v1.DestinationB\x03\xe0\x41\x02\x12\x1f\n\nrequest_id\x18\x04 \x01(\tB\x0b\xe0\x41\x01\xe2\x8c\xcf\xd7\x08\x02\x08\x01\"\xbd\x01\n\x18UpdateDestinationRequest\x12\x34\n\x0bupdate_mask\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x01\x12J\n\x0b\x64\x65stination\x18\x02 \x01(\x0b\x32\x30.google.cloud.networkconnectivity.v1.DestinationB\x03\xe0\x41\x02\x12\x1f\n\nrequest_id\x18\x03 \x01(\tB\x0b\xe0\x41\x01\xe2\x8c\xcf\xd7\x08\x02\x08\x01\"\x94\x01\n\x18\x44\x65leteDestinationRequest\x12\x44\n\x04name\x18\x01 \x01(\tB6\xe0\x41\x02\xfa\x41\x30\n.networkconnectivity.googleapis.com/Destination\x12\x1f\n\nrequest_id\x18\x02 \x01(\tB\x0b\xe0\x41\x01\xe2\x8c\xcf\xd7\x08\x02\x08\x01\x12\x11\n\x04\x65tag\x18\x03 \x01(\tB\x03\xe0\x41\x01\"\xf2\x02\n\rStateTimeline\x12U\n\x06states\x18\x01 \x03(\x0b\x32@.google.cloud.networkconnectivity.v1.StateTimeline.StateMetadataB\x03\xe0\x41\x03\x1a\x89\x02\n\rStateMetadata\x12Z\n\x05state\x18\x01 \x01(\x0e\x32\x46.google.cloud.networkconnectivity.v1.StateTimeline.StateMetadata.StateB\x03\xe0\x41\x03\x12\x37\n\x0e\x65\x66\x66\x65\x63tive_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\"c\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\n\n\x06\x41\x44\x44ING\x10\x01\x12\n\n\x06\x41\x43TIVE\x10\x02\x12\x0c\n\x08\x44\x45LETING\x10\x03\x12\x0e\n\nSUSPENDING\x10\x04\x12\r\n\tSUSPENDED\x10\x05\"\xae\x03\n&MulticloudDataTransferSupportedService\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12P\n\x0fservice_configs\x18\x02 \x03(\x0b\x32\x32.google.cloud.networkconnectivity.v1.ServiceConfigB\x03\xe0\x41\x03:\x9e\x02\xea\x41\x9a\x02\nInetworkconnectivity.googleapis.com/MulticloudDataTransferSupportedService\x12|projects/{project}/locations/{location}/multicloudDataTransferSupportedServices/{multicloud_data_transfer_supported_service}*\'multicloudDataTransferSupportedServices2&multicloudDataTransferSupportedService\"\xef\x02\n\rServiceConfig\x12i\n\x14\x65ligibility_criteria\x18\x01 \x01(\x0e\x32\x46.google.cloud.networkconnectivity.v1.ServiceConfig.EligibilityCriteriaB\x03\xe0\x41\x03\x12\x39\n\x10support_end_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\"\xb7\x01\n\x13\x45ligibilityCriteria\x12$\n ELIGIBILITY_CRITERIA_UNSPECIFIED\x10\x00\x12%\n!NETWORK_SERVICE_TIER_PREMIUM_ONLY\x10\x01\x12&\n\"NETWORK_SERVICE_TIER_STANDARD_ONLY\x10\x02\x12+\n\'REQUEST_ENDPOINT_REGIONAL_ENDPOINT_ONLY\x10\x03\"\x93\x01\n0GetMulticloudDataTransferSupportedServiceRequest\x12_\n\x04name\x18\x01 \x01(\tBQ\xe0\x41\x02\xfa\x41K\nInetworkconnectivity.googleapis.com/MulticloudDataTransferSupportedService\"\xa0\x01\n2ListMulticloudDataTransferSupportedServicesRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!locations.googleapis.com/Location\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\"\xd1\x01\n3ListMulticloudDataTransferSupportedServicesResponse\x12\x80\x01\n+multicloud_data_transfer_supported_services\x18\x01 \x03(\x0b\x32K.google.cloud.networkconnectivity.v1.MulticloudDataTransferSupportedService\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t2\xbb\x1c\n\x13\x44\x61taTransferService\x12\x96\x02\n!ListMulticloudDataTransferConfigs\x12M.google.cloud.networkconnectivity.v1.ListMulticloudDataTransferConfigsRequest\x1aN.google.cloud.networkconnectivity.v1.ListMulticloudDataTransferConfigsResponse\"R\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x43\x12\x41/v1/{parent=projects/*/locations/*}/multicloudDataTransferConfigs\x12\x83\x02\n\x1fGetMulticloudDataTransferConfig\x12K.google.cloud.networkconnectivity.v1.GetMulticloudDataTransferConfigRequest\x1a\x41.google.cloud.networkconnectivity.v1.MulticloudDataTransferConfig\"P\xda\x41\x04name\x82\xd3\xe4\x93\x02\x43\x12\x41/v1/{name=projects/*/locations/*/multicloudDataTransferConfigs/*}\x12\x80\x03\n\"CreateMulticloudDataTransferConfig\x12N.google.cloud.networkconnectivity.v1.CreateMulticloudDataTransferConfigRequest\x1a\x1d.google.longrunning.Operation\"\xea\x01\xca\x41\x31\n\x1cMulticloudDataTransferConfig\x12\x11OperationMetadata\xda\x41Iparent,multicloud_data_transfer_config,multicloud_data_transfer_config_id\x82\xd3\xe4\x93\x02\x64\"A/v1/{parent=projects/*/locations/*}/multicloudDataTransferConfigs:\x1fmulticloud_data_transfer_config\x12\x83\x03\n\"UpdateMulticloudDataTransferConfig\x12N.google.cloud.networkconnectivity.v1.UpdateMulticloudDataTransferConfigRequest\x1a\x1d.google.longrunning.Operation\"\xed\x01\xca\x41\x31\n\x1cMulticloudDataTransferConfig\x12\x11OperationMetadata\xda\x41+multicloud_data_transfer_config,update_mask\x82\xd3\xe4\x93\x02\x84\x01\x32\x61/v1/{multicloud_data_transfer_config.name=projects/*/locations/*/multicloudDataTransferConfigs/*}:\x1fmulticloud_data_transfer_config\x12\x92\x02\n\"DeleteMulticloudDataTransferConfig\x12N.google.cloud.networkconnectivity.v1.DeleteMulticloudDataTransferConfigRequest\x1a\x1d.google.longrunning.Operation\"}\xca\x41*\n\x15google.protobuf.Empty\x12\x11OperationMetadata\xda\x41\x04name\x82\xd3\xe4\x93\x02\x43*A/v1/{name=projects/*/locations/*/multicloudDataTransferConfigs/*}\x12\xf2\x01\n\x10ListDestinations\x12<.google.cloud.networkconnectivity.v1.ListDestinationsRequest\x1a=.google.cloud.networkconnectivity.v1.ListDestinationsResponse\"a\xda\x41\x06parent\x82\xd3\xe4\x93\x02R\x12P/v1/{parent=projects/*/locations/*/multicloudDataTransferConfigs/*}/destinations\x12\xdf\x01\n\x0eGetDestination\x12:.google.cloud.networkconnectivity.v1.GetDestinationRequest\x1a\x30.google.cloud.networkconnectivity.v1.Destination\"_\xda\x41\x04name\x82\xd3\xe4\x93\x02R\x12P/v1/{name=projects/*/locations/*/multicloudDataTransferConfigs/*/destinations/*}\x12\xa0\x02\n\x11\x43reateDestination\x12=.google.cloud.networkconnectivity.v1.CreateDestinationRequest\x1a\x1d.google.longrunning.Operation\"\xac\x01\xca\x41 \n\x0b\x44\x65stination\x12\x11OperationMetadata\xda\x41!parent,destination,destination_id\x82\xd3\xe4\x93\x02_\"P/v1/{parent=projects/*/locations/*/multicloudDataTransferConfigs/*}/destinations:\x0b\x64\x65stination\x12\xa2\x02\n\x11UpdateDestination\x12=.google.cloud.networkconnectivity.v1.UpdateDestinationRequest\x1a\x1d.google.longrunning.Operation\"\xae\x01\xca\x41 \n\x0b\x44\x65stination\x12\x11OperationMetadata\xda\x41\x17\x64\x65stination,update_mask\x82\xd3\xe4\x93\x02k2\\/v1/{destination.name=projects/*/locations/*/multicloudDataTransferConfigs/*/destinations/*}:\x0b\x64\x65stination\x12\x80\x02\n\x11\x44\x65leteDestination\x12=.google.cloud.networkconnectivity.v1.DeleteDestinationRequest\x1a\x1d.google.longrunning.Operation\"\x8c\x01\xca\x41*\n\x15google.protobuf.Empty\x12\x11OperationMetadata\xda\x41\x04name\x82\xd3\xe4\x93\x02R*P/v1/{name=projects/*/locations/*/multicloudDataTransferConfigs/*/destinations/*}\x12\xab\x02\n)GetMulticloudDataTransferSupportedService\x12U.google.cloud.networkconnectivity.v1.GetMulticloudDataTransferSupportedServiceRequest\x1aK.google.cloud.networkconnectivity.v1.MulticloudDataTransferSupportedService\"Z\xda\x41\x04name\x82\xd3\xe4\x93\x02M\x12K/v1/{name=projects/*/locations/*/multicloudDataTransferSupportedServices/*}\x12\xbe\x02\n+ListMulticloudDataTransferSupportedServices\x12W.google.cloud.networkconnectivity.v1.ListMulticloudDataTransferSupportedServicesRequest\x1aX.google.cloud.networkconnectivity.v1.ListMulticloudDataTransferSupportedServicesResponse\"\\\xda\x41\x06parent\x82\xd3\xe4\x93\x02M\x12K/v1/{parent=projects/*/locations/*}/multicloudDataTransferSupportedServices\x1aV\xca\x41\"networkconnectivity.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformB\x8e\x02\n\'com.google.cloud.networkconnectivity.v1B\x11\x44\x61taTransferProtoP\x01ZYcloud.google.com/go/networkconnectivity/apiv1/networkconnectivitypb;networkconnectivitypb\xaa\x02#Google.Cloud.NetworkConnectivity.V1\xca\x02#Google\\Cloud\\NetworkConnectivity\\V1\xea\x02&Google::Cloud::NetworkConnectivity::V1b\x06proto3"
|
20
|
+
|
21
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
22
|
+
|
23
|
+
begin
|
24
|
+
pool.add_serialized_file(descriptor_data)
|
25
|
+
rescue TypeError
|
26
|
+
# Compatibility code: will be removed in the next major version.
|
27
|
+
require 'google/protobuf/descriptor_pb'
|
28
|
+
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
29
|
+
parsed.clear_dependency
|
30
|
+
serialized = parsed.class.encode(parsed)
|
31
|
+
file = pool.add_serialized_file(serialized)
|
32
|
+
warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
|
33
|
+
imports = [
|
34
|
+
["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"],
|
35
|
+
["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"],
|
36
|
+
]
|
37
|
+
imports.each do |type_name, expected_filename|
|
38
|
+
import_file = pool.lookup(type_name).file_descriptor
|
39
|
+
if import_file.name != expected_filename
|
40
|
+
warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
|
41
|
+
end
|
42
|
+
end
|
43
|
+
warn "Each proto file must use a consistent fully-qualified name."
|
44
|
+
warn "This will become an error in the next major version."
|
45
|
+
end
|
46
|
+
|
47
|
+
module Google
|
48
|
+
module Cloud
|
49
|
+
module NetworkConnectivity
|
50
|
+
module V1
|
51
|
+
MulticloudDataTransferConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.networkconnectivity.v1.MulticloudDataTransferConfig").msgclass
|
52
|
+
ListMulticloudDataTransferConfigsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.networkconnectivity.v1.ListMulticloudDataTransferConfigsRequest").msgclass
|
53
|
+
ListMulticloudDataTransferConfigsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.networkconnectivity.v1.ListMulticloudDataTransferConfigsResponse").msgclass
|
54
|
+
GetMulticloudDataTransferConfigRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.networkconnectivity.v1.GetMulticloudDataTransferConfigRequest").msgclass
|
55
|
+
CreateMulticloudDataTransferConfigRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.networkconnectivity.v1.CreateMulticloudDataTransferConfigRequest").msgclass
|
56
|
+
UpdateMulticloudDataTransferConfigRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.networkconnectivity.v1.UpdateMulticloudDataTransferConfigRequest").msgclass
|
57
|
+
DeleteMulticloudDataTransferConfigRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.networkconnectivity.v1.DeleteMulticloudDataTransferConfigRequest").msgclass
|
58
|
+
Destination = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.networkconnectivity.v1.Destination").msgclass
|
59
|
+
Destination::DestinationEndpoint = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.networkconnectivity.v1.Destination.DestinationEndpoint").msgclass
|
60
|
+
Destination::DestinationEndpoint::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.networkconnectivity.v1.Destination.DestinationEndpoint.State").enummodule
|
61
|
+
ListDestinationsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.networkconnectivity.v1.ListDestinationsRequest").msgclass
|
62
|
+
ListDestinationsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.networkconnectivity.v1.ListDestinationsResponse").msgclass
|
63
|
+
GetDestinationRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.networkconnectivity.v1.GetDestinationRequest").msgclass
|
64
|
+
CreateDestinationRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.networkconnectivity.v1.CreateDestinationRequest").msgclass
|
65
|
+
UpdateDestinationRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.networkconnectivity.v1.UpdateDestinationRequest").msgclass
|
66
|
+
DeleteDestinationRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.networkconnectivity.v1.DeleteDestinationRequest").msgclass
|
67
|
+
StateTimeline = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.networkconnectivity.v1.StateTimeline").msgclass
|
68
|
+
StateTimeline::StateMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.networkconnectivity.v1.StateTimeline.StateMetadata").msgclass
|
69
|
+
StateTimeline::StateMetadata::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.networkconnectivity.v1.StateTimeline.StateMetadata.State").enummodule
|
70
|
+
MulticloudDataTransferSupportedService = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.networkconnectivity.v1.MulticloudDataTransferSupportedService").msgclass
|
71
|
+
ServiceConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.networkconnectivity.v1.ServiceConfig").msgclass
|
72
|
+
ServiceConfig::EligibilityCriteria = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.networkconnectivity.v1.ServiceConfig.EligibilityCriteria").enummodule
|
73
|
+
GetMulticloudDataTransferSupportedServiceRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.networkconnectivity.v1.GetMulticloudDataTransferSupportedServiceRequest").msgclass
|
74
|
+
ListMulticloudDataTransferSupportedServicesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.networkconnectivity.v1.ListMulticloudDataTransferSupportedServicesRequest").msgclass
|
75
|
+
ListMulticloudDataTransferSupportedServicesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.networkconnectivity.v1.ListMulticloudDataTransferSupportedServicesResponse").msgclass
|
76
|
+
end
|
77
|
+
end
|
78
|
+
end
|
79
|
+
end
|
@@ -0,0 +1,72 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# Source: google/cloud/networkconnectivity/v1/data_transfer.proto for package 'Google.Cloud.NetworkConnectivity.V1'
|
3
|
+
# Original file comments:
|
4
|
+
# Copyright 2025 Google LLC
|
5
|
+
#
|
6
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
7
|
+
# you may not use this file except in compliance with the License.
|
8
|
+
# You may obtain a copy of the License at
|
9
|
+
#
|
10
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
11
|
+
#
|
12
|
+
# Unless required by applicable law or agreed to in writing, software
|
13
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
14
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
15
|
+
# See the License for the specific language governing permissions and
|
16
|
+
# limitations under the License.
|
17
|
+
#
|
18
|
+
|
19
|
+
require 'grpc'
|
20
|
+
require 'google/cloud/networkconnectivity/v1/data_transfer_pb'
|
21
|
+
|
22
|
+
module Google
|
23
|
+
module Cloud
|
24
|
+
module NetworkConnectivity
|
25
|
+
module V1
|
26
|
+
module DataTransferService
|
27
|
+
# DataTransferService is the service for the Data Transfer API.
|
28
|
+
class Service
|
29
|
+
|
30
|
+
include ::GRPC::GenericService
|
31
|
+
|
32
|
+
self.marshal_class_method = :encode
|
33
|
+
self.unmarshal_class_method = :decode
|
34
|
+
self.service_name = 'google.cloud.networkconnectivity.v1.DataTransferService'
|
35
|
+
|
36
|
+
# Lists the `MulticloudDataTransferConfig` resources in a specified project
|
37
|
+
# and location.
|
38
|
+
rpc :ListMulticloudDataTransferConfigs, ::Google::Cloud::NetworkConnectivity::V1::ListMulticloudDataTransferConfigsRequest, ::Google::Cloud::NetworkConnectivity::V1::ListMulticloudDataTransferConfigsResponse
|
39
|
+
# Gets the details of a `MulticloudDataTransferConfig` resource.
|
40
|
+
rpc :GetMulticloudDataTransferConfig, ::Google::Cloud::NetworkConnectivity::V1::GetMulticloudDataTransferConfigRequest, ::Google::Cloud::NetworkConnectivity::V1::MulticloudDataTransferConfig
|
41
|
+
# Creates a `MulticloudDataTransferConfig` resource in a specified project
|
42
|
+
# and location.
|
43
|
+
rpc :CreateMulticloudDataTransferConfig, ::Google::Cloud::NetworkConnectivity::V1::CreateMulticloudDataTransferConfigRequest, ::Google::Longrunning::Operation
|
44
|
+
# Updates a `MulticloudDataTransferConfig` resource in a specified project
|
45
|
+
# and location.
|
46
|
+
rpc :UpdateMulticloudDataTransferConfig, ::Google::Cloud::NetworkConnectivity::V1::UpdateMulticloudDataTransferConfigRequest, ::Google::Longrunning::Operation
|
47
|
+
# Deletes a `MulticloudDataTransferConfig` resource.
|
48
|
+
rpc :DeleteMulticloudDataTransferConfig, ::Google::Cloud::NetworkConnectivity::V1::DeleteMulticloudDataTransferConfigRequest, ::Google::Longrunning::Operation
|
49
|
+
# Lists the `Destination` resources in a specified project and location.
|
50
|
+
rpc :ListDestinations, ::Google::Cloud::NetworkConnectivity::V1::ListDestinationsRequest, ::Google::Cloud::NetworkConnectivity::V1::ListDestinationsResponse
|
51
|
+
# Gets the details of a `Destination` resource.
|
52
|
+
rpc :GetDestination, ::Google::Cloud::NetworkConnectivity::V1::GetDestinationRequest, ::Google::Cloud::NetworkConnectivity::V1::Destination
|
53
|
+
# Creates a `Destination` resource in a specified project and location.
|
54
|
+
rpc :CreateDestination, ::Google::Cloud::NetworkConnectivity::V1::CreateDestinationRequest, ::Google::Longrunning::Operation
|
55
|
+
# Updates a `Destination` resource in a specified project and location.
|
56
|
+
rpc :UpdateDestination, ::Google::Cloud::NetworkConnectivity::V1::UpdateDestinationRequest, ::Google::Longrunning::Operation
|
57
|
+
# Deletes a `Destination` resource.
|
58
|
+
rpc :DeleteDestination, ::Google::Cloud::NetworkConnectivity::V1::DeleteDestinationRequest, ::Google::Longrunning::Operation
|
59
|
+
# Gets the details of a service that is supported for Data Transfer
|
60
|
+
# Essentials.
|
61
|
+
rpc :GetMulticloudDataTransferSupportedService, ::Google::Cloud::NetworkConnectivity::V1::GetMulticloudDataTransferSupportedServiceRequest, ::Google::Cloud::NetworkConnectivity::V1::MulticloudDataTransferSupportedService
|
62
|
+
# Lists the services in the project for a region that are supported for
|
63
|
+
# Data Transfer Essentials.
|
64
|
+
rpc :ListMulticloudDataTransferSupportedServices, ::Google::Cloud::NetworkConnectivity::V1::ListMulticloudDataTransferSupportedServicesRequest, ::Google::Cloud::NetworkConnectivity::V1::ListMulticloudDataTransferSupportedServicesResponse
|
65
|
+
end
|
66
|
+
|
67
|
+
Stub = Service.rpc_stub_class
|
68
|
+
end
|
69
|
+
end
|
70
|
+
end
|
71
|
+
end
|
72
|
+
end
|
@@ -0,0 +1,66 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
3
|
+
# source: google/cloud/networkconnectivity/v1/internal_range.proto
|
4
|
+
|
5
|
+
require 'google/protobuf'
|
6
|
+
|
7
|
+
require 'google/api/annotations_pb'
|
8
|
+
require 'google/api/client_pb'
|
9
|
+
require 'google/api/field_behavior_pb'
|
10
|
+
require 'google/api/resource_pb'
|
11
|
+
require 'google/cloud/networkconnectivity/v1/common_pb'
|
12
|
+
require 'google/longrunning/operations_pb'
|
13
|
+
require 'google/protobuf/empty_pb'
|
14
|
+
require 'google/protobuf/field_mask_pb'
|
15
|
+
require 'google/protobuf/timestamp_pb'
|
16
|
+
|
17
|
+
|
18
|
+
descriptor_data = "\n8google/cloud/networkconnectivity/v1/internal_range.proto\x12#google.cloud.networkconnectivity.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x30google/cloud/networkconnectivity/v1/common.proto\x1a#google/longrunning/operations.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\x8c\r\n\rInternalRange\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12/\n\x0b\x63reate_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0bupdate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12N\n\x06labels\x18\x04 \x03(\x0b\x32>.google.cloud.networkconnectivity.v1.InternalRange.LabelsEntry\x12\x18\n\x0b\x64\x65scription\x18\x05 \x01(\tB\x03\xe0\x41\x01\x12\x1a\n\rip_cidr_range\x18\x06 \x01(\tB\x03\xe0\x41\x01\x12\x14\n\x07network\x18\x07 \x01(\tB\x03\xe0\x41\x05\x12L\n\x05usage\x18\x08 \x01(\x0e\x32\x38.google.cloud.networkconnectivity.v1.InternalRange.UsageB\x03\xe0\x41\x01\x12P\n\x07peering\x18\t \x01(\x0e\x32:.google.cloud.networkconnectivity.v1.InternalRange.PeeringB\x03\xe0\x41\x01\x12\x1a\n\rprefix_length\x18\n \x01(\x05\x42\x03\xe0\x41\x01\x12\x1e\n\x11target_cidr_range\x18\x0b \x03(\tB\x03\xe0\x41\x01\x12\x12\n\x05users\x18\x0c \x03(\tB\x03\xe0\x41\x03\x12Q\n\x08overlaps\x18\r \x03(\x0e\x32:.google.cloud.networkconnectivity.v1.InternalRange.OverlapB\x03\xe0\x41\x01\x12T\n\tmigration\x18\x0e \x01(\x0b\x32<.google.cloud.networkconnectivity.v1.InternalRange.MigrationB\x03\xe0\x41\x01\x12\x16\n\timmutable\x18\x0f \x01(\x08\x42\x03\xe0\x41\x01\x12\x65\n\x12\x61llocation_options\x18\x10 \x01(\x0b\x32\x44.google.cloud.networkconnectivity.v1.InternalRange.AllocationOptionsB\x03\xe0\x41\x01\x12 \n\x13\x65xclude_cidr_ranges\x18\x11 \x03(\tB\x03\xe0\x41\x01\x1a\x35\n\tMigration\x12\x13\n\x06source\x18\x01 \x01(\tB\x03\xe0\x41\x05\x12\x13\n\x06target\x18\x02 \x01(\tB\x03\xe0\x41\x05\x1a\xad\x01\n\x11\x41llocationOptions\x12g\n\x13\x61llocation_strategy\x18\x01 \x01(\x0e\x32\x45.google.cloud.networkconnectivity.v1.InternalRange.AllocationStrategyB\x03\xe0\x41\x01\x12/\n\"first_available_ranges_lookup_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"S\n\x05Usage\x12\x15\n\x11USAGE_UNSPECIFIED\x10\x00\x12\x0b\n\x07\x46OR_VPC\x10\x01\x12\x13\n\x0f\x45XTERNAL_TO_VPC\x10\x02\x12\x11\n\rFOR_MIGRATION\x10\x03\"N\n\x07Peering\x12\x17\n\x13PEERING_UNSPECIFIED\x10\x00\x12\x0c\n\x08\x46OR_SELF\x10\x01\x12\x0c\n\x08\x46OR_PEER\x10\x02\x12\x0e\n\nNOT_SHARED\x10\x03\"^\n\x07Overlap\x12\x17\n\x13OVERLAP_UNSPECIFIED\x10\x00\x12\x17\n\x13OVERLAP_ROUTE_RANGE\x10\x01\x12!\n\x1dOVERLAP_EXISTING_SUBNET_RANGE\x10\x02\"\x94\x01\n\x12\x41llocationStrategy\x12#\n\x1f\x41LLOCATION_STRATEGY_UNSPECIFIED\x10\x00\x12\n\n\x06RANDOM\x10\x01\x12\x13\n\x0f\x46IRST_AVAILABLE\x10\x02\x12\x1c\n\x18RANDOM_FIRST_N_AVAILABLE\x10\x03\x12\x1a\n\x16\x46IRST_SMALLEST_FITTING\x10\x04:~\xea\x41{\n0networkconnectivity.googleapis.com/InternalRange\x12Gprojects/{project}/locations/{location}/internalRanges/{internal_range}\"\x9f\x01\n\x19ListInternalRangesRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!locations.googleapis.com/Location\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\x12\x0e\n\x06\x66ilter\x18\x04 \x01(\t\x12\x10\n\x08order_by\x18\x05 \x01(\t\"\x97\x01\n\x1aListInternalRangesResponse\x12K\n\x0finternal_ranges\x18\x01 \x03(\x0b\x32\x32.google.cloud.networkconnectivity.v1.InternalRange\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x13\n\x0bunreachable\x18\x03 \x03(\t\"a\n\x17GetInternalRangeRequest\x12\x46\n\x04name\x18\x01 \x01(\tB8\xe0\x41\x02\xfa\x41\x32\n0networkconnectivity.googleapis.com/InternalRange\"\xf0\x01\n\x1a\x43reateInternalRangeRequest\x12H\n\x06parent\x18\x01 \x01(\tB8\xe0\x41\x02\xfa\x41\x32\x12\x30networkconnectivity.googleapis.com/InternalRange\x12\x1e\n\x11internal_range_id\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12O\n\x0einternal_range\x18\x03 \x01(\x0b\x32\x32.google.cloud.networkconnectivity.v1.InternalRangeB\x03\xe0\x41\x02\x12\x17\n\nrequest_id\x18\x04 \x01(\tB\x03\xe0\x41\x01\"\xbc\x01\n\x1aUpdateInternalRangeRequest\x12\x34\n\x0bupdate_mask\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x01\x12O\n\x0einternal_range\x18\x02 \x01(\x0b\x32\x32.google.cloud.networkconnectivity.v1.InternalRangeB\x03\xe0\x41\x02\x12\x17\n\nrequest_id\x18\x03 \x01(\tB\x03\xe0\x41\x01\"}\n\x1a\x44\x65leteInternalRangeRequest\x12\x46\n\x04name\x18\x01 \x01(\tB8\xe0\x41\x02\xfa\x41\x32\n0networkconnectivity.googleapis.com/InternalRange\x12\x17\n\nrequest_id\x18\x02 \x01(\tB\x03\xe0\x41\x01\x32\xa7\n\n\x14InternalRangeService\x12\xda\x01\n\x12ListInternalRanges\x12>.google.cloud.networkconnectivity.v1.ListInternalRangesRequest\x1a?.google.cloud.networkconnectivity.v1.ListInternalRangesResponse\"C\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x34\x12\x32/v1/{parent=projects/*/locations/*}/internalRanges\x12\xc7\x01\n\x10GetInternalRange\x12<.google.cloud.networkconnectivity.v1.GetInternalRangeRequest\x1a\x32.google.cloud.networkconnectivity.v1.InternalRange\"A\xda\x41\x04name\x82\xd3\xe4\x93\x02\x34\x12\x32/v1/{name=projects/*/locations/*/internalRanges/*}\x12\x91\x02\n\x13\x43reateInternalRange\x12?.google.cloud.networkconnectivity.v1.CreateInternalRangeRequest\x1a\x1d.google.longrunning.Operation\"\x99\x01\xca\x41\"\n\rInternalRange\x12\x11OperationMetadata\xda\x41\'parent,internal_range,internal_range_id\x82\xd3\xe4\x93\x02\x44\"2/v1/{parent=projects/*/locations/*}/internalRanges:\x0einternal_range\x12\x93\x02\n\x13UpdateInternalRange\x12?.google.cloud.networkconnectivity.v1.UpdateInternalRangeRequest\x1a\x1d.google.longrunning.Operation\"\x9b\x01\xca\x41\"\n\rInternalRange\x12\x11OperationMetadata\xda\x41\x1ainternal_range,update_mask\x82\xd3\xe4\x93\x02S2A/v1/{internal_range.name=projects/*/locations/*/internalRanges/*}:\x0einternal_range\x12\xe5\x01\n\x13\x44\x65leteInternalRange\x12?.google.cloud.networkconnectivity.v1.DeleteInternalRangeRequest\x1a\x1d.google.longrunning.Operation\"n\xca\x41*\n\x15google.protobuf.Empty\x12\x11OperationMetadata\xda\x41\x04name\x82\xd3\xe4\x93\x02\x34*2/v1/{name=projects/*/locations/*/internalRanges/*}\x1aV\xca\x41\"networkconnectivity.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformB\x8f\x02\n\'com.google.cloud.networkconnectivity.v1B\x12InternalRangeProtoP\x01ZYcloud.google.com/go/networkconnectivity/apiv1/networkconnectivitypb;networkconnectivitypb\xaa\x02#Google.Cloud.NetworkConnectivity.V1\xca\x02#Google\\Cloud\\NetworkConnectivity\\V1\xea\x02&Google::Cloud::NetworkConnectivity::V1b\x06proto3"
|
19
|
+
|
20
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
21
|
+
|
22
|
+
begin
|
23
|
+
pool.add_serialized_file(descriptor_data)
|
24
|
+
rescue TypeError
|
25
|
+
# Compatibility code: will be removed in the next major version.
|
26
|
+
require 'google/protobuf/descriptor_pb'
|
27
|
+
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
28
|
+
parsed.clear_dependency
|
29
|
+
serialized = parsed.class.encode(parsed)
|
30
|
+
file = pool.add_serialized_file(serialized)
|
31
|
+
warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
|
32
|
+
imports = [
|
33
|
+
["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"],
|
34
|
+
["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"],
|
35
|
+
]
|
36
|
+
imports.each do |type_name, expected_filename|
|
37
|
+
import_file = pool.lookup(type_name).file_descriptor
|
38
|
+
if import_file.name != expected_filename
|
39
|
+
warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
|
40
|
+
end
|
41
|
+
end
|
42
|
+
warn "Each proto file must use a consistent fully-qualified name."
|
43
|
+
warn "This will become an error in the next major version."
|
44
|
+
end
|
45
|
+
|
46
|
+
module Google
|
47
|
+
module Cloud
|
48
|
+
module NetworkConnectivity
|
49
|
+
module V1
|
50
|
+
InternalRange = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.networkconnectivity.v1.InternalRange").msgclass
|
51
|
+
InternalRange::Migration = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.networkconnectivity.v1.InternalRange.Migration").msgclass
|
52
|
+
InternalRange::AllocationOptions = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.networkconnectivity.v1.InternalRange.AllocationOptions").msgclass
|
53
|
+
InternalRange::Usage = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.networkconnectivity.v1.InternalRange.Usage").enummodule
|
54
|
+
InternalRange::Peering = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.networkconnectivity.v1.InternalRange.Peering").enummodule
|
55
|
+
InternalRange::Overlap = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.networkconnectivity.v1.InternalRange.Overlap").enummodule
|
56
|
+
InternalRange::AllocationStrategy = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.networkconnectivity.v1.InternalRange.AllocationStrategy").enummodule
|
57
|
+
ListInternalRangesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.networkconnectivity.v1.ListInternalRangesRequest").msgclass
|
58
|
+
ListInternalRangesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.networkconnectivity.v1.ListInternalRangesResponse").msgclass
|
59
|
+
GetInternalRangeRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.networkconnectivity.v1.GetInternalRangeRequest").msgclass
|
60
|
+
CreateInternalRangeRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.networkconnectivity.v1.CreateInternalRangeRequest").msgclass
|
61
|
+
UpdateInternalRangeRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.networkconnectivity.v1.UpdateInternalRangeRequest").msgclass
|
62
|
+
DeleteInternalRangeRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.networkconnectivity.v1.DeleteInternalRangeRequest").msgclass
|
63
|
+
end
|
64
|
+
end
|
65
|
+
end
|
66
|
+
end
|
@@ -0,0 +1,54 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# Source: google/cloud/networkconnectivity/v1/internal_range.proto for package 'Google.Cloud.NetworkConnectivity.V1'
|
3
|
+
# Original file comments:
|
4
|
+
# Copyright 2025 Google LLC
|
5
|
+
#
|
6
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
7
|
+
# you may not use this file except in compliance with the License.
|
8
|
+
# You may obtain a copy of the License at
|
9
|
+
#
|
10
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
11
|
+
#
|
12
|
+
# Unless required by applicable law or agreed to in writing, software
|
13
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
14
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
15
|
+
# See the License for the specific language governing permissions and
|
16
|
+
# limitations under the License.
|
17
|
+
#
|
18
|
+
|
19
|
+
require 'grpc'
|
20
|
+
require 'google/cloud/networkconnectivity/v1/internal_range_pb'
|
21
|
+
|
22
|
+
module Google
|
23
|
+
module Cloud
|
24
|
+
module NetworkConnectivity
|
25
|
+
module V1
|
26
|
+
module InternalRangeService
|
27
|
+
# The CLH-based service for internal range resources used to perform IPAM
|
28
|
+
# operations within a VPC network.
|
29
|
+
class Service
|
30
|
+
|
31
|
+
include ::GRPC::GenericService
|
32
|
+
|
33
|
+
self.marshal_class_method = :encode
|
34
|
+
self.unmarshal_class_method = :decode
|
35
|
+
self.service_name = 'google.cloud.networkconnectivity.v1.InternalRangeService'
|
36
|
+
|
37
|
+
# Lists internal ranges in a given project and location.
|
38
|
+
rpc :ListInternalRanges, ::Google::Cloud::NetworkConnectivity::V1::ListInternalRangesRequest, ::Google::Cloud::NetworkConnectivity::V1::ListInternalRangesResponse
|
39
|
+
# Gets details of a single internal range.
|
40
|
+
rpc :GetInternalRange, ::Google::Cloud::NetworkConnectivity::V1::GetInternalRangeRequest, ::Google::Cloud::NetworkConnectivity::V1::InternalRange
|
41
|
+
# Creates a new internal range in a given project and location.
|
42
|
+
rpc :CreateInternalRange, ::Google::Cloud::NetworkConnectivity::V1::CreateInternalRangeRequest, ::Google::Longrunning::Operation
|
43
|
+
# Updates the parameters of a single internal range.
|
44
|
+
rpc :UpdateInternalRange, ::Google::Cloud::NetworkConnectivity::V1::UpdateInternalRangeRequest, ::Google::Longrunning::Operation
|
45
|
+
# Deletes a single internal range.
|
46
|
+
rpc :DeleteInternalRange, ::Google::Cloud::NetworkConnectivity::V1::DeleteInternalRangeRequest, ::Google::Longrunning::Operation
|
47
|
+
end
|
48
|
+
|
49
|
+
Stub = Service.rpc_stub_class
|
50
|
+
end
|
51
|
+
end
|
52
|
+
end
|
53
|
+
end
|
54
|
+
end
|