Debian Codegraph @

googleapis/cloud/networkconnectivity/v1/alias.go

raw
1 // Copyright 2022 Google LLC
2 //
3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at
6 //
7 // http://www.apache.org/licenses/LICENSE-2.0
8 //
9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS,
11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 // See the License for the specific language governing permissions and
13 // limitations under the License.
14
15 // Code generated by aliasgen. DO NOT EDIT.
16
17 // Package networkconnectivity aliases all exported identifiers in package
18 // "cloud.google.com/go/networkconnectivity/apiv1/networkconnectivitypb".
19 //
20 // Deprecated: Please use types in: cloud.google.com/go/networkconnectivity/apiv1/networkconnectivitypb.
21 // Please read https://github.com/googleapis/google-cloud-go/blob/main/migration.md
22 // for more details.
23 package networkconnectivity
24
25 import (
26 src "cloud.google.com/go/networkconnectivity/apiv1/networkconnectivitypb"
27 grpc "google.golang.org/grpc"
28 )
29
30 // Deprecated: Please use consts in: cloud.google.com/go/networkconnectivity/apiv1/networkconnectivitypb
31 const (
32 LocationFeature_LOCATION_FEATURE_UNSPECIFIED = src.LocationFeature_LOCATION_FEATURE_UNSPECIFIED
33 LocationFeature_SITE_TO_CLOUD_SPOKES = src.LocationFeature_SITE_TO_CLOUD_SPOKES
34 LocationFeature_SITE_TO_SITE_SPOKES = src.LocationFeature_SITE_TO_SITE_SPOKES
35 State_ACTIVE = src.State_ACTIVE
36 State_CREATING = src.State_CREATING
37 State_DELETING = src.State_DELETING
38 State_STATE_UNSPECIFIED = src.State_STATE_UNSPECIFIED
39 )
40
41 // Deprecated: Please use vars in: cloud.google.com/go/networkconnectivity/apiv1/networkconnectivitypb
42 var (
43 File_google_cloud_networkconnectivity_v1_common_proto = src.File_google_cloud_networkconnectivity_v1_common_proto
44 File_google_cloud_networkconnectivity_v1_hub_proto = src.File_google_cloud_networkconnectivity_v1_hub_proto
45 LocationFeature_name = src.LocationFeature_name
46 LocationFeature_value = src.LocationFeature_value
47 State_name = src.State_name
48 State_value = src.State_value
49 )
50
51 // Request for
52 // [HubService.CreateHub][google.cloud.networkconnectivity.v1.HubService.CreateHub]
53 // method.
54 //
55 // Deprecated: Please use types in: cloud.google.com/go/networkconnectivity/apiv1/networkconnectivitypb
56 type CreateHubRequest = src.CreateHubRequest
57
58 // The request for
59 // [HubService.CreateSpoke][google.cloud.networkconnectivity.v1.HubService.CreateSpoke].
60 //
61 // Deprecated: Please use types in: cloud.google.com/go/networkconnectivity/apiv1/networkconnectivitypb
62 type CreateSpokeRequest = src.CreateSpokeRequest
63
64 // The request for
65 // [HubService.DeleteHub][google.cloud.networkconnectivity.v1.HubService.DeleteHub].
66 //
67 // Deprecated: Please use types in: cloud.google.com/go/networkconnectivity/apiv1/networkconnectivitypb
68 type DeleteHubRequest = src.DeleteHubRequest
69
70 // The request for
71 // [HubService.DeleteSpoke][google.cloud.networkconnectivity.v1.HubService.DeleteSpoke].
72 //
73 // Deprecated: Please use types in: cloud.google.com/go/networkconnectivity/apiv1/networkconnectivitypb
74 type DeleteSpokeRequest = src.DeleteSpokeRequest
75
76 // Request for
77 // [HubService.GetHub][google.cloud.networkconnectivity.v1.HubService.GetHub]
78 // method.
79 //
80 // Deprecated: Please use types in: cloud.google.com/go/networkconnectivity/apiv1/networkconnectivitypb
81 type GetHubRequest = src.GetHubRequest
82
83 // The request for
84 // [HubService.GetSpoke][google.cloud.networkconnectivity.v1.HubService.GetSpoke].
85 //
86 // Deprecated: Please use types in: cloud.google.com/go/networkconnectivity/apiv1/networkconnectivitypb
87 type GetSpokeRequest = src.GetSpokeRequest
88
89 // A hub is a collection of spokes. A single hub can contain spokes from
90 // multiple regions. However, if any of a hub's spokes use the data transfer
91 // feature, the resources associated with those spokes must all reside in the
92 // same VPC network. Spokes that do not use data transfer can be associated
93 // with any VPC network in your project.
94 //
95 // Deprecated: Please use types in: cloud.google.com/go/networkconnectivity/apiv1/networkconnectivitypb
96 type Hub = src.Hub
97
98 // HubServiceClient is the client API for HubService service. For semantics
99 // around ctx use and closing/ending streaming RPCs, please refer to
100 // https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
101 //
102 // Deprecated: Please use types in: cloud.google.com/go/networkconnectivity/apiv1/networkconnectivitypb
103 type HubServiceClient = src.HubServiceClient
104
105 // HubServiceServer is the server API for HubService service.
106 //
107 // Deprecated: Please use types in: cloud.google.com/go/networkconnectivity/apiv1/networkconnectivitypb
108 type HubServiceServer = src.HubServiceServer
109
110 // A collection of VLAN attachment resources. These resources should be
111 // redundant attachments that all advertise the same prefixes to Google Cloud.
112 // Alternatively, in active/passive configurations, all attachments should be
113 // capable of advertising the same prefixes.
114 //
115 // Deprecated: Please use types in: cloud.google.com/go/networkconnectivity/apiv1/networkconnectivitypb
116 type LinkedInterconnectAttachments = src.LinkedInterconnectAttachments
117
118 // A collection of router appliance instances. If you configure multiple
119 // router appliance instances to receive data from the same set of sites
120 // outside of Google Cloud, we recommend that you associate those instances
121 // with the same spoke.
122 //
123 // Deprecated: Please use types in: cloud.google.com/go/networkconnectivity/apiv1/networkconnectivitypb
124 type LinkedRouterApplianceInstances = src.LinkedRouterApplianceInstances
125
126 // A collection of Cloud VPN tunnel resources. These resources should be
127 // redundant HA VPN tunnels that all advertise the same prefixes to Google
128 // Cloud. Alternatively, in a passive/active configuration, all tunnels should
129 // be capable of advertising the same prefixes.
130 //
131 // Deprecated: Please use types in: cloud.google.com/go/networkconnectivity/apiv1/networkconnectivitypb
132 type LinkedVpnTunnels = src.LinkedVpnTunnels
133
134 // Request for
135 // [HubService.ListHubs][google.cloud.networkconnectivity.v1.HubService.ListHubs]
136 // method.
137 //
138 // Deprecated: Please use types in: cloud.google.com/go/networkconnectivity/apiv1/networkconnectivitypb
139 type ListHubsRequest = src.ListHubsRequest
140
141 // Response for
142 // [HubService.ListHubs][google.cloud.networkconnectivity.v1.HubService.ListHubs]
143 // method.
144 //
145 // Deprecated: Please use types in: cloud.google.com/go/networkconnectivity/apiv1/networkconnectivitypb
146 type ListHubsResponse = src.ListHubsResponse
147
148 // The request for
149 // [HubService.ListSpokes][google.cloud.networkconnectivity.v1.HubService.ListSpokes].
150 //
151 // Deprecated: Please use types in: cloud.google.com/go/networkconnectivity/apiv1/networkconnectivitypb
152 type ListSpokesRequest = src.ListSpokesRequest
153
154 // The response for
155 // [HubService.ListSpokes][google.cloud.networkconnectivity.v1.HubService.ListSpokes].
156 //
157 // Deprecated: Please use types in: cloud.google.com/go/networkconnectivity/apiv1/networkconnectivitypb
158 type ListSpokesResponse = src.ListSpokesResponse
159
160 // Supported features for a location
161 //
162 // Deprecated: Please use types in: cloud.google.com/go/networkconnectivity/apiv1/networkconnectivitypb
163 type LocationFeature = src.LocationFeature
164
165 // Metadata about locations
166 //
167 // Deprecated: Please use types in: cloud.google.com/go/networkconnectivity/apiv1/networkconnectivitypb
168 type LocationMetadata = src.LocationMetadata
169
170 // Represents the metadata of the long-running operation.
171 //
172 // Deprecated: Please use types in: cloud.google.com/go/networkconnectivity/apiv1/networkconnectivitypb
173 type OperationMetadata = src.OperationMetadata
174
175 // A router appliance instance is a Compute Engine virtual machine (VM)
176 // instance that acts as a BGP speaker. A router appliance instance is
177 // specified by the URI of the VM and the internal IP address of one of the
178 // VM's network interfaces.
179 //
180 // Deprecated: Please use types in: cloud.google.com/go/networkconnectivity/apiv1/networkconnectivitypb
181 type RouterApplianceInstance = src.RouterApplianceInstance
182
183 // RoutingVPC contains information about the VPC networks that are associated
184 // with a hub's spokes.
185 //
186 // Deprecated: Please use types in: cloud.google.com/go/networkconnectivity/apiv1/networkconnectivitypb
187 type RoutingVPC = src.RoutingVPC
188
189 // A spoke represents a connection between your Google Cloud network resources
190 // and a non-Google-Cloud network. When you create a spoke, you associate it
191 // with a hub. You must also identify a value for exactly one of the following
192 // fields: * linked_vpn_tunnels * linked_interconnect_attachments *
193 // linked_router_appliance_instances
194 //
195 // Deprecated: Please use types in: cloud.google.com/go/networkconnectivity/apiv1/networkconnectivitypb
196 type Spoke = src.Spoke
197
198 // The State enum represents the lifecycle stage of a Network Connectivity
199 // Center resource.
200 //
201 // Deprecated: Please use types in: cloud.google.com/go/networkconnectivity/apiv1/networkconnectivitypb
202 type State = src.State
203
204 // UnimplementedHubServiceServer can be embedded to have forward compatible
205 // implementations.
206 //
207 // Deprecated: Please use types in: cloud.google.com/go/networkconnectivity/apiv1/networkconnectivitypb
208 type UnimplementedHubServiceServer = src.UnimplementedHubServiceServer
209
210 // Request for
211 // [HubService.UpdateHub][google.cloud.networkconnectivity.v1.HubService.UpdateHub]
212 // method.
213 //
214 // Deprecated: Please use types in: cloud.google.com/go/networkconnectivity/apiv1/networkconnectivitypb
215 type UpdateHubRequest = src.UpdateHubRequest
216
217 // Request for
218 // [HubService.UpdateSpoke][google.cloud.networkconnectivity.v1.HubService.UpdateSpoke]
219 // method.
220 //
221 // Deprecated: Please use types in: cloud.google.com/go/networkconnectivity/apiv1/networkconnectivitypb
222 type UpdateSpokeRequest = src.UpdateSpokeRequest
223
224 // Deprecated: Please use funcs in: cloud.google.com/go/networkconnectivity/apiv1/networkconnectivitypb
225 func NewHubServiceClient(cc grpc.ClientConnInterface) HubServiceClient {
226 return src.NewHubServiceClient(cc)
227 }
228
229 // Deprecated: Please use funcs in: cloud.google.com/go/networkconnectivity/apiv1/networkconnectivitypb
230 func RegisterHubServiceServer(s *grpc.Server, srv HubServiceServer) {
231 src.RegisterHubServiceServer(s, srv)
232 }