| 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/apiv1alpha1/networkconnectivitypb". |
| 19 |
// |
| 20 |
// Deprecated: Please use types in: cloud.google.com/go/networkconnectivity/apiv1alpha1/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/apiv1alpha1/networkconnectivitypb" |
| 27 |
grpc "google.golang.org/grpc" |
| 28 |
) |
| 29 |
|
| 30 |
// Deprecated: Please use consts in: cloud.google.com/go/networkconnectivity/apiv1alpha1/networkconnectivitypb |
| 31 |
const ( |
| 32 |
State_ACTIVE = src.State_ACTIVE |
| 33 |
State_CREATING = src.State_CREATING |
| 34 |
State_DELETING = src.State_DELETING |
| 35 |
State_STATE_UNSPECIFIED = src.State_STATE_UNSPECIFIED |
| 36 |
) |
| 37 |
|
| 38 |
// Deprecated: Please use vars in: cloud.google.com/go/networkconnectivity/apiv1alpha1/networkconnectivitypb |
| 39 |
var ( |
| 40 |
File_google_cloud_networkconnectivity_v1alpha1_common_proto = src.File_google_cloud_networkconnectivity_v1alpha1_common_proto |
| 41 |
File_google_cloud_networkconnectivity_v1alpha1_hub_proto = src.File_google_cloud_networkconnectivity_v1alpha1_hub_proto |
| 42 |
State_name = src.State_name |
| 43 |
State_value = src.State_value |
| 44 |
) |
| 45 |
|
| 46 |
// Request for |
| 47 |
// [HubService.CreateHub][google.cloud.networkconnectivity.v1alpha1.HubService.CreateHub] |
| 48 |
// method. |
| 49 |
// |
| 50 |
// Deprecated: Please use types in: cloud.google.com/go/networkconnectivity/apiv1alpha1/networkconnectivitypb |
| 51 |
type CreateHubRequest = src.CreateHubRequest |
| 52 |
|
| 53 |
// The request for |
| 54 |
// [HubService.CreateSpoke][google.cloud.networkconnectivity.v1alpha1.HubService.CreateSpoke]. |
| 55 |
// |
| 56 |
// Deprecated: Please use types in: cloud.google.com/go/networkconnectivity/apiv1alpha1/networkconnectivitypb |
| 57 |
type CreateSpokeRequest = src.CreateSpokeRequest |
| 58 |
|
| 59 |
// The request for |
| 60 |
// [HubService.DeleteHub][google.cloud.networkconnectivity.v1alpha1.HubService.DeleteHub]. |
| 61 |
// |
| 62 |
// Deprecated: Please use types in: cloud.google.com/go/networkconnectivity/apiv1alpha1/networkconnectivitypb |
| 63 |
type DeleteHubRequest = src.DeleteHubRequest |
| 64 |
|
| 65 |
// The request for |
| 66 |
// [HubService.DeleteSpoke][google.cloud.networkconnectivity.v1alpha1.HubService.DeleteSpoke]. |
| 67 |
// |
| 68 |
// Deprecated: Please use types in: cloud.google.com/go/networkconnectivity/apiv1alpha1/networkconnectivitypb |
| 69 |
type DeleteSpokeRequest = src.DeleteSpokeRequest |
| 70 |
|
| 71 |
// Request for |
| 72 |
// [HubService.GetHub][google.cloud.networkconnectivity.v1alpha1.HubService.GetHub] |
| 73 |
// method. |
| 74 |
// |
| 75 |
// Deprecated: Please use types in: cloud.google.com/go/networkconnectivity/apiv1alpha1/networkconnectivitypb |
| 76 |
type GetHubRequest = src.GetHubRequest |
| 77 |
|
| 78 |
// The request for |
| 79 |
// [HubService.GetSpoke][google.cloud.networkconnectivity.v1alpha1.HubService.GetSpoke]. |
| 80 |
// |
| 81 |
// Deprecated: Please use types in: cloud.google.com/go/networkconnectivity/apiv1alpha1/networkconnectivitypb |
| 82 |
type GetSpokeRequest = src.GetSpokeRequest |
| 83 |
|
| 84 |
// Network Connectivity Center is a hub-and-spoke abstraction for network |
| 85 |
// connectivity management in Google Cloud. It reduces operational complexity |
| 86 |
// through a simple, centralized connectivity management model. Following is |
| 87 |
// the resource message of a hub. |
| 88 |
// |
| 89 |
// Deprecated: Please use types in: cloud.google.com/go/networkconnectivity/apiv1alpha1/networkconnectivitypb |
| 90 |
type Hub = src.Hub |
| 91 |
|
| 92 |
// HubServiceClient is the client API for HubService service. For semantics |
| 93 |
// around ctx use and closing/ending streaming RPCs, please refer to |
| 94 |
// https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. |
| 95 |
// |
| 96 |
// Deprecated: Please use types in: cloud.google.com/go/networkconnectivity/apiv1alpha1/networkconnectivitypb |
| 97 |
type HubServiceClient = src.HubServiceClient |
| 98 |
|
| 99 |
// HubServiceServer is the server API for HubService service. |
| 100 |
// |
| 101 |
// Deprecated: Please use types in: cloud.google.com/go/networkconnectivity/apiv1alpha1/networkconnectivitypb |
| 102 |
type HubServiceServer = src.HubServiceServer |
| 103 |
|
| 104 |
// Request for |
| 105 |
// [HubService.ListHubs][google.cloud.networkconnectivity.v1alpha1.HubService.ListHubs] |
| 106 |
// method. |
| 107 |
// |
| 108 |
// Deprecated: Please use types in: cloud.google.com/go/networkconnectivity/apiv1alpha1/networkconnectivitypb |
| 109 |
type ListHubsRequest = src.ListHubsRequest |
| 110 |
|
| 111 |
// Response for |
| 112 |
// [HubService.ListHubs][google.cloud.networkconnectivity.v1alpha1.HubService.ListHubs] |
| 113 |
// method. |
| 114 |
// |
| 115 |
// Deprecated: Please use types in: cloud.google.com/go/networkconnectivity/apiv1alpha1/networkconnectivitypb |
| 116 |
type ListHubsResponse = src.ListHubsResponse |
| 117 |
|
| 118 |
// The request for |
| 119 |
// [HubService.ListSpokes][google.cloud.networkconnectivity.v1alpha1.HubService.ListSpokes]. |
| 120 |
// |
| 121 |
// Deprecated: Please use types in: cloud.google.com/go/networkconnectivity/apiv1alpha1/networkconnectivitypb |
| 122 |
type ListSpokesRequest = src.ListSpokesRequest |
| 123 |
|
| 124 |
// The response for |
| 125 |
// [HubService.ListSpokes][google.cloud.networkconnectivity.v1alpha1.HubService.ListSpokes]. |
| 126 |
// |
| 127 |
// Deprecated: Please use types in: cloud.google.com/go/networkconnectivity/apiv1alpha1/networkconnectivitypb |
| 128 |
type ListSpokesResponse = src.ListSpokesResponse |
| 129 |
|
| 130 |
// Represents the metadata of the long-running operation. |
| 131 |
// |
| 132 |
// Deprecated: Please use types in: cloud.google.com/go/networkconnectivity/apiv1alpha1/networkconnectivitypb |
| 133 |
type OperationMetadata = src.OperationMetadata |
| 134 |
|
| 135 |
// RouterAppliance represents a Router appliance which is specified by a VM |
| 136 |
// URI and a NIC address. |
| 137 |
// |
| 138 |
// Deprecated: Please use types in: cloud.google.com/go/networkconnectivity/apiv1alpha1/networkconnectivitypb |
| 139 |
type RouterApplianceInstance = src.RouterApplianceInstance |
| 140 |
|
| 141 |
// A Spoke is an abstraction of a network attachment being attached to a Hub. |
| 142 |
// A Spoke can be underlying a VPN tunnel, a VLAN (interconnect) attachment, a |
| 143 |
// Router appliance, etc. |
| 144 |
// |
| 145 |
// Deprecated: Please use types in: cloud.google.com/go/networkconnectivity/apiv1alpha1/networkconnectivitypb |
| 146 |
type Spoke = src.Spoke |
| 147 |
|
| 148 |
// The State enum represents the lifecycle of a Network Connectivity Center |
| 149 |
// resource. |
| 150 |
// |
| 151 |
// Deprecated: Please use types in: cloud.google.com/go/networkconnectivity/apiv1alpha1/networkconnectivitypb |
| 152 |
type State = src.State |
| 153 |
|
| 154 |
// UnimplementedHubServiceServer can be embedded to have forward compatible |
| 155 |
// implementations. |
| 156 |
// |
| 157 |
// Deprecated: Please use types in: cloud.google.com/go/networkconnectivity/apiv1alpha1/networkconnectivitypb |
| 158 |
type UnimplementedHubServiceServer = src.UnimplementedHubServiceServer |
| 159 |
|
| 160 |
// Request for |
| 161 |
// [HubService.UpdateHub][google.cloud.networkconnectivity.v1alpha1.HubService.UpdateHub] |
| 162 |
// method. |
| 163 |
// |
| 164 |
// Deprecated: Please use types in: cloud.google.com/go/networkconnectivity/apiv1alpha1/networkconnectivitypb |
| 165 |
type UpdateHubRequest = src.UpdateHubRequest |
| 166 |
|
| 167 |
// Request for |
| 168 |
// [HubService.UpdateSpoke][google.cloud.networkconnectivity.v1alpha1.HubService.UpdateSpoke] |
| 169 |
// method. |
| 170 |
// |
| 171 |
// Deprecated: Please use types in: cloud.google.com/go/networkconnectivity/apiv1alpha1/networkconnectivitypb |
| 172 |
type UpdateSpokeRequest = src.UpdateSpokeRequest |
| 173 |
|
| 174 |
// Deprecated: Please use funcs in: cloud.google.com/go/networkconnectivity/apiv1alpha1/networkconnectivitypb |
| 175 |
func NewHubServiceClient(cc grpc.ClientConnInterface) HubServiceClient { |
| 176 |
return src.NewHubServiceClient(cc) |
| 177 |
} |
| 178 |
|
| 179 |
// Deprecated: Please use funcs in: cloud.google.com/go/networkconnectivity/apiv1alpha1/networkconnectivitypb |
| 180 |
func RegisterHubServiceServer(s *grpc.Server, srv HubServiceServer) { |
| 181 |
src.RegisterHubServiceServer(s, srv) |
| 182 |
} |