google-cloud-network_connectivity-v1beta 0.a → 0.1.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/.yardopts +12 -0
- data/AUTHENTICATION.md +122 -0
- data/README.md +153 -8
- data/lib/google/cloud/network_connectivity/v1beta/data_transfer_service/client.rb +1782 -0
- data/lib/google/cloud/network_connectivity/v1beta/data_transfer_service/credentials.rb +47 -0
- data/lib/google/cloud/network_connectivity/v1beta/data_transfer_service/operations.rb +841 -0
- data/lib/google/cloud/network_connectivity/v1beta/data_transfer_service/paths.rb +109 -0
- data/lib/google/cloud/network_connectivity/v1beta/data_transfer_service.rb +50 -0
- data/lib/google/cloud/network_connectivity/v1beta/hub_service/client.rb +3581 -0
- data/lib/google/cloud/network_connectivity/v1beta/hub_service/credentials.rb +47 -0
- data/lib/google/cloud/network_connectivity/v1beta/hub_service/operations.rb +841 -0
- data/lib/google/cloud/network_connectivity/v1beta/hub_service/paths.rb +259 -0
- data/lib/google/cloud/network_connectivity/v1beta/hub_service.rb +52 -0
- data/lib/google/cloud/network_connectivity/v1beta/policy_based_routing_service/client.rb +877 -0
- data/lib/google/cloud/network_connectivity/v1beta/policy_based_routing_service/credentials.rb +47 -0
- data/lib/google/cloud/network_connectivity/v1beta/policy_based_routing_service/operations.rb +841 -0
- data/lib/google/cloud/network_connectivity/v1beta/policy_based_routing_service/paths.rb +84 -0
- data/lib/google/cloud/network_connectivity/v1beta/policy_based_routing_service.rb +51 -0
- data/lib/google/cloud/network_connectivity/v1beta/transport_manager/client.rb +1285 -0
- data/lib/google/cloud/network_connectivity/v1beta/transport_manager/credentials.rb +47 -0
- data/lib/google/cloud/network_connectivity/v1beta/transport_manager/operations.rb +841 -0
- data/lib/google/cloud/network_connectivity/v1beta/transport_manager/paths.rb +105 -0
- data/lib/google/cloud/network_connectivity/v1beta/transport_manager.rb +50 -0
- data/lib/google/cloud/network_connectivity/v1beta/version.rb +7 -2
- data/lib/google/cloud/network_connectivity/v1beta.rb +43 -0
- data/lib/google/cloud/networkconnectivity/v1beta/common_pb.rb +25 -0
- data/lib/google/cloud/networkconnectivity/v1beta/data_transfer_pb.rb +56 -0
- data/lib/google/cloud/networkconnectivity/v1beta/data_transfer_services_pb.rb +72 -0
- data/lib/google/cloud/networkconnectivity/v1beta/hub_pb.rb +111 -0
- data/lib/google/cloud/networkconnectivity/v1beta/hub_services_pb.rb +110 -0
- data/lib/google/cloud/networkconnectivity/v1beta/policy_based_routing_pb.rb +42 -0
- data/lib/google/cloud/networkconnectivity/v1beta/policy_based_routing_services_pb.rb +52 -0
- data/lib/google/cloud/networkconnectivity/v1beta/transport_manager_pb.rb +55 -0
- data/lib/google/cloud/networkconnectivity/v1beta/transport_manager_services_pb.rb +59 -0
- data/lib/google-cloud-network_connectivity-v1beta.rb +21 -0
- data/proto_docs/README.md +4 -0
- data/proto_docs/google/api/client.rb +593 -0
- data/proto_docs/google/api/field_behavior.rb +85 -0
- data/proto_docs/google/api/field_info.rb +88 -0
- data/proto_docs/google/api/launch_stage.rb +71 -0
- data/proto_docs/google/api/resource.rb +227 -0
- data/proto_docs/google/cloud/networkconnectivity/v1beta/common.rb +58 -0
- data/proto_docs/google/cloud/networkconnectivity/v1beta/data_transfer.rb +635 -0
- data/proto_docs/google/cloud/networkconnectivity/v1beta/hub.rb +2024 -0
- data/proto_docs/google/cloud/networkconnectivity/v1beta/policy_based_routing.rb +340 -0
- data/proto_docs/google/cloud/networkconnectivity/v1beta/transport_manager.rb +621 -0
- data/proto_docs/google/longrunning/operations.rb +191 -0
- data/proto_docs/google/protobuf/any.rb +145 -0
- data/proto_docs/google/protobuf/duration.rb +98 -0
- data/proto_docs/google/protobuf/empty.rb +34 -0
- data/proto_docs/google/protobuf/field_mask.rb +229 -0
- data/proto_docs/google/protobuf/timestamp.rb +127 -0
- data/proto_docs/google/rpc/status.rb +48 -0
- data/proto_docs/google/type/expr.rb +75 -0
- metadata +116 -9
|
@@ -0,0 +1,259 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# Copyright 2026 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 V1beta
|
|
24
|
+
module HubService
|
|
25
|
+
# Path helper methods for the HubService API.
|
|
26
|
+
module Paths
|
|
27
|
+
##
|
|
28
|
+
# Create a fully-qualified GatewayAdvertisedRoute resource string.
|
|
29
|
+
#
|
|
30
|
+
# The resource will be in the following format:
|
|
31
|
+
#
|
|
32
|
+
# `projects/{project}/locations/{location}/spokes/{spoke}/gatewayAdvertisedRoutes/{gateway_advertised_route}`
|
|
33
|
+
#
|
|
34
|
+
# @param project [String]
|
|
35
|
+
# @param location [String]
|
|
36
|
+
# @param spoke [String]
|
|
37
|
+
# @param gateway_advertised_route [String]
|
|
38
|
+
#
|
|
39
|
+
# @return [::String]
|
|
40
|
+
def gateway_advertised_route_path project:, location:, spoke:, gateway_advertised_route:
|
|
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, "spoke cannot contain /" if spoke.to_s.include? "/"
|
|
44
|
+
|
|
45
|
+
"projects/#{project}/locations/#{location}/spokes/#{spoke}/gatewayAdvertisedRoutes/#{gateway_advertised_route}"
|
|
46
|
+
end
|
|
47
|
+
|
|
48
|
+
##
|
|
49
|
+
# Create a fully-qualified Group resource string.
|
|
50
|
+
#
|
|
51
|
+
# The resource will be in the following format:
|
|
52
|
+
#
|
|
53
|
+
# `projects/{project}/locations/global/hubs/{hub}/groups/{group}`
|
|
54
|
+
#
|
|
55
|
+
# @param project [String]
|
|
56
|
+
# @param hub [String]
|
|
57
|
+
# @param group [String]
|
|
58
|
+
#
|
|
59
|
+
# @return [::String]
|
|
60
|
+
def group_path project:, hub:, group:
|
|
61
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
|
62
|
+
raise ::ArgumentError, "hub cannot contain /" if hub.to_s.include? "/"
|
|
63
|
+
|
|
64
|
+
"projects/#{project}/locations/global/hubs/#{hub}/groups/#{group}"
|
|
65
|
+
end
|
|
66
|
+
|
|
67
|
+
##
|
|
68
|
+
# Create a fully-qualified Hub resource string.
|
|
69
|
+
#
|
|
70
|
+
# The resource will be in the following format:
|
|
71
|
+
#
|
|
72
|
+
# `projects/{project}/locations/global/hubs/{hub}`
|
|
73
|
+
#
|
|
74
|
+
# @param project [String]
|
|
75
|
+
# @param hub [String]
|
|
76
|
+
#
|
|
77
|
+
# @return [::String]
|
|
78
|
+
def hub_path project:, hub:
|
|
79
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
|
80
|
+
|
|
81
|
+
"projects/#{project}/locations/global/hubs/#{hub}"
|
|
82
|
+
end
|
|
83
|
+
|
|
84
|
+
##
|
|
85
|
+
# Create a fully-qualified HubRoute resource string.
|
|
86
|
+
#
|
|
87
|
+
# The resource will be in the following format:
|
|
88
|
+
#
|
|
89
|
+
# `projects/{project}/locations/global/hubs/{hub}/routeTables/{route_table}/routes/{route}`
|
|
90
|
+
#
|
|
91
|
+
# @param project [String]
|
|
92
|
+
# @param hub [String]
|
|
93
|
+
# @param route_table [String]
|
|
94
|
+
# @param route [String]
|
|
95
|
+
#
|
|
96
|
+
# @return [::String]
|
|
97
|
+
def hub_route_path project:, hub:, route_table:, route:
|
|
98
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
|
99
|
+
raise ::ArgumentError, "hub cannot contain /" if hub.to_s.include? "/"
|
|
100
|
+
raise ::ArgumentError, "route_table cannot contain /" if route_table.to_s.include? "/"
|
|
101
|
+
|
|
102
|
+
"projects/#{project}/locations/global/hubs/#{hub}/routeTables/#{route_table}/routes/#{route}"
|
|
103
|
+
end
|
|
104
|
+
|
|
105
|
+
##
|
|
106
|
+
# Create a fully-qualified Instance resource string.
|
|
107
|
+
#
|
|
108
|
+
# The resource will be in the following format:
|
|
109
|
+
#
|
|
110
|
+
# `projects/{project}/zones/{zone}/instances/{instance}`
|
|
111
|
+
#
|
|
112
|
+
# @param project [String]
|
|
113
|
+
# @param zone [String]
|
|
114
|
+
# @param instance [String]
|
|
115
|
+
#
|
|
116
|
+
# @return [::String]
|
|
117
|
+
def instance_path project:, zone:, instance:
|
|
118
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
|
119
|
+
raise ::ArgumentError, "zone cannot contain /" if zone.to_s.include? "/"
|
|
120
|
+
|
|
121
|
+
"projects/#{project}/zones/#{zone}/instances/#{instance}"
|
|
122
|
+
end
|
|
123
|
+
|
|
124
|
+
##
|
|
125
|
+
# Create a fully-qualified InterconnectAttachment resource string.
|
|
126
|
+
#
|
|
127
|
+
# The resource will be in the following format:
|
|
128
|
+
#
|
|
129
|
+
# `projects/{project}/regions/{region}/interconnectAttachments/{resource_id}`
|
|
130
|
+
#
|
|
131
|
+
# @param project [String]
|
|
132
|
+
# @param region [String]
|
|
133
|
+
# @param resource_id [String]
|
|
134
|
+
#
|
|
135
|
+
# @return [::String]
|
|
136
|
+
def interconnect_attachment_path project:, region:, resource_id:
|
|
137
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
|
138
|
+
raise ::ArgumentError, "region cannot contain /" if region.to_s.include? "/"
|
|
139
|
+
|
|
140
|
+
"projects/#{project}/regions/#{region}/interconnectAttachments/#{resource_id}"
|
|
141
|
+
end
|
|
142
|
+
|
|
143
|
+
##
|
|
144
|
+
# Create a fully-qualified Location resource string.
|
|
145
|
+
#
|
|
146
|
+
# The resource will be in the following format:
|
|
147
|
+
#
|
|
148
|
+
# `projects/{project}/locations/{location}`
|
|
149
|
+
#
|
|
150
|
+
# @param project [String]
|
|
151
|
+
# @param location [String]
|
|
152
|
+
#
|
|
153
|
+
# @return [::String]
|
|
154
|
+
def location_path project:, location:
|
|
155
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
|
156
|
+
|
|
157
|
+
"projects/#{project}/locations/#{location}"
|
|
158
|
+
end
|
|
159
|
+
|
|
160
|
+
##
|
|
161
|
+
# Create a fully-qualified Network resource string.
|
|
162
|
+
#
|
|
163
|
+
# The resource will be in the following format:
|
|
164
|
+
#
|
|
165
|
+
# `projects/{project}/global/networks/{resource_id}`
|
|
166
|
+
#
|
|
167
|
+
# @param project [String]
|
|
168
|
+
# @param resource_id [String]
|
|
169
|
+
#
|
|
170
|
+
# @return [::String]
|
|
171
|
+
def network_path project:, resource_id:
|
|
172
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
|
173
|
+
|
|
174
|
+
"projects/#{project}/global/networks/#{resource_id}"
|
|
175
|
+
end
|
|
176
|
+
|
|
177
|
+
##
|
|
178
|
+
# Create a fully-qualified RouteTable resource string.
|
|
179
|
+
#
|
|
180
|
+
# The resource will be in the following format:
|
|
181
|
+
#
|
|
182
|
+
# `projects/{project}/locations/global/hubs/{hub}/routeTables/{route_table}`
|
|
183
|
+
#
|
|
184
|
+
# @param project [String]
|
|
185
|
+
# @param hub [String]
|
|
186
|
+
# @param route_table [String]
|
|
187
|
+
#
|
|
188
|
+
# @return [::String]
|
|
189
|
+
def route_table_path project:, hub:, route_table:
|
|
190
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
|
191
|
+
raise ::ArgumentError, "hub cannot contain /" if hub.to_s.include? "/"
|
|
192
|
+
|
|
193
|
+
"projects/#{project}/locations/global/hubs/#{hub}/routeTables/#{route_table}"
|
|
194
|
+
end
|
|
195
|
+
|
|
196
|
+
##
|
|
197
|
+
# Create a fully-qualified SACAttachment resource string.
|
|
198
|
+
#
|
|
199
|
+
# The resource will be in the following format:
|
|
200
|
+
#
|
|
201
|
+
# `projects/{project}/locations/{location}/sacAttachments/{sac_attachment}`
|
|
202
|
+
#
|
|
203
|
+
# @param project [String]
|
|
204
|
+
# @param location [String]
|
|
205
|
+
# @param sac_attachment [String]
|
|
206
|
+
#
|
|
207
|
+
# @return [::String]
|
|
208
|
+
def sac_attachment_path project:, location:, sac_attachment:
|
|
209
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
|
210
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
|
211
|
+
|
|
212
|
+
"projects/#{project}/locations/#{location}/sacAttachments/#{sac_attachment}"
|
|
213
|
+
end
|
|
214
|
+
|
|
215
|
+
##
|
|
216
|
+
# Create a fully-qualified Spoke resource string.
|
|
217
|
+
#
|
|
218
|
+
# The resource will be in the following format:
|
|
219
|
+
#
|
|
220
|
+
# `projects/{project}/locations/{location}/spokes/{spoke}`
|
|
221
|
+
#
|
|
222
|
+
# @param project [String]
|
|
223
|
+
# @param location [String]
|
|
224
|
+
# @param spoke [String]
|
|
225
|
+
#
|
|
226
|
+
# @return [::String]
|
|
227
|
+
def spoke_path project:, location:, spoke:
|
|
228
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
|
229
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
|
230
|
+
|
|
231
|
+
"projects/#{project}/locations/#{location}/spokes/#{spoke}"
|
|
232
|
+
end
|
|
233
|
+
|
|
234
|
+
##
|
|
235
|
+
# Create a fully-qualified VpnTunnel resource string.
|
|
236
|
+
#
|
|
237
|
+
# The resource will be in the following format:
|
|
238
|
+
#
|
|
239
|
+
# `projects/{project}/regions/{region}/vpnTunnels/{resource_id}`
|
|
240
|
+
#
|
|
241
|
+
# @param project [String]
|
|
242
|
+
# @param region [String]
|
|
243
|
+
# @param resource_id [String]
|
|
244
|
+
#
|
|
245
|
+
# @return [::String]
|
|
246
|
+
def vpn_tunnel_path project:, region:, resource_id:
|
|
247
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
|
248
|
+
raise ::ArgumentError, "region cannot contain /" if region.to_s.include? "/"
|
|
249
|
+
|
|
250
|
+
"projects/#{project}/regions/#{region}/vpnTunnels/#{resource_id}"
|
|
251
|
+
end
|
|
252
|
+
|
|
253
|
+
extend self
|
|
254
|
+
end
|
|
255
|
+
end
|
|
256
|
+
end
|
|
257
|
+
end
|
|
258
|
+
end
|
|
259
|
+
end
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# Copyright 2026 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/v1beta/version"
|
|
24
|
+
|
|
25
|
+
require "google/cloud/network_connectivity/v1beta/hub_service/credentials"
|
|
26
|
+
require "google/cloud/network_connectivity/v1beta/hub_service/paths"
|
|
27
|
+
require "google/cloud/network_connectivity/v1beta/hub_service/operations"
|
|
28
|
+
require "google/cloud/network_connectivity/v1beta/hub_service/client"
|
|
29
|
+
|
|
30
|
+
module Google
|
|
31
|
+
module Cloud
|
|
32
|
+
module NetworkConnectivity
|
|
33
|
+
module V1beta
|
|
34
|
+
##
|
|
35
|
+
# Network Connectivity Center is a hub-and-spoke abstraction for network
|
|
36
|
+
# connectivity management in Google Cloud. It reduces operational complexity
|
|
37
|
+
# through a simple, centralized connectivity management model.
|
|
38
|
+
#
|
|
39
|
+
# @example Load this service and instantiate a gRPC client
|
|
40
|
+
#
|
|
41
|
+
# require "google/cloud/network_connectivity/v1beta/hub_service"
|
|
42
|
+
# client = ::Google::Cloud::NetworkConnectivity::V1beta::HubService::Client.new
|
|
43
|
+
#
|
|
44
|
+
module HubService
|
|
45
|
+
end
|
|
46
|
+
end
|
|
47
|
+
end
|
|
48
|
+
end
|
|
49
|
+
end
|
|
50
|
+
|
|
51
|
+
helper_path = ::File.join __dir__, "hub_service", "helpers.rb"
|
|
52
|
+
require "google/cloud/network_connectivity/v1beta/hub_service/helpers" if ::File.file? helper_path
|