appconnectionsdata

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package appconnectionsdata provides BeyondCorp type definitions for CloudEvent data payloads.

Supported CloudEvent Types

  • google.cloud.beyondcorp.appconnections.appConnection.v1.created
  • google.cloud.beyondcorp.appconnections.appConnection.v1.updated
  • google.cloud.beyondcorp.appconnections.appConnection.v1.deleted

Index

Constants

This section is empty.

Variables

View Source
var (
	AppConnection_Type_name = map[int32]string{
		0: "TYPE_UNSPECIFIED",
		1: "TCP_PROXY",
	}
	AppConnection_Type_value = map[string]int32{
		"TYPE_UNSPECIFIED": 0,
		"TCP_PROXY":        1,
	}
)

Enum value maps for AppConnection_Type.

View Source
var (
	AppConnection_State_name = map[int32]string{
		0: "STATE_UNSPECIFIED",
		1: "CREATING",
		2: "CREATED",
		3: "UPDATING",
		4: "DELETING",
		5: "DOWN",
	}
	AppConnection_State_value = map[string]int32{
		"STATE_UNSPECIFIED": 0,
		"CREATING":          1,
		"CREATED":           2,
		"UPDATING":          3,
		"DELETING":          4,
		"DOWN":              5,
	}
)

Enum value maps for AppConnection_State.

View Source
var (
	AppConnection_Gateway_Type_name = map[int32]string{
		0: "TYPE_UNSPECIFIED",
		1: "GCP_REGIONAL_MIG",
	}
	AppConnection_Gateway_Type_value = map[string]int32{
		"TYPE_UNSPECIFIED": 0,
		"GCP_REGIONAL_MIG": 1,
	}
)

Enum value maps for AppConnection_Gateway_Type.

View Source
var File_cloud_beyondcorp_appconnections_v1_data_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type AppConnection

type AppConnection struct {

	// Required. Unique resource name of the AppConnection.
	// The name is ignored when creating a AppConnection.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Output only. Timestamp when the resource was created.
	CreateTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
	// Output only. Timestamp when the resource was last modified.
	UpdateTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`
	// Optional. Resource labels to represent user provided metadata.
	Labels map[string]string `` /* 153-byte string literal not displayed */
	// Optional. An arbitrary user-provided name for the AppConnection. Cannot
	// exceed 64 characters.
	DisplayName string `protobuf:"bytes,5,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
	// Output only. A unique identifier for the instance generated by the
	// system.
	Uid string `protobuf:"bytes,6,opt,name=uid,proto3" json:"uid,omitempty"`
	// Required. The type of network connectivity used by the AppConnection.
	Type AppConnection_Type `` /* 135-byte string literal not displayed */
	// Required. Address of the remote application endpoint for the BeyondCorp
	// AppConnection.
	ApplicationEndpoint *AppConnection_ApplicationEndpoint `protobuf:"bytes,8,opt,name=application_endpoint,json=applicationEndpoint,proto3" json:"application_endpoint,omitempty"`
	// Optional. List of [google.cloud.beyondcorp.v1main.Connector.name] that are
	// authorised to be associated with this AppConnection.
	Connectors []string `protobuf:"bytes,9,rep,name=connectors,proto3" json:"connectors,omitempty"`
	// Output only. The current state of the AppConnection.
	State AppConnection_State `` /* 139-byte string literal not displayed */
	// Optional. Gateway used by the AppConnection.
	Gateway *AppConnection_Gateway `protobuf:"bytes,11,opt,name=gateway,proto3" json:"gateway,omitempty"`
	// contains filtered or unexported fields
}

A BeyondCorp AppConnection resource represents a BeyondCorp protected AppConnection to a remote application. It creates all the necessary GCP components needed for creating a BeyondCorp protected AppConnection. Multiple connectors can be authorised for a single AppConnection.

func (*AppConnection) Descriptor deprecated

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

Deprecated: Use AppConnection.ProtoReflect.Descriptor instead.

func (*AppConnection) GetApplicationEndpoint

func (x *AppConnection) GetApplicationEndpoint() *AppConnection_ApplicationEndpoint

func (*AppConnection) GetConnectors

func (x *AppConnection) GetConnectors() []string

func (*AppConnection) GetCreateTime

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

func (*AppConnection) GetDisplayName

func (x *AppConnection) GetDisplayName() string

func (*AppConnection) GetGateway

func (x *AppConnection) GetGateway() *AppConnection_Gateway

func (*AppConnection) GetLabels

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

func (*AppConnection) GetName

func (x *AppConnection) GetName() string

func (*AppConnection) GetState

func (x *AppConnection) GetState() AppConnection_State

func (*AppConnection) GetType

func (x *AppConnection) GetType() AppConnection_Type

func (*AppConnection) GetUid

func (x *AppConnection) GetUid() string

func (*AppConnection) GetUpdateTime

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

func (*AppConnection) ProtoMessage

func (*AppConnection) ProtoMessage()

func (*AppConnection) ProtoReflect

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

func (*AppConnection) Reset

func (x *AppConnection) Reset()

func (*AppConnection) String

func (x *AppConnection) String() string

type AppConnectionEventData

type AppConnectionEventData struct {

	// Optional. The AppConnection event payload. Unset for deletion events.
	Payload *AppConnection `protobuf:"bytes,1,opt,name=payload,proto3,oneof" json:"payload,omitempty"`
	// contains filtered or unexported fields
}

The data within all AppConnection events.

func (*AppConnectionEventData) Descriptor deprecated

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

Deprecated: Use AppConnectionEventData.ProtoReflect.Descriptor instead.

func (*AppConnectionEventData) GetPayload

func (x *AppConnectionEventData) GetPayload() *AppConnection

func (*AppConnectionEventData) ProtoMessage

func (*AppConnectionEventData) ProtoMessage()

func (*AppConnectionEventData) ProtoReflect

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

func (*AppConnectionEventData) Reset

func (x *AppConnectionEventData) Reset()

func (*AppConnectionEventData) String

func (x *AppConnectionEventData) String() string

type AppConnection_ApplicationEndpoint

type AppConnection_ApplicationEndpoint struct {

	// Required. Hostname or IP address of the remote application endpoint.
	Host string `protobuf:"bytes,1,opt,name=host,proto3" json:"host,omitempty"`
	// Required. Port of the remote application endpoint.
	Port int32 `protobuf:"varint,2,opt,name=port,proto3" json:"port,omitempty"`
	// contains filtered or unexported fields
}

ApplicationEndpoint represents a remote application endpoint.

func (*AppConnection_ApplicationEndpoint) Descriptor deprecated

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

Deprecated: Use AppConnection_ApplicationEndpoint.ProtoReflect.Descriptor instead.

func (*AppConnection_ApplicationEndpoint) GetHost

func (*AppConnection_ApplicationEndpoint) GetPort

func (*AppConnection_ApplicationEndpoint) ProtoMessage

func (*AppConnection_ApplicationEndpoint) ProtoMessage()

func (*AppConnection_ApplicationEndpoint) ProtoReflect

func (*AppConnection_ApplicationEndpoint) Reset

func (*AppConnection_ApplicationEndpoint) String

type AppConnection_Gateway

type AppConnection_Gateway struct {

	// Required. The type of hosting used by the gateway.
	Type AppConnection_Gateway_Type `` /* 143-byte string literal not displayed */
	// Output only. Server-defined URI for this resource.
	Uri string `protobuf:"bytes,3,opt,name=uri,proto3" json:"uri,omitempty"`
	// Output only. Ingress port reserved on the gateways for this
	// AppConnection, if not specified or zero, the default port is 19443.
	IngressPort int32 `protobuf:"varint,4,opt,name=ingress_port,json=ingressPort,proto3" json:"ingress_port,omitempty"`
	// Required. AppGateway name in following format:
	// `projects/{project_id}/locations/{location_id}/appgateways/{gateway_id}`
	AppGateway string `protobuf:"bytes,5,opt,name=app_gateway,json=appGateway,proto3" json:"app_gateway,omitempty"`
	// Output only. L7 private service connection for this resource.
	L7Psc string `protobuf:"bytes,6,opt,name=l7psc,proto3" json:"l7psc,omitempty"`
	// contains filtered or unexported fields
}

Gateway represents a user facing component that serves as an entrance to enable connectivity.

func (*AppConnection_Gateway) Descriptor deprecated

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

Deprecated: Use AppConnection_Gateway.ProtoReflect.Descriptor instead.

func (*AppConnection_Gateway) GetAppGateway

func (x *AppConnection_Gateway) GetAppGateway() string

func (*AppConnection_Gateway) GetIngressPort

func (x *AppConnection_Gateway) GetIngressPort() int32

func (*AppConnection_Gateway) GetL7Psc

func (x *AppConnection_Gateway) GetL7Psc() string

func (*AppConnection_Gateway) GetType

func (*AppConnection_Gateway) GetUri

func (x *AppConnection_Gateway) GetUri() string

func (*AppConnection_Gateway) ProtoMessage

func (*AppConnection_Gateway) ProtoMessage()

func (*AppConnection_Gateway) ProtoReflect

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

func (*AppConnection_Gateway) Reset

func (x *AppConnection_Gateway) Reset()

func (*AppConnection_Gateway) String

func (x *AppConnection_Gateway) String() string

type AppConnection_Gateway_Type

type AppConnection_Gateway_Type int32

Enum listing possible gateway hosting options.

const (
	// Default value. This value is unused.
	AppConnection_Gateway_TYPE_UNSPECIFIED AppConnection_Gateway_Type = 0
	// Gateway hosted in a GCP regional managed instance group.
	AppConnection_Gateway_GCP_REGIONAL_MIG AppConnection_Gateway_Type = 1
)

func (AppConnection_Gateway_Type) Descriptor

func (AppConnection_Gateway_Type) Enum

func (AppConnection_Gateway_Type) EnumDescriptor deprecated

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

Deprecated: Use AppConnection_Gateway_Type.Descriptor instead.

func (AppConnection_Gateway_Type) Number

func (AppConnection_Gateway_Type) String

func (AppConnection_Gateway_Type) Type

type AppConnection_State

type AppConnection_State int32

Represents the different states of a AppConnection.

const (
	// Default value. This value is unused.
	AppConnection_STATE_UNSPECIFIED AppConnection_State = 0
	// AppConnection is being created.
	AppConnection_CREATING AppConnection_State = 1
	// AppConnection has been created.
	AppConnection_CREATED AppConnection_State = 2
	// AppConnection's configuration is being updated.
	AppConnection_UPDATING AppConnection_State = 3
	// AppConnection is being deleted.
	AppConnection_DELETING AppConnection_State = 4
	// AppConnection is down and may be restored in the future.
	// This happens when CCFE sends ProjectState = OFF.
	AppConnection_DOWN AppConnection_State = 5
)

func (AppConnection_State) Descriptor

func (AppConnection_State) Enum

func (AppConnection_State) EnumDescriptor deprecated

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

Deprecated: Use AppConnection_State.Descriptor instead.

func (AppConnection_State) Number

func (AppConnection_State) String

func (x AppConnection_State) String() string

func (AppConnection_State) Type

type AppConnection_Type

type AppConnection_Type int32

Enum containing list of all possible network connectivity options supported by BeyondCorp AppConnection.

const (
	// Default value. This value is unused.
	AppConnection_TYPE_UNSPECIFIED AppConnection_Type = 0
	// TCP Proxy based BeyondCorp AppConnection. API will default to this if
	// unset.
	AppConnection_TCP_PROXY AppConnection_Type = 1
)

func (AppConnection_Type) Descriptor

func (AppConnection_Type) Enum

func (AppConnection_Type) EnumDescriptor deprecated

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

Deprecated: Use AppConnection_Type.Descriptor instead.

func (AppConnection_Type) Number

func (AppConnection_Type) String

func (x AppConnection_Type) String() string

func (AppConnection_Type) Type

Jump to

Keyboard shortcuts

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