proxy

package
v0.0.0-...-aeb3b05 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2024 License: MIT Imports: 15 Imported by: 2

Documentation

Index

Constants

View Source
const (
	ProxyService_Get_FullMethodName                  = "/yandex.cloud.serverless.mdbproxy.v1.ProxyService/Get"
	ProxyService_List_FullMethodName                 = "/yandex.cloud.serverless.mdbproxy.v1.ProxyService/List"
	ProxyService_Create_FullMethodName               = "/yandex.cloud.serverless.mdbproxy.v1.ProxyService/Create"
	ProxyService_Update_FullMethodName               = "/yandex.cloud.serverless.mdbproxy.v1.ProxyService/Update"
	ProxyService_Delete_FullMethodName               = "/yandex.cloud.serverless.mdbproxy.v1.ProxyService/Delete"
	ProxyService_ListOperations_FullMethodName       = "/yandex.cloud.serverless.mdbproxy.v1.ProxyService/ListOperations"
	ProxyService_ListAccessBindings_FullMethodName   = "/yandex.cloud.serverless.mdbproxy.v1.ProxyService/ListAccessBindings"
	ProxyService_SetAccessBindings_FullMethodName    = "/yandex.cloud.serverless.mdbproxy.v1.ProxyService/SetAccessBindings"
	ProxyService_UpdateAccessBindings_FullMethodName = "/yandex.cloud.serverless.mdbproxy.v1.ProxyService/UpdateAccessBindings"
)

Variables

View Source
var File_yandex_cloud_serverless_mdbproxy_v1_proxy_proto protoreflect.FileDescriptor
View Source
var File_yandex_cloud_serverless_mdbproxy_v1_proxy_service_proto protoreflect.FileDescriptor
View Source
var ProxyService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "yandex.cloud.serverless.mdbproxy.v1.ProxyService",
	HandlerType: (*ProxyServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Get",
			Handler:    _ProxyService_Get_Handler,
		},
		{
			MethodName: "List",
			Handler:    _ProxyService_List_Handler,
		},
		{
			MethodName: "Create",
			Handler:    _ProxyService_Create_Handler,
		},
		{
			MethodName: "Update",
			Handler:    _ProxyService_Update_Handler,
		},
		{
			MethodName: "Delete",
			Handler:    _ProxyService_Delete_Handler,
		},
		{
			MethodName: "ListOperations",
			Handler:    _ProxyService_ListOperations_Handler,
		},
		{
			MethodName: "ListAccessBindings",
			Handler:    _ProxyService_ListAccessBindings_Handler,
		},
		{
			MethodName: "SetAccessBindings",
			Handler:    _ProxyService_SetAccessBindings_Handler,
		},
		{
			MethodName: "UpdateAccessBindings",
			Handler:    _ProxyService_UpdateAccessBindings_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "yandex/cloud/serverless/mdbproxy/v1/proxy_service.proto",
}

ProxyService_ServiceDesc is the grpc.ServiceDesc for ProxyService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterProxyServiceServer

func RegisterProxyServiceServer(s grpc.ServiceRegistrar, srv ProxyServiceServer)

Types

type CreateProxyMetadata

type CreateProxyMetadata struct {

	// ID of the proxy.
	ProxyId string `protobuf:"bytes,1,opt,name=proxy_id,json=proxyId,proto3" json:"proxy_id,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateProxyMetadata) Descriptor deprecated

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

Deprecated: Use CreateProxyMetadata.ProtoReflect.Descriptor instead.

func (*CreateProxyMetadata) GetProxyId

func (x *CreateProxyMetadata) GetProxyId() string

func (*CreateProxyMetadata) ProtoMessage

func (*CreateProxyMetadata) ProtoMessage()

func (*CreateProxyMetadata) ProtoReflect

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

func (*CreateProxyMetadata) Reset

func (x *CreateProxyMetadata) Reset()

func (*CreateProxyMetadata) SetProxyId

func (m *CreateProxyMetadata) SetProxyId(v string)

func (*CreateProxyMetadata) String

func (x *CreateProxyMetadata) String() string

type CreateProxyRequest

type CreateProxyRequest struct {

	// ID of the folder to create a proxy in.
	//
	// To get a folder ID make a [yandex.cloud.resourcemanager.v1.FolderService.List] request.
	FolderId string `protobuf:"bytes,1,opt,name=folder_id,json=folderId,proto3" json:"folder_id,omitempty"`
	// Name of the proxy.
	// The name must be unique within the folder.
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// Description of the proxy.
	Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
	// Resource labels as `key:value` pairs.
	Labels map[string]string `` /* 153-byte string literal not displayed */
	// Proxy target.
	Target *Target `protobuf:"bytes,5,opt,name=target,proto3" json:"target,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateProxyRequest) Descriptor deprecated

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

Deprecated: Use CreateProxyRequest.ProtoReflect.Descriptor instead.

func (*CreateProxyRequest) GetDescription

func (x *CreateProxyRequest) GetDescription() string

func (*CreateProxyRequest) GetFolderId

func (x *CreateProxyRequest) GetFolderId() string

func (*CreateProxyRequest) GetLabels

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

func (*CreateProxyRequest) GetName

func (x *CreateProxyRequest) GetName() string

func (*CreateProxyRequest) GetTarget

func (x *CreateProxyRequest) GetTarget() *Target

func (*CreateProxyRequest) ProtoMessage

func (*CreateProxyRequest) ProtoMessage()

func (*CreateProxyRequest) ProtoReflect

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

func (*CreateProxyRequest) Reset

func (x *CreateProxyRequest) Reset()

func (*CreateProxyRequest) SetDescription

func (m *CreateProxyRequest) SetDescription(v string)

func (*CreateProxyRequest) SetFolderId

func (m *CreateProxyRequest) SetFolderId(v string)

func (*CreateProxyRequest) SetLabels

func (m *CreateProxyRequest) SetLabels(v map[string]string)

func (*CreateProxyRequest) SetName

func (m *CreateProxyRequest) SetName(v string)

func (*CreateProxyRequest) SetTarget

func (m *CreateProxyRequest) SetTarget(v *Target)

func (*CreateProxyRequest) String

func (x *CreateProxyRequest) String() string

type DeleteProxyMetadata

type DeleteProxyMetadata struct {

	// ID of the proxy.
	ProxyId string `protobuf:"bytes,1,opt,name=proxy_id,json=proxyId,proto3" json:"proxy_id,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteProxyMetadata) Descriptor deprecated

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

Deprecated: Use DeleteProxyMetadata.ProtoReflect.Descriptor instead.

func (*DeleteProxyMetadata) GetProxyId

func (x *DeleteProxyMetadata) GetProxyId() string

func (*DeleteProxyMetadata) ProtoMessage

func (*DeleteProxyMetadata) ProtoMessage()

func (*DeleteProxyMetadata) ProtoReflect

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

func (*DeleteProxyMetadata) Reset

func (x *DeleteProxyMetadata) Reset()

func (*DeleteProxyMetadata) SetProxyId

func (m *DeleteProxyMetadata) SetProxyId(v string)

func (*DeleteProxyMetadata) String

func (x *DeleteProxyMetadata) String() string

type DeleteProxyRequest

type DeleteProxyRequest struct {

	// ID of the proxy.
	ProxyId string `protobuf:"bytes,1,opt,name=proxy_id,json=proxyId,proto3" json:"proxy_id,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteProxyRequest) Descriptor deprecated

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

Deprecated: Use DeleteProxyRequest.ProtoReflect.Descriptor instead.

func (*DeleteProxyRequest) GetProxyId

func (x *DeleteProxyRequest) GetProxyId() string

func (*DeleteProxyRequest) ProtoMessage

func (*DeleteProxyRequest) ProtoMessage()

func (*DeleteProxyRequest) ProtoReflect

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

func (*DeleteProxyRequest) Reset

func (x *DeleteProxyRequest) Reset()

func (*DeleteProxyRequest) SetProxyId

func (m *DeleteProxyRequest) SetProxyId(v string)

func (*DeleteProxyRequest) String

func (x *DeleteProxyRequest) String() string

type GetProxyRequest

type GetProxyRequest struct {

	// ID of the proxy to return.
	//
	// To get a proxy ID make a [ProxyService.List] request.
	ProxyId string `protobuf:"bytes,1,opt,name=proxy_id,json=proxyId,proto3" json:"proxy_id,omitempty"`
	// contains filtered or unexported fields
}

func (*GetProxyRequest) Descriptor deprecated

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

Deprecated: Use GetProxyRequest.ProtoReflect.Descriptor instead.

func (*GetProxyRequest) GetProxyId

func (x *GetProxyRequest) GetProxyId() string

func (*GetProxyRequest) ProtoMessage

func (*GetProxyRequest) ProtoMessage()

func (*GetProxyRequest) ProtoReflect

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

func (*GetProxyRequest) Reset

func (x *GetProxyRequest) Reset()

func (*GetProxyRequest) SetProxyId

func (m *GetProxyRequest) SetProxyId(v string)

func (*GetProxyRequest) String

func (x *GetProxyRequest) String() string

type ListProxyOperationsRequest

type ListProxyOperationsRequest struct {

	// ID of the proxy to list operations for.
	ProxyId string `protobuf:"bytes,1,opt,name=proxy_id,json=proxyId,proto3" json:"proxy_id,omitempty"`
	// The maximum number of results per page that should be returned. If the number of available
	// results is larger than `pageSize`, the service returns a [ListProxyOperationsResponse.next_page_token]
	// that can be used to get the next page of results in subsequent list requests.
	//
	// Default value: 100.
	PageSize int64 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	// Page token. To get the next page of results, set `pageToken` to the
	// [ListProxyOperationsResponse.next_page_token] returned by a previous list request.
	PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
	// A filter expression that filters resources listed in the response.
	//
	// The expression must specify:
	// 1. The field name. Currently filtering can be applied to the [operation.Operation.done], [operation.Operation.created_by] field.
	// 2. An `=` operator.
	// 3. The value in double quotes (`"`). Must be 3-63 characters long and match the regular expression `[a-z][-a-z0-9]{1,61}[a-z0-9]`.
	// Examples of a filter: `done=false`, `created_by='John.Doe'`.
	Filter string `protobuf:"bytes,4,opt,name=filter,proto3" json:"filter,omitempty"`
	// contains filtered or unexported fields
}

func (*ListProxyOperationsRequest) Descriptor deprecated

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

Deprecated: Use ListProxyOperationsRequest.ProtoReflect.Descriptor instead.

func (*ListProxyOperationsRequest) GetFilter

func (x *ListProxyOperationsRequest) GetFilter() string

func (*ListProxyOperationsRequest) GetPageSize

func (x *ListProxyOperationsRequest) GetPageSize() int64

func (*ListProxyOperationsRequest) GetPageToken

func (x *ListProxyOperationsRequest) GetPageToken() string

func (*ListProxyOperationsRequest) GetProxyId

func (x *ListProxyOperationsRequest) GetProxyId() string

func (*ListProxyOperationsRequest) ProtoMessage

func (*ListProxyOperationsRequest) ProtoMessage()

func (*ListProxyOperationsRequest) ProtoReflect

func (*ListProxyOperationsRequest) Reset

func (x *ListProxyOperationsRequest) Reset()

func (*ListProxyOperationsRequest) SetFilter

func (m *ListProxyOperationsRequest) SetFilter(v string)

func (*ListProxyOperationsRequest) SetPageSize

func (m *ListProxyOperationsRequest) SetPageSize(v int64)

func (*ListProxyOperationsRequest) SetPageToken

func (m *ListProxyOperationsRequest) SetPageToken(v string)

func (*ListProxyOperationsRequest) SetProxyId

func (m *ListProxyOperationsRequest) SetProxyId(v string)

func (*ListProxyOperationsRequest) String

func (x *ListProxyOperationsRequest) String() string

type ListProxyOperationsResponse

type ListProxyOperationsResponse struct {

	// List of operations for the specified proxy.
	Operations []*operation.Operation `protobuf:"bytes,1,rep,name=operations,proto3" json:"operations,omitempty"`
	// Token for getting the next page of the list. If the number of results is greater than
	// the specified [ListProxyOperationsRequest.page_size], use `nextPageToken` as the value
	// for the [ListProxyOperationsRequest.page_token] parameter in the next list request.
	//
	// Each subsequent page will have its own `nextPageToken` to continue paging through the results.
	NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
	// contains filtered or unexported fields
}

func (*ListProxyOperationsResponse) Descriptor deprecated

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

Deprecated: Use ListProxyOperationsResponse.ProtoReflect.Descriptor instead.

func (*ListProxyOperationsResponse) GetNextPageToken

func (x *ListProxyOperationsResponse) GetNextPageToken() string

func (*ListProxyOperationsResponse) GetOperations

func (x *ListProxyOperationsResponse) GetOperations() []*operation.Operation

func (*ListProxyOperationsResponse) ProtoMessage

func (*ListProxyOperationsResponse) ProtoMessage()

func (*ListProxyOperationsResponse) ProtoReflect

func (*ListProxyOperationsResponse) Reset

func (x *ListProxyOperationsResponse) Reset()

func (*ListProxyOperationsResponse) SetNextPageToken

func (m *ListProxyOperationsResponse) SetNextPageToken(v string)

func (*ListProxyOperationsResponse) SetOperations

func (m *ListProxyOperationsResponse) SetOperations(v []*operation.Operation)

func (*ListProxyOperationsResponse) String

func (x *ListProxyOperationsResponse) String() string

type ListProxyRequest

type ListProxyRequest struct {

	// ID of the folder to list proxies in.
	//
	// To get a folder ID make a [yandex.cloud.resourcemanager.v1.FolderService.List] request.
	FolderId string `protobuf:"bytes,1,opt,name=folder_id,json=folderId,proto3" json:"folder_id,omitempty"`
	// The maximum number of results per page to return. If the number of available
	// results is larger than `pageSize`, the service returns a [ListProxyResponse.next_page_token]
	// that can be used to get the next page of results in subsequent list requests.
	//
	// Default value: 100.
	PageSize int64 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	// Page token. To get the next page of results, set `pageToken` to the
	// [ListProxyResponse.next_page_token] returned by a previous list request.
	PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
	// A filter expression that filters proxies listed in the response.
	//
	// The expression must specify:
	// 1. The field name. Currently filtering can only be applied to the [Proxy.name] field.
	// 2. An `=` operator.
	// 3. The value in double quotes (`"`). Must be 3-63 characters long and match the regular expression `[a-z][-a-z0-9]{1,61}[a-z0-9]`.
	// Example of a filter: `name=my-proxy`.
	Filter string `protobuf:"bytes,4,opt,name=filter,proto3" json:"filter,omitempty"`
	// contains filtered or unexported fields
}

func (*ListProxyRequest) Descriptor deprecated

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

Deprecated: Use ListProxyRequest.ProtoReflect.Descriptor instead.

func (*ListProxyRequest) GetFilter

func (x *ListProxyRequest) GetFilter() string

func (*ListProxyRequest) GetFolderId

func (x *ListProxyRequest) GetFolderId() string

func (*ListProxyRequest) GetPageSize

func (x *ListProxyRequest) GetPageSize() int64

func (*ListProxyRequest) GetPageToken

func (x *ListProxyRequest) GetPageToken() string

func (*ListProxyRequest) ProtoMessage

func (*ListProxyRequest) ProtoMessage()

func (*ListProxyRequest) ProtoReflect

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

func (*ListProxyRequest) Reset

func (x *ListProxyRequest) Reset()

func (*ListProxyRequest) SetFilter

func (m *ListProxyRequest) SetFilter(v string)

func (*ListProxyRequest) SetFolderId

func (m *ListProxyRequest) SetFolderId(v string)

func (*ListProxyRequest) SetPageSize

func (m *ListProxyRequest) SetPageSize(v int64)

func (*ListProxyRequest) SetPageToken

func (m *ListProxyRequest) SetPageToken(v string)

func (*ListProxyRequest) String

func (x *ListProxyRequest) String() string

type ListProxyResponse

type ListProxyResponse struct {

	// List of proxies in the specified folder.
	Proxies []*Proxy `protobuf:"bytes,1,rep,name=proxies,proto3" json:"proxies,omitempty"`
	// Token for getting the next page of the list. If the number of results is greater than
	// the specified [ListProxyRequest.page_size], use `nextPageToken` as the value
	// for the [ListProxyRequest.page_token] parameter in the next list request.
	//
	// Each subsequent page will have its own `nextPageToken` to continue paging through the results.
	NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
	// contains filtered or unexported fields
}

func (*ListProxyResponse) Descriptor deprecated

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

Deprecated: Use ListProxyResponse.ProtoReflect.Descriptor instead.

func (*ListProxyResponse) GetNextPageToken

func (x *ListProxyResponse) GetNextPageToken() string

func (*ListProxyResponse) GetProxies

func (x *ListProxyResponse) GetProxies() []*Proxy

func (*ListProxyResponse) ProtoMessage

func (*ListProxyResponse) ProtoMessage()

func (*ListProxyResponse) ProtoReflect

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

func (*ListProxyResponse) Reset

func (x *ListProxyResponse) Reset()

func (*ListProxyResponse) SetNextPageToken

func (m *ListProxyResponse) SetNextPageToken(v string)

func (*ListProxyResponse) SetProxies

func (m *ListProxyResponse) SetProxies(v []*Proxy)

func (*ListProxyResponse) String

func (x *ListProxyResponse) String() string

type Proxy

type Proxy struct {

	// ID of the proxy.
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// ID of the folder that the proxy belongs to.
	FolderId string `protobuf:"bytes,2,opt,name=folder_id,json=folderId,proto3" json:"folder_id,omitempty"`
	// Creation timestamp for the proxy.
	CreatedAt *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	// Name of the proxy.
	Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"`
	// Description of the proxy.
	Description string `protobuf:"bytes,5,opt,name=description,proto3" json:"description,omitempty"`
	// Resource labels as `key:value` pairs.
	Labels map[string]string `` /* 153-byte string literal not displayed */
	// MDB specific settings.
	Target *Target `protobuf:"bytes,7,opt,name=target,proto3" json:"target,omitempty"`
	// contains filtered or unexported fields
}

func (*Proxy) Descriptor deprecated

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

Deprecated: Use Proxy.ProtoReflect.Descriptor instead.

func (*Proxy) GetCreatedAt

func (x *Proxy) GetCreatedAt() *timestamppb.Timestamp

func (*Proxy) GetDescription

func (x *Proxy) GetDescription() string

func (*Proxy) GetFolderId

func (x *Proxy) GetFolderId() string

func (*Proxy) GetId

func (x *Proxy) GetId() string

func (*Proxy) GetLabels

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

func (*Proxy) GetName

func (x *Proxy) GetName() string

func (*Proxy) GetTarget

func (x *Proxy) GetTarget() *Target

func (*Proxy) ProtoMessage

func (*Proxy) ProtoMessage()

func (*Proxy) ProtoReflect

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

func (*Proxy) Reset

func (x *Proxy) Reset()

func (*Proxy) SetCreatedAt

func (m *Proxy) SetCreatedAt(v *timestamppb.Timestamp)

func (*Proxy) SetDescription

func (m *Proxy) SetDescription(v string)

func (*Proxy) SetFolderId

func (m *Proxy) SetFolderId(v string)

func (*Proxy) SetId

func (m *Proxy) SetId(v string)

func (*Proxy) SetLabels

func (m *Proxy) SetLabels(v map[string]string)

func (*Proxy) SetName

func (m *Proxy) SetName(v string)

func (*Proxy) SetTarget

func (m *Proxy) SetTarget(v *Target)

func (*Proxy) String

func (x *Proxy) String() string

type ProxyServiceClient

type ProxyServiceClient interface {
	// Returns the specified proxy.
	//
	// To get the list of all available proxies, make a [List] request.
	Get(ctx context.Context, in *GetProxyRequest, opts ...grpc.CallOption) (*Proxy, error)
	// Retrieves the list of proxies in the specified folder.
	List(ctx context.Context, in *ListProxyRequest, opts ...grpc.CallOption) (*ListProxyResponse, error)
	// Creates a proxy in the specified folder.
	Create(ctx context.Context, in *CreateProxyRequest, opts ...grpc.CallOption) (*operation.Operation, error)
	// Updates the specified proxy.
	Update(ctx context.Context, in *UpdateProxyRequest, opts ...grpc.CallOption) (*operation.Operation, error)
	// Deletes the specified proxy.
	Delete(ctx context.Context, in *DeleteProxyRequest, opts ...grpc.CallOption) (*operation.Operation, error)
	// Lists operations for the specified proxy.
	ListOperations(ctx context.Context, in *ListProxyOperationsRequest, opts ...grpc.CallOption) (*ListProxyOperationsResponse, error)
	// Lists existing access bindings for the specified proxy.
	ListAccessBindings(ctx context.Context, in *access.ListAccessBindingsRequest, opts ...grpc.CallOption) (*access.ListAccessBindingsResponse, error)
	// Sets access bindings for the proxy.
	SetAccessBindings(ctx context.Context, in *access.SetAccessBindingsRequest, opts ...grpc.CallOption) (*operation.Operation, error)
	// Updates access bindings for the specified proxy.
	UpdateAccessBindings(ctx context.Context, in *access.UpdateAccessBindingsRequest, opts ...grpc.CallOption) (*operation.Operation, error)
}

ProxyServiceClient is the client API for ProxyService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

A set of methods for managing serverless MDB proxy.

type ProxyServiceServer

type ProxyServiceServer interface {
	// Returns the specified proxy.
	//
	// To get the list of all available proxies, make a [List] request.
	Get(context.Context, *GetProxyRequest) (*Proxy, error)
	// Retrieves the list of proxies in the specified folder.
	List(context.Context, *ListProxyRequest) (*ListProxyResponse, error)
	// Creates a proxy in the specified folder.
	Create(context.Context, *CreateProxyRequest) (*operation.Operation, error)
	// Updates the specified proxy.
	Update(context.Context, *UpdateProxyRequest) (*operation.Operation, error)
	// Deletes the specified proxy.
	Delete(context.Context, *DeleteProxyRequest) (*operation.Operation, error)
	// Lists operations for the specified proxy.
	ListOperations(context.Context, *ListProxyOperationsRequest) (*ListProxyOperationsResponse, error)
	// Lists existing access bindings for the specified proxy.
	ListAccessBindings(context.Context, *access.ListAccessBindingsRequest) (*access.ListAccessBindingsResponse, error)
	// Sets access bindings for the proxy.
	SetAccessBindings(context.Context, *access.SetAccessBindingsRequest) (*operation.Operation, error)
	// Updates access bindings for the specified proxy.
	UpdateAccessBindings(context.Context, *access.UpdateAccessBindingsRequest) (*operation.Operation, error)
}

ProxyServiceServer is the server API for ProxyService service. All implementations should embed UnimplementedProxyServiceServer for forward compatibility.

A set of methods for managing serverless MDB proxy.

type Target

type Target struct {

	// Types that are assignable to Mdb:
	//
	//	*Target_Clickhouse
	//	*Target_Postgresql
	Mdb isTarget_Mdb `protobuf_oneof:"mdb"`
	// contains filtered or unexported fields
}

func (*Target) Descriptor deprecated

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

Deprecated: Use Target.ProtoReflect.Descriptor instead.

func (*Target) GetClickhouse

func (x *Target) GetClickhouse() *Target_ClickHouse

func (*Target) GetMdb

func (m *Target) GetMdb() isTarget_Mdb

func (*Target) GetPostgresql

func (x *Target) GetPostgresql() *Target_PostgreSQL

func (*Target) ProtoMessage

func (*Target) ProtoMessage()

func (*Target) ProtoReflect

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

func (*Target) Reset

func (x *Target) Reset()

func (*Target) SetClickhouse

func (m *Target) SetClickhouse(v *Target_ClickHouse)

func (*Target) SetMdb

func (m *Target) SetMdb(v Target_Mdb)

func (*Target) SetPostgresql

func (m *Target) SetPostgresql(v *Target_PostgreSQL)

func (*Target) String

func (x *Target) String() string

type Target_ClickHouse

type Target_ClickHouse struct {

	// Cluster identifier for clickhouse.
	ClusterId string `protobuf:"bytes,1,opt,name=cluster_id,json=clusterId,proto3" json:"cluster_id,omitempty"`
	// Clickhouse user.
	User string `protobuf:"bytes,2,opt,name=user,proto3" json:"user,omitempty"`
	// Clickhouse password, input only field.
	Password string `protobuf:"bytes,3,opt,name=password,proto3" json:"password,omitempty"`
	// Clickhouse database name.
	Db string `protobuf:"bytes,4,opt,name=db,proto3" json:"db,omitempty"`
	// Clickhouse proxy-host for connection, output only field.
	Endpoint string `protobuf:"bytes,5,opt,name=endpoint,proto3" json:"endpoint,omitempty"`
	// contains filtered or unexported fields
}

func (*Target_ClickHouse) Descriptor deprecated

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

Deprecated: Use Target_ClickHouse.ProtoReflect.Descriptor instead.

func (*Target_ClickHouse) GetClusterId

func (x *Target_ClickHouse) GetClusterId() string

func (*Target_ClickHouse) GetDb

func (x *Target_ClickHouse) GetDb() string

func (*Target_ClickHouse) GetEndpoint

func (x *Target_ClickHouse) GetEndpoint() string

func (*Target_ClickHouse) GetPassword

func (x *Target_ClickHouse) GetPassword() string

func (*Target_ClickHouse) GetUser

func (x *Target_ClickHouse) GetUser() string

func (*Target_ClickHouse) ProtoMessage

func (*Target_ClickHouse) ProtoMessage()

func (*Target_ClickHouse) ProtoReflect

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

func (*Target_ClickHouse) Reset

func (x *Target_ClickHouse) Reset()

func (*Target_ClickHouse) SetClusterId

func (m *Target_ClickHouse) SetClusterId(v string)

func (*Target_ClickHouse) SetDb

func (m *Target_ClickHouse) SetDb(v string)

func (*Target_ClickHouse) SetEndpoint

func (m *Target_ClickHouse) SetEndpoint(v string)

func (*Target_ClickHouse) SetPassword

func (m *Target_ClickHouse) SetPassword(v string)

func (*Target_ClickHouse) SetUser

func (m *Target_ClickHouse) SetUser(v string)

func (*Target_ClickHouse) String

func (x *Target_ClickHouse) String() string

type Target_Clickhouse

type Target_Clickhouse struct {
	// Clickhouse settings for proxy.
	Clickhouse *Target_ClickHouse `protobuf:"bytes,1,opt,name=clickhouse,proto3,oneof"`
}

type Target_Mdb

type Target_Mdb = isTarget_Mdb

type Target_PostgreSQL

type Target_PostgreSQL struct {

	// Cluster identifier for postgresql.
	ClusterId string `protobuf:"bytes,1,opt,name=cluster_id,json=clusterId,proto3" json:"cluster_id,omitempty"`
	// PostgreSQL user.
	User string `protobuf:"bytes,2,opt,name=user,proto3" json:"user,omitempty"`
	// PostgreSQL password, input only field.
	Password string `protobuf:"bytes,3,opt,name=password,proto3" json:"password,omitempty"`
	// PostgreSQL database name.
	Db string `protobuf:"bytes,4,opt,name=db,proto3" json:"db,omitempty"`
	// PostgreSQL proxy-host for connection, output only field.
	Endpoint string `protobuf:"bytes,5,opt,name=endpoint,proto3" json:"endpoint,omitempty"`
	// contains filtered or unexported fields
}

func (*Target_PostgreSQL) Descriptor deprecated

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

Deprecated: Use Target_PostgreSQL.ProtoReflect.Descriptor instead.

func (*Target_PostgreSQL) GetClusterId

func (x *Target_PostgreSQL) GetClusterId() string

func (*Target_PostgreSQL) GetDb

func (x *Target_PostgreSQL) GetDb() string

func (*Target_PostgreSQL) GetEndpoint

func (x *Target_PostgreSQL) GetEndpoint() string

func (*Target_PostgreSQL) GetPassword

func (x *Target_PostgreSQL) GetPassword() string

func (*Target_PostgreSQL) GetUser

func (x *Target_PostgreSQL) GetUser() string

func (*Target_PostgreSQL) ProtoMessage

func (*Target_PostgreSQL) ProtoMessage()

func (*Target_PostgreSQL) ProtoReflect

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

func (*Target_PostgreSQL) Reset

func (x *Target_PostgreSQL) Reset()

func (*Target_PostgreSQL) SetClusterId

func (m *Target_PostgreSQL) SetClusterId(v string)

func (*Target_PostgreSQL) SetDb

func (m *Target_PostgreSQL) SetDb(v string)

func (*Target_PostgreSQL) SetEndpoint

func (m *Target_PostgreSQL) SetEndpoint(v string)

func (*Target_PostgreSQL) SetPassword

func (m *Target_PostgreSQL) SetPassword(v string)

func (*Target_PostgreSQL) SetUser

func (m *Target_PostgreSQL) SetUser(v string)

func (*Target_PostgreSQL) String

func (x *Target_PostgreSQL) String() string

type Target_Postgresql

type Target_Postgresql struct {
	// PostgreSQL settings for proxy.
	Postgresql *Target_PostgreSQL `protobuf:"bytes,2,opt,name=postgresql,proto3,oneof"`
}

type UnimplementedProxyServiceServer

type UnimplementedProxyServiceServer struct{}

UnimplementedProxyServiceServer should be embedded to have forward compatible implementations.

NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.

func (UnimplementedProxyServiceServer) Create

func (UnimplementedProxyServiceServer) Delete

func (UnimplementedProxyServiceServer) Get

func (UnimplementedProxyServiceServer) List

func (UnimplementedProxyServiceServer) SetAccessBindings

func (UnimplementedProxyServiceServer) Update

func (UnimplementedProxyServiceServer) UpdateAccessBindings

type UnsafeProxyServiceServer

type UnsafeProxyServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeProxyServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ProxyServiceServer will result in compilation errors.

type UpdateProxyMetadata

type UpdateProxyMetadata struct {

	// ID of the proxy.
	ProxyId string `protobuf:"bytes,1,opt,name=proxy_id,json=proxyId,proto3" json:"proxy_id,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateProxyMetadata) Descriptor deprecated

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

Deprecated: Use UpdateProxyMetadata.ProtoReflect.Descriptor instead.

func (*UpdateProxyMetadata) GetProxyId

func (x *UpdateProxyMetadata) GetProxyId() string

func (*UpdateProxyMetadata) ProtoMessage

func (*UpdateProxyMetadata) ProtoMessage()

func (*UpdateProxyMetadata) ProtoReflect

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

func (*UpdateProxyMetadata) Reset

func (x *UpdateProxyMetadata) Reset()

func (*UpdateProxyMetadata) SetProxyId

func (m *UpdateProxyMetadata) SetProxyId(v string)

func (*UpdateProxyMetadata) String

func (x *UpdateProxyMetadata) String() string

type UpdateProxyRequest

type UpdateProxyRequest struct {

	// ID of the proxy to update.
	ProxyId string `protobuf:"bytes,1,opt,name=proxy_id,json=proxyId,proto3" json:"proxy_id,omitempty"`
	// Field mask that specifies which attributes of the proxy should be updated.
	UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
	// New name for the proxy.
	// The name must be unique within the folder.
	Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
	// New description for the proxy.
	Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"`
	// Proxy labels as `key:value` pairs.
	Labels map[string]string `` /* 153-byte string literal not displayed */
	// Proxy target.
	Target *Target `protobuf:"bytes,6,opt,name=target,proto3" json:"target,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateProxyRequest) Descriptor deprecated

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

Deprecated: Use UpdateProxyRequest.ProtoReflect.Descriptor instead.

func (*UpdateProxyRequest) GetDescription

func (x *UpdateProxyRequest) GetDescription() string

func (*UpdateProxyRequest) GetLabels

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

func (*UpdateProxyRequest) GetName

func (x *UpdateProxyRequest) GetName() string

func (*UpdateProxyRequest) GetProxyId

func (x *UpdateProxyRequest) GetProxyId() string

func (*UpdateProxyRequest) GetTarget

func (x *UpdateProxyRequest) GetTarget() *Target

func (*UpdateProxyRequest) GetUpdateMask

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

func (*UpdateProxyRequest) ProtoMessage

func (*UpdateProxyRequest) ProtoMessage()

func (*UpdateProxyRequest) ProtoReflect

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

func (*UpdateProxyRequest) Reset

func (x *UpdateProxyRequest) Reset()

func (*UpdateProxyRequest) SetDescription

func (m *UpdateProxyRequest) SetDescription(v string)

func (*UpdateProxyRequest) SetLabels

func (m *UpdateProxyRequest) SetLabels(v map[string]string)

func (*UpdateProxyRequest) SetName

func (m *UpdateProxyRequest) SetName(v string)

func (*UpdateProxyRequest) SetProxyId

func (m *UpdateProxyRequest) SetProxyId(v string)

func (*UpdateProxyRequest) SetTarget

func (m *UpdateProxyRequest) SetTarget(v *Target)

func (*UpdateProxyRequest) SetUpdateMask

func (m *UpdateProxyRequest) SetUpdateMask(v *fieldmaskpb.FieldMask)

func (*UpdateProxyRequest) String

func (x *UpdateProxyRequest) String() string

Jump to

Keyboard shortcuts

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