tenant

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Error_name = map[int32]string{
		0: "NO_ERROR",
		1: "UNKNOWN",
		2: "TENANT_ALREADY_EXISTS",
		3: "TENANT_NOT_FOUND",
		4: "BAD_REQUEST",
	}
	Error_value = map[string]int32{
		"NO_ERROR":              0,
		"UNKNOWN":               1,
		"TENANT_ALREADY_EXISTS": 2,
		"TENANT_NOT_FOUND":      3,
		"BAD_REQUEST":           4,
	}
)

Enum value maps for Error.

View Source
var (
	SortingDirection_name = map[int32]string{
		0: "ASCENDING",
		1: "DESCENDING",
	}
	SortingDirection_value = map[string]int32{
		"ASCENDING":  0,
		"DESCENDING": 1,
	}
)

Enum value maps for SortingDirection.

View Source
var File_tenant_proto protoreflect.FileDescriptor

Functions

func RegisterTenantServiceServer

func RegisterTenantServiceServer(s *grpc.Server, srv TenantServiceServer)

Types

type CreateTenantRequest

type CreateTenantRequest struct {

	// The tenant object
	Tenant *Tenant `protobuf:"bytes,1,opt,name=tenant,proto3" json:"tenant,omitempty"`
	// contains filtered or unexported fields
}

* Request to create a new tenant

func (*CreateTenantRequest) Descriptor deprecated

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

Deprecated: Use CreateTenantRequest.ProtoReflect.Descriptor instead.

func (*CreateTenantRequest) GetTenant

func (x *CreateTenantRequest) GetTenant() *Tenant

func (*CreateTenantRequest) ProtoMessage

func (*CreateTenantRequest) ProtoMessage()

func (*CreateTenantRequest) ProtoReflect added in v0.1.1

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

func (*CreateTenantRequest) Reset

func (x *CreateTenantRequest) Reset()

func (*CreateTenantRequest) String

func (x *CreateTenantRequest) String() string

type CreateTenantResponse

type CreateTenantResponse struct {

	// Indicate whether the operation has any error
	Error Error `protobuf:"varint,1,opt,name=error,proto3,enum=tenant.Error" json:"error,omitempty"`
	// Contains error message if the operation was unsuccessful
	ErrorMessage string `protobuf:"bytes,2,opt,name=errorMessage,proto3" json:"errorMessage,omitempty"`
	// The unique tenant identifier
	TenantID string `protobuf:"bytes,3,opt,name=tenantID,proto3" json:"tenantID,omitempty"`
	// The created tenant object
	Tenant *Tenant `protobuf:"bytes,4,opt,name=tenant,proto3" json:"tenant,omitempty"`
	// The cursor defines the position of the tenant in the repository that can be later
	// referred to using pagination information
	Cursor string `protobuf:"bytes,5,opt,name=cursor,proto3" json:"cursor,omitempty"`
	// contains filtered or unexported fields
}

* Response contains the result of creating a new tenant

func (*CreateTenantResponse) Descriptor deprecated

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

Deprecated: Use CreateTenantResponse.ProtoReflect.Descriptor instead.

func (*CreateTenantResponse) GetCursor added in v0.0.23

func (x *CreateTenantResponse) GetCursor() string

func (*CreateTenantResponse) GetError

func (x *CreateTenantResponse) GetError() Error

func (*CreateTenantResponse) GetErrorMessage

func (x *CreateTenantResponse) GetErrorMessage() string

func (*CreateTenantResponse) GetTenant added in v0.0.14

func (x *CreateTenantResponse) GetTenant() *Tenant

func (*CreateTenantResponse) GetTenantID

func (x *CreateTenantResponse) GetTenantID() string

func (*CreateTenantResponse) ProtoMessage

func (*CreateTenantResponse) ProtoMessage()

func (*CreateTenantResponse) ProtoReflect added in v0.1.1

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

func (*CreateTenantResponse) Reset

func (x *CreateTenantResponse) Reset()

func (*CreateTenantResponse) String

func (x *CreateTenantResponse) String() string

type DeleteTenantRequest

type DeleteTenantRequest struct {

	// The unique tenant identifier
	TenantID string `protobuf:"bytes,1,opt,name=tenantID,proto3" json:"tenantID,omitempty"`
	// contains filtered or unexported fields
}

* Request to delete an existing tenant

func (*DeleteTenantRequest) Descriptor deprecated

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

Deprecated: Use DeleteTenantRequest.ProtoReflect.Descriptor instead.

func (*DeleteTenantRequest) GetTenantID

func (x *DeleteTenantRequest) GetTenantID() string

func (*DeleteTenantRequest) ProtoMessage

func (*DeleteTenantRequest) ProtoMessage()

func (*DeleteTenantRequest) ProtoReflect added in v0.1.1

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

func (*DeleteTenantRequest) Reset

func (x *DeleteTenantRequest) Reset()

func (*DeleteTenantRequest) String

func (x *DeleteTenantRequest) String() string

type DeleteTenantResponse

type DeleteTenantResponse struct {

	// Indicate whether the operation has any error
	Error Error `protobuf:"varint,1,opt,name=error,proto3,enum=tenant.Error" json:"error,omitempty"`
	// Contains error message if the operation was unsuccessful
	ErrorMessage string `protobuf:"bytes,2,opt,name=errorMessage,proto3" json:"errorMessage,omitempty"`
	// contains filtered or unexported fields
}

* Response contains the result of deleting an existing tenant

func (*DeleteTenantResponse) Descriptor deprecated

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

Deprecated: Use DeleteTenantResponse.ProtoReflect.Descriptor instead.

func (*DeleteTenantResponse) GetError

func (x *DeleteTenantResponse) GetError() Error

func (*DeleteTenantResponse) GetErrorMessage

func (x *DeleteTenantResponse) GetErrorMessage() string

func (*DeleteTenantResponse) ProtoMessage

func (*DeleteTenantResponse) ProtoMessage()

func (*DeleteTenantResponse) ProtoReflect added in v0.1.1

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

func (*DeleteTenantResponse) Reset

func (x *DeleteTenantResponse) Reset()

func (*DeleteTenantResponse) String

func (x *DeleteTenantResponse) String() string

type Error

type Error int32

* The different error types

const (
	// Indicates the operation was successful
	Error_NO_ERROR Error = 0
	// Indicates the operation fail with unknown error
	Error_UNKNOWN Error = 1
	// Indicates the tenant already exists
	Error_TENANT_ALREADY_EXISTS Error = 2
	// Indicates the tenant does not exist
	Error_TENANT_NOT_FOUND Error = 3
	// Indicates the provided values for he operation were invalid
	Error_BAD_REQUEST Error = 4
)

func (Error) Descriptor added in v0.1.1

func (Error) Descriptor() protoreflect.EnumDescriptor

func (Error) Enum added in v0.1.1

func (x Error) Enum() *Error

func (Error) EnumDescriptor deprecated

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

Deprecated: Use Error.Descriptor instead.

func (Error) Number added in v0.1.1

func (x Error) Number() protoreflect.EnumNumber

func (Error) String

func (x Error) String() string

func (Error) Type added in v0.1.1

func (Error) Type() protoreflect.EnumType

type Pagination added in v0.0.13

type Pagination struct {
	HasFirst  bool   `protobuf:"varint,1,opt,name=hasFirst,proto3" json:"hasFirst,omitempty"`
	First     int32  `protobuf:"varint,2,opt,name=first,proto3" json:"first,omitempty"`
	HasAfter  bool   `protobuf:"varint,3,opt,name=hasAfter,proto3" json:"hasAfter,omitempty"`
	After     string `protobuf:"bytes,4,opt,name=after,proto3" json:"after,omitempty"`
	HasLast   bool   `protobuf:"varint,5,opt,name=hasLast,proto3" json:"hasLast,omitempty"`
	Last      int32  `protobuf:"varint,6,opt,name=last,proto3" json:"last,omitempty"`
	HasBefore bool   `protobuf:"varint,7,opt,name=hasBefore,proto3" json:"hasBefore,omitempty"`
	Before    string `protobuf:"bytes,8,opt,name=before,proto3" json:"before,omitempty"`
	// contains filtered or unexported fields
}

* The pagination information compatible with graphql-relay connection definition, for more information visit: https://facebook.github.io/relay/graphql/connections.htm

func (*Pagination) Descriptor deprecated added in v0.0.13

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

Deprecated: Use Pagination.ProtoReflect.Descriptor instead.

func (*Pagination) GetAfter added in v0.0.13

func (x *Pagination) GetAfter() string

func (*Pagination) GetBefore added in v0.0.13

func (x *Pagination) GetBefore() string

func (*Pagination) GetFirst added in v0.0.13

func (x *Pagination) GetFirst() int32

func (*Pagination) GetHasAfter added in v0.0.21

func (x *Pagination) GetHasAfter() bool

func (*Pagination) GetHasBefore added in v0.0.21

func (x *Pagination) GetHasBefore() bool

func (*Pagination) GetHasFirst added in v0.0.21

func (x *Pagination) GetHasFirst() bool

func (*Pagination) GetHasLast added in v0.0.21

func (x *Pagination) GetHasLast() bool

func (*Pagination) GetLast added in v0.0.13

func (x *Pagination) GetLast() int32

func (*Pagination) ProtoMessage added in v0.0.13

func (*Pagination) ProtoMessage()

func (*Pagination) ProtoReflect added in v0.1.1

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

func (*Pagination) Reset added in v0.0.13

func (x *Pagination) Reset()

func (*Pagination) String added in v0.0.13

func (x *Pagination) String() string

type ReadTenantRequest

type ReadTenantRequest struct {

	// The unique tenant identifier
	TenantID string `protobuf:"bytes,1,opt,name=tenantID,proto3" json:"tenantID,omitempty"`
	// contains filtered or unexported fields
}

* Request to read an existing tenant

func (*ReadTenantRequest) Descriptor deprecated

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

Deprecated: Use ReadTenantRequest.ProtoReflect.Descriptor instead.

func (*ReadTenantRequest) GetTenantID

func (x *ReadTenantRequest) GetTenantID() string

func (*ReadTenantRequest) ProtoMessage

func (*ReadTenantRequest) ProtoMessage()

func (*ReadTenantRequest) ProtoReflect added in v0.1.1

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

func (*ReadTenantRequest) Reset

func (x *ReadTenantRequest) Reset()

func (*ReadTenantRequest) String

func (x *ReadTenantRequest) String() string

type ReadTenantResponse

type ReadTenantResponse struct {

	// Indicate whether the operation has any error
	Error Error `protobuf:"varint,1,opt,name=error,proto3,enum=tenant.Error" json:"error,omitempty"`
	// Contains error message if the operation was unsuccessful
	ErrorMessage string `protobuf:"bytes,2,opt,name=errorMessage,proto3" json:"errorMessage,omitempty"`
	// The tenant object
	Tenant *Tenant `protobuf:"bytes,3,opt,name=tenant,proto3" json:"tenant,omitempty"`
	// contains filtered or unexported fields
}

* Response contains the result of reading an existing tenant

func (*ReadTenantResponse) Descriptor deprecated

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

Deprecated: Use ReadTenantResponse.ProtoReflect.Descriptor instead.

func (*ReadTenantResponse) GetError

func (x *ReadTenantResponse) GetError() Error

func (*ReadTenantResponse) GetErrorMessage

func (x *ReadTenantResponse) GetErrorMessage() string

func (*ReadTenantResponse) GetTenant

func (x *ReadTenantResponse) GetTenant() *Tenant

func (*ReadTenantResponse) ProtoMessage

func (*ReadTenantResponse) ProtoMessage()

func (*ReadTenantResponse) ProtoReflect added in v0.1.1

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

func (*ReadTenantResponse) Reset

func (x *ReadTenantResponse) Reset()

func (*ReadTenantResponse) String

func (x *ReadTenantResponse) String() string

type SearchRequest added in v0.0.13

type SearchRequest struct {

	// The pagination information
	Pagination *Pagination `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"`
	// The collection of sorting option determines how the returned data must be sorted
	SortingOptions []*SortingOptionPair `protobuf:"bytes,2,rep,name=sortingOptions,proto3" json:"sortingOptions,omitempty"`
	// The unique tenant identifiers
	TenantIDs []string `protobuf:"bytes,3,rep,name=tenantIDs,proto3" json:"tenantIDs,omitempty"`
	// contains filtered or unexported fields
}

* Request to search for tenants

func (*SearchRequest) Descriptor deprecated added in v0.0.13

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

Deprecated: Use SearchRequest.ProtoReflect.Descriptor instead.

func (*SearchRequest) GetPagination added in v0.0.13

func (x *SearchRequest) GetPagination() *Pagination

func (*SearchRequest) GetSortingOptions added in v0.0.13

func (x *SearchRequest) GetSortingOptions() []*SortingOptionPair

func (*SearchRequest) GetTenantIDs added in v0.0.13

func (x *SearchRequest) GetTenantIDs() []string

func (*SearchRequest) ProtoMessage added in v0.0.13

func (*SearchRequest) ProtoMessage()

func (*SearchRequest) ProtoReflect added in v0.1.1

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

func (*SearchRequest) Reset added in v0.0.13

func (x *SearchRequest) Reset()

func (*SearchRequest) String added in v0.0.13

func (x *SearchRequest) String() string

type SearchResponse added in v0.0.13

type SearchResponse struct {

	// Indicate whether the operation has any error
	Error Error `protobuf:"varint,1,opt,name=error,proto3,enum=tenant.Error" json:"error,omitempty"`
	// Contains error message if the operation was unsuccessful
	ErrorMessage string `protobuf:"bytes,2,opt,name=errorMessage,proto3" json:"errorMessage,omitempty"`
	// Indicates whether more edges exist prior to the set defined by the clients arguments
	HasPreviousPage bool `protobuf:"varint,3,opt,name=hasPreviousPage,proto3" json:"hasPreviousPage,omitempty"`
	// Indicates whether more edges exist following the set defined by the clients arguments
	HasNextPage bool `protobuf:"varint,4,opt,name=hasNextPage,proto3" json:"hasNextPage,omitempty"`
	// Indicates the total count of the tenants that matched the provided filter criteria
	TotalCount int64 `protobuf:"varint,5,opt,name=totalCount,proto3" json:"totalCount,omitempty"`
	// The list contains the tenants that matched the search criteria
	Tenants []*TenantWithCursor `protobuf:"bytes,6,rep,name=tenants,proto3" json:"tenants,omitempty"`
	// contains filtered or unexported fields
}

* Response contains the result of searching for tenants

func (*SearchResponse) Descriptor deprecated added in v0.0.13

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

Deprecated: Use SearchResponse.ProtoReflect.Descriptor instead.

func (*SearchResponse) GetError added in v0.0.13

func (x *SearchResponse) GetError() Error

func (*SearchResponse) GetErrorMessage added in v0.0.13

func (x *SearchResponse) GetErrorMessage() string

func (*SearchResponse) GetHasNextPage added in v0.0.14

func (x *SearchResponse) GetHasNextPage() bool

func (*SearchResponse) GetHasPreviousPage added in v0.0.14

func (x *SearchResponse) GetHasPreviousPage() bool

func (*SearchResponse) GetTenants added in v0.0.13

func (x *SearchResponse) GetTenants() []*TenantWithCursor

func (*SearchResponse) GetTotalCount added in v0.0.21

func (x *SearchResponse) GetTotalCount() int64

func (*SearchResponse) ProtoMessage added in v0.0.13

func (*SearchResponse) ProtoMessage()

func (*SearchResponse) ProtoReflect added in v0.1.1

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

func (*SearchResponse) Reset added in v0.0.13

func (x *SearchResponse) Reset()

func (*SearchResponse) String added in v0.0.13

func (x *SearchResponse) String() string

type SortingDirection added in v0.0.13

type SortingDirection int32

* The different sorting direction

const (
	// Indicates result data must be sorted from low to high sequence
	SortingDirection_ASCENDING SortingDirection = 0
	// Indicates result data must be sorted from high to low sequence
	SortingDirection_DESCENDING SortingDirection = 1
)

func (SortingDirection) Descriptor added in v0.1.1

func (SortingDirection) Enum added in v0.1.1

func (SortingDirection) EnumDescriptor deprecated added in v0.0.13

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

Deprecated: Use SortingDirection.Descriptor instead.

func (SortingDirection) Number added in v0.1.1

func (SortingDirection) String added in v0.0.13

func (x SortingDirection) String() string

func (SortingDirection) Type added in v0.1.1

type SortingOptionPair added in v0.0.13

type SortingOptionPair struct {

	// The name of the field on
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// THe sorting direction
	Direction SortingDirection `protobuf:"varint,2,opt,name=direction,proto3,enum=tenant.SortingDirection" json:"direction,omitempty"`
	// contains filtered or unexported fields
}

* Defines the pair of values that are used to determine how the result data should be sorted.

func (*SortingOptionPair) Descriptor deprecated added in v0.0.13

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

Deprecated: Use SortingOptionPair.ProtoReflect.Descriptor instead.

func (*SortingOptionPair) GetDirection added in v0.0.13

func (x *SortingOptionPair) GetDirection() SortingDirection

func (*SortingOptionPair) GetName added in v0.0.13

func (x *SortingOptionPair) GetName() string

func (*SortingOptionPair) ProtoMessage added in v0.0.13

func (*SortingOptionPair) ProtoMessage()

func (*SortingOptionPair) ProtoReflect added in v0.1.1

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

func (*SortingOptionPair) Reset added in v0.0.13

func (x *SortingOptionPair) Reset()

func (*SortingOptionPair) String added in v0.0.13

func (x *SortingOptionPair) String() string

type Tenant

type Tenant struct {

	// The tenant name
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

* The tenant object

func (*Tenant) Descriptor deprecated

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

Deprecated: Use Tenant.ProtoReflect.Descriptor instead.

func (*Tenant) GetName

func (x *Tenant) GetName() string

func (*Tenant) ProtoMessage

func (*Tenant) ProtoMessage()

func (*Tenant) ProtoReflect added in v0.1.1

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

func (*Tenant) Reset

func (x *Tenant) Reset()

func (*Tenant) String

func (x *Tenant) String() string

type TenantServiceClient

type TenantServiceClient interface {
	// CreateTenant creates a new tenant
	// request: The request to create a new tenant
	// Returns the result of creating new tenant
	CreateTenant(ctx context.Context, in *CreateTenantRequest, opts ...grpc.CallOption) (*CreateTenantResponse, error)
	// ReadTenant read an exsiting tenant
	// request: The request to read an esiting tenant
	// Returns the result of reading an exiting tenant
	ReadTenant(ctx context.Context, in *ReadTenantRequest, opts ...grpc.CallOption) (*ReadTenantResponse, error)
	// UpdateTenant update an exsiting tenant
	// request: The request to update an esiting tenant
	// Returns the result of updateing an exiting tenant
	UpdateTenant(ctx context.Context, in *UpdateTenantRequest, opts ...grpc.CallOption) (*UpdateTenantResponse, error)
	// DeleteTenant delete an exsiting tenant
	// request: The request to delete an esiting tenant
	// Returns the result of deleting an exiting tenant
	DeleteTenant(ctx context.Context, in *DeleteTenantRequest, opts ...grpc.CallOption) (*DeleteTenantResponse, error)
	// Search returns the list of tenants that matched the criteria
	// request: The request contains the search criteria
	// Returns the list of tenants that matched the criteria
	Search(ctx context.Context, in *SearchRequest, opts ...grpc.CallOption) (*SearchResponse, error)
}

TenantServiceClient is the client API for TenantService service.

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

type TenantServiceServer

type TenantServiceServer interface {
	// CreateTenant creates a new tenant
	// request: The request to create a new tenant
	// Returns the result of creating new tenant
	CreateTenant(context.Context, *CreateTenantRequest) (*CreateTenantResponse, error)
	// ReadTenant read an exsiting tenant
	// request: The request to read an esiting tenant
	// Returns the result of reading an exiting tenant
	ReadTenant(context.Context, *ReadTenantRequest) (*ReadTenantResponse, error)
	// UpdateTenant update an exsiting tenant
	// request: The request to update an esiting tenant
	// Returns the result of updateing an exiting tenant
	UpdateTenant(context.Context, *UpdateTenantRequest) (*UpdateTenantResponse, error)
	// DeleteTenant delete an exsiting tenant
	// request: The request to delete an esiting tenant
	// Returns the result of deleting an exiting tenant
	DeleteTenant(context.Context, *DeleteTenantRequest) (*DeleteTenantResponse, error)
	// Search returns the list of tenants that matched the criteria
	// request: The request contains the search criteria
	// Returns the list of tenants that matched the criteria
	Search(context.Context, *SearchRequest) (*SearchResponse, error)
}

TenantServiceServer is the server API for TenantService service.

type TenantWithCursor added in v0.0.13

type TenantWithCursor struct {

	// The tenant object
	Tenant *Tenant `protobuf:"bytes,1,opt,name=tenant,proto3" json:"tenant,omitempty"`
	// The unique tenant identifier
	TenantID string `protobuf:"bytes,2,opt,name=tenantID,proto3" json:"tenantID,omitempty"`
	// The cursor defines the position of the tenant in the repository that can be later
	// referred to using pagination information
	Cursor string `protobuf:"bytes,3,opt,name=cursor,proto3" json:"cursor,omitempty"`
	// contains filtered or unexported fields
}

The pair of tenant and a cursor that defines the position of the tenant in the repository that can later referred to using pagination information.

func (*TenantWithCursor) Descriptor deprecated added in v0.0.13

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

Deprecated: Use TenantWithCursor.ProtoReflect.Descriptor instead.

func (*TenantWithCursor) GetCursor added in v0.0.13

func (x *TenantWithCursor) GetCursor() string

func (*TenantWithCursor) GetTenant added in v0.0.13

func (x *TenantWithCursor) GetTenant() *Tenant

func (*TenantWithCursor) GetTenantID added in v0.0.13

func (x *TenantWithCursor) GetTenantID() string

func (*TenantWithCursor) ProtoMessage added in v0.0.13

func (*TenantWithCursor) ProtoMessage()

func (*TenantWithCursor) ProtoReflect added in v0.1.1

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

func (*TenantWithCursor) Reset added in v0.0.13

func (x *TenantWithCursor) Reset()

func (*TenantWithCursor) String added in v0.0.13

func (x *TenantWithCursor) String() string

type UnimplementedTenantServiceServer

type UnimplementedTenantServiceServer struct {
}

UnimplementedTenantServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedTenantServiceServer) CreateTenant

func (*UnimplementedTenantServiceServer) DeleteTenant

func (*UnimplementedTenantServiceServer) ReadTenant

func (*UnimplementedTenantServiceServer) Search added in v0.0.13

func (*UnimplementedTenantServiceServer) UpdateTenant

type UpdateTenantRequest

type UpdateTenantRequest struct {

	// The unique tenant identifier
	TenantID string `protobuf:"bytes,1,opt,name=tenantID,proto3" json:"tenantID,omitempty"`
	// The tenant object contains the updated tenant details to update
	Tenant *Tenant `protobuf:"bytes,2,opt,name=tenant,proto3" json:"tenant,omitempty"`
	// contains filtered or unexported fields
}

* Request to update an existing tenant

func (*UpdateTenantRequest) Descriptor deprecated

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

Deprecated: Use UpdateTenantRequest.ProtoReflect.Descriptor instead.

func (*UpdateTenantRequest) GetTenant

func (x *UpdateTenantRequest) GetTenant() *Tenant

func (*UpdateTenantRequest) GetTenantID

func (x *UpdateTenantRequest) GetTenantID() string

func (*UpdateTenantRequest) ProtoMessage

func (*UpdateTenantRequest) ProtoMessage()

func (*UpdateTenantRequest) ProtoReflect added in v0.1.1

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

func (*UpdateTenantRequest) Reset

func (x *UpdateTenantRequest) Reset()

func (*UpdateTenantRequest) String

func (x *UpdateTenantRequest) String() string

type UpdateTenantResponse

type UpdateTenantResponse struct {

	// Indicate whether the operation has any error
	Error Error `protobuf:"varint,1,opt,name=error,proto3,enum=tenant.Error" json:"error,omitempty"`
	// Contains error message if the operation was unsuccessful
	ErrorMessage string `protobuf:"bytes,2,opt,name=errorMessage,proto3" json:"errorMessage,omitempty"`
	// The updated tenant object
	Tenant *Tenant `protobuf:"bytes,3,opt,name=tenant,proto3" json:"tenant,omitempty"`
	// The cursor defines the position of the tenant in the repository that can be later
	// referred to using pagination information
	Cursor string `protobuf:"bytes,4,opt,name=cursor,proto3" json:"cursor,omitempty"`
	// contains filtered or unexported fields
}

* Response contains the result of updating an existing tenant

func (*UpdateTenantResponse) Descriptor deprecated

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

Deprecated: Use UpdateTenantResponse.ProtoReflect.Descriptor instead.

func (*UpdateTenantResponse) GetCursor added in v0.0.23

func (x *UpdateTenantResponse) GetCursor() string

func (*UpdateTenantResponse) GetError

func (x *UpdateTenantResponse) GetError() Error

func (*UpdateTenantResponse) GetErrorMessage

func (x *UpdateTenantResponse) GetErrorMessage() string

func (*UpdateTenantResponse) GetTenant added in v0.0.14

func (x *UpdateTenantResponse) GetTenant() *Tenant

func (*UpdateTenantResponse) ProtoMessage

func (*UpdateTenantResponse) ProtoMessage()

func (*UpdateTenantResponse) ProtoReflect added in v0.1.1

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

func (*UpdateTenantResponse) Reset

func (x *UpdateTenantResponse) Reset()

func (*UpdateTenantResponse) String

func (x *UpdateTenantResponse) String() string

Jump to

Keyboard shortcuts

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