Package cloud.google.com/go/networkconnectivity/apiv1/networkconnectivitypb (v1.7.0)

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.

LocationFeature_name, LocationFeature_value

var (
	LocationFeature_name = map[int32]string{
		0: "LOCATION_FEATURE_UNSPECIFIED",
		1: "SITE_TO_CLOUD_SPOKES",
		2: "SITE_TO_SITE_SPOKES",
	}
	LocationFeature_value = map[string]int32{
		"LOCATION_FEATURE_UNSPECIFIED": 0,
		"SITE_TO_CLOUD_SPOKES":         1,
		"SITE_TO_SITE_SPOKES":          2,
	}
)

Enum value maps for LocationFeature.

File_google_cloud_networkconnectivity_v1_common_proto

var File_google_cloud_networkconnectivity_v1_common_proto protoreflect.FileDescriptor

File_google_cloud_networkconnectivity_v1_hub_proto

var File_google_cloud_networkconnectivity_v1_hub_proto protoreflect.FileDescriptor

Functions

func RegisterHubServiceServer

func RegisterHubServiceServer(s *grpc.Server, srv HubServiceServer)

CreateHubRequest

type CreateHubRequest struct {

	// Required. The parent resource.
	Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
	// Required. A unique identifier for the hub.
	HubId string `protobuf:"bytes,2,opt,name=hub_id,json=hubId,proto3" json:"hub_id,omitempty"`
	// Required. The initial values for a new hub.
	Hub *Hub `protobuf:"bytes,3,opt,name=hub,proto3" json:"hub,omitempty"`
	// Optional. A unique request ID (optional). If you specify this ID, you can use it
	// in cases when you need to retry your request. When you need to retry, this
	// ID lets the server know that it can ignore the request if it has already
	// been completed. The server guarantees that for at least 60 minutes after
	// the first request.
	//
	// For example, consider a situation where you make an initial request and
	// the request times out. If you make the request again with the same request
	// ID, the server can check to see whether the original operation
	// was received. If it was, the server ignores the second request. This
	// behavior prevents clients from mistakenly 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.v1.HubService.CreateHub] method.

func (*CreateHubRequest) Descriptor

func (*CreateHubRequest) Descriptor() ([]byte, []int)

Deprecated: Use CreateHubRequest.ProtoReflect.Descriptor instead.

func (*CreateHubRequest) GetHub

func (x *CreateHubRequest) GetHub() *Hub

func (*CreateHubRequest) GetHubId

func (x *CreateHubRequest) GetHubId() string

func (*CreateHubRequest) GetParent

func (x *CreateHubRequest) GetParent() string

func (*CreateHubRequest) GetRequestId

func (x *CreateHubRequest) GetRequestId() string

func (*CreateHubRequest) ProtoMessage

func (*CreateHubRequest) ProtoMessage()

func (*CreateHubRequest) ProtoReflect

func (x *CreateHubRequest) ProtoReflect() protoreflect.Message

func (*CreateHubRequest) Reset

func (x *CreateHubRequest) Reset()

func (*CreateHubRequest) String

func (x *CreateHubRequest) String() string

CreateSpokeRequest

type CreateSpokeRequest struct {

	// Required. The parent resource.
	Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
	// Required. Unique id for the spoke to create.
	SpokeId string `protobuf:"bytes,2,opt,name=spoke_id,json=spokeId,proto3" json:"spoke_id,omitempty"`
	// Required. The initial values for a new spoke.
	Spoke *Spoke `protobuf:"bytes,3,opt,name=spoke,proto3" json:"spoke,omitempty"`
	// Optional. A unique request ID (optional). If you specify this ID, you can use it
	// in cases when you need to retry your request. When you need to retry, this
	// ID lets the server know that it can ignore the request if it has already
	// been completed. The server guarantees that for at least 60 minutes after
	// the first request.
	//
	// For example, consider a situation where you make an initial request and
	// the request times out. If you make the request again with the same request
	// ID, the server can check to see whether the original operation
	// was received. If it was, the server ignores the second request. This
	// behavior prevents clients from mistakenly 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.v1.HubService.CreateSpoke].

func (*CreateSpokeRequest) Descriptor

func (*CreateSpokeRequest) Descriptor() ([]byte, []int)

Deprecated: Use CreateSpokeRequest.ProtoReflect.Descriptor instead.

func (*CreateSpokeRequest) GetParent

func (x *CreateSpokeRequest) GetParent() string

func (*CreateSpokeRequest) GetRequestId

func (x *CreateSpokeRequest) GetRequestId() string

func (*CreateSpokeRequest) GetSpoke

func (x *CreateSpokeRequest) GetSpoke() *Spoke

func (*CreateSpokeRequest) GetSpokeId

func (x *CreateSpokeRequest) GetSpokeId() string

func (*CreateSpokeRequest) ProtoMessage

func (*CreateSpokeRequest) ProtoMessage()

func (*CreateSpokeRequest) ProtoReflect

func (x *CreateSpokeRequest) ProtoReflect() protoreflect.Message

func (*CreateSpokeRequest) Reset

func (x *CreateSpokeRequest) Reset()

func (*CreateSpokeRequest) String

func (x *CreateSpokeRequest) String() string

DeleteHubRequest

type DeleteHubRequest struct {

	// Required. The name of the hub to delete.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Optional. A unique request ID (optional). If you specify this ID, you can use it
	// in cases when you need to retry your request. When you need to retry, this
	// ID lets the server know that it can ignore the request if it has already
	// been completed. The server guarantees that for at least 60 minutes after
	// the first request.
	//
	// For example, consider a situation where you make an initial request and
	// the request times out. If you make the request again with the same request
	// ID, the server can check to see whether the original operation
	// was received. If it was, the server ignores the second request. This
	// behavior prevents clients from mistakenly 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.v1.HubService.DeleteHub].

func (*DeleteHubRequest) Descriptor

func (*DeleteHubRequest) Descriptor() ([]byte, []int)

Deprecated: Use DeleteHubRequest.ProtoReflect.Descriptor instead.

func (*DeleteHubRequest) GetName

func (x *DeleteHubRequest) GetName() string

func (*DeleteHubRequest) GetRequestId

func (x *DeleteHubRequest) GetRequestId() string

func (*DeleteHubRequest) ProtoMessage

func (*DeleteHubRequest) ProtoMessage()

func (*DeleteHubRequest) ProtoReflect

func (x *DeleteHubRequest) ProtoReflect() protoreflect.Message

func (*DeleteHubRequest) Reset

func (x *DeleteHubRequest) Reset()

func (*DeleteHubRequest) String

func (x *DeleteHubRequest) String() string

DeleteSpokeRequest

type DeleteSpokeRequest struct {

	// Required. The name of the spoke to delete.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Optional. A unique request ID (optional). If you specify this ID, you can use it
	// in cases when you need to retry your request. When you need to retry, this
	// ID lets the server know that it can ignore the request if it has already
	// been completed. The server guarantees that for at least 60 minutes after
	// the first request.
	//
	// For example, consider a situation where you make an initial request and
	// the request times out. If you make the request again with the same request
	// ID, the server can check to see whether the original operation
	// was received. If it was, the server ignores the second request. This
	// behavior prevents clients from mistakenly 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.v1.HubService.DeleteSpoke].

func (*DeleteSpokeRequest) Descriptor

func (*DeleteSpokeRequest) Descriptor() ([]byte, []int)

Deprecated: Use DeleteSpokeRequest.ProtoReflect.Descriptor instead.

func (*DeleteSpokeRequest) GetName

func (x *DeleteSpokeRequest) GetName() string

func (*DeleteSpokeRequest) GetRequestId

func (x *DeleteSpokeRequest) GetRequestId() string

func (*DeleteSpokeRequest) ProtoMessage

func (*DeleteSpokeRequest) ProtoMessage()

func (*DeleteSpokeRequest) ProtoReflect

func (x *DeleteSpokeRequest) ProtoReflect() protoreflect.Message

func (*DeleteSpokeRequest) Reset

func (x *DeleteSpokeRequest) Reset()

func (*DeleteSpokeRequest) String

func (x *DeleteSpokeRequest) String() string

GetHubRequest

type GetHubRequest struct {

	// Required. The 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.v1.HubService.GetHub] method.

func (*GetHubRequest) Descriptor

func (*GetHubRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetHubRequest.ProtoReflect.Descriptor instead.

func (*GetHubRequest) GetName

func (x *GetHubRequest) GetName() string

func (*GetHubRequest) ProtoMessage

func (*GetHubRequest) ProtoMessage()

func (*GetHubRequest) ProtoReflect

func (x *GetHubRequest) ProtoReflect() protoreflect.Message

func (*GetHubRequest) Reset

func (x *GetHubRequest) Reset()

func (*GetHubRequest) String

func (x *GetHubRequest) String() string

GetSpokeRequest

type GetSpokeRequest struct {

	// Required. The name of the 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.v1.HubService.GetSpoke].

func (*GetSpokeRequest) Descriptor

func (*GetSpokeRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetSpokeRequest.ProtoReflect.Descriptor instead.

func (*GetSpokeRequest) GetName

func (x *GetSpokeRequest) GetName() string

func (*GetSpokeRequest) ProtoMessage

func (*GetSpokeRequest) ProtoMessage()

func (*GetSpokeRequest) ProtoReflect

func (x *GetSpokeRequest) ProtoReflect() protoreflect.Message

func (*GetSpokeRequest) Reset

func (x *GetSpokeRequest) Reset()

func (*GetSpokeRequest) String

func (x *GetSpokeRequest) String() string

Hub

type Hub struct {
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`

	CreateTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`

	UpdateTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`

	Labels map[string]string "" /* 153 byte string literal not displayed */

	Description string `protobuf:"bytes,5,opt,name=description,proto3" json:"description,omitempty"`

	UniqueId string `protobuf:"bytes,8,opt,name=unique_id,json=uniqueId,proto3" json:"unique_id,omitempty"`

	State State `protobuf:"varint,9,opt,name=state,proto3,enum=google.cloud.networkconnectivity.v1.State" json:"state,omitempty"`

	RoutingVpcs []*RoutingVPC `protobuf:"bytes,10,rep,name=routing_vpcs,json=routingVpcs,proto3" json:"routing_vpcs,omitempty"`

}

A hub is a collection of spokes. A single hub can contain spokes from multiple regions. However, if any of a hub's spokes use the data transfer feature, the resources associated with those spokes must all reside in the same VPC network. Spokes that do not use data transfer can be associated with any VPC network in your project.

func (*Hub) Descriptor

func (*Hub) Descriptor() ([]byte, []int)

Deprecated: Use Hub.ProtoReflect.Descriptor instead.

func (*Hub) GetCreateTime

func (x *Hub) GetCreateTime() *timestamppb.Timestamp

func (*Hub) GetDescription

func (x *Hub) GetDescription() string

func (*Hub) GetLabels

func (x *Hub) GetLabels() map[string]string

func (*Hub) GetName

func (x *Hub) GetName() string

func (*Hub) GetRoutingVpcs

func (x *Hub) GetRoutingVpcs() []*RoutingVPC

func (*Hub) GetState

func (x *Hub) GetState() State

func (*Hub) GetUniqueId

func (x *Hub) GetUniqueId() string

func (*Hub) GetUpdateTime

func (x *Hub) GetUpdateTime() *timestamppb.Timestamp

func (*Hub) ProtoMessage

func (*Hub) ProtoMessage()

func (*Hub) ProtoReflect

func (x *Hub) ProtoReflect() protoreflect.Message

func (*Hub) Reset

func (x *Hub) Reset()

func (*Hub) String

func (x *Hub) String() string

HubServiceClient

type HubServiceClient interface {
	// Lists hubs in a given project.
	ListHubs(ctx context.Context, in *ListHubsRequest, opts ...grpc.CallOption) (*ListHubsResponse, error)
	// Gets details about the specified hub.
	GetHub(ctx context.Context, in *GetHubRequest, opts ...grpc.CallOption) (*Hub, error)
	// Creates a new hub in the specified project.
	CreateHub(ctx context.Context, in *CreateHubRequest, opts ...grpc.CallOption) (*longrunning.Operation, error)
	// Updates the description and/or labels of the specified hub.
	UpdateHub(ctx context.Context, in *UpdateHubRequest, opts ...grpc.CallOption) (*longrunning.Operation, error)
	// Deletes the specified hub.
	DeleteHub(ctx context.Context, in *DeleteHubRequest, opts ...grpc.CallOption) (*longrunning.Operation, error)
	// Lists the spokes in the specified project and location.
	ListSpokes(ctx context.Context, in *ListSpokesRequest, opts ...grpc.CallOption) (*ListSpokesResponse, error)
	// Gets details about the specified spoke.
	GetSpoke(ctx context.Context, in *GetSpokeRequest, opts ...grpc.CallOption) (*Spoke, error)
	// Creates a spoke in the specified project and location.
	CreateSpoke(ctx context.Context, in *CreateSpokeRequest, opts ...grpc.CallOption) (*longrunning.Operation, error)
	// Updates the parameters of the specified spoke.
	UpdateSpoke(ctx context.Context, in *UpdateSpokeRequest, opts ...grpc.CallOption) (*longrunning.Operation, error)
	// Deletes the specified spoke.
	DeleteSpoke(ctx context.Context, in *DeleteSpokeRequest, opts ...grpc.CallOption) (*longrunning.Operation, error)
}

HubServiceClient is the client API for HubService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewHubServiceClient

func NewHubServiceClient(cc grpc.ClientConnInterface) HubServiceClient

HubServiceServer

type HubServiceServer interface {
	// Lists hubs in a given project.
	ListHubs(context.Context, *ListHubsRequest) (*ListHubsResponse, error)
	// Gets details about the specified hub.
	GetHub(context.Context, *GetHubRequest) (*Hub, error)
	// Creates a new hub in the specified project.
	CreateHub(context.Context, *CreateHubRequest) (*longrunning.Operation, error)
	// Updates the description and/or labels of the specified hub.
	UpdateHub(context.Context, *UpdateHubRequest) (*longrunning.Operation, error)
	// Deletes the specified hub.
	DeleteHub(context.Context, *DeleteHubRequest) (*longrunning.Operation, error)
	// Lists the spokes in the specified project and location.
	ListSpokes(context.Context, *ListSpokesRequest) (*ListSpokesResponse, error)
	// Gets details about the specified spoke.
	GetSpoke(context.Context, *GetSpokeRequest) (*Spoke, error)
	// Creates a spoke in the specified project and location.
	CreateSpoke(context.Context, *CreateSpokeRequest) (*longrunning.Operation, error)
	// Updates the parameters of the specified spoke.
	UpdateSpoke(context.Context, *UpdateSpokeRequest) (*longrunning.Operation, error)
	// Deletes the specified spoke.
	DeleteSpoke(context.Context, *DeleteSpokeRequest) (*longrunning.Operation, error)
}

HubServiceServer is the server API for HubService service.

LinkedInterconnectAttachments

type LinkedInterconnectAttachments struct {
	Uris []string `protobuf:"bytes,1,rep,name=uris,proto3" json:"uris,omitempty"`

	SiteToSiteDataTransfer bool "" /* 134 byte string literal not displayed */

}

A collection of VLAN attachment resources. These resources should be redundant attachments that all advertise the same prefixes to Google Cloud. Alternatively, in active/passive configurations, all attachments should be capable of advertising the same prefixes.

func (*LinkedInterconnectAttachments) Descriptor

func (*LinkedInterconnectAttachments) Descriptor() ([]byte, []int)

Deprecated: Use LinkedInterconnectAttachments.ProtoReflect.Descriptor instead.

func (*LinkedInterconnectAttachments) GetSiteToSiteDataTransfer

func (x *LinkedInterconnectAttachments) GetSiteToSiteDataTransfer() bool

func (*LinkedInterconnectAttachments) GetUris

func (x *LinkedInterconnectAttachments) GetUris() []string

func (*LinkedInterconnectAttachments) ProtoMessage

func (*LinkedInterconnectAttachments) ProtoMessage()

func (*LinkedInterconnectAttachments) ProtoReflect

func (*LinkedInterconnectAttachments) Reset

func (x *LinkedInterconnectAttachments) Reset()

func (*LinkedInterconnectAttachments) String

LinkedRouterApplianceInstances

type LinkedRouterApplianceInstances struct {
	Instances []*RouterApplianceInstance `protobuf:"bytes,1,rep,name=instances,proto3" json:"instances,omitempty"`

	SiteToSiteDataTransfer bool "" /* 134 byte string literal not displayed */

}

A collection of router appliance instances. If you configure multiple router appliance instances to receive data from the same set of sites outside of Google Cloud, we recommend that you associate those instances with the same spoke.

func (*LinkedRouterApplianceInstances) Descriptor

func (*LinkedRouterApplianceInstances) Descriptor() ([]byte, []int)

Deprecated: Use LinkedRouterApplianceInstances.ProtoReflect.Descriptor instead.

func (*LinkedRouterApplianceInstances) GetInstances

func (*LinkedRouterApplianceInstances) GetSiteToSiteDataTransfer

func (x *LinkedRouterApplianceInstances) GetSiteToSiteDataTransfer() bool

func (*LinkedRouterApplianceInstances) ProtoMessage

func (*LinkedRouterApplianceInstances) ProtoMessage()

func (*LinkedRouterApplianceInstances) ProtoReflect

func (*LinkedRouterApplianceInstances) Reset

func (x *LinkedRouterApplianceInstances) Reset()

func (*LinkedRouterApplianceInstances) String

LinkedVpnTunnels

type LinkedVpnTunnels struct {
	Uris []string `protobuf:"bytes,1,rep,name=uris,proto3" json:"uris,omitempty"`

	SiteToSiteDataTransfer bool "" /* 134 byte string literal not displayed */

}

A collection of Cloud VPN tunnel resources. These resources should be redundant HA VPN tunnels that all advertise the same prefixes to Google Cloud. Alternatively, in a passive/active configuration, all tunnels should be capable of advertising the same prefixes.

func (*LinkedVpnTunnels) Descriptor

func (*LinkedVpnTunnels) Descriptor() ([]byte, []int)

Deprecated: Use LinkedVpnTunnels.ProtoReflect.Descriptor instead.

func (*LinkedVpnTunnels) GetSiteToSiteDataTransfer

func (x *LinkedVpnTunnels) GetSiteToSiteDataTransfer() bool

func (*LinkedVpnTunnels) GetUris

func (x *LinkedVpnTunnels) GetUris() []string

func (*LinkedVpnTunnels) ProtoMessage

func (*LinkedVpnTunnels) ProtoMessage()

func (*LinkedVpnTunnels) ProtoReflect

func (x *LinkedVpnTunnels) ProtoReflect() protoreflect.Message

func (*LinkedVpnTunnels) Reset

func (x *LinkedVpnTunnels) Reset()

func (*LinkedVpnTunnels) String

func (x *LinkedVpnTunnels) String() string

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"`
	// An 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.v1.HubService.ListHubs] method.

func (*ListHubsRequest) Descriptor

func (*ListHubsRequest) Descriptor() ([]byte, []int)

Deprecated: Use ListHubsRequest.ProtoReflect.Descriptor instead.

func (*ListHubsRequest) GetFilter

func (x *ListHubsRequest) GetFilter() string

func (*ListHubsRequest) GetOrderBy

func (x *ListHubsRequest) GetOrderBy() string

func (*ListHubsRequest) GetPageSize

func (x *ListHubsRequest) GetPageSize() int32

func (*ListHubsRequest) GetPageToken

func (x *ListHubsRequest) GetPageToken() string

func (*ListHubsRequest) GetParent

func (x *ListHubsRequest) GetParent() string

func (*ListHubsRequest) ProtoMessage

func (*ListHubsRequest) ProtoMessage()

func (*ListHubsRequest) ProtoReflect

func (x *ListHubsRequest) ProtoReflect() protoreflect.Message

func (*ListHubsRequest) Reset

func (x *ListHubsRequest) Reset()

func (*ListHubsRequest) String

func (x *ListHubsRequest) String() string

ListHubsResponse

type ListHubsResponse struct {

	// The requested hubs.
	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.v1.HubService.ListHubs] method.

func (*ListHubsResponse) Descriptor

func (*ListHubsResponse) Descriptor() ([]byte, []int)

Deprecated: Use ListHubsResponse.ProtoReflect.Descriptor instead.

func (*ListHubsResponse) GetHubs

func (x *ListHubsResponse) GetHubs() []*Hub

func (*ListHubsResponse) GetNextPageToken

func (x *ListHubsResponse) GetNextPageToken() string

func (*ListHubsResponse) GetUnreachable

func (x *ListHubsResponse) GetUnreachable() []string

func (*ListHubsResponse) ProtoMessage

func (*ListHubsResponse) ProtoMessage()

func (*ListHubsResponse) ProtoReflect

func (x *ListHubsResponse) ProtoReflect() protoreflect.Message

func (*ListHubsResponse) Reset

func (x *ListHubsResponse) Reset()

func (*ListHubsResponse) String

func (x *ListHubsResponse) String() string

ListSpokesRequest

type ListSpokesRequest struct {

	// Required. The parent resource.
	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"`
	// An 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.v1.HubService.ListSpokes].

func (*ListSpokesRequest) Descriptor

func (*ListSpokesRequest) Descriptor() ([]byte, []int)

Deprecated: Use ListSpokesRequest.ProtoReflect.Descriptor instead.

func (*ListSpokesRequest) GetFilter

func (x *ListSpokesRequest) GetFilter() string

func (*ListSpokesRequest) GetOrderBy

func (x *ListSpokesRequest) GetOrderBy() string

func (*ListSpokesRequest) GetPageSize

func (x *ListSpokesRequest) GetPageSize() int32

func (*ListSpokesRequest) GetPageToken

func (x *ListSpokesRequest) GetPageToken() string

func (*ListSpokesRequest) GetParent

func (x *ListSpokesRequest) GetParent() string

func (*ListSpokesRequest) ProtoMessage

func (*ListSpokesRequest) ProtoMessage()

func (*ListSpokesRequest) ProtoReflect

func (x *ListSpokesRequest) ProtoReflect() protoreflect.Message

func (*ListSpokesRequest) Reset

func (x *ListSpokesRequest) Reset()

func (*ListSpokesRequest) String

func (x *ListSpokesRequest) String() string

ListSpokesResponse

type ListSpokesResponse struct {

	// The requested spokes.
	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.v1.HubService.ListSpokes].

func (*ListSpokesResponse) Descriptor

func (*ListSpokesResponse) Descriptor() ([]byte, []int)

Deprecated: Use ListSpokesResponse.ProtoReflect.Descriptor instead.

func (*ListSpokesResponse) GetNextPageToken

func (x *ListSpokesResponse) GetNextPageToken() string

func (*ListSpokesResponse) GetSpokes

func (x *ListSpokesResponse) GetSpokes() []*Spoke

func (*ListSpokesResponse) GetUnreachable

func (x *ListSpokesResponse) GetUnreachable() []string

func (*ListSpokesResponse) ProtoMessage

func (*ListSpokesResponse) ProtoMessage()

func (*ListSpokesResponse) ProtoReflect

func (x *ListSpokesResponse) ProtoReflect() protoreflect.Message

func (*ListSpokesResponse) Reset

func (x *ListSpokesResponse) Reset()

func (*ListSpokesResponse) String

func (x *ListSpokesResponse) String() string

LocationFeature

type LocationFeature int32

Supported features for a location

LocationFeature_LOCATION_FEATURE_UNSPECIFIED, LocationFeature_SITE_TO_CLOUD_SPOKES, LocationFeature_SITE_TO_SITE_SPOKES

const (
	// No publicly supported feature in this location
	LocationFeature_LOCATION_FEATURE_UNSPECIFIED LocationFeature = 0
	// Site-to-cloud spokes are supported in this location
	LocationFeature_SITE_TO_CLOUD_SPOKES LocationFeature = 1
	// Site-to-site spokes are supported in this location
	LocationFeature_SITE_TO_SITE_SPOKES LocationFeature = 2
)

func (LocationFeature) Descriptor

func (LocationFeature) Enum

func (x LocationFeature) Enum() *LocationFeature

func (LocationFeature) EnumDescriptor

func (LocationFeature) EnumDescriptor() ([]byte, []int)

Deprecated: Use LocationFeature.Descriptor instead.

func (LocationFeature) Number

func (LocationFeature) String

func (x LocationFeature) String() string

func (LocationFeature) Type

LocationMetadata

type LocationMetadata struct {
	LocationFeatures []LocationFeature "" /* 174 byte string literal not displayed */

}

Metadata about locations

func (*LocationMetadata) Descriptor

func (*LocationMetadata) Descriptor() ([]byte, []int)

Deprecated: Use LocationMetadata.ProtoReflect.Descriptor instead.

func (*LocationMetadata) GetLocationFeatures

func (x *LocationMetadata) GetLocationFeatures() []LocationFeature

func (*LocationMetadata) ProtoMessage

func (*LocationMetadata) ProtoMessage()

func (*LocationMetadata) ProtoReflect

func (x *LocationMetadata) ProtoReflect() protoreflect.Message

func (*LocationMetadata) Reset

func (x *LocationMetadata) Reset()

func (*LocationMetadata) String

func (x *LocationMetadata) String() string

OperationMetadata

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 been cancelled successfully
	// 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() string

func (*OperationMetadata) GetCreateTime

func (x *OperationMetadata) GetCreateTime() *timestamppb.Timestamp

func (*OperationMetadata) GetEndTime

func (x *OperationMetadata) GetEndTime() *timestamppb.Timestamp

func (*OperationMetadata) GetRequestedCancellation

func (x *OperationMetadata) GetRequestedCancellation() bool

func (*OperationMetadata) GetStatusMessage

func (x *OperationMetadata) GetStatusMessage() string

func (*OperationMetadata) GetTarget

func (x *OperationMetadata) GetTarget() string

func (*OperationMetadata) GetVerb

func (x *OperationMetadata) GetVerb() string

func (*OperationMetadata) ProtoMessage

func (*OperationMetadata) ProtoMessage()

func (*OperationMetadata) ProtoReflect

func (x *OperationMetadata) ProtoReflect() protoreflect.Message

func (*OperationMetadata) Reset

func (x *OperationMetadata) Reset()

func (*OperationMetadata) String

func (x *OperationMetadata) String() string

RouterApplianceInstance

type RouterApplianceInstance struct {

	// The URI of the VM.
	VirtualMachine string `protobuf:"bytes,1,opt,name=virtual_machine,json=virtualMachine,proto3" json:"virtual_machine,omitempty"`
	// The IP address on the VM to use for peering.
	IpAddress string `protobuf:"bytes,3,opt,name=ip_address,json=ipAddress,proto3" json:"ip_address,omitempty"`
	// contains filtered or unexported fields
}

A router appliance instance is a Compute Engine virtual machine (VM) instance that acts as a BGP speaker. A router appliance instance is specified by the URI of the VM and the internal IP address of one of the VM's network interfaces.

func (*RouterApplianceInstance) Descriptor

func (*RouterApplianceInstance) Descriptor() ([]byte, []int)

Deprecated: Use RouterApplianceInstance.ProtoReflect.Descriptor instead.

func (*RouterApplianceInstance) GetIpAddress

func (x *RouterApplianceInstance) GetIpAddress() string

func (*RouterApplianceInstance) GetVirtualMachine

func (x *RouterApplianceInstance) GetVirtualMachine() string

func (*RouterApplianceInstance) ProtoMessage

func (*RouterApplianceInstance) ProtoMessage()

func (*RouterApplianceInstance) ProtoReflect

func (x *RouterApplianceInstance) ProtoReflect() protoreflect.Message

func (*RouterApplianceInstance) Reset

func (x *RouterApplianceInstance) Reset()

func (*RouterApplianceInstance) String

func (x *RouterApplianceInstance) String() string

RoutingVPC

type RoutingVPC struct {
	Uri string `protobuf:"bytes,1,opt,name=uri,proto3" json:"uri,omitempty"`

	RequiredForNewSiteToSiteDataTransferSpokes bool "" /* 202 byte string literal not displayed */

}

RoutingVPC contains information about the VPC networks that are associated with a hub's spokes.

func (*RoutingVPC) Descriptor

func (*RoutingVPC) Descriptor() ([]byte, []int)

Deprecated: Use RoutingVPC.ProtoReflect.Descriptor instead.

func (*RoutingVPC) GetRequiredForNewSiteToSiteDataTransferSpokes

func (x *RoutingVPC) GetRequiredForNewSiteToSiteDataTransferSpokes() bool

func (*RoutingVPC) GetUri

func (x *RoutingVPC) GetUri() string

func (*RoutingVPC) ProtoMessage

func (*RoutingVPC) ProtoMessage()

func (*RoutingVPC) ProtoReflect

func (x *RoutingVPC) ProtoReflect() protoreflect.Message

func (*RoutingVPC) Reset

func (x *RoutingVPC) Reset()

func (*RoutingVPC) String

func (x *RoutingVPC) String() string

Spoke

type Spoke struct {
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`

	CreateTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`

	UpdateTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`

	Labels map[string]string "" /* 153 byte string literal not displayed */

	Description string `protobuf:"bytes,5,opt,name=description,proto3" json:"description,omitempty"`

	Hub string `protobuf:"bytes,6,opt,name=hub,proto3" json:"hub,omitempty"`

	LinkedVpnTunnels *LinkedVpnTunnels `protobuf:"bytes,17,opt,name=linked_vpn_tunnels,json=linkedVpnTunnels,proto3" json:"linked_vpn_tunnels,omitempty"`

	LinkedInterconnectAttachments *LinkedInterconnectAttachments "" /* 151 byte string literal not displayed */

	LinkedRouterApplianceInstances *LinkedRouterApplianceInstances "" /* 156 byte string literal not displayed */

	UniqueId string `protobuf:"bytes,11,opt,name=unique_id,json=uniqueId,proto3" json:"unique_id,omitempty"`

	State State `protobuf:"varint,15,opt,name=state,proto3,enum=google.cloud.networkconnectivity.v1.State" json:"state,omitempty"`

}

A spoke represents a connection between your Google Cloud network resources and a non-Google-Cloud network.

When you create a spoke, you associate it with a hub. You must also identify a value for exactly one of the following fields:

  • linked_vpn_tunnels
  • linked_interconnect_attachments
  • linked_router_appliance_instances

func (*Spoke) Descriptor

func (*Spoke) Descriptor() ([]byte, []int)

Deprecated: Use Spoke.ProtoReflect.Descriptor instead.

func (*Spoke) GetCreateTime

func (x *Spoke) GetCreateTime() *timestamppb.Timestamp

func (*Spoke) GetDescription

func (x *Spoke) GetDescription() string

func (*Spoke) GetHub

func (x *Spoke) GetHub() string

func (*Spoke) GetLabels

func (x *Spoke) GetLabels() map[string]string

func (*Spoke) GetLinkedInterconnectAttachments

func (x *Spoke) GetLinkedInterconnectAttachments() *LinkedInterconnectAttachments

func (*Spoke) GetLinkedRouterApplianceInstances

func (x *Spoke) GetLinkedRouterApplianceInstances() *LinkedRouterApplianceInstances

func (*Spoke) GetLinkedVpnTunnels

func (x *Spoke) GetLinkedVpnTunnels() *LinkedVpnTunnels

func (*Spoke) GetName

func (x *Spoke) GetName() string

func (*Spoke) GetState

func (x *Spoke) GetState() State

func (*Spoke) GetUniqueId

func (x *Spoke) GetUniqueId() string

func (*Spoke) GetUpdateTime

func (x *Spoke) GetUpdateTime() *timestamppb.Timestamp

func (*Spoke) ProtoMessage

func (*Spoke) ProtoMessage()

func (*Spoke) ProtoReflect

func (x *Spoke) ProtoReflect() protoreflect.Message

func (*Spoke) Reset

func (x *Spoke) Reset()

func (*Spoke) String

func (x *Spoke) String() string

State

type State int32

The State enum represents the lifecycle stage 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.EnumDescriptor

func (State) Enum

func (x State) Enum() *State

func (State) EnumDescriptor

func (State) EnumDescriptor() ([]byte, []int)

Deprecated: Use State.Descriptor instead.

func (State) Number

func (x State) Number() protoreflect.EnumNumber

func (State) String

func (x State) String() string

func (State) Type

func (State) Type() protoreflect.EnumType

UnimplementedHubServiceServer

type UnimplementedHubServiceServer struct {
}

UnimplementedHubServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedHubServiceServer) CreateHub

func (*UnimplementedHubServiceServer) CreateSpoke

func (*UnimplementedHubServiceServer) DeleteHub

func (*UnimplementedHubServiceServer) DeleteSpoke

func (*UnimplementedHubServiceServer) GetHub

func (*UnimplementedHubServiceServer) GetSpoke

func (*UnimplementedHubServiceServer) ListHubs

func (*UnimplementedHubServiceServer) ListSpokes

func (*UnimplementedHubServiceServer) UpdateHub

func (*UnimplementedHubServiceServer) UpdateSpoke

UpdateHubRequest

type UpdateHubRequest struct {

	// Optional. In the case of an update to an existing hub, field mask is used to specify
	// the fields to be overwritten. The fields specified in the update_mask are
	// relative to the resource, not the full request. A field is overwritten if
	// it is in the mask. If the user does not provide a mask, then all fields are
	// 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. A unique request ID (optional). If you specify this ID, you can use it
	// in cases when you need to retry your request. When you need to retry, this
	// ID lets the server know that it can ignore the request if it has already
	// been completed. The server guarantees that for at least 60 minutes after
	// the first request.
	//
	// For example, consider a situation where you make an initial request and
	// the request times out. If you make the request again with the same request
	// ID, the server can check to see whether the original operation
	// was received. If it was, the server ignores the second request. This
	// behavior prevents clients from mistakenly 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.v1.HubService.UpdateHub] method.

func (*UpdateHubRequest) Descriptor

func (*UpdateHubRequest) Descriptor() ([]byte, []int)

Deprecated: Use UpdateHubRequest.ProtoReflect.Descriptor instead.

func (*UpdateHubRequest) GetHub

func (x *UpdateHubRequest) GetHub() *Hub

func (*UpdateHubRequest) GetRequestId

func (x *UpdateHubRequest) GetRequestId() string

func (*UpdateHubRequest) GetUpdateMask

func (x *UpdateHubRequest) GetUpdateMask() *fieldmaskpb.FieldMask

func (*UpdateHubRequest) ProtoMessage

func (*UpdateHubRequest) ProtoMessage()

func (*UpdateHubRequest) ProtoReflect

func (x *UpdateHubRequest) ProtoReflect() protoreflect.Message

func (*UpdateHubRequest) Reset

func (x *UpdateHubRequest) Reset()

func (*UpdateHubRequest) String

func (x *UpdateHubRequest) String() string

UpdateSpokeRequest

type UpdateSpokeRequest struct {

	// Optional. In the case of an update to an existing spoke, field mask is used to
	// specify the fields to be overwritten. The fields specified in the
	// update_mask are relative to the resource, not the full request. A field is
	// overwritten if it is in the mask. If the user does not provide a mask, then
	// all fields are 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. A unique request ID (optional). If you specify this ID, you can use it
	// in cases when you need to retry your request. When you need to retry, this
	// ID lets the server know that it can ignore the request if it has already
	// been completed. The server guarantees that for at least 60 minutes after
	// the first request.
	//
	// For example, consider a situation where you make an initial request and
	// the request times out. If you make the request again with the same request
	// ID, the server can check to see whether the original operation
	// was received. If it was, the server ignores the second request. This
	// behavior prevents clients from mistakenly 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.v1.HubService.UpdateSpoke] method.

func (*UpdateSpokeRequest) Descriptor

func (*UpdateSpokeRequest) Descriptor() ([]byte, []int)

Deprecated: Use UpdateSpokeRequest.ProtoReflect.Descriptor instead.

func (*UpdateSpokeRequest) GetRequestId

func (x *UpdateSpokeRequest) GetRequestId() string

func (*UpdateSpokeRequest) GetSpoke

func (x *UpdateSpokeRequest) GetSpoke() *Spoke

func (*UpdateSpokeRequest) GetUpdateMask

func (x *UpdateSpokeRequest) GetUpdateMask() *fieldmaskpb.FieldMask

func (*UpdateSpokeRequest) ProtoMessage

func (*UpdateSpokeRequest) ProtoMessage()

func (*UpdateSpokeRequest) ProtoReflect

func (x *UpdateSpokeRequest) ProtoReflect() protoreflect.Message

func (*UpdateSpokeRequest) Reset

func (x *UpdateSpokeRequest) Reset()

func (*UpdateSpokeRequest) String

func (x *UpdateSpokeRequest) String() string