omav1

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_oma_v1_organization_proto protoreflect.FileDescriptor
View Source
var File_oma_v1_role_proto protoreflect.FileDescriptor
View Source
var File_oma_v1_service_proto protoreflect.FileDescriptor
View Source
var File_oma_v1_team_proto protoreflect.FileDescriptor
View Source
var File_oma_v1_user_proto protoreflect.FileDescriptor
View Source
var OMAService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "oma.v1.OMAService",
	HandlerType: (*OMAServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetOrganization",
			Handler:    _OMAService_GetOrganization_Handler,
		},
		{
			MethodName: "CreateOrganization",
			Handler:    _OMAService_CreateOrganization_Handler,
		},
		{
			MethodName: "DeleteOrganization",
			Handler:    _OMAService_DeleteOrganization_Handler,
		},
	},
	Streams: []grpc.StreamDesc{
		{
			StreamName:    "ListOrganizations",
			Handler:       _OMAService_ListOrganizations_Handler,
			ServerStreams: true,
		},
	},
	Metadata: "oma/v1/service.proto",
}

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

Functions

func RegisterOMAServiceServer added in v0.0.6

func RegisterOMAServiceServer(s grpc.ServiceRegistrar, srv OMAServiceServer)

Types

type CreateOrganizationFields added in v0.0.6

type CreateOrganizationFields struct {

	// AccountId is the identifier for the `any.cloud` `Account` this
	// `Organization` belongs to.
	AccountId string `protobuf:"bytes,1,opt,name=account_id,json=accountId,proto3" json:"account_id,omitempty"`
	// Name is a unique identifier within an `Account`
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// ParentId is an optional identifier for this `Organization`'s parent
	ParentId *string `protobuf:"bytes,3,opt,name=parent_id,json=parentId,proto3,oneof" json:"parent_id,omitempty"`
	// Tags contains a set of free-form key/value pairs
	Tags map[string]string `` /* 150-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*CreateOrganizationFields) Descriptor deprecated added in v0.0.6

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

Deprecated: Use CreateOrganizationFields.ProtoReflect.Descriptor instead.

func (*CreateOrganizationFields) GetAccountId added in v0.0.6

func (x *CreateOrganizationFields) GetAccountId() string

func (*CreateOrganizationFields) GetName added in v0.0.6

func (x *CreateOrganizationFields) GetName() string

func (*CreateOrganizationFields) GetParentId added in v0.0.6

func (x *CreateOrganizationFields) GetParentId() string

func (*CreateOrganizationFields) GetTags added in v0.0.6

func (x *CreateOrganizationFields) GetTags() map[string]string

func (*CreateOrganizationFields) ProtoMessage added in v0.0.6

func (*CreateOrganizationFields) ProtoMessage()

func (*CreateOrganizationFields) ProtoReflect added in v0.0.6

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

func (*CreateOrganizationFields) Reset added in v0.0.6

func (x *CreateOrganizationFields) Reset()

func (*CreateOrganizationFields) String added in v0.0.6

func (x *CreateOrganizationFields) String() string

type CreateOrganizationRequest added in v0.0.6

type CreateOrganizationRequest struct {
	Fields *CreateOrganizationFields `protobuf:"bytes,1,opt,name=fields,proto3" json:"fields,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateOrganizationRequest) Descriptor deprecated added in v0.0.6

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

Deprecated: Use CreateOrganizationRequest.ProtoReflect.Descriptor instead.

func (*CreateOrganizationRequest) GetFields added in v0.0.6

func (*CreateOrganizationRequest) ProtoMessage added in v0.0.6

func (*CreateOrganizationRequest) ProtoMessage()

func (*CreateOrganizationRequest) ProtoReflect added in v0.0.6

func (*CreateOrganizationRequest) Reset added in v0.0.6

func (x *CreateOrganizationRequest) Reset()

func (*CreateOrganizationRequest) String added in v0.0.6

func (x *CreateOrganizationRequest) String() string

type CreateOrganizationResponse added in v0.0.6

type CreateOrganizationResponse struct {
	Status *v1.ResponseStatus `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateOrganizationResponse) Descriptor deprecated added in v0.0.6

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

Deprecated: Use CreateOrganizationResponse.ProtoReflect.Descriptor instead.

func (*CreateOrganizationResponse) GetStatus added in v0.0.6

func (*CreateOrganizationResponse) ProtoMessage added in v0.0.6

func (*CreateOrganizationResponse) ProtoMessage()

func (*CreateOrganizationResponse) ProtoReflect added in v0.0.6

func (*CreateOrganizationResponse) Reset added in v0.0.6

func (x *CreateOrganizationResponse) Reset()

func (*CreateOrganizationResponse) String added in v0.0.6

func (x *CreateOrganizationResponse) String() string

type DeleteOrganizationRequest added in v0.0.6

type DeleteOrganizationRequest struct {
	Params *GetOrganizationRequestParams `protobuf:"bytes,1,opt,name=params,proto3" json:"params,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteOrganizationRequest) Descriptor deprecated added in v0.0.6

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

Deprecated: Use DeleteOrganizationRequest.ProtoReflect.Descriptor instead.

func (*DeleteOrganizationRequest) GetParams added in v0.0.6

func (*DeleteOrganizationRequest) ProtoMessage added in v0.0.6

func (*DeleteOrganizationRequest) ProtoMessage()

func (*DeleteOrganizationRequest) ProtoReflect added in v0.0.6

func (*DeleteOrganizationRequest) Reset added in v0.0.6

func (x *DeleteOrganizationRequest) Reset()

func (*DeleteOrganizationRequest) String added in v0.0.6

func (x *DeleteOrganizationRequest) String() string

type DeleteOrganizationResponse added in v0.0.6

type DeleteOrganizationResponse struct {
	Status *v1.ResponseStatus `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteOrganizationResponse) Descriptor deprecated added in v0.0.6

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

Deprecated: Use DeleteOrganizationResponse.ProtoReflect.Descriptor instead.

func (*DeleteOrganizationResponse) GetStatus added in v0.0.6

func (*DeleteOrganizationResponse) ProtoMessage added in v0.0.6

func (*DeleteOrganizationResponse) ProtoMessage()

func (*DeleteOrganizationResponse) ProtoReflect added in v0.0.6

func (*DeleteOrganizationResponse) Reset added in v0.0.6

func (x *DeleteOrganizationResponse) Reset()

func (*DeleteOrganizationResponse) String added in v0.0.6

func (x *DeleteOrganizationResponse) String() string

type GetOrganizationRequest added in v0.0.6

type GetOrganizationRequest struct {
	Params  *GetOrganizationRequestParams  `protobuf:"bytes,1,opt,name=params,proto3" json:"params,omitempty"`
	Options *GetOrganizationRequestOptions `protobuf:"bytes,2,opt,name=options,proto3,oneof" json:"options,omitempty"`
	// contains filtered or unexported fields
}

func (*GetOrganizationRequest) Descriptor deprecated added in v0.0.6

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

Deprecated: Use GetOrganizationRequest.ProtoReflect.Descriptor instead.

func (*GetOrganizationRequest) GetOptions added in v0.0.6

func (*GetOrganizationRequest) GetParams added in v0.0.6

func (*GetOrganizationRequest) ProtoMessage added in v0.0.6

func (*GetOrganizationRequest) ProtoMessage()

func (*GetOrganizationRequest) ProtoReflect added in v0.0.6

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

func (*GetOrganizationRequest) Reset added in v0.0.6

func (x *GetOrganizationRequest) Reset()

func (*GetOrganizationRequest) String added in v0.0.6

func (x *GetOrganizationRequest) String() string

type GetOrganizationRequestOptions added in v0.0.6

type GetOrganizationRequestOptions struct {
	ReadMask *fieldmaskpb.FieldMask `protobuf:"bytes,1,opt,name=read_mask,json=readMask,proto3,oneof" json:"read_mask,omitempty"`
	// contains filtered or unexported fields
}

func (*GetOrganizationRequestOptions) Descriptor deprecated added in v0.0.6

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

Deprecated: Use GetOrganizationRequestOptions.ProtoReflect.Descriptor instead.

func (*GetOrganizationRequestOptions) GetReadMask added in v0.0.6

func (*GetOrganizationRequestOptions) ProtoMessage added in v0.0.6

func (*GetOrganizationRequestOptions) ProtoMessage()

func (*GetOrganizationRequestOptions) ProtoReflect added in v0.0.6

func (*GetOrganizationRequestOptions) Reset added in v0.0.6

func (x *GetOrganizationRequestOptions) Reset()

func (*GetOrganizationRequestOptions) String added in v0.0.6

type GetOrganizationRequestParams added in v0.0.6

type GetOrganizationRequestParams struct {
	Id   *string `protobuf:"bytes,1,opt,name=id,proto3,oneof" json:"id,omitempty"`
	Name *string `protobuf:"bytes,2,opt,name=name,proto3,oneof" json:"name,omitempty"`
	// contains filtered or unexported fields
}

func (*GetOrganizationRequestParams) Descriptor deprecated added in v0.0.6

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

Deprecated: Use GetOrganizationRequestParams.ProtoReflect.Descriptor instead.

func (*GetOrganizationRequestParams) GetId added in v0.0.6

func (*GetOrganizationRequestParams) GetName added in v0.0.6

func (x *GetOrganizationRequestParams) GetName() string

func (*GetOrganizationRequestParams) ProtoMessage added in v0.0.6

func (*GetOrganizationRequestParams) ProtoMessage()

func (*GetOrganizationRequestParams) ProtoReflect added in v0.0.6

func (*GetOrganizationRequestParams) Reset added in v0.0.6

func (x *GetOrganizationRequestParams) Reset()

func (*GetOrganizationRequestParams) String added in v0.0.6

type GetOrganizationResponse added in v0.0.6

type GetOrganizationResponse struct {
	Status       *v1.ResponseStatus `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"`
	Organization *Organization      `protobuf:"bytes,2,opt,name=organization,proto3" json:"organization,omitempty"`
	// contains filtered or unexported fields
}

func (*GetOrganizationResponse) Descriptor deprecated added in v0.0.6

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

Deprecated: Use GetOrganizationResponse.ProtoReflect.Descriptor instead.

func (*GetOrganizationResponse) GetOrganization added in v0.0.6

func (x *GetOrganizationResponse) GetOrganization() *Organization

func (*GetOrganizationResponse) GetStatus added in v0.0.6

func (x *GetOrganizationResponse) GetStatus() *v1.ResponseStatus

func (*GetOrganizationResponse) ProtoMessage added in v0.0.6

func (*GetOrganizationResponse) ProtoMessage()

func (*GetOrganizationResponse) ProtoReflect added in v0.0.6

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

func (*GetOrganizationResponse) Reset added in v0.0.6

func (x *GetOrganizationResponse) Reset()

func (*GetOrganizationResponse) String added in v0.0.6

func (x *GetOrganizationResponse) String() string

type ListOrganizationsRequest added in v0.0.6

type ListOrganizationsRequest struct {

	// Specify search filters for listing `Organizations`. If not specified,
	// all `Organizations` will be returned, ordered by name, in pages of 50
	Params *ListOrganizationsRequestParams `protobuf:"bytes,1,opt,name=params,proto3" json:"params,omitempty"`
	// Specify things like which fields to set on returned `Organizations`
	Options *GetOrganizationRequestOptions `protobuf:"bytes,2,opt,name=options,proto3,oneof" json:"options,omitempty"`
	// contains filtered or unexported fields
}

Payload for requesting zero or more `Organizations` matching a set of filters

func (*ListOrganizationsRequest) Descriptor deprecated added in v0.0.6

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

Deprecated: Use ListOrganizationsRequest.ProtoReflect.Descriptor instead.

func (*ListOrganizationsRequest) GetOptions added in v0.0.6

func (*ListOrganizationsRequest) GetParams added in v0.0.6

func (*ListOrganizationsRequest) ProtoMessage added in v0.0.6

func (*ListOrganizationsRequest) ProtoMessage()

func (*ListOrganizationsRequest) ProtoReflect added in v0.0.6

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

func (*ListOrganizationsRequest) Reset added in v0.0.6

func (x *ListOrganizationsRequest) Reset()

func (*ListOrganizationsRequest) String added in v0.0.6

func (x *ListOrganizationsRequest) String() string

type ListOrganizationsRequestParams added in v0.0.6

type ListOrganizationsRequestParams struct {

	// Match `Organizations` with *any* of these Ids
	Ids []string `protobuf:"bytes,1,rep,name=ids,proto3" json:"ids,omitempty"`
	// Match `Organizations` with *any* of these Names
	Names []string `protobuf:"bytes,2,rep,name=names,proto3" json:"names,omitempty"`
	// Match `Organizations` having *any* of these ParentIds
	ParentIds []string `protobuf:"bytes,3,rep,name=parent_ids,json=parentIds,proto3" json:"parent_ids,omitempty"`
	// Specify true if you want to include in the result all of an
	// `Organization`'s sub-organizations (its children)
	IncludeChildren bool `protobuf:"varint,4,opt,name=include_children,json=includeChildren,proto3" json:"include_children,omitempty"`
	// Specify this to change the number of `Organizations` per page of results
	ResultsPerPage *uint32 `protobuf:"varint,15,opt,name=results_per_page,json=resultsPerPage,proto3,oneof" json:"results_per_page,omitempty"`
	// Supply this value when paginating and retrieving the next page of
	// results
	Marker *string `protobuf:"bytes,99,opt,name=marker,proto3,oneof" json:"marker,omitempty"`
	// contains filtered or unexported fields
}

Specify search parameters and filters for listing `Organizations`

func (*ListOrganizationsRequestParams) Descriptor deprecated added in v0.0.6

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

Deprecated: Use ListOrganizationsRequestParams.ProtoReflect.Descriptor instead.

func (*ListOrganizationsRequestParams) GetIds added in v0.0.6

func (x *ListOrganizationsRequestParams) GetIds() []string

func (*ListOrganizationsRequestParams) GetIncludeChildren added in v0.0.6

func (x *ListOrganizationsRequestParams) GetIncludeChildren() bool

func (*ListOrganizationsRequestParams) GetMarker added in v0.0.6

func (x *ListOrganizationsRequestParams) GetMarker() string

func (*ListOrganizationsRequestParams) GetNames added in v0.0.6

func (x *ListOrganizationsRequestParams) GetNames() []string

func (*ListOrganizationsRequestParams) GetParentIds added in v0.0.6

func (x *ListOrganizationsRequestParams) GetParentIds() []string

func (*ListOrganizationsRequestParams) GetResultsPerPage added in v0.0.6

func (x *ListOrganizationsRequestParams) GetResultsPerPage() uint32

func (*ListOrganizationsRequestParams) ProtoMessage added in v0.0.6

func (*ListOrganizationsRequestParams) ProtoMessage()

func (*ListOrganizationsRequestParams) ProtoReflect added in v0.0.6

func (*ListOrganizationsRequestParams) Reset added in v0.0.6

func (x *ListOrganizationsRequestParams) Reset()

func (*ListOrganizationsRequestParams) String added in v0.0.6

type ListOrganizationsResponse added in v0.0.6

type ListOrganizationsResponse struct {
	Organization *Organization `protobuf:"bytes,1,opt,name=organization,proto3" json:"organization,omitempty"`
	// contains filtered or unexported fields
}

func (*ListOrganizationsResponse) Descriptor deprecated added in v0.0.6

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

Deprecated: Use ListOrganizationsResponse.ProtoReflect.Descriptor instead.

func (*ListOrganizationsResponse) GetOrganization added in v0.0.6

func (x *ListOrganizationsResponse) GetOrganization() *Organization

func (*ListOrganizationsResponse) ProtoMessage added in v0.0.6

func (*ListOrganizationsResponse) ProtoMessage()

func (*ListOrganizationsResponse) ProtoReflect added in v0.0.6

func (*ListOrganizationsResponse) Reset added in v0.0.6

func (x *ListOrganizationsResponse) Reset()

func (*ListOrganizationsResponse) String added in v0.0.6

func (x *ListOrganizationsResponse) String() string

type OMAServiceClient added in v0.0.6

type OMAServiceClient interface {
	// Returns information about a single `Organization`.
	//
	// If the organization is not accessible by the authenticated principal or
	// does not exist, an empty `Organization` message is returned within the
	// `OrganizationGetResponse` message's `organization` field and the
	// `status` field will contain a 404 code.
	GetOrganization(ctx context.Context, in *GetOrganizationRequest, opts ...grpc.CallOption) (*GetOrganizationResponse, error)
	// Returns information about `Organizations` in the authenticated
	// principal's `any.cloud` `Account` that the principal has access to.
	ListOrganizations(ctx context.Context, in *ListOrganizationsRequest, opts ...grpc.CallOption) (OMAService_ListOrganizationsClient, error)
	// Creates a new `Organization`
	CreateOrganization(ctx context.Context, in *CreateOrganizationRequest, opts ...grpc.CallOption) (*CreateOrganizationResponse, error)
	// Deletes an `Organization`
	DeleteOrganization(ctx context.Context, in *DeleteOrganizationRequest, opts ...grpc.CallOption) (*DeleteOrganizationResponse, error)
}

OMAServiceClient is the client API for OMAService 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.

func NewOMAServiceClient added in v0.0.6

func NewOMAServiceClient(cc grpc.ClientConnInterface) OMAServiceClient

type OMAServiceServer added in v0.0.6

type OMAServiceServer interface {
	// Returns information about a single `Organization`.
	//
	// If the organization is not accessible by the authenticated principal or
	// does not exist, an empty `Organization` message is returned within the
	// `OrganizationGetResponse` message's `organization` field and the
	// `status` field will contain a 404 code.
	GetOrganization(context.Context, *GetOrganizationRequest) (*GetOrganizationResponse, error)
	// Returns information about `Organizations` in the authenticated
	// principal's `any.cloud` `Account` that the principal has access to.
	ListOrganizations(*ListOrganizationsRequest, OMAService_ListOrganizationsServer) error
	// Creates a new `Organization`
	CreateOrganization(context.Context, *CreateOrganizationRequest) (*CreateOrganizationResponse, error)
	// Deletes an `Organization`
	DeleteOrganization(context.Context, *DeleteOrganizationRequest) (*DeleteOrganizationResponse, error)
	// contains filtered or unexported methods
}

OMAServiceServer is the server API for OMAService service. All implementations must embed UnimplementedOMAServiceServer for forward compatibility

type OMAService_ListOrganizationsClient added in v0.0.6

type OMAService_ListOrganizationsClient interface {
	Recv() (*ListOrganizationsResponse, error)
	grpc.ClientStream
}

type OMAService_ListOrganizationsServer added in v0.0.6

type OMAService_ListOrganizationsServer interface {
	Send(*ListOrganizationsResponse) error
	grpc.ServerStream
}

type Organization

type Organization struct {

	// Id is a globally unique identifier
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// AccountId is the identifier for the `any.cloud` `Account` this
	// `Organization` belongs to.
	AccountId string `protobuf:"bytes,2,opt,name=account_id,json=accountId,proto3" json:"account_id,omitempty"`
	// Name is a unique identifier within an `Account` and `Tenant`
	Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
	// DisplayName is not unique
	DisplayName string `protobuf:"bytes,4,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
	// ParentId is an optional identifier for this `Organization`'s parent
	ParentId *string `protobuf:"bytes,5,opt,name=parent_id,json=parentId,proto3,oneof" json:"parent_id,omitempty"`
	// Tenant is an optional string identifier for a tenant in a multi-tenant
	// calling account.
	//
	// If you are calling an `any.cloud` API *on behalf of* one of your own
	// accounts/users and want to expose `any.cloud` services to your users
	// without them interfering with each other or allowing you to control
	// rate-limiting and API quotas per user, you will specify this field.
	// Empty values mean the tenant == account_id, i.e. the API is being called
	// in "single-tenant" mode and will be rate-limited in aggregate to the
	// account ID.
	Tenant *string `protobuf:"bytes,13,opt,name=tenant,proto3,oneof" json:"tenant,omitempty"`
	// CreatedOn contains the UTC timestamp of when this `Organization` was
	// created in `any.cloud`
	CreatedOn *timestamppb.Timestamp `protobuf:"bytes,14,opt,name=created_on,json=createdOn,proto3" json:"created_on,omitempty"`
	// Tags contains a set of free-form key/value pairs
	Tags map[string]string `` /* 150-byte string literal not displayed */
	// contains filtered or unexported fields
}

An `Organization` is a container for zero or more `Organizations` (sub-orgs or organizational units). An `Organization` is associated with a single `Account`.

func (*Organization) Descriptor deprecated

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

Deprecated: Use Organization.ProtoReflect.Descriptor instead.

func (*Organization) GetAccountId

func (x *Organization) GetAccountId() string

func (*Organization) GetCreatedOn added in v0.0.3

func (x *Organization) GetCreatedOn() *timestamppb.Timestamp

func (*Organization) GetDisplayName added in v0.0.2

func (x *Organization) GetDisplayName() string

func (*Organization) GetId

func (x *Organization) GetId() string

func (*Organization) GetName

func (x *Organization) GetName() string

func (*Organization) GetParentId

func (x *Organization) GetParentId() string

func (*Organization) GetTags

func (x *Organization) GetTags() map[string]string

func (*Organization) GetTenant added in v0.0.5

func (x *Organization) GetTenant() string

func (*Organization) ProtoMessage

func (*Organization) ProtoMessage()

func (*Organization) ProtoReflect

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

func (*Organization) Reset

func (x *Organization) Reset()

func (*Organization) String

func (x *Organization) String() string

type Role

type Role struct {

	// Id is a globally unique identifier
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// AccountId is the identifier for the `any.cloud` `Account` this
	// `Role` belongs to.
	AccountId string `protobuf:"bytes,2,opt,name=account_id,json=accountId,proto3" json:"account_id,omitempty"`
	// Name is a unique identifier within an `Account` and `Tenant`
	Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
	// DisplayName is not unique
	DisplayName string `protobuf:"bytes,4,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
	// Tenant is an optional string identifier for a tenant in a multi-tenant
	// calling account.
	//
	// If you are calling an `any.cloud` API *on behalf of* one of your own
	// accounts/users and want to expose `any.cloud` services to your users
	// without them interfering with each other or allowing you to control
	// rate-limiting and API quotas per user, you will specify this field.
	// Empty values mean the tenant == account_id, i.e. the API is being called
	// in "single-tenant" mode and will be rate-limited in aggregate to the
	// account ID.
	Tenant *string `protobuf:"bytes,13,opt,name=tenant,proto3,oneof" json:"tenant,omitempty"`
	// CreatedOn contains the UTC timestamp of when this `Account` was
	// created in `any.cloud`
	CreatedOn *timestamppb.Timestamp `protobuf:"bytes,14,opt,name=created_on,json=createdOn,proto3" json:"created_on,omitempty"`
	// Tags contains a set of free-form key/value pairs
	Tags map[string]string `` /* 150-byte string literal not displayed */
	// contains filtered or unexported fields
}

A `Role` is a collection of `Permissions` that an authenticated `User` will be granted when calling an `any.cloud` service.

func (*Role) Descriptor deprecated

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

Deprecated: Use Role.ProtoReflect.Descriptor instead.

func (*Role) GetAccountId

func (x *Role) GetAccountId() string

func (*Role) GetCreatedOn added in v0.0.3

func (x *Role) GetCreatedOn() *timestamppb.Timestamp

func (*Role) GetDisplayName

func (x *Role) GetDisplayName() string

func (*Role) GetId

func (x *Role) GetId() string

func (*Role) GetName

func (x *Role) GetName() string

func (*Role) GetTags

func (x *Role) GetTags() map[string]string

func (*Role) GetTenant added in v0.0.5

func (x *Role) GetTenant() string

func (*Role) ProtoMessage

func (*Role) ProtoMessage()

func (*Role) ProtoReflect

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

func (*Role) Reset

func (x *Role) Reset()

func (*Role) String

func (x *Role) String() string

type Team

type Team struct {

	// Id is a globally unique identifier
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// AccountId is the identifier for the `any.cloud` `Account` this
	// `Team` belongs to.
	AccountId string `protobuf:"bytes,2,opt,name=account_id,json=accountId,proto3" json:"account_id,omitempty"`
	// Name is a unique identifier within an `Account` and `Tenant`
	Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
	// DisplayName is not unique
	DisplayName string `protobuf:"bytes,4,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
	// ParentId is an optional identifier for this `Team`'s parent
	ParentId *string `protobuf:"bytes,5,opt,name=parent_id,json=parentId,proto3,oneof" json:"parent_id,omitempty"`
	// Tenant is an optional string identifier for a tenant in a multi-tenant
	// calling account.
	//
	// If you are calling an `any.cloud` API *on behalf of* one of your own
	// accounts/users and want to expose `any.cloud` services to your users
	// without them interfering with each other or allowing you to control
	// rate-limiting and API quotas per user, you will specify this field.
	// Empty values mean the tenant == account_id, i.e. the API is being called
	// in "single-tenant" mode and will be rate-limited in aggregate to the
	// account ID.
	Tenant *string `protobuf:"bytes,13,opt,name=tenant,proto3,oneof" json:"tenant,omitempty"`
	// CreatedOn contains the UTC timestamp of when this `Account` was
	// created in `any.cloud`
	CreatedOn *timestamppb.Timestamp `protobuf:"bytes,14,opt,name=created_on,json=createdOn,proto3" json:"created_on,omitempty"`
	// Tags contains a set of free-form key/value pairs
	Tags map[string]string `` /* 150-byte string literal not displayed */
	// contains filtered or unexported fields
}

A `Team` is a container for zero or more `Users`. `Teams` can have zero or more sub-teams.

func (*Team) Descriptor deprecated

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

Deprecated: Use Team.ProtoReflect.Descriptor instead.

func (*Team) GetAccountId

func (x *Team) GetAccountId() string

func (*Team) GetCreatedOn added in v0.0.3

func (x *Team) GetCreatedOn() *timestamppb.Timestamp

func (*Team) GetDisplayName added in v0.0.2

func (x *Team) GetDisplayName() string

func (*Team) GetId

func (x *Team) GetId() string

func (*Team) GetName

func (x *Team) GetName() string

func (*Team) GetParentId

func (x *Team) GetParentId() string

func (*Team) GetTags

func (x *Team) GetTags() map[string]string

func (*Team) GetTenant added in v0.0.5

func (x *Team) GetTenant() string

func (*Team) ProtoMessage

func (*Team) ProtoMessage()

func (*Team) ProtoReflect

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

func (*Team) Reset

func (x *Team) Reset()

func (*Team) String

func (x *Team) String() string

type UnimplementedOMAServiceServer added in v0.0.6

type UnimplementedOMAServiceServer struct {
}

UnimplementedOMAServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedOMAServiceServer) CreateOrganization added in v0.0.6

func (UnimplementedOMAServiceServer) DeleteOrganization added in v0.0.6

func (UnimplementedOMAServiceServer) GetOrganization added in v0.0.6

func (UnimplementedOMAServiceServer) ListOrganizations added in v0.0.6

type UnsafeOMAServiceServer added in v0.0.6

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

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

type User

type User struct {

	// Id is a globally unique identifier
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// AccountId is the identifier for the `any.cloud` `Account` this
	// `User` belongs to.
	AccountId string `protobuf:"bytes,2,opt,name=account_id,json=accountId,proto3" json:"account_id,omitempty"`
	// Name is a unique identifier within an `Account`
	Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
	// DisplayName is not unique
	DisplayName string `protobuf:"bytes,4,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
	// Email is an optional valid RFC 5321 email address
	Email string `protobuf:"bytes,5,opt,name=email,proto3" json:"email,omitempty"`
	// Tenant is an optional string identifier for a tenant in a multi-tenant
	// calling account.
	//
	// If you are calling an `any.cloud` API *on behalf of* one of your own
	// accounts/users and want to expose `any.cloud` services to your users
	// without them interfering with each other or allowing you to control
	// rate-limiting and API quotas per user, you will specify this field.
	// Empty values mean the tenant == account_id, i.e. the API is being called
	// in "single-tenant" mode and will be rate-limited in aggregate to the
	// account ID.
	Tenant *string `protobuf:"bytes,13,opt,name=tenant,proto3,oneof" json:"tenant,omitempty"`
	// CreatedOn contains the UTC timestamp of when this `Account` was
	// created in `any.cloud`
	CreatedOn *timestamppb.Timestamp `protobuf:"bytes,14,opt,name=created_on,json=createdOn,proto3" json:"created_on,omitempty"`
	// Tags contains a set of free-form key/value pairs
	Tags map[string]string `` /* 150-byte string literal not displayed */
	// contains filtered or unexported fields
}

A `User` is caller of an `any.cloud` service. They may be human or non-human and belong to zero or more `Teams`.

func (*User) Descriptor deprecated

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

Deprecated: Use User.ProtoReflect.Descriptor instead.

func (*User) GetAccountId

func (x *User) GetAccountId() string

func (*User) GetCreatedOn added in v0.0.3

func (x *User) GetCreatedOn() *timestamppb.Timestamp

func (*User) GetDisplayName

func (x *User) GetDisplayName() string

func (*User) GetEmail

func (x *User) GetEmail() string

func (*User) GetId

func (x *User) GetId() string

func (*User) GetName

func (x *User) GetName() string

func (*User) GetTags

func (x *User) GetTags() map[string]string

func (*User) GetTenant added in v0.0.5

func (x *User) GetTenant() string

func (*User) ProtoMessage

func (*User) ProtoMessage()

func (*User) ProtoReflect

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

func (*User) Reset

func (x *User) Reset()

func (*User) String

func (x *User) String() string

Jump to

Keyboard shortcuts

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