Constants
HubService_ListHubs_FullMethodName, HubService_GetHub_FullMethodName, HubService_CreateHub_FullMethodName, HubService_UpdateHub_FullMethodName, HubService_DeleteHub_FullMethodName, HubService_ListSpokes_FullMethodName, HubService_GetSpoke_FullMethodName, HubService_CreateSpoke_FullMethodName, HubService_UpdateSpoke_FullMethodName, HubService_DeleteSpoke_FullMethodName
const (
HubService_ListHubs_FullMethodName = "/google.cloud.networkconnectivity.v1alpha1.HubService/ListHubs"
HubService_GetHub_FullMethodName = "/google.cloud.networkconnectivity.v1alpha1.HubService/GetHub"
HubService_CreateHub_FullMethodName = "/google.cloud.networkconnectivity.v1alpha1.HubService/CreateHub"
HubService_UpdateHub_FullMethodName = "/google.cloud.networkconnectivity.v1alpha1.HubService/UpdateHub"
HubService_DeleteHub_FullMethodName = "/google.cloud.networkconnectivity.v1alpha1.HubService/DeleteHub"
HubService_ListSpokes_FullMethodName = "/google.cloud.networkconnectivity.v1alpha1.HubService/ListSpokes"
HubService_GetSpoke_FullMethodName = "/google.cloud.networkconnectivity.v1alpha1.HubService/GetSpoke"
HubService_CreateSpoke_FullMethodName = "/google.cloud.networkconnectivity.v1alpha1.HubService/CreateSpoke"
HubService_UpdateSpoke_FullMethodName = "/google.cloud.networkconnectivity.v1alpha1.HubService/UpdateSpoke"
HubService_DeleteSpoke_FullMethodName = "/google.cloud.networkconnectivity.v1alpha1.HubService/DeleteSpoke"
)Variables
State_name, State_value
var (
State_name = map[int32]string{
0: "STATE_UNSPECIFIED",
1: "CREATING",
2: "ACTIVE",
3: "DELETING",
}
State_value = map[string]int32{
"STATE_UNSPECIFIED": 0,
"CREATING": 1,
"ACTIVE": 2,
"DELETING": 3,
}
)Enum value maps for State.
File_google_cloud_networkconnectivity_v1alpha1_common_proto
var File_google_cloud_networkconnectivity_v1alpha1_common_proto protoreflect.FileDescriptorFile_google_cloud_networkconnectivity_v1alpha1_hub_proto
var File_google_cloud_networkconnectivity_v1alpha1_hub_proto protoreflect.FileDescriptorHubService_ServiceDesc
var HubService_ServiceDesc = grpc.ServiceDesc{
ServiceName: "google.cloud.networkconnectivity.v1alpha1.HubService",
HandlerType: (*HubServiceServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "ListHubs",
Handler: _HubService_ListHubs_Handler,
},
{
MethodName: "GetHub",
Handler: _HubService_GetHub_Handler,
},
{
MethodName: "CreateHub",
Handler: _HubService_CreateHub_Handler,
},
{
MethodName: "UpdateHub",
Handler: _HubService_UpdateHub_Handler,
},
{
MethodName: "DeleteHub",
Handler: _HubService_DeleteHub_Handler,
},
{
MethodName: "ListSpokes",
Handler: _HubService_ListSpokes_Handler,
},
{
MethodName: "GetSpoke",
Handler: _HubService_GetSpoke_Handler,
},
{
MethodName: "CreateSpoke",
Handler: _HubService_CreateSpoke_Handler,
},
{
MethodName: "UpdateSpoke",
Handler: _HubService_UpdateSpoke_Handler,
},
{
MethodName: "DeleteSpoke",
Handler: _HubService_DeleteSpoke_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "google/cloud/networkconnectivity/v1alpha1/hub.proto",
}HubService_ServiceDesc is the grpc.ServiceDesc for HubService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions
func RegisterHubServiceServer
func RegisterHubServiceServer(s grpc.ServiceRegistrar, srv HubServiceServer)CreateHubRequest
type CreateHubRequest struct {
// Required. The parent resource's name of the Hub.
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// Optional. Unique id for the Hub to create.
HubId string `protobuf:"bytes,2,opt,name=hub_id,json=hubId,proto3" json:"hub_id,omitempty"`
// Required. Initial values for a new Hub.
Hub *Hub `protobuf:"bytes,3,opt,name=hub,proto3" json:"hub,omitempty"`
// Optional. An optional request ID to identify requests. Specify a unique request ID
// so that if you must retry your request, the server will know to ignore
// the request if it has already been completed. The server will guarantee
// that for at least 60 minutes since the first request.
//
// For example, consider a situation where you make an initial request and t
// he request times out. If you make the request again with the same request
// ID, the server can check if original operation with the same request ID
// was received, and if so, will ignore the second request. This prevents
// clients from accidentally creating duplicate commitments.
//
// The request ID must be a valid UUID with the exception that zero UUID is
// not supported (00000000-0000-0000-0000-000000000000).
RequestId string `protobuf:"bytes,4,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"`
// contains filtered or unexported fields
}Request for [HubService.CreateHub][google.cloud.networkconnectivity.v1alpha1.HubService.CreateHub] method.
func (*CreateHubRequest) Descriptor
func (*CreateHubRequest) Descriptor() ([]byte, []int)Deprecated: Use CreateHubRequest.ProtoReflect.Descriptor instead.
func (*CreateHubRequest) GetHub
func (x *CreateHubRequest) GetHub() *Hubfunc (*CreateHubRequest) GetHubId
func (x *CreateHubRequest) GetHubId() stringfunc (*CreateHubRequest) GetParent
func (x *CreateHubRequest) GetParent() stringfunc (*CreateHubRequest) GetRequestId
func (x *CreateHubRequest) GetRequestId() stringfunc (*CreateHubRequest) ProtoMessage
func (*CreateHubRequest) ProtoMessage()func (*CreateHubRequest) ProtoReflect
func (x *CreateHubRequest) ProtoReflect() protoreflect.Messagefunc (*CreateHubRequest) Reset
func (x *CreateHubRequest) Reset()func (*CreateHubRequest) String
func (x *CreateHubRequest) String() stringCreateSpokeRequest
type CreateSpokeRequest struct {
// Required. The parent's resource name of the Spoke.
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// Optional. Unique id for the Spoke to create.
SpokeId string `protobuf:"bytes,2,opt,name=spoke_id,json=spokeId,proto3" json:"spoke_id,omitempty"`
// Required. Initial values for a new Hub.
Spoke *Spoke `protobuf:"bytes,3,opt,name=spoke,proto3" json:"spoke,omitempty"`
// Optional. An optional request ID to identify requests. Specify a unique request ID
// so that if you must retry your request, the server will know to ignore
// the request if it has already been completed. The server will guarantee
// that for at least 60 minutes since the first request.
//
// For example, consider a situation where you make an initial request and t
// he request times out. If you make the request again with the same request
// ID, the server can check if original operation with the same request ID
// was received, and if so, will ignore the second request. This prevents
// clients from accidentally creating duplicate commitments.
//
// The request ID must be a valid UUID with the exception that zero UUID is
// not supported (00000000-0000-0000-0000-000000000000).
RequestId string `protobuf:"bytes,4,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"`
// contains filtered or unexported fields
}The request for [HubService.CreateSpoke][google.cloud.networkconnectivity.v1alpha1.HubService.CreateSpoke].
func (*CreateSpokeRequest) Descriptor
func (*CreateSpokeRequest) Descriptor() ([]byte, []int)Deprecated: Use CreateSpokeRequest.ProtoReflect.Descriptor instead.
func (*CreateSpokeRequest) GetParent
func (x *CreateSpokeRequest) GetParent() stringfunc (*CreateSpokeRequest) GetRequestId
func (x *CreateSpokeRequest) GetRequestId() stringfunc (*CreateSpokeRequest) GetSpoke
func (x *CreateSpokeRequest) GetSpoke() *Spokefunc (*CreateSpokeRequest) GetSpokeId
func (x *CreateSpokeRequest) GetSpokeId() stringfunc (*CreateSpokeRequest) ProtoMessage
func (*CreateSpokeRequest) ProtoMessage()func (*CreateSpokeRequest) ProtoReflect
func (x *CreateSpokeRequest) ProtoReflect() protoreflect.Messagefunc (*CreateSpokeRequest) Reset
func (x *CreateSpokeRequest) Reset()func (*CreateSpokeRequest) String
func (x *CreateSpokeRequest) String() stringDeleteHubRequest
type DeleteHubRequest struct {
// Required. The name of the Hub to delete.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Optional. An optional request ID to identify requests. Specify a unique request ID
// so that if you must retry your request, the server will know to ignore
// the request if it has already been completed. The server will guarantee
// that for at least 60 minutes after the first request.
//
// For example, consider a situation where you make an initial request and t
// he request times out. If you make the request again with the same request
// ID, the server can check if original operation with the same request ID
// was received, and if so, will ignore the second request. This prevents
// clients from accidentally creating duplicate commitments.
//
// The request ID must be a valid UUID with the exception that zero UUID is
// not supported (00000000-0000-0000-0000-000000000000).
RequestId string `protobuf:"bytes,2,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"`
// contains filtered or unexported fields
}The request for [HubService.DeleteHub][google.cloud.networkconnectivity.v1alpha1.HubService.DeleteHub].
func (*DeleteHubRequest) Descriptor
func (*DeleteHubRequest) Descriptor() ([]byte, []int)Deprecated: Use DeleteHubRequest.ProtoReflect.Descriptor instead.
func (*DeleteHubRequest) GetName
func (x *DeleteHubRequest) GetName() stringfunc (*DeleteHubRequest) GetRequestId
func (x *DeleteHubRequest) GetRequestId() stringfunc (*DeleteHubRequest) ProtoMessage
func (*DeleteHubRequest) ProtoMessage()func (*DeleteHubRequest) ProtoReflect
func (x *DeleteHubRequest) ProtoReflect() protoreflect.Messagefunc (*DeleteHubRequest) Reset
func (x *DeleteHubRequest) Reset()func (*DeleteHubRequest) String
func (x *DeleteHubRequest) String() stringDeleteSpokeRequest
type DeleteSpokeRequest struct {
// Required. The name of the Spoke to delete.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Optional. An optional request ID to identify requests. Specify a unique request ID
// so that if you must retry your request, the server will know to ignore
// the request if it has already been completed. The server will guarantee
// that for at least 60 minutes after the first request.
//
// For example, consider a situation where you make an initial request and t
// he request times out. If you make the request again with the same request
// ID, the server can check if original operation with the same request ID
// was received, and if so, will ignore the second request. This prevents
// clients from accidentally creating duplicate commitments.
//
// The request ID must be a valid UUID with the exception that zero UUID is
// not supported (00000000-0000-0000-0000-000000000000).
RequestId string `protobuf:"bytes,2,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"`
// contains filtered or unexported fields
}The request for [HubService.DeleteSpoke][google.cloud.networkconnectivity.v1alpha1.HubService.DeleteSpoke].
func (*DeleteSpokeRequest) Descriptor
func (*DeleteSpokeRequest) Descriptor() ([]byte, []int)Deprecated: Use DeleteSpokeRequest.ProtoReflect.Descriptor instead.
func (*DeleteSpokeRequest) GetName
func (x *DeleteSpokeRequest) GetName() stringfunc (*DeleteSpokeRequest) GetRequestId
func (x *DeleteSpokeRequest) GetRequestId() stringfunc (*DeleteSpokeRequest) ProtoMessage
func (*DeleteSpokeRequest) ProtoMessage()func (*DeleteSpokeRequest) ProtoReflect
func (x *DeleteSpokeRequest) ProtoReflect() protoreflect.Messagefunc (*DeleteSpokeRequest) Reset
func (x *DeleteSpokeRequest) Reset()func (*DeleteSpokeRequest) String
func (x *DeleteSpokeRequest) String() stringGetHubRequest
type GetHubRequest struct {
// Required. Name of the Hub resource to get.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}Request for [HubService.GetHub][google.cloud.networkconnectivity.v1alpha1.HubService.GetHub] method.
func (*GetHubRequest) Descriptor
func (*GetHubRequest) Descriptor() ([]byte, []int)Deprecated: Use GetHubRequest.ProtoReflect.Descriptor instead.
func (*GetHubRequest) GetName
func (x *GetHubRequest) GetName() stringfunc (*GetHubRequest) ProtoMessage
func (*GetHubRequest) ProtoMessage()func (*GetHubRequest) ProtoReflect
func (x *GetHubRequest) ProtoReflect() protoreflect.Messagefunc (*GetHubRequest) Reset
func (x *GetHubRequest) Reset()func (*GetHubRequest) String
func (x *GetHubRequest) String() stringGetSpokeRequest
type GetSpokeRequest struct {
// Required. The name of Spoke resource.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}The request for [HubService.GetSpoke][google.cloud.networkconnectivity.v1alpha1.HubService.GetSpoke].
func (*GetSpokeRequest) Descriptor
func (*GetSpokeRequest) Descriptor() ([]byte, []int)Deprecated: Use GetSpokeRequest.ProtoReflect.Descriptor instead.
func (*GetSpokeRequest) GetName
func (x *GetSpokeRequest) GetName() stringfunc (*GetSpokeRequest) ProtoMessage
func (*GetSpokeRequest) ProtoMessage()func (*GetSpokeRequest) ProtoReflect
func (x *GetSpokeRequest) ProtoReflect() protoreflect.Messagefunc (*GetSpokeRequest) Reset
func (x *GetSpokeRequest) Reset()func (*GetSpokeRequest) String
func (x *GetSpokeRequest) String() stringHub
type Hub struct {
// Immutable. The name of a Hub resource.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Time when the Hub was created.
CreateTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
// Time when the Hub was updated.
UpdateTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`
// User-defined labels.
Labels map[string]string `protobuf:"bytes,4,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
// Short description of the hub resource.
Description string `protobuf:"bytes,5,opt,name=description,proto3" json:"description,omitempty"`
// Output only. A list of the URIs of all attached spokes
Spokes []string `protobuf:"bytes,6,rep,name=spokes,proto3" json:"spokes,omitempty"`
// Output only. Google-generated UUID for this resource. This is unique across all Hub
// resources. If a Hub resource is deleted and another with the same name is
// created, it gets a different unique_id.
UniqueId string `protobuf:"bytes,8,opt,name=unique_id,json=uniqueId,proto3" json:"unique_id,omitempty"`
// Output only. The current lifecycle state of this Hub.
State State `protobuf:"varint,9,opt,name=state,proto3,enum=google.cloud.networkconnectivity.v1alpha1.State" json:"state,omitempty"`
// contains filtered or unexported fields
}Network Connectivity Center is a hub-and-spoke abstraction for network connectivity management in Google Cloud. It reduces operational complexity through a simple, centralized connectivity management model. Following is the resource message of a hub.
func (*Hub) Descriptor
Deprecated: Use Hub.ProtoReflect.Descriptor instead.
func (*Hub) GetCreateTime
func (x *Hub) GetCreateTime() *timestamppb.Timestampfunc (*Hub) GetDescription
func (*Hub) GetLabels
func (*Hub) GetName
func (*Hub) GetSpokes
func (*Hub) GetState
func (*Hub) GetUniqueId
func (*Hub) GetUpdateTime
func (x *Hub) GetUpdateTime() *timestamppb.Timestampfunc (*Hub) ProtoMessage
func (*Hub) ProtoMessage()func (*Hub) ProtoReflect
func (x *Hub) ProtoReflect() protoreflect.Messagefunc (*Hub) Reset
func (x *Hub) Reset()func (*Hub) String
HubServiceClient
type HubServiceClient interface {
// Lists Hubs in a given project and location.
ListHubs(ctx context.Context, in *ListHubsRequest, opts ...grpc.CallOption) (*ListHubsResponse, error)
// Gets details of a single Hub.
GetHub(ctx context.Context, in *GetHubRequest, opts ...grpc.CallOption) (*Hub, error)
// Creates a new Hub in a given project and location.
CreateHub(ctx context.Context, in *CreateHubRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error)
// Updates the parameters of a single Hub.
UpdateHub(ctx context.Context, in *UpdateHubRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error)
// Deletes a single Hub.
DeleteHub(ctx context.Context, in *DeleteHubRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error)
// Lists Spokes in a given project and location.
ListSpokes(ctx context.Context, in *ListSpokesRequest, opts ...grpc.CallOption) (*ListSpokesResponse, error)
// Gets details of a single Spoke.
GetSpoke(ctx context.Context, in *GetSpokeRequest, opts ...grpc.CallOption) (*Spoke, error)
// Creates a new Spoke in a given project and location.
CreateSpoke(ctx context.Context, in *CreateSpokeRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error)
// Updates the parameters of a single Spoke.
UpdateSpoke(ctx context.Context, in *UpdateSpokeRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error)
// Deletes a single Spoke.
DeleteSpoke(ctx context.Context, in *DeleteSpokeRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error)
}HubServiceClient is the client API for HubService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewHubServiceClient
func NewHubServiceClient(cc grpc.ClientConnInterface) HubServiceClientHubServiceServer
type HubServiceServer interface {
// Lists Hubs in a given project and location.
ListHubs(context.Context, *ListHubsRequest) (*ListHubsResponse, error)
// Gets details of a single Hub.
GetHub(context.Context, *GetHubRequest) (*Hub, error)
// Creates a new Hub in a given project and location.
CreateHub(context.Context, *CreateHubRequest) (*longrunningpb.Operation, error)
// Updates the parameters of a single Hub.
UpdateHub(context.Context, *UpdateHubRequest) (*longrunningpb.Operation, error)
// Deletes a single Hub.
DeleteHub(context.Context, *DeleteHubRequest) (*longrunningpb.Operation, error)
// Lists Spokes in a given project and location.
ListSpokes(context.Context, *ListSpokesRequest) (*ListSpokesResponse, error)
// Gets details of a single Spoke.
GetSpoke(context.Context, *GetSpokeRequest) (*Spoke, error)
// Creates a new Spoke in a given project and location.
CreateSpoke(context.Context, *CreateSpokeRequest) (*longrunningpb.Operation, error)
// Updates the parameters of a single Spoke.
UpdateSpoke(context.Context, *UpdateSpokeRequest) (*longrunningpb.Operation, error)
// Deletes a single Spoke.
DeleteSpoke(context.Context, *DeleteSpokeRequest) (*longrunningpb.Operation, error)
}HubServiceServer is the server API for HubService service. All implementations should embed UnimplementedHubServiceServer for forward compatibility
ListHubsRequest
type ListHubsRequest struct {
// Required. The parent resource's name.
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// The maximum number of results per page that should be returned.
PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
// The page token.
PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
// A filter expression that filters the results listed in the response.
Filter string `protobuf:"bytes,4,opt,name=filter,proto3" json:"filter,omitempty"`
// Sort the results by a certain order.
OrderBy string `protobuf:"bytes,5,opt,name=order_by,json=orderBy,proto3" json:"order_by,omitempty"`
// contains filtered or unexported fields
}Request for [HubService.ListHubs][google.cloud.networkconnectivity.v1alpha1.HubService.ListHubs] method.
func (*ListHubsRequest) Descriptor
func (*ListHubsRequest) Descriptor() ([]byte, []int)Deprecated: Use ListHubsRequest.ProtoReflect.Descriptor instead.
func (*ListHubsRequest) GetFilter
func (x *ListHubsRequest) GetFilter() stringfunc (*ListHubsRequest) GetOrderBy
func (x *ListHubsRequest) GetOrderBy() stringfunc (*ListHubsRequest) GetPageSize
func (x *ListHubsRequest) GetPageSize() int32func (*ListHubsRequest) GetPageToken
func (x *ListHubsRequest) GetPageToken() stringfunc (*ListHubsRequest) GetParent
func (x *ListHubsRequest) GetParent() stringfunc (*ListHubsRequest) ProtoMessage
func (*ListHubsRequest) ProtoMessage()func (*ListHubsRequest) ProtoReflect
func (x *ListHubsRequest) ProtoReflect() protoreflect.Messagefunc (*ListHubsRequest) Reset
func (x *ListHubsRequest) Reset()func (*ListHubsRequest) String
func (x *ListHubsRequest) String() stringListHubsResponse
type ListHubsResponse struct {
// Hubs to be returned.
Hubs []*Hub `protobuf:"bytes,1,rep,name=hubs,proto3" json:"hubs,omitempty"`
// The next pagination token in the List response. It should be used as
// page_token for the following request. An empty value means no more result.
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
// Locations that could not be reached.
Unreachable []string `protobuf:"bytes,3,rep,name=unreachable,proto3" json:"unreachable,omitempty"`
// contains filtered or unexported fields
}Response for [HubService.ListHubs][google.cloud.networkconnectivity.v1alpha1.HubService.ListHubs] method.
func (*ListHubsResponse) Descriptor
func (*ListHubsResponse) Descriptor() ([]byte, []int)Deprecated: Use ListHubsResponse.ProtoReflect.Descriptor instead.
func (*ListHubsResponse) GetHubs
func (x *ListHubsResponse) GetHubs() []*Hubfunc (*ListHubsResponse) GetNextPageToken
func (x *ListHubsResponse) GetNextPageToken() stringfunc (*ListHubsResponse) GetUnreachable
func (x *ListHubsResponse) GetUnreachable() []stringfunc (*ListHubsResponse) ProtoMessage
func (*ListHubsResponse) ProtoMessage()func (*ListHubsResponse) ProtoReflect
func (x *ListHubsResponse) ProtoReflect() protoreflect.Messagefunc (*ListHubsResponse) Reset
func (x *ListHubsResponse) Reset()func (*ListHubsResponse) String
func (x *ListHubsResponse) String() stringListSpokesRequest
type ListSpokesRequest struct {
// Required. The parent's resource name.
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// The maximum number of results per page that should be returned.
PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
// The page token.
PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
// A filter expression that filters the results listed in the response.
Filter string `protobuf:"bytes,4,opt,name=filter,proto3" json:"filter,omitempty"`
// Sort the results by a certain order.
OrderBy string `protobuf:"bytes,5,opt,name=order_by,json=orderBy,proto3" json:"order_by,omitempty"`
// contains filtered or unexported fields
}The request for [HubService.ListSpokes][google.cloud.networkconnectivity.v1alpha1.HubService.ListSpokes].
func (*ListSpokesRequest) Descriptor
func (*ListSpokesRequest) Descriptor() ([]byte, []int)Deprecated: Use ListSpokesRequest.ProtoReflect.Descriptor instead.
func (*ListSpokesRequest) GetFilter
func (x *ListSpokesRequest) GetFilter() stringfunc (*ListSpokesRequest) GetOrderBy
func (x *ListSpokesRequest) GetOrderBy() stringfunc (*ListSpokesRequest) GetPageSize
func (x *ListSpokesRequest) GetPageSize() int32func (*ListSpokesRequest) GetPageToken
func (x *ListSpokesRequest) GetPageToken() stringfunc (*ListSpokesRequest) GetParent
func (x *ListSpokesRequest) GetParent() stringfunc (*ListSpokesRequest) ProtoMessage
func (*ListSpokesRequest) ProtoMessage()func (*ListSpokesRequest) ProtoReflect
func (x *ListSpokesRequest) ProtoReflect() protoreflect.Messagefunc (*ListSpokesRequest) Reset
func (x *ListSpokesRequest) Reset()func (*ListSpokesRequest) String
func (x *ListSpokesRequest) String() stringListSpokesResponse
type ListSpokesResponse struct {
// Spokes to be returned.
Spokes []*Spoke `protobuf:"bytes,1,rep,name=spokes,proto3" json:"spokes,omitempty"`
// The next pagination token in the List response. It should be used as
// page_token for the following request. An empty value means no more result.
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
// Locations that could not be reached.
Unreachable []string `protobuf:"bytes,3,rep,name=unreachable,proto3" json:"unreachable,omitempty"`
// contains filtered or unexported fields
}The response for [HubService.ListSpokes][google.cloud.networkconnectivity.v1alpha1.HubService.ListSpokes].
func (*ListSpokesResponse) Descriptor
func (*ListSpokesResponse) Descriptor() ([]byte, []int)Deprecated: Use ListSpokesResponse.ProtoReflect.Descriptor instead.
func (*ListSpokesResponse) GetNextPageToken
func (x *ListSpokesResponse) GetNextPageToken() stringfunc (*ListSpokesResponse) GetSpokes
func (x *ListSpokesResponse) GetSpokes() []*Spokefunc (*ListSpokesResponse) GetUnreachable
func (x *ListSpokesResponse) GetUnreachable() []stringfunc (*ListSpokesResponse) ProtoMessage
func (*ListSpokesResponse) ProtoMessage()func (*ListSpokesResponse) ProtoReflect
func (x *ListSpokesResponse) ProtoReflect() protoreflect.Messagefunc (*ListSpokesResponse) Reset
func (x *ListSpokesResponse) Reset()func (*ListSpokesResponse) String
func (x *ListSpokesResponse) String() stringOperationMetadata
type OperationMetadata struct {
// Output only. The time the operation was created.
CreateTime *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
// Output only. The time the operation finished running.
EndTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"`
// Output only. Server-defined resource path for the target of the operation.
Target string `protobuf:"bytes,3,opt,name=target,proto3" json:"target,omitempty"`
// Output only. Name of the verb executed by the operation.
Verb string `protobuf:"bytes,4,opt,name=verb,proto3" json:"verb,omitempty"`
// Output only. Human-readable status of the operation, if any.
StatusMessage string `protobuf:"bytes,5,opt,name=status_message,json=statusMessage,proto3" json:"status_message,omitempty"`
// Output only. Identifies whether the user has requested cancellation
// of the operation. Operations that have successfully been cancelled
// have [Operation.error][] value with a [google.rpc.Status.code][google.rpc.Status.code] of 1,
// corresponding to `Code.CANCELLED`.
RequestedCancellation bool `protobuf:"varint,6,opt,name=requested_cancellation,json=requestedCancellation,proto3" json:"requested_cancellation,omitempty"`
// Output only. API version used to start the operation.
ApiVersion string `protobuf:"bytes,7,opt,name=api_version,json=apiVersion,proto3" json:"api_version,omitempty"`
// contains filtered or unexported fields
}Represents the metadata of the long-running operation.
func (*OperationMetadata) Descriptor
func (*OperationMetadata) Descriptor() ([]byte, []int)Deprecated: Use OperationMetadata.ProtoReflect.Descriptor instead.
func (*OperationMetadata) GetApiVersion
func (x *OperationMetadata) GetApiVersion() stringfunc (*OperationMetadata) GetCreateTime
func (x *OperationMetadata) GetCreateTime() *timestamppb.Timestampfunc (*OperationMetadata) GetEndTime
func (x *OperationMetadata) GetEndTime() *timestamppb.Timestampfunc (*OperationMetadata) GetRequestedCancellation
func (x *OperationMetadata) GetRequestedCancellation() boolfunc (*OperationMetadata) GetStatusMessage
func (x *OperationMetadata) GetStatusMessage() stringfunc (*OperationMetadata) GetTarget
func (x *OperationMetadata) GetTarget() stringfunc (*OperationMetadata) GetVerb
func (x *OperationMetadata) GetVerb() stringfunc (*OperationMetadata) ProtoMessage
func (*OperationMetadata) ProtoMessage()func (*OperationMetadata) ProtoReflect
func (x *OperationMetadata) ProtoReflect() protoreflect.Messagefunc (*OperationMetadata) Reset
func (x *OperationMetadata) Reset()func (*OperationMetadata) String
func (x *OperationMetadata) String() stringRouterApplianceInstance
type RouterApplianceInstance struct {
// The URI of the virtual machine resource
VirtualMachine string `protobuf:"bytes,1,opt,name=virtual_machine,json=virtualMachine,proto3" json:"virtual_machine,omitempty"`
// The IP address of the network interface to use for peering.
IpAddress string `protobuf:"bytes,3,opt,name=ip_address,json=ipAddress,proto3" json:"ip_address,omitempty"`
// Deprecated: Marked as deprecated in google/cloud/networkconnectivity/v1alpha1/hub.proto.
NetworkInterface string `protobuf:"bytes,2,opt,name=network_interface,json=networkInterface,proto3" json:"network_interface,omitempty"`
// contains filtered or unexported fields
}RouterAppliance represents a Router appliance which is specified by a VM URI and a NIC address.
func (*RouterApplianceInstance) Descriptor
func (*RouterApplianceInstance) Descriptor() ([]byte, []int)Deprecated: Use RouterApplianceInstance.ProtoReflect.Descriptor instead.
func (*RouterApplianceInstance) GetIpAddress
func (x *RouterApplianceInstance) GetIpAddress() stringfunc (*RouterApplianceInstance) GetNetworkInterface
func (x *RouterApplianceInstance) GetNetworkInterface() stringDeprecated: Marked as deprecated in google/cloud/networkconnectivity/v1alpha1/hub.proto.
func (*RouterApplianceInstance) GetVirtualMachine
func (x *RouterApplianceInstance) GetVirtualMachine() stringfunc (*RouterApplianceInstance) ProtoMessage
func (*RouterApplianceInstance) ProtoMessage()func (*RouterApplianceInstance) ProtoReflect
func (x *RouterApplianceInstance) ProtoReflect() protoreflect.Messagefunc (*RouterApplianceInstance) Reset
func (x *RouterApplianceInstance) Reset()func (*RouterApplianceInstance) String
func (x *RouterApplianceInstance) String() stringSpoke
type Spoke struct {
// Immutable. The name of a Spoke resource.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// The time when the Spoke was created.
CreateTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
// The time when the Spoke was updated.
UpdateTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`
// User-defined labels.
Labels map[string]string `protobuf:"bytes,4,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
// Short description of the spoke resource
Description string `protobuf:"bytes,5,opt,name=description,proto3" json:"description,omitempty"`
// The resource URL of the hub resource that the spoke is attached to
Hub string `protobuf:"bytes,6,opt,name=hub,proto3" json:"hub,omitempty"`
// The URIs of linked VPN tunnel resources
LinkedVpnTunnels []string `protobuf:"bytes,12,rep,name=linked_vpn_tunnels,json=linkedVpnTunnels,proto3" json:"linked_vpn_tunnels,omitempty"`
// The URIs of linked interconnect attachment resources
LinkedInterconnectAttachments []string `protobuf:"bytes,13,rep,name=linked_interconnect_attachments,json=linkedInterconnectAttachments,proto3" json:"linked_interconnect_attachments,omitempty"`
// The URIs of linked Router appliance resources
LinkedRouterApplianceInstances []*RouterApplianceInstance `protobuf:"bytes,14,rep,name=linked_router_appliance_instances,json=linkedRouterApplianceInstances,proto3" json:"linked_router_appliance_instances,omitempty"`
// Output only. Google-generated UUID for this resource. This is unique across all Spoke
// resources. If a Spoke resource is deleted and another with the same name is
// created, it gets a different unique_id.
UniqueId string `protobuf:"bytes,11,opt,name=unique_id,json=uniqueId,proto3" json:"unique_id,omitempty"`
// Output only. The current lifecycle state of this Hub.
State State `protobuf:"varint,15,opt,name=state,proto3,enum=google.cloud.networkconnectivity.v1alpha1.State" json:"state,omitempty"`
// contains filtered or unexported fields
}A Spoke is an abstraction of a network attachment being attached to a Hub. A Spoke can be underlying a VPN tunnel, a VLAN (interconnect) attachment, a Router appliance, etc.
func (*Spoke) Descriptor
Deprecated: Use Spoke.ProtoReflect.Descriptor instead.
func (*Spoke) GetCreateTime
func (x *Spoke) GetCreateTime() *timestamppb.Timestampfunc (*Spoke) GetDescription
func (*Spoke) GetHub
func (*Spoke) GetLabels
func (*Spoke) GetLinkedInterconnectAttachments
func (*Spoke) GetLinkedRouterApplianceInstances
func (x *Spoke) GetLinkedRouterApplianceInstances() []*RouterApplianceInstancefunc (*Spoke) GetLinkedVpnTunnels
func (*Spoke) GetName
func (*Spoke) GetState
func (*Spoke) GetUniqueId
func (*Spoke) GetUpdateTime
func (x *Spoke) GetUpdateTime() *timestamppb.Timestampfunc (*Spoke) ProtoMessage
func (*Spoke) ProtoMessage()func (*Spoke) ProtoReflect
func (x *Spoke) ProtoReflect() protoreflect.Messagefunc (*Spoke) Reset
func (x *Spoke) Reset()func (*Spoke) String
State
type State int32The State enum represents the lifecycle of a Network Connectivity Center resource.
State_STATE_UNSPECIFIED, State_CREATING, State_ACTIVE, State_DELETING
const (
// No state information available
State_STATE_UNSPECIFIED State = 0
// The resource's create operation is in progress
State_CREATING State = 1
// The resource is active
State_ACTIVE State = 2
// The resource's Delete operation is in progress
State_DELETING State = 3
)func (State) Descriptor
func (State) Descriptor() protoreflect.EnumDescriptorfunc (State) Enum
func (State) EnumDescriptor
Deprecated: Use State.Descriptor instead.
func (State) Number
func (x State) Number() protoreflect.EnumNumberfunc (State) String
func (State) Type
func (State) Type() protoreflect.EnumTypeUnimplementedHubServiceServer
type UnimplementedHubServiceServer struct {
}UnimplementedHubServiceServer should be embedded to have forward compatible implementations.
func (UnimplementedHubServiceServer) CreateHub
func (UnimplementedHubServiceServer) CreateHub(context.Context, *CreateHubRequest) (*longrunningpb.Operation, error)func (UnimplementedHubServiceServer) CreateSpoke
func (UnimplementedHubServiceServer) CreateSpoke(context.Context, *CreateSpokeRequest) (*longrunningpb.Operation, error)func (UnimplementedHubServiceServer) DeleteHub
func (UnimplementedHubServiceServer) DeleteHub(context.Context, *DeleteHubRequest) (*longrunningpb.Operation, error)func (UnimplementedHubServiceServer) DeleteSpoke
func (UnimplementedHubServiceServer) DeleteSpoke(context.Context, *DeleteSpokeRequest) (*longrunningpb.Operation, error)func (UnimplementedHubServiceServer) GetHub
func (UnimplementedHubServiceServer) GetHub(context.Context, *GetHubRequest) (*Hub, error)func (UnimplementedHubServiceServer) GetSpoke
func (UnimplementedHubServiceServer) GetSpoke(context.Context, *GetSpokeRequest) (*Spoke, error)func (UnimplementedHubServiceServer) ListHubs
func (UnimplementedHubServiceServer) ListHubs(context.Context, *ListHubsRequest) (*ListHubsResponse, error)func (UnimplementedHubServiceServer) ListSpokes
func (UnimplementedHubServiceServer) ListSpokes(context.Context, *ListSpokesRequest) (*ListSpokesResponse, error)func (UnimplementedHubServiceServer) UpdateHub
func (UnimplementedHubServiceServer) UpdateHub(context.Context, *UpdateHubRequest) (*longrunningpb.Operation, error)func (UnimplementedHubServiceServer) UpdateSpoke
func (UnimplementedHubServiceServer) UpdateSpoke(context.Context, *UpdateSpokeRequest) (*longrunningpb.Operation, error)UnsafeHubServiceServer
type UnsafeHubServiceServer interface {
// contains filtered or unexported methods
}UnsafeHubServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to HubServiceServer will result in compilation errors.
UpdateHubRequest
type UpdateHubRequest struct {
// Optional. Field mask is used to specify the fields to be overwritten in the
// Hub resource by the update.
// The fields specified in the update_mask are relative to the resource, not
// the full request. A field will be overwritten if it is in the mask. If the
// user does not provide a mask then all fields will be overwritten.
UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,1,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
// Required. The state that the Hub should be in after the update.
Hub *Hub `protobuf:"bytes,2,opt,name=hub,proto3" json:"hub,omitempty"`
// Optional. An optional request ID to identify requests. Specify a unique request ID
// so that if you must retry your request, the server will know to ignore
// the request if it has already been completed. The server will guarantee
// that for at least 60 minutes since the first request.
//
// For example, consider a situation where you make an initial request and t
// he request times out. If you make the request again with the same request
// ID, the server can check if original operation with the same request ID
// was received, and if so, will ignore the second request. This prevents
// clients from accidentally creating duplicate commitments.
//
// The request ID must be a valid UUID with the exception that zero UUID is
// not supported (00000000-0000-0000-0000-000000000000).
RequestId string `protobuf:"bytes,3,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"`
// contains filtered or unexported fields
}Request for [HubService.UpdateHub][google.cloud.networkconnectivity.v1alpha1.HubService.UpdateHub] method.
func (*UpdateHubRequest) Descriptor
func (*UpdateHubRequest) Descriptor() ([]byte, []int)Deprecated: Use UpdateHubRequest.ProtoReflect.Descriptor instead.
func (*UpdateHubRequest) GetHub
func (x *UpdateHubRequest) GetHub() *Hubfunc (*UpdateHubRequest) GetRequestId
func (x *UpdateHubRequest) GetRequestId() stringfunc (*UpdateHubRequest) GetUpdateMask
func (x *UpdateHubRequest) GetUpdateMask() *fieldmaskpb.FieldMaskfunc (*UpdateHubRequest) ProtoMessage
func (*UpdateHubRequest) ProtoMessage()func (*UpdateHubRequest) ProtoReflect
func (x *UpdateHubRequest) ProtoReflect() protoreflect.Messagefunc (*UpdateHubRequest) Reset
func (x *UpdateHubRequest) Reset()func (*UpdateHubRequest) String
func (x *UpdateHubRequest) String() stringUpdateSpokeRequest
type UpdateSpokeRequest struct {
// Optional. Field mask is used to specify the fields to be overwritten in the
// Spoke resource by the update.
// The fields specified in the update_mask are relative to the resource, not
// the full request. A field will be overwritten if it is in the mask. If the
// user does not provide a mask then all fields will be overwritten.
UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,1,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
// Required. The state that the Spoke should be in after the update.
Spoke *Spoke `protobuf:"bytes,2,opt,name=spoke,proto3" json:"spoke,omitempty"`
// Optional. An optional request ID to identify requests. Specify a unique request ID
// so that if you must retry your request, the server will know to ignore
// the request if it has already been completed. The server will guarantee
// that for at least 60 minutes since the first request.
//
// For example, consider a situation where you make an initial request and t
// he request times out. If you make the request again with the same request
// ID, the server can check if original operation with the same request ID
// was received, and if so, will ignore the second request. This prevents
// clients from accidentally creating duplicate commitments.
//
// The request ID must be a valid UUID with the exception that zero UUID is
// not supported (00000000-0000-0000-0000-000000000000).
RequestId string `protobuf:"bytes,3,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"`
// contains filtered or unexported fields
}Request for [HubService.UpdateSpoke][google.cloud.networkconnectivity.v1alpha1.HubService.UpdateSpoke] method.
func (*UpdateSpokeRequest) Descriptor
func (*UpdateSpokeRequest) Descriptor() ([]byte, []int)Deprecated: Use UpdateSpokeRequest.ProtoReflect.Descriptor instead.
func (*UpdateSpokeRequest) GetRequestId
func (x *UpdateSpokeRequest) GetRequestId() stringfunc (*UpdateSpokeRequest) GetSpoke
func (x *UpdateSpokeRequest) GetSpoke() *Spokefunc (*UpdateSpokeRequest) GetUpdateMask
func (x *UpdateSpokeRequest) GetUpdateMask() *fieldmaskpb.FieldMaskfunc (*UpdateSpokeRequest) ProtoMessage
func (*UpdateSpokeRequest) ProtoMessage()func (*UpdateSpokeRequest) ProtoReflect
func (x *UpdateSpokeRequest) ProtoReflect() protoreflect.Messagefunc (*UpdateSpokeRequest) Reset
func (x *UpdateSpokeRequest) Reset()func (*UpdateSpokeRequest) String
func (x *UpdateSpokeRequest) String() string