networkconnectivity

package
v0.0.0-...-e9cf271 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 2, 2021 License: Apache-2.0 Imports: 12 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
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.

View Source
var File_google_cloud_networkconnectivity_v1_common_proto protoreflect.FileDescriptor
View Source
var File_google_cloud_networkconnectivity_v1_hub_proto protoreflect.FileDescriptor

Functions

func RegisterHubServiceServer

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

Types

type CreateHubRequest

type CreateHubRequest struct {

	// Required. The parent resource.
	Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
	// Optional. 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 deprecated

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

type CreateSpokeRequest

type CreateSpokeRequest struct {

	// Required. The parent resource.
	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. 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 deprecated

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

type 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 deprecated

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

type 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 deprecated

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

type 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 deprecated

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

type 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 deprecated

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

type Hub

type Hub struct {

	// Immutable. The name of the hub. Hub names must be unique. They use the
	// following form:
	//     `projects/{project_number}/locations/global/hubs/{hub_id}`
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Output only. The time the hub was created.
	CreateTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
	// Output only. The time the hub was last updated.
	UpdateTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`
	// Optional labels in key:value format. For more information about labels, see
	// [Requirements for
	// labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements).
	Labels map[string]string `` /* 153-byte string literal not displayed */
	// An optional description of the hub.
	Description string `protobuf:"bytes,5,opt,name=description,proto3" json:"description,omitempty"`
	// Output only. The Google-generated UUID for the hub. This value is unique across all hub
	// resources. If a hub is deleted and another with the same name is created,
	// the new hub is assigned 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.v1.State" json:"state,omitempty"`
	// The VPC network associated with this hub's spokes. All of the VPN tunnels,
	// VLAN attachments, and router appliance instances referenced by this hub's
	// spokes must belong to this VPC network.
	//
	// This field is read-only. Network Connectivity Center automatically
	// populates it based on the set of spokes attached to the hub.
	RoutingVpcs []*RoutingVPC `protobuf:"bytes,10,rep,name=routing_vpcs,json=routingVpcs,proto3" json:"routing_vpcs,omitempty"`
	// contains filtered or unexported fields
}

A hub is essentially a collection of spokes. A single hub can contain spokes from multiple regions. However, all of a hub's spokes must be associated with resources that reside in the same VPC network.

func (*Hub) Descriptor deprecated

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

type 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

type 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.

type LinkedInterconnectAttachments

type LinkedInterconnectAttachments struct {

	// The URIs of linked interconnect attachment resources
	Uris []string `protobuf:"bytes,1,rep,name=uris,proto3" json:"uris,omitempty"`
	// A value that controls whether site-to-site data transfer is enabled for
	// these resources. This field is set to false by default, but you must set it
	// to true. Note that data transfer is available only in supported locations.
	SiteToSiteDataTransfer bool `` /* 134-byte string literal not displayed */
	// contains filtered or unexported fields
}

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 deprecated

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

type LinkedRouterApplianceInstances

type LinkedRouterApplianceInstances struct {

	// The list of router appliance instances.
	Instances []*RouterApplianceInstance `protobuf:"bytes,1,rep,name=instances,proto3" json:"instances,omitempty"`
	// A value that controls whether site-to-site data transfer is enabled for
	// these resources. This field is set to false by default, but you must set it
	// to true. Note that data transfer is available only in supported locations.
	SiteToSiteDataTransfer bool `` /* 134-byte string literal not displayed */
	// contains filtered or unexported fields
}

A collection of router appliance instances. If you have multiple router appliance instances connected to the same site, they should all be attached to the same spoke.

func (*LinkedRouterApplianceInstances) Descriptor deprecated

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

type LinkedVpnTunnels

type LinkedVpnTunnels struct {

	// The URIs of linked VPN tunnel resources.
	Uris []string `protobuf:"bytes,1,rep,name=uris,proto3" json:"uris,omitempty"`
	// A value that controls whether site-to-site data transfer is enabled for
	// these resources. This field is set to false by default, but you must set it
	// to true. Note that data transfer is available only in supported locations.
	SiteToSiteDataTransfer bool `` /* 134-byte string literal not displayed */
	// contains filtered or unexported fields
}

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 deprecated

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

type 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 deprecated

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

type 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 deprecated

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

type 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 deprecated

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

type 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 deprecated

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

type 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 deprecated

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

type 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 deprecated

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

type RoutingVPC

type RoutingVPC struct {

	// The URI of a VPC network.
	Uri string `protobuf:"bytes,1,opt,name=uri,proto3" json:"uri,omitempty"`
	// contains filtered or unexported fields
}

RoutingsVPC contains information about a VPC network that is associated with a hub's spokes.

func (*RoutingVPC) Descriptor deprecated

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

Deprecated: Use RoutingVPC.ProtoReflect.Descriptor instead.

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

type Spoke

type Spoke struct {

	// Immutable. The name of the spoke. Spoke names must be unique. They use the
	// following form:
	//     `projects/{project_number}/locations/{region}/spokes/{spoke_id}`
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Output only. The time the spoke was created.
	CreateTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
	// Output only. The time the spoke was last updated.
	UpdateTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`
	// Optional labels in key:value format. For more information about labels, see
	// [Requirements for
	// labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements).
	Labels map[string]string `` /* 153-byte string literal not displayed */
	// An optional description of the spoke.
	Description string `protobuf:"bytes,5,opt,name=description,proto3" json:"description,omitempty"`
	// Immutable. The URI of the hub that this spoke is attached to.
	Hub string `protobuf:"bytes,6,opt,name=hub,proto3" json:"hub,omitempty"`
	// VPN tunnels that are associated with the spoke.
	LinkedVpnTunnels *LinkedVpnTunnels `protobuf:"bytes,17,opt,name=linked_vpn_tunnels,json=linkedVpnTunnels,proto3" json:"linked_vpn_tunnels,omitempty"`
	// VLAN attachments that are associated with the spoke.
	LinkedInterconnectAttachments *LinkedInterconnectAttachments `` /* 151-byte string literal not displayed */
	// Router appliance instances that are associated with the spoke.
	LinkedRouterApplianceInstances *LinkedRouterApplianceInstances `` /* 156-byte string literal not displayed */
	// Output only. The Google-generated UUID for the spoke. This value is unique across all
	// spoke resources. If a spoke is deleted and another with the same name is
	// created, the new spoke is assigned 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 spoke.
	State State `protobuf:"varint,15,opt,name=state,proto3,enum=google.cloud.networkconnectivity.v1.State" json:"state,omitempty"`
	// contains filtered or unexported fields
}

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 deprecated

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

type State

type State int32

The State enum represents the lifecycle stage of a Network Connectivity Center resource.

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 deprecated

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

type 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

type 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 deprecated

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

type 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 deprecated

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL