resourcemanageradminpb

package
v0.0.0-...-9fa10a5 Latest Latest
Warning

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

Go to latest
Published: Feb 29, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	OrganizationsService_CreateOrganization_FullMethodName     = "/blocky.cloud.resourcemanager.admin.v1alpha.OrganizationsService/CreateOrganization"
	OrganizationsService_GetOrganization_FullMethodName        = "/blocky.cloud.resourcemanager.admin.v1alpha.OrganizationsService/GetOrganization"
	OrganizationsService_UpdateOrganization_FullMethodName     = "/blocky.cloud.resourcemanager.admin.v1alpha.OrganizationsService/UpdateOrganization"
	OrganizationsService_DeleteOrganization_FullMethodName     = "/blocky.cloud.resourcemanager.admin.v1alpha.OrganizationsService/DeleteOrganization"
	OrganizationsService_AddOrganizationUser_FullMethodName    = "/blocky.cloud.resourcemanager.admin.v1alpha.OrganizationsService/AddOrganizationUser"
	OrganizationsService_ListOrganizationUsers_FullMethodName  = "/blocky.cloud.resourcemanager.admin.v1alpha.OrganizationsService/ListOrganizationUsers"
	OrganizationsService_RemoveOrganizationUser_FullMethodName = "/blocky.cloud.resourcemanager.admin.v1alpha.OrganizationsService/RemoveOrganizationUser"
)
View Source
const (
	UsersAdminService_RegisterUser_FullMethodName        = "/blocky.cloud.resourcemanager.admin.v1alpha.UsersAdminService/RegisterUser"
	UsersAdminService_GetUser_FullMethodName             = "/blocky.cloud.resourcemanager.admin.v1alpha.UsersAdminService/GetUser"
	UsersAdminService_GetUserByExternalId_FullMethodName = "/blocky.cloud.resourcemanager.admin.v1alpha.UsersAdminService/GetUserByExternalId"
	UsersAdminService_DeleteUser_FullMethodName          = "/blocky.cloud.resourcemanager.admin.v1alpha.UsersAdminService/DeleteUser"
)

Variables

View Source
var File_blocky_cloud_resourcemanager_admin_v1alpha_organization_admin_service_proto protoreflect.FileDescriptor
View Source
var File_blocky_cloud_resourcemanager_admin_v1alpha_organization_proto protoreflect.FileDescriptor
View Source
var File_blocky_cloud_resourcemanager_admin_v1alpha_user_proto protoreflect.FileDescriptor
View Source
var File_blocky_cloud_resourcemanager_admin_v1alpha_users_admin_service_proto protoreflect.FileDescriptor
View Source
var OrganizationsService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "blocky.cloud.resourcemanager.admin.v1alpha.OrganizationsService",
	HandlerType: (*OrganizationsServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "CreateOrganization",
			Handler:    _OrganizationsService_CreateOrganization_Handler,
		},
		{
			MethodName: "GetOrganization",
			Handler:    _OrganizationsService_GetOrganization_Handler,
		},
		{
			MethodName: "UpdateOrganization",
			Handler:    _OrganizationsService_UpdateOrganization_Handler,
		},
		{
			MethodName: "DeleteOrganization",
			Handler:    _OrganizationsService_DeleteOrganization_Handler,
		},
		{
			MethodName: "AddOrganizationUser",
			Handler:    _OrganizationsService_AddOrganizationUser_Handler,
		},
		{
			MethodName: "ListOrganizationUsers",
			Handler:    _OrganizationsService_ListOrganizationUsers_Handler,
		},
		{
			MethodName: "RemoveOrganizationUser",
			Handler:    _OrganizationsService_RemoveOrganizationUser_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "blocky/cloud/resourcemanager/admin/v1alpha/organization_admin_service.proto",
}

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

View Source
var UsersAdminService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "blocky.cloud.resourcemanager.admin.v1alpha.UsersAdminService",
	HandlerType: (*UsersAdminServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "RegisterUser",
			Handler:    _UsersAdminService_RegisterUser_Handler,
		},
		{
			MethodName: "GetUser",
			Handler:    _UsersAdminService_GetUser_Handler,
		},
		{
			MethodName: "GetUserByExternalId",
			Handler:    _UsersAdminService_GetUserByExternalId_Handler,
		},
		{
			MethodName: "DeleteUser",
			Handler:    _UsersAdminService_DeleteUser_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "blocky/cloud/resourcemanager/admin/v1alpha/users_admin_service.proto",
}

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

Functions

func RegisterOrganizationsServiceServer

func RegisterOrganizationsServiceServer(s grpc.ServiceRegistrar, srv OrganizationsServiceServer)

func RegisterUsersAdminServiceServer

func RegisterUsersAdminServiceServer(s grpc.ServiceRegistrar, srv UsersAdminServiceServer)

Types

type AddOrganizationUserRequest

type AddOrganizationUserRequest struct {

	// The identifier of the organization.
	Organization string `protobuf:"bytes,1,opt,name=organization,proto3" json:"organization,omitempty"`
	// The identifier of the user.
	User string `protobuf:"bytes,2,opt,name=user,proto3" json:"user,omitempty"`
	// contains filtered or unexported fields
}

A request message for AddOrganizationUser method.

func (*AddOrganizationUserRequest) Descriptor deprecated

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

Deprecated: Use AddOrganizationUserRequest.ProtoReflect.Descriptor instead.

func (*AddOrganizationUserRequest) GetOrganization

func (x *AddOrganizationUserRequest) GetOrganization() string

func (*AddOrganizationUserRequest) GetUser

func (x *AddOrganizationUserRequest) GetUser() string

func (*AddOrganizationUserRequest) ProtoMessage

func (*AddOrganizationUserRequest) ProtoMessage()

func (*AddOrganizationUserRequest) ProtoReflect

func (*AddOrganizationUserRequest) Reset

func (x *AddOrganizationUserRequest) Reset()

func (*AddOrganizationUserRequest) String

func (x *AddOrganizationUserRequest) String() string

type CreateOrganizationRequest

type CreateOrganizationRequest struct {

	// The organization to create.
	Organization *Organization `protobuf:"bytes,1,opt,name=organization,proto3" json:"organization,omitempty"`
	// contains filtered or unexported fields
}

A request message for CreateOrganization method.

func (*CreateOrganizationRequest) Descriptor deprecated

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

Deprecated: Use CreateOrganizationRequest.ProtoReflect.Descriptor instead.

func (*CreateOrganizationRequest) GetOrganization

func (x *CreateOrganizationRequest) GetOrganization() *Organization

func (*CreateOrganizationRequest) ProtoMessage

func (*CreateOrganizationRequest) ProtoMessage()

func (*CreateOrganizationRequest) ProtoReflect

func (*CreateOrganizationRequest) Reset

func (x *CreateOrganizationRequest) Reset()

func (*CreateOrganizationRequest) String

func (x *CreateOrganizationRequest) String() string

type DeleteOrganizationRequest

type DeleteOrganizationRequest struct {

	// The identifier of the organization.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

A request message for DeleteOrganization method.

func (*DeleteOrganizationRequest) Descriptor deprecated

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

Deprecated: Use DeleteOrganizationRequest.ProtoReflect.Descriptor instead.

func (*DeleteOrganizationRequest) GetName

func (x *DeleteOrganizationRequest) GetName() string

func (*DeleteOrganizationRequest) ProtoMessage

func (*DeleteOrganizationRequest) ProtoMessage()

func (*DeleteOrganizationRequest) ProtoReflect

func (*DeleteOrganizationRequest) Reset

func (x *DeleteOrganizationRequest) Reset()

func (*DeleteOrganizationRequest) String

func (x *DeleteOrganizationRequest) String() string

type DeleteUserRequest

type DeleteUserRequest struct {

	// The name of the account resource to delete
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

A request message for DeleteUser method

func (*DeleteUserRequest) Descriptor deprecated

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

Deprecated: Use DeleteUserRequest.ProtoReflect.Descriptor instead.

func (*DeleteUserRequest) GetName

func (x *DeleteUserRequest) GetName() string

func (*DeleteUserRequest) ProtoMessage

func (*DeleteUserRequest) ProtoMessage()

func (*DeleteUserRequest) ProtoReflect

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

func (*DeleteUserRequest) Reset

func (x *DeleteUserRequest) Reset()

func (*DeleteUserRequest) String

func (x *DeleteUserRequest) String() string

type ExternalIdentity

type ExternalIdentity struct {

	// The external identity provider service name.
	Provider string `protobuf:"bytes,1,opt,name=provider,proto3" json:"provider,omitempty"`
	// The unique identifier of the user in the external identity provider service.
	Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

An identifier from external identity provider service.

func (*ExternalIdentity) Descriptor deprecated

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

Deprecated: Use ExternalIdentity.ProtoReflect.Descriptor instead.

func (*ExternalIdentity) GetId

func (x *ExternalIdentity) GetId() string

func (*ExternalIdentity) GetProvider

func (x *ExternalIdentity) GetProvider() string

func (*ExternalIdentity) ProtoMessage

func (*ExternalIdentity) ProtoMessage()

func (*ExternalIdentity) ProtoReflect

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

func (*ExternalIdentity) Reset

func (x *ExternalIdentity) Reset()

func (*ExternalIdentity) String

func (x *ExternalIdentity) String() string

type GetOrganizationRequest

type GetOrganizationRequest struct {

	// The identifier of the organization.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

A request message for GetOrganization method.

func (*GetOrganizationRequest) Descriptor deprecated

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

Deprecated: Use GetOrganizationRequest.ProtoReflect.Descriptor instead.

func (*GetOrganizationRequest) GetName

func (x *GetOrganizationRequest) GetName() string

func (*GetOrganizationRequest) ProtoMessage

func (*GetOrganizationRequest) ProtoMessage()

func (*GetOrganizationRequest) ProtoReflect

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

func (*GetOrganizationRequest) Reset

func (x *GetOrganizationRequest) Reset()

func (*GetOrganizationRequest) String

func (x *GetOrganizationRequest) String() string

type GetUserByExternalIdRequest

type GetUserByExternalIdRequest struct {

	// The external identifier of the user.
	ExternalId *ExternalIdentity `protobuf:"bytes,1,opt,name=external_id,json=externalId,proto3" json:"external_id,omitempty"`
	// contains filtered or unexported fields
}

A request message for GetUserByExternalId method.

func (*GetUserByExternalIdRequest) Descriptor deprecated

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

Deprecated: Use GetUserByExternalIdRequest.ProtoReflect.Descriptor instead.

func (*GetUserByExternalIdRequest) GetExternalId

func (x *GetUserByExternalIdRequest) GetExternalId() *ExternalIdentity

func (*GetUserByExternalIdRequest) ProtoMessage

func (*GetUserByExternalIdRequest) ProtoMessage()

func (*GetUserByExternalIdRequest) ProtoReflect

func (*GetUserByExternalIdRequest) Reset

func (x *GetUserByExternalIdRequest) Reset()

func (*GetUserByExternalIdRequest) String

func (x *GetUserByExternalIdRequest) String() string

type GetUserRequest

type GetUserRequest struct {

	// The identifier of the user.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

A request message for GetUser method.

func (*GetUserRequest) Descriptor deprecated

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

Deprecated: Use GetUserRequest.ProtoReflect.Descriptor instead.

func (*GetUserRequest) GetName

func (x *GetUserRequest) GetName() string

func (*GetUserRequest) ProtoMessage

func (*GetUserRequest) ProtoMessage()

func (*GetUserRequest) ProtoReflect

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

func (*GetUserRequest) Reset

func (x *GetUserRequest) Reset()

func (*GetUserRequest) String

func (x *GetUserRequest) String() string

type ListOrganizationUsersRequest

type ListOrganizationUsersRequest struct {

	// The resource name of the organization.
	Organization string `protobuf:"bytes,1,opt,name=organization,proto3" json:"organization,omitempty"`
	// The maximum number of users to return.
	PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	// A page token received from the previous `ListOrganizationUsers` call.
	// Provide this to retrieve the subsequent page.
	//
	// When paginating, all other parameters provided to `ListOrganizationUsers` must match
	// the call that provided the page token.
	PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
	// contains filtered or unexported fields
}

A request message for ListOrganizationUsers method.

func (*ListOrganizationUsersRequest) Descriptor deprecated

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

Deprecated: Use ListOrganizationUsersRequest.ProtoReflect.Descriptor instead.

func (*ListOrganizationUsersRequest) GetOrganization

func (x *ListOrganizationUsersRequest) GetOrganization() string

func (*ListOrganizationUsersRequest) GetPageSize

func (x *ListOrganizationUsersRequest) GetPageSize() int32

func (*ListOrganizationUsersRequest) GetPageToken

func (x *ListOrganizationUsersRequest) GetPageToken() string

func (*ListOrganizationUsersRequest) ProtoMessage

func (*ListOrganizationUsersRequest) ProtoMessage()

func (*ListOrganizationUsersRequest) ProtoReflect

func (*ListOrganizationUsersRequest) Reset

func (x *ListOrganizationUsersRequest) Reset()

func (*ListOrganizationUsersRequest) String

type ListOrganizationUsersResponse

type ListOrganizationUsersResponse struct {

	// The users of the organization in this page.
	Users []*OrganizationUser `protobuf:"bytes,1,rep,name=users,proto3" json:"users,omitempty"`
	// A token to retrieve the next page of results.
	// Pass this value in the `page_token` field in the subsequent call to `ListOrganizationUsers` method
	// to retrieve the next page of results.
	NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
	// contains filtered or unexported fields
}

A response message for ListOrganizationUsers method.

func (*ListOrganizationUsersResponse) Descriptor deprecated

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

Deprecated: Use ListOrganizationUsersResponse.ProtoReflect.Descriptor instead.

func (*ListOrganizationUsersResponse) GetNextPageToken

func (x *ListOrganizationUsersResponse) GetNextPageToken() string

func (*ListOrganizationUsersResponse) GetUsers

func (*ListOrganizationUsersResponse) ProtoMessage

func (*ListOrganizationUsersResponse) ProtoMessage()

func (*ListOrganizationUsersResponse) ProtoReflect

func (*ListOrganizationUsersResponse) Reset

func (x *ListOrganizationUsersResponse) Reset()

func (*ListOrganizationUsersResponse) String

type Organization

type Organization struct {

	// Resource name of the Organization
	// The format of the organization resource name:
	// `organizations/*`
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// The unique server-generated UUID identifier for the key.
	// It could be used as the organization identifier in its resource name.
	Uid string `protobuf:"bytes,2,opt,name=uid,proto3" json:"uid,omitempty"`
	// The display name of the organization.
	DisplayName string `protobuf:"bytes,3,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
	// Time when the key was created.
	CreateTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
	// The time when the organization was last modified.
	UpdateTime *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`
	// The owner of the organization.
	Owner string `protobuf:"bytes,6,opt,name=owner,proto3" json:"owner,omitempty"`
	// contains filtered or unexported fields
}

Organization represents a cloud organization resource.

func (*Organization) Descriptor deprecated

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

Deprecated: Use Organization.ProtoReflect.Descriptor instead.

func (*Organization) GetCreateTime

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

func (*Organization) GetDisplayName

func (x *Organization) GetDisplayName() string

func (*Organization) GetName

func (x *Organization) GetName() string

func (*Organization) GetOwner

func (x *Organization) GetOwner() string

func (*Organization) GetUid

func (x *Organization) GetUid() string

func (*Organization) GetUpdateTime

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

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 OrganizationUser

type OrganizationUser struct {

	// Resource name of the OrganizationUser
	// The format of the organization user resource name:
	// `organizations/*/users/*`
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// The unique server-generated UUID identifier for the key.
	// It could be used as the organization user identifier in its resource name.
	Uid string `protobuf:"bytes,2,opt,name=uid,proto3" json:"uid,omitempty"`
	// The resource name of the user that is a user of the organization.
	// The format of the user resource name:
	// `users/*`
	User string `protobuf:"bytes,3,opt,name=user,proto3" json:"user,omitempty"`
	// The time when a user was added to the organization.
	CreateTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
	// The time when a user was removed from the organization.
	DeleteTime *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=delete_time,json=deleteTime,proto3" json:"delete_time,omitempty"`
	// contains filtered or unexported fields
}

OrganizationUser represents a user account that is a user of an organization.

func (*OrganizationUser) Descriptor deprecated

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

Deprecated: Use OrganizationUser.ProtoReflect.Descriptor instead.

func (*OrganizationUser) GetCreateTime

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

func (*OrganizationUser) GetDeleteTime

func (x *OrganizationUser) GetDeleteTime() *timestamppb.Timestamp

func (*OrganizationUser) GetName

func (x *OrganizationUser) GetName() string

func (*OrganizationUser) GetUid

func (x *OrganizationUser) GetUid() string

func (*OrganizationUser) GetUser

func (x *OrganizationUser) GetUser() string

func (*OrganizationUser) ProtoMessage

func (*OrganizationUser) ProtoMessage()

func (*OrganizationUser) ProtoReflect

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

func (*OrganizationUser) Reset

func (x *OrganizationUser) Reset()

func (*OrganizationUser) String

func (x *OrganizationUser) String() string

type OrganizationsServiceClient

type OrganizationsServiceClient interface {
	// Creates a new organization.
	CreateOrganization(ctx context.Context, in *CreateOrganizationRequest, opts ...grpc.CallOption) (*Organization, error)
	// Gets the organization by the identifier.
	GetOrganization(ctx context.Context, in *GetOrganizationRequest, opts ...grpc.CallOption) (*Organization, error)
	// Updates the organization.
	UpdateOrganization(ctx context.Context, in *UpdateOrganizationRequest, opts ...grpc.CallOption) (*Organization, error)
	// Deletes the organization by the identifier.
	DeleteOrganization(ctx context.Context, in *DeleteOrganizationRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// Adds the user to the project.
	AddOrganizationUser(ctx context.Context, in *AddOrganizationUserRequest, opts ...grpc.CallOption) (*OrganizationUser, error)
	// Lists the users of the organization.
	ListOrganizationUsers(ctx context.Context, in *ListOrganizationUsersRequest, opts ...grpc.CallOption) (*ListOrganizationUsersResponse, error)
	// Remove the user from the project.
	RemoveOrganizationUser(ctx context.Context, in *RemoveOrganizationUserRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
}

OrganizationsServiceClient is the client API for OrganizationsService 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.

type OrganizationsServiceServer

type OrganizationsServiceServer interface {
	// Creates a new organization.
	CreateOrganization(context.Context, *CreateOrganizationRequest) (*Organization, error)
	// Gets the organization by the identifier.
	GetOrganization(context.Context, *GetOrganizationRequest) (*Organization, error)
	// Updates the organization.
	UpdateOrganization(context.Context, *UpdateOrganizationRequest) (*Organization, error)
	// Deletes the organization by the identifier.
	DeleteOrganization(context.Context, *DeleteOrganizationRequest) (*emptypb.Empty, error)
	// Adds the user to the project.
	AddOrganizationUser(context.Context, *AddOrganizationUserRequest) (*OrganizationUser, error)
	// Lists the users of the organization.
	ListOrganizationUsers(context.Context, *ListOrganizationUsersRequest) (*ListOrganizationUsersResponse, error)
	// Remove the user from the project.
	RemoveOrganizationUser(context.Context, *RemoveOrganizationUserRequest) (*emptypb.Empty, error)
	// contains filtered or unexported methods
}

OrganizationsServiceServer is the server API for OrganizationsService service. All implementations must embed UnimplementedOrganizationsServiceServer for forward compatibility

type RegisterUserRequest

type RegisterUserRequest struct {

	// The user to register into the system.
	User *User `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"`
	// contains filtered or unexported fields
}

A request message for RegisterUser method.

func (*RegisterUserRequest) Descriptor deprecated

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

Deprecated: Use RegisterUserRequest.ProtoReflect.Descriptor instead.

func (*RegisterUserRequest) GetUser

func (x *RegisterUserRequest) GetUser() *User

func (*RegisterUserRequest) ProtoMessage

func (*RegisterUserRequest) ProtoMessage()

func (*RegisterUserRequest) ProtoReflect

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

func (*RegisterUserRequest) Reset

func (x *RegisterUserRequest) Reset()

func (*RegisterUserRequest) String

func (x *RegisterUserRequest) String() string

type RemoveOrganizationUserRequest

type RemoveOrganizationUserRequest struct {

	// The resource name of the organization user.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

A request message for RemoveOrganizationUser method.

func (*RemoveOrganizationUserRequest) Descriptor deprecated

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

Deprecated: Use RemoveOrganizationUserRequest.ProtoReflect.Descriptor instead.

func (*RemoveOrganizationUserRequest) GetName

func (*RemoveOrganizationUserRequest) ProtoMessage

func (*RemoveOrganizationUserRequest) ProtoMessage()

func (*RemoveOrganizationUserRequest) ProtoReflect

func (*RemoveOrganizationUserRequest) Reset

func (x *RemoveOrganizationUserRequest) Reset()

func (*RemoveOrganizationUserRequest) String

type UnimplementedOrganizationsServiceServer

type UnimplementedOrganizationsServiceServer struct {
}

UnimplementedOrganizationsServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedOrganizationsServiceServer) AddOrganizationUser

func (UnimplementedOrganizationsServiceServer) CreateOrganization

func (UnimplementedOrganizationsServiceServer) DeleteOrganization

func (UnimplementedOrganizationsServiceServer) GetOrganization

func (UnimplementedOrganizationsServiceServer) ListOrganizationUsers

func (UnimplementedOrganizationsServiceServer) RemoveOrganizationUser

func (UnimplementedOrganizationsServiceServer) UpdateOrganization

type UnimplementedUsersAdminServiceServer

type UnimplementedUsersAdminServiceServer struct {
}

UnimplementedUsersAdminServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedUsersAdminServiceServer) DeleteUser

func (UnimplementedUsersAdminServiceServer) GetUser

func (UnimplementedUsersAdminServiceServer) GetUserByExternalId

func (UnimplementedUsersAdminServiceServer) RegisterUser

type UnsafeOrganizationsServiceServer

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

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

type UnsafeUsersAdminServiceServer

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

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

type UpdateOrganizationRequest

type UpdateOrganizationRequest struct {

	// The resource name of the organization to update.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// The organization to update.
	Organization *Organization `protobuf:"bytes,2,opt,name=organization,proto3" json:"organization,omitempty"`
	// contains filtered or unexported fields
}

A request message for UpdateOrganization method.

func (*UpdateOrganizationRequest) Descriptor deprecated

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

Deprecated: Use UpdateOrganizationRequest.ProtoReflect.Descriptor instead.

func (*UpdateOrganizationRequest) GetName

func (x *UpdateOrganizationRequest) GetName() string

func (*UpdateOrganizationRequest) GetOrganization

func (x *UpdateOrganizationRequest) GetOrganization() *Organization

func (*UpdateOrganizationRequest) ProtoMessage

func (*UpdateOrganizationRequest) ProtoMessage()

func (*UpdateOrganizationRequest) ProtoReflect

func (*UpdateOrganizationRequest) Reset

func (x *UpdateOrganizationRequest) Reset()

func (*UpdateOrganizationRequest) String

func (x *UpdateOrganizationRequest) String() string

type User

type User struct {

	// The resource name of the User.
	// Format: `users/{user}`
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Output only. The unique identifier of the user.
	Uid string `protobuf:"bytes,2,opt,name=uid,proto3" json:"uid,omitempty"`
	// Globally unique, user provided identifier of the user.
	// This may be a username, or any other identifier,
	// not necessarily random value.
	// If no value is provided by the user, a random name with
	UserId string `protobuf:"bytes,9,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	// Required, immutable. A unique external identifier of the user.
	ExternalIdentity *ExternalIdentity `protobuf:"bytes,3,opt,name=external_identity,json=externalIdentity,proto3" json:"external_identity,omitempty"`
	// Output only. The time when the user was created.
	CreateTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
	// Output only. The time when the user was last updated.
	UpdateTime *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`
	// The email address of the user. Optional, non-unique in Cloud Resource.
	Email string `protobuf:"bytes,6,opt,name=email,proto3" json:"email,omitempty"`
	// The display name of the user. If not provided, some default, generated
	// name will be used.
	DisplayName string `protobuf:"bytes,7,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
	// The avatar URL of the user.
	AvatarUrl string `protobuf:"bytes,8,opt,name=avatar_url,json=avatarUrl,proto3" json:"avatar_url,omitempty"`
	// contains filtered or unexported fields
}

A message that represents a User of the cloud resources.

func (*User) Descriptor deprecated

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

Deprecated: Use User.ProtoReflect.Descriptor instead.

func (*User) GetAvatarUrl

func (x *User) GetAvatarUrl() string

func (*User) GetCreateTime

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

func (*User) GetDisplayName

func (x *User) GetDisplayName() string

func (*User) GetEmail

func (x *User) GetEmail() string

func (*User) GetExternalIdentity

func (x *User) GetExternalIdentity() *ExternalIdentity

func (*User) GetName

func (x *User) GetName() string

func (*User) GetUid

func (x *User) GetUid() string

func (*User) GetUpdateTime

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

func (*User) GetUserId

func (x *User) GetUserId() 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

type UsersAdminServiceClient

type UsersAdminServiceClient interface {
	// Registers a new user capable of using cloud resources.
	// The source of the user is not within a domain of cloud resource manager.
	RegisterUser(ctx context.Context, in *RegisterUserRequest, opts ...grpc.CallOption) (*User, error)
	// Gets the user by the identifier.
	GetUser(ctx context.Context, in *GetUserRequest, opts ...grpc.CallOption) (*User, error)
	// Gets the user by the external identifier.
	GetUserByExternalId(ctx context.Context, in *GetUserByExternalIdRequest, opts ...grpc.CallOption) (*User, error)
	// Deletes the user by the identifier.
	DeleteUser(ctx context.Context, in *DeleteUserRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
}

UsersAdminServiceClient is the client API for UsersAdminService 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.

type UsersAdminServiceServer

type UsersAdminServiceServer interface {
	// Registers a new user capable of using cloud resources.
	// The source of the user is not within a domain of cloud resource manager.
	RegisterUser(context.Context, *RegisterUserRequest) (*User, error)
	// Gets the user by the identifier.
	GetUser(context.Context, *GetUserRequest) (*User, error)
	// Gets the user by the external identifier.
	GetUserByExternalId(context.Context, *GetUserByExternalIdRequest) (*User, error)
	// Deletes the user by the identifier.
	DeleteUser(context.Context, *DeleteUserRequest) (*emptypb.Empty, error)
	// contains filtered or unexported methods
}

UsersAdminServiceServer is the server API for UsersAdminService service. All implementations must embed UnimplementedUsersAdminServiceServer for forward compatibility

Jump to

Keyboard shortcuts

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