google-cloud-network_connectivity-v1 1.7.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/version.rb +1 -1
- data/lib/google/cloud/network_connectivity/v1.rb +1 -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/proto_docs/google/cloud/networkconnectivity/v1/data_transfer.rb +635 -0
- metadata +11 -3
@@ -0,0 +1,109 @@
|
|
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 DataTransferService
|
25
|
+
# Path helper methods for the DataTransferService API.
|
26
|
+
module Paths
|
27
|
+
##
|
28
|
+
# Create a fully-qualified Destination resource string.
|
29
|
+
#
|
30
|
+
# The resource will be in the following format:
|
31
|
+
#
|
32
|
+
# `projects/{project}/locations/{location}/multicloudDataTransferConfigs/{multicloud_data_transfer_config}/destinations/{destination}`
|
33
|
+
#
|
34
|
+
# @param project [String]
|
35
|
+
# @param location [String]
|
36
|
+
# @param multicloud_data_transfer_config [String]
|
37
|
+
# @param destination [String]
|
38
|
+
#
|
39
|
+
# @return [::String]
|
40
|
+
def destination_path project:, location:, multicloud_data_transfer_config:, destination:
|
41
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
42
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
43
|
+
raise ::ArgumentError, "multicloud_data_transfer_config cannot contain /" if multicloud_data_transfer_config.to_s.include? "/"
|
44
|
+
|
45
|
+
"projects/#{project}/locations/#{location}/multicloudDataTransferConfigs/#{multicloud_data_transfer_config}/destinations/#{destination}"
|
46
|
+
end
|
47
|
+
|
48
|
+
##
|
49
|
+
# Create a fully-qualified Location resource string.
|
50
|
+
#
|
51
|
+
# The resource will be in the following format:
|
52
|
+
#
|
53
|
+
# `projects/{project}/locations/{location}`
|
54
|
+
#
|
55
|
+
# @param project [String]
|
56
|
+
# @param location [String]
|
57
|
+
#
|
58
|
+
# @return [::String]
|
59
|
+
def location_path project:, location:
|
60
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
61
|
+
|
62
|
+
"projects/#{project}/locations/#{location}"
|
63
|
+
end
|
64
|
+
|
65
|
+
##
|
66
|
+
# Create a fully-qualified MulticloudDataTransferConfig resource string.
|
67
|
+
#
|
68
|
+
# The resource will be in the following format:
|
69
|
+
#
|
70
|
+
# `projects/{project}/locations/{location}/multicloudDataTransferConfigs/{multicloud_data_transfer_config}`
|
71
|
+
#
|
72
|
+
# @param project [String]
|
73
|
+
# @param location [String]
|
74
|
+
# @param multicloud_data_transfer_config [String]
|
75
|
+
#
|
76
|
+
# @return [::String]
|
77
|
+
def multicloud_data_transfer_config_path project:, location:, multicloud_data_transfer_config:
|
78
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
79
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
80
|
+
|
81
|
+
"projects/#{project}/locations/#{location}/multicloudDataTransferConfigs/#{multicloud_data_transfer_config}"
|
82
|
+
end
|
83
|
+
|
84
|
+
##
|
85
|
+
# Create a fully-qualified MulticloudDataTransferSupportedService resource string.
|
86
|
+
#
|
87
|
+
# The resource will be in the following format:
|
88
|
+
#
|
89
|
+
# `projects/{project}/locations/{location}/multicloudDataTransferSupportedServices/{multicloud_data_transfer_supported_service}`
|
90
|
+
#
|
91
|
+
# @param project [String]
|
92
|
+
# @param location [String]
|
93
|
+
# @param multicloud_data_transfer_supported_service [String]
|
94
|
+
#
|
95
|
+
# @return [::String]
|
96
|
+
def multicloud_data_transfer_supported_service_path project:, location:, multicloud_data_transfer_supported_service:
|
97
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
98
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
99
|
+
|
100
|
+
"projects/#{project}/locations/#{location}/multicloudDataTransferSupportedServices/#{multicloud_data_transfer_supported_service}"
|
101
|
+
end
|
102
|
+
|
103
|
+
extend self
|
104
|
+
end
|
105
|
+
end
|
106
|
+
end
|
107
|
+
end
|
108
|
+
end
|
109
|
+
end
|
@@ -0,0 +1,50 @@
|
|
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/data_transfer_service/credentials"
|
26
|
+
require "google/cloud/network_connectivity/v1/data_transfer_service/paths"
|
27
|
+
require "google/cloud/network_connectivity/v1/data_transfer_service/operations"
|
28
|
+
require "google/cloud/network_connectivity/v1/data_transfer_service/client"
|
29
|
+
|
30
|
+
module Google
|
31
|
+
module Cloud
|
32
|
+
module NetworkConnectivity
|
33
|
+
module V1
|
34
|
+
##
|
35
|
+
# DataTransferService is the service for the Data Transfer API.
|
36
|
+
#
|
37
|
+
# @example Load this service and instantiate a gRPC client
|
38
|
+
#
|
39
|
+
# require "google/cloud/network_connectivity/v1/data_transfer_service"
|
40
|
+
# client = ::Google::Cloud::NetworkConnectivity::V1::DataTransferService::Client.new
|
41
|
+
#
|
42
|
+
module DataTransferService
|
43
|
+
end
|
44
|
+
end
|
45
|
+
end
|
46
|
+
end
|
47
|
+
end
|
48
|
+
|
49
|
+
helper_path = ::File.join __dir__, "data_transfer_service", "helpers.rb"
|
50
|
+
require "google/cloud/network_connectivity/v1/data_transfer_service/helpers" if ::File.file? helper_path
|
@@ -17,6 +17,7 @@
|
|
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"
|
21
22
|
require "google/cloud/network_connectivity/v1/internal_range_service"
|
22
23
|
require "google/cloud/network_connectivity/v1/policy_based_routing_service"
|
@@ -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
|