Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterOrganizationsServiceServer(s grpc.ServiceRegistrar, srv OrganizationsServiceServer)
- func RegisterProjectsServiceServer(s grpc.ServiceRegistrar, srv ProjectsServiceServer)
- func RegisterUsersServiceServer(s grpc.ServiceRegistrar, srv UsersServiceServer)
- type BatchGetUsersRequest
- func (*BatchGetUsersRequest) Descriptor() ([]byte, []int)deprecated
- func (x *BatchGetUsersRequest) GetNames() []string
- func (*BatchGetUsersRequest) ProtoMessage()
- func (x *BatchGetUsersRequest) ProtoReflect() protoreflect.Message
- func (x *BatchGetUsersRequest) Reset()
- func (x *BatchGetUsersRequest) String() string
- type BatchGetUsersResponse
- func (*BatchGetUsersResponse) Descriptor() ([]byte, []int)deprecated
- func (x *BatchGetUsersResponse) GetUsers() []*User
- func (*BatchGetUsersResponse) ProtoMessage()
- func (x *BatchGetUsersResponse) ProtoReflect() protoreflect.Message
- func (x *BatchGetUsersResponse) Reset()
- func (x *BatchGetUsersResponse) String() string
- type CreateProjectRequest
- func (*CreateProjectRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateProjectRequest) GetParent() string
- func (x *CreateProjectRequest) GetProject() *Project
- func (*CreateProjectRequest) ProtoMessage()
- func (x *CreateProjectRequest) ProtoReflect() protoreflect.Message
- func (x *CreateProjectRequest) Reset()
- func (x *CreateProjectRequest) String() string
- type DeleteProjectRequest
- func (*DeleteProjectRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteProjectRequest) GetName() string
- func (*DeleteProjectRequest) ProtoMessage()
- func (x *DeleteProjectRequest) ProtoReflect() protoreflect.Message
- func (x *DeleteProjectRequest) Reset()
- func (x *DeleteProjectRequest) String() string
- type GetOrganizationRequest
- func (*GetOrganizationRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetOrganizationRequest) GetName() string
- func (*GetOrganizationRequest) ProtoMessage()
- func (x *GetOrganizationRequest) ProtoReflect() protoreflect.Message
- func (x *GetOrganizationRequest) Reset()
- func (x *GetOrganizationRequest) String() string
- type GetProjectRequest
- type GetUserRequest
- type ListOrganizationsRequest
- func (*ListOrganizationsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListOrganizationsRequest) GetFilter() string
- func (x *ListOrganizationsRequest) GetPageSize() int32
- func (x *ListOrganizationsRequest) GetPageToken() string
- func (*ListOrganizationsRequest) ProtoMessage()
- func (x *ListOrganizationsRequest) ProtoReflect() protoreflect.Message
- func (x *ListOrganizationsRequest) Reset()
- func (x *ListOrganizationsRequest) String() string
- type ListOrganizationsResponse
- func (*ListOrganizationsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListOrganizationsResponse) GetNextPageToken() string
- func (x *ListOrganizationsResponse) GetOrganizations() []*Organization
- func (*ListOrganizationsResponse) ProtoMessage()
- func (x *ListOrganizationsResponse) ProtoReflect() protoreflect.Message
- func (x *ListOrganizationsResponse) Reset()
- func (x *ListOrganizationsResponse) String() string
- type ListProjectsRequest
- func (*ListProjectsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListProjectsRequest) GetFilter() *ListProjectsRequest_Filter
- func (x *ListProjectsRequest) GetPageSize() int32
- func (x *ListProjectsRequest) GetPageToken() string
- func (*ListProjectsRequest) ProtoMessage()
- func (x *ListProjectsRequest) ProtoReflect() protoreflect.Message
- func (x *ListProjectsRequest) Reset()
- func (x *ListProjectsRequest) String() string
- type ListProjectsRequest_Filter
- func (*ListProjectsRequest_Filter) Descriptor() ([]byte, []int)deprecated
- func (x *ListProjectsRequest_Filter) GetParent() string
- func (x *ListProjectsRequest_Filter) GetParentType() ListProjectsRequest_Filter_ParentType
- func (*ListProjectsRequest_Filter) ProtoMessage()
- func (x *ListProjectsRequest_Filter) ProtoReflect() protoreflect.Message
- func (x *ListProjectsRequest_Filter) Reset()
- func (x *ListProjectsRequest_Filter) String() string
- type ListProjectsRequest_Filter_ParentType
- func (ListProjectsRequest_Filter_ParentType) Descriptor() protoreflect.EnumDescriptor
- func (x ListProjectsRequest_Filter_ParentType) Enum() *ListProjectsRequest_Filter_ParentType
- func (ListProjectsRequest_Filter_ParentType) EnumDescriptor() ([]byte, []int)deprecated
- func (x ListProjectsRequest_Filter_ParentType) Number() protoreflect.EnumNumber
- func (x ListProjectsRequest_Filter_ParentType) String() string
- func (ListProjectsRequest_Filter_ParentType) Type() protoreflect.EnumType
- type ListProjectsResponse
- func (*ListProjectsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListProjectsResponse) GetNextPageToken() string
- func (x *ListProjectsResponse) GetProjects() []*Project
- func (*ListProjectsResponse) ProtoMessage()
- func (x *ListProjectsResponse) ProtoReflect() protoreflect.Message
- func (x *ListProjectsResponse) Reset()
- func (x *ListProjectsResponse) String() string
- type Organization
- func (*Organization) Descriptor() ([]byte, []int)deprecated
- func (x *Organization) GetAliases() []string
- func (x *Organization) GetCreateTime() *timestamppb.Timestamp
- func (x *Organization) GetDisplayName() string
- func (x *Organization) GetName() string
- func (x *Organization) GetOwner() string
- func (x *Organization) GetUid() string
- func (x *Organization) GetUpdateTime() *timestamppb.Timestamp
- func (*Organization) ProtoMessage()
- func (x *Organization) ProtoReflect() protoreflect.Message
- func (x *Organization) Reset()
- func (x *Organization) String() string
- type OrganizationUser
- func (*OrganizationUser) Descriptor() ([]byte, []int)deprecated
- func (x *OrganizationUser) GetAvatarUrl() string
- func (x *OrganizationUser) GetCreateTime() *timestamppb.Timestamp
- func (x *OrganizationUser) GetDisplayName() string
- func (x *OrganizationUser) GetEmail() string
- func (x *OrganizationUser) GetName() string
- func (x *OrganizationUser) GetUid() string
- func (x *OrganizationUser) GetUpdateTime() *timestamppb.Timestamp
- func (x *OrganizationUser) GetUser() string
- func (*OrganizationUser) ProtoMessage()
- func (x *OrganizationUser) ProtoReflect() protoreflect.Message
- func (x *OrganizationUser) Reset()
- func (x *OrganizationUser) String() string
- type OrganizationsServiceClient
- type OrganizationsServiceServer
- type Project
- func (*Project) Descriptor() ([]byte, []int)deprecated
- func (x *Project) GetCreateTime() *timestamppb.Timestamp
- func (x *Project) GetDeleteTime() *timestamppb.Timestamp
- func (x *Project) GetDisplayName() string
- func (x *Project) GetName() string
- func (x *Project) GetParent() string
- func (x *Project) GetState() Project_State
- func (x *Project) GetUid() string
- func (x *Project) GetUpdateTime() *timestamppb.Timestamp
- func (*Project) ProtoMessage()
- func (x *Project) ProtoReflect() protoreflect.Message
- func (x *Project) Reset()
- func (x *Project) String() string
- type ProjectCreatedEvent
- func (*ProjectCreatedEvent) Descriptor() ([]byte, []int)deprecated
- func (x *ProjectCreatedEvent) GetProject() *Project
- func (*ProjectCreatedEvent) ProtoMessage()
- func (x *ProjectCreatedEvent) ProtoReflect() protoreflect.Message
- func (x *ProjectCreatedEvent) Reset()
- func (x *ProjectCreatedEvent) String() string
- type Project_State
- func (Project_State) Descriptor() protoreflect.EnumDescriptor
- func (x Project_State) Enum() *Project_State
- func (Project_State) EnumDescriptor() ([]byte, []int)deprecated
- func (x Project_State) Number() protoreflect.EnumNumber
- func (x Project_State) String() string
- func (Project_State) Type() protoreflect.EnumType
- type ProjectsServiceClient
- type ProjectsServiceServer
- type UnimplementedOrganizationsServiceServer
- type UnimplementedProjectsServiceServer
- func (UnimplementedProjectsServiceServer) CreateProject(context.Context, *CreateProjectRequest) (*Project, error)
- func (UnimplementedProjectsServiceServer) DeleteProject(context.Context, *DeleteProjectRequest) (*emptypb.Empty, error)
- func (UnimplementedProjectsServiceServer) GetProject(context.Context, *GetProjectRequest) (*Project, error)
- func (UnimplementedProjectsServiceServer) ListProjects(context.Context, *ListProjectsRequest) (*ListProjectsResponse, error)
- func (UnimplementedProjectsServiceServer) UpdateProject(context.Context, *UpdateProjectRequest) (*Project, error)
- type UnimplementedUsersServiceServer
- type UnsafeOrganizationsServiceServer
- type UnsafeProjectsServiceServer
- type UnsafeUsersServiceServer
- type UpdateProjectRequest
- func (*UpdateProjectRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateProjectRequest) GetName() string
- func (x *UpdateProjectRequest) GetProject() *Project
- func (*UpdateProjectRequest) ProtoMessage()
- func (x *UpdateProjectRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateProjectRequest) Reset()
- func (x *UpdateProjectRequest) String() string
- type User
- func (*User) Descriptor() ([]byte, []int)deprecated
- func (x *User) GetAvatarUrl() string
- func (x *User) GetCreateTime() *timestamppb.Timestamp
- func (x *User) GetDisplayName() string
- func (x *User) GetName() string
- func (x *User) GetUid() string
- func (x *User) GetUserId() string
- func (*User) ProtoMessage()
- func (x *User) ProtoReflect() protoreflect.Message
- func (x *User) Reset()
- func (x *User) String() string
- type UsersServiceClient
- type UsersServiceServer
Constants ¶
const ( OrganizationsService_GetOrganization_FullMethodName = "/blocky.cloud.resourcemanager.v1alpha.OrganizationsService/GetOrganization" OrganizationsService_ListOrganizationUsers_FullMethodName = "/blocky.cloud.resourcemanager.v1alpha.OrganizationsService/ListOrganizationUsers" )
const ( ProjectsService_CreateProject_FullMethodName = "/blocky.cloud.resourcemanager.v1alpha.ProjectsService/CreateProject" ProjectsService_GetProject_FullMethodName = "/blocky.cloud.resourcemanager.v1alpha.ProjectsService/GetProject" ProjectsService_ListProjects_FullMethodName = "/blocky.cloud.resourcemanager.v1alpha.ProjectsService/ListProjects" ProjectsService_UpdateProject_FullMethodName = "/blocky.cloud.resourcemanager.v1alpha.ProjectsService/UpdateProject" ProjectsService_DeleteProject_FullMethodName = "/blocky.cloud.resourcemanager.v1alpha.ProjectsService/DeleteProject" )
const ( UsersService_Get_FullMethodName = "/blocky.cloud.resourcemanager.v1alpha.UsersService/Get" UsersService_BatchGetUsers_FullMethodName = "/blocky.cloud.resourcemanager.v1alpha.UsersService/BatchGetUsers" )
Variables ¶
var ( Project_State_name = map[int32]string{ 0: "STATE_UNSPECIFIED", 1: "ACTIVE", 2: "DELETE_REQUESTED", } Project_State_value = map[string]int32{ "STATE_UNSPECIFIED": 0, "ACTIVE": 1, "DELETE_REQUESTED": 2, } )
Enum value maps for Project_State.
var ( ListProjectsRequest_Filter_ParentType_name = map[int32]string{ 0: "PARENT_TYPE_UNSPECIFIED", 1: "ORGANIZATION", 2: "USER", } ListProjectsRequest_Filter_ParentType_value = map[string]int32{ "PARENT_TYPE_UNSPECIFIED": 0, "ORGANIZATION": 1, "USER": 2, } )
Enum value maps for ListProjectsRequest_Filter_ParentType.
var File_blocky_cloud_resourcemanager_v1alpha_organizations_proto protoreflect.FileDescriptor
var File_blocky_cloud_resourcemanager_v1alpha_organizations_service_proto protoreflect.FileDescriptor
var File_blocky_cloud_resourcemanager_v1alpha_project_proto protoreflect.FileDescriptor
var File_blocky_cloud_resourcemanager_v1alpha_projects_service_proto protoreflect.FileDescriptor
var File_blocky_cloud_resourcemanager_v1alpha_user_proto protoreflect.FileDescriptor
var File_blocky_cloud_resourcemanager_v1alpha_users_service_proto protoreflect.FileDescriptor
var OrganizationsService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "blocky.cloud.resourcemanager.v1alpha.OrganizationsService", HandlerType: (*OrganizationsServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetOrganization", Handler: _OrganizationsService_GetOrganization_Handler, }, { MethodName: "ListOrganizationUsers", Handler: _OrganizationsService_ListOrganizationUsers_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "blocky/cloud/resourcemanager/v1alpha/organizations_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)
var ProjectsService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "blocky.cloud.resourcemanager.v1alpha.ProjectsService", HandlerType: (*ProjectsServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "CreateProject", Handler: _ProjectsService_CreateProject_Handler, }, { MethodName: "GetProject", Handler: _ProjectsService_GetProject_Handler, }, { MethodName: "ListProjects", Handler: _ProjectsService_ListProjects_Handler, }, { MethodName: "UpdateProject", Handler: _ProjectsService_UpdateProject_Handler, }, { MethodName: "DeleteProject", Handler: _ProjectsService_DeleteProject_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "blocky/cloud/resourcemanager/v1alpha/projects_service.proto", }
ProjectsService_ServiceDesc is the grpc.ServiceDesc for ProjectsService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var UsersService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "blocky.cloud.resourcemanager.v1alpha.UsersService", HandlerType: (*UsersServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Get", Handler: _UsersService_Get_Handler, }, { MethodName: "BatchGetUsers", Handler: _UsersService_BatchGetUsers_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "blocky/cloud/resourcemanager/v1alpha/users_service.proto", }
UsersService_ServiceDesc is the grpc.ServiceDesc for UsersService 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 RegisterProjectsServiceServer ¶
func RegisterProjectsServiceServer(s grpc.ServiceRegistrar, srv ProjectsServiceServer)
func RegisterUsersServiceServer ¶
func RegisterUsersServiceServer(s grpc.ServiceRegistrar, srv UsersServiceServer)
Types ¶
type BatchGetUsersRequest ¶
type BatchGetUsersRequest struct { // Required. The names of the users to retrieve. // A maximum of 1000 users can be retrieved in a batch. Names []string `protobuf:"bytes,1,rep,name=names,proto3" json:"names,omitempty"` // contains filtered or unexported fields }
Request message for `BatchGetUsers` method.
func (*BatchGetUsersRequest) Descriptor
deprecated
func (*BatchGetUsersRequest) Descriptor() ([]byte, []int)
Deprecated: Use BatchGetUsersRequest.ProtoReflect.Descriptor instead.
func (*BatchGetUsersRequest) GetNames ¶
func (x *BatchGetUsersRequest) GetNames() []string
func (*BatchGetUsersRequest) ProtoMessage ¶
func (*BatchGetUsersRequest) ProtoMessage()
func (*BatchGetUsersRequest) ProtoReflect ¶
func (x *BatchGetUsersRequest) ProtoReflect() protoreflect.Message
func (*BatchGetUsersRequest) Reset ¶
func (x *BatchGetUsersRequest) Reset()
func (*BatchGetUsersRequest) String ¶
func (x *BatchGetUsersRequest) String() string
type BatchGetUsersResponse ¶
type BatchGetUsersResponse struct { // The users requested. Users []*User `protobuf:"bytes,1,rep,name=users,proto3" json:"users,omitempty"` // contains filtered or unexported fields }
Response message for `BatchGetUsers` method.
func (*BatchGetUsersResponse) Descriptor
deprecated
func (*BatchGetUsersResponse) Descriptor() ([]byte, []int)
Deprecated: Use BatchGetUsersResponse.ProtoReflect.Descriptor instead.
func (*BatchGetUsersResponse) GetUsers ¶
func (x *BatchGetUsersResponse) GetUsers() []*User
func (*BatchGetUsersResponse) ProtoMessage ¶
func (*BatchGetUsersResponse) ProtoMessage()
func (*BatchGetUsersResponse) ProtoReflect ¶
func (x *BatchGetUsersResponse) ProtoReflect() protoreflect.Message
func (*BatchGetUsersResponse) Reset ¶
func (x *BatchGetUsersResponse) Reset()
func (*BatchGetUsersResponse) String ¶
func (x *BatchGetUsersResponse) String() string
type CreateProjectRequest ¶
type CreateProjectRequest struct { // The name of the parental resource where the project will be created. // It may either be the organization or the user. Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` // The project to create. Project *Project `protobuf:"bytes,2,opt,name=project,proto3" json:"project,omitempty"` // contains filtered or unexported fields }
A request message for CreateProject method.
func (*CreateProjectRequest) Descriptor
deprecated
func (*CreateProjectRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateProjectRequest.ProtoReflect.Descriptor instead.
func (*CreateProjectRequest) GetParent ¶
func (x *CreateProjectRequest) GetParent() string
func (*CreateProjectRequest) GetProject ¶
func (x *CreateProjectRequest) GetProject() *Project
func (*CreateProjectRequest) ProtoMessage ¶
func (*CreateProjectRequest) ProtoMessage()
func (*CreateProjectRequest) ProtoReflect ¶
func (x *CreateProjectRequest) ProtoReflect() protoreflect.Message
func (*CreateProjectRequest) Reset ¶
func (x *CreateProjectRequest) Reset()
func (*CreateProjectRequest) String ¶
func (x *CreateProjectRequest) String() string
type DeleteProjectRequest ¶
type DeleteProjectRequest struct { // The identifier of the project. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
A request message for DeleteProject method.
func (*DeleteProjectRequest) Descriptor
deprecated
func (*DeleteProjectRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteProjectRequest.ProtoReflect.Descriptor instead.
func (*DeleteProjectRequest) GetName ¶
func (x *DeleteProjectRequest) GetName() string
func (*DeleteProjectRequest) ProtoMessage ¶
func (*DeleteProjectRequest) ProtoMessage()
func (*DeleteProjectRequest) ProtoReflect ¶
func (x *DeleteProjectRequest) ProtoReflect() protoreflect.Message
func (*DeleteProjectRequest) Reset ¶
func (x *DeleteProjectRequest) Reset()
func (*DeleteProjectRequest) String ¶
func (x *DeleteProjectRequest) 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 GetProjectRequest ¶
type GetProjectRequest struct { // The identifier of the project. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
A request message for GetProject method.
func (*GetProjectRequest) Descriptor
deprecated
func (*GetProjectRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetProjectRequest.ProtoReflect.Descriptor instead.
func (*GetProjectRequest) GetName ¶
func (x *GetProjectRequest) GetName() string
func (*GetProjectRequest) ProtoMessage ¶
func (*GetProjectRequest) ProtoMessage()
func (*GetProjectRequest) ProtoReflect ¶
func (x *GetProjectRequest) ProtoReflect() protoreflect.Message
func (*GetProjectRequest) Reset ¶
func (x *GetProjectRequest) Reset()
func (*GetProjectRequest) String ¶
func (x *GetProjectRequest) String() string
type GetUserRequest ¶
type GetUserRequest struct { // Required. The name of the user to retrieve. // Must be of the form `users/{user}`. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
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 ListOrganizationsRequest ¶
type ListOrganizationsRequest struct { // The maximum number of organizations to return. // By default, this value is set to 100. PageSize int32 `protobuf:"varint,1,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` // A pagination token returned from a previous call to `ListOrganizations` // that indicates where this listing should continue from. PageToken string `protobuf:"bytes,2,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` // A filter constraining the organizations to return. The filter must be // an organization name, a domain name or an email address that is associated // with the organization. Empty filter returns all organizations. Filter string `protobuf:"bytes,3,opt,name=filter,proto3" json:"filter,omitempty"` // contains filtered or unexported fields }
A request message for ListOrganizations method.
func (*ListOrganizationsRequest) Descriptor
deprecated
func (*ListOrganizationsRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListOrganizationsRequest.ProtoReflect.Descriptor instead.
func (*ListOrganizationsRequest) GetFilter ¶
func (x *ListOrganizationsRequest) GetFilter() string
func (*ListOrganizationsRequest) GetPageSize ¶
func (x *ListOrganizationsRequest) GetPageSize() int32
func (*ListOrganizationsRequest) GetPageToken ¶
func (x *ListOrganizationsRequest) GetPageToken() string
func (*ListOrganizationsRequest) ProtoMessage ¶
func (*ListOrganizationsRequest) ProtoMessage()
func (*ListOrganizationsRequest) ProtoReflect ¶
func (x *ListOrganizationsRequest) ProtoReflect() protoreflect.Message
func (*ListOrganizationsRequest) Reset ¶
func (x *ListOrganizationsRequest) Reset()
func (*ListOrganizationsRequest) String ¶
func (x *ListOrganizationsRequest) String() string
type ListOrganizationsResponse ¶
type ListOrganizationsResponse struct { // The list of organizations that matched the list query, possibly paginated. Organizations []*Organization `protobuf:"bytes,1,rep,name=organizations,proto3" json:"organizations,omitempty"` // A pagination token to be used to retrieve the next page of results. If the // result is too large to fit within the page size specified in the request, // this field will be set with a token that can be used to fetch the next page // of results. If this field is empty, it indicates that this response // contains the last 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 ListOrganizations method.
func (*ListOrganizationsResponse) Descriptor
deprecated
func (*ListOrganizationsResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListOrganizationsResponse.ProtoReflect.Descriptor instead.
func (*ListOrganizationsResponse) GetNextPageToken ¶
func (x *ListOrganizationsResponse) GetNextPageToken() string
func (*ListOrganizationsResponse) GetOrganizations ¶
func (x *ListOrganizationsResponse) GetOrganizations() []*Organization
func (*ListOrganizationsResponse) ProtoMessage ¶
func (*ListOrganizationsResponse) ProtoMessage()
func (*ListOrganizationsResponse) ProtoReflect ¶
func (x *ListOrganizationsResponse) ProtoReflect() protoreflect.Message
func (*ListOrganizationsResponse) Reset ¶
func (x *ListOrganizationsResponse) Reset()
func (*ListOrganizationsResponse) String ¶
func (x *ListOrganizationsResponse) String() string
type ListProjectsRequest ¶
type ListProjectsRequest struct { // A filter for the ListProjects method. Filter *ListProjectsRequest_Filter `protobuf:"bytes,1,opt,name=filter,proto3" json:"filter,omitempty"` // The maximum number of projects 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 `ListProjects` call. // Provide this to retrieve the subsequent page. // // When paginating, all other parameters provided to `ListProjects` 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 ListProjects method.
func (*ListProjectsRequest) Descriptor
deprecated
func (*ListProjectsRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListProjectsRequest.ProtoReflect.Descriptor instead.
func (*ListProjectsRequest) GetFilter ¶
func (x *ListProjectsRequest) GetFilter() *ListProjectsRequest_Filter
func (*ListProjectsRequest) GetPageSize ¶
func (x *ListProjectsRequest) GetPageSize() int32
func (*ListProjectsRequest) GetPageToken ¶
func (x *ListProjectsRequest) GetPageToken() string
func (*ListProjectsRequest) ProtoMessage ¶
func (*ListProjectsRequest) ProtoMessage()
func (*ListProjectsRequest) ProtoReflect ¶
func (x *ListProjectsRequest) ProtoReflect() protoreflect.Message
func (*ListProjectsRequest) Reset ¶
func (x *ListProjectsRequest) Reset()
func (*ListProjectsRequest) String ¶
func (x *ListProjectsRequest) String() string
type ListProjectsRequest_Filter ¶
type ListProjectsRequest_Filter struct { // The parent type of the project. ParentType ListProjectsRequest_Filter_ParentType `` /* 172-byte string literal not displayed */ // The identifier of the parent of the project. Parent string `protobuf:"bytes,2,opt,name=parent,proto3" json:"parent,omitempty"` // contains filtered or unexported fields }
A filter for the ListProjects method.
func (*ListProjectsRequest_Filter) Descriptor
deprecated
func (*ListProjectsRequest_Filter) Descriptor() ([]byte, []int)
Deprecated: Use ListProjectsRequest_Filter.ProtoReflect.Descriptor instead.
func (*ListProjectsRequest_Filter) GetParent ¶
func (x *ListProjectsRequest_Filter) GetParent() string
func (*ListProjectsRequest_Filter) GetParentType ¶
func (x *ListProjectsRequest_Filter) GetParentType() ListProjectsRequest_Filter_ParentType
func (*ListProjectsRequest_Filter) ProtoMessage ¶
func (*ListProjectsRequest_Filter) ProtoMessage()
func (*ListProjectsRequest_Filter) ProtoReflect ¶
func (x *ListProjectsRequest_Filter) ProtoReflect() protoreflect.Message
func (*ListProjectsRequest_Filter) Reset ¶
func (x *ListProjectsRequest_Filter) Reset()
func (*ListProjectsRequest_Filter) String ¶
func (x *ListProjectsRequest_Filter) String() string
type ListProjectsRequest_Filter_ParentType ¶
type ListProjectsRequest_Filter_ParentType int32
The parent type of the project.
const ( // The parent type is unspecified. ListProjectsRequest_Filter_PARENT_TYPE_UNSPECIFIED ListProjectsRequest_Filter_ParentType = 0 // The parent is an organization. ListProjectsRequest_Filter_ORGANIZATION ListProjectsRequest_Filter_ParentType = 1 // The parent is a user. ListProjectsRequest_Filter_USER ListProjectsRequest_Filter_ParentType = 2 )
func (ListProjectsRequest_Filter_ParentType) Descriptor ¶
func (ListProjectsRequest_Filter_ParentType) Descriptor() protoreflect.EnumDescriptor
func (ListProjectsRequest_Filter_ParentType) EnumDescriptor
deprecated
func (ListProjectsRequest_Filter_ParentType) EnumDescriptor() ([]byte, []int)
Deprecated: Use ListProjectsRequest_Filter_ParentType.Descriptor instead.
func (ListProjectsRequest_Filter_ParentType) Number ¶
func (x ListProjectsRequest_Filter_ParentType) Number() protoreflect.EnumNumber
func (ListProjectsRequest_Filter_ParentType) String ¶
func (x ListProjectsRequest_Filter_ParentType) String() string
func (ListProjectsRequest_Filter_ParentType) Type ¶
func (ListProjectsRequest_Filter_ParentType) Type() protoreflect.EnumType
type ListProjectsResponse ¶
type ListProjectsResponse struct { // The projects. Projects []*Project `protobuf:"bytes,1,rep,name=projects,proto3" json:"projects,omitempty"` // A token to retrieve the next page of results. // Pass this value in the `page_token` field in the subsequent call to `ListProjects` 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 ListProjects method.
func (*ListProjectsResponse) Descriptor
deprecated
func (*ListProjectsResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListProjectsResponse.ProtoReflect.Descriptor instead.
func (*ListProjectsResponse) GetNextPageToken ¶
func (x *ListProjectsResponse) GetNextPageToken() string
func (*ListProjectsResponse) GetProjects ¶
func (x *ListProjectsResponse) GetProjects() []*Project
func (*ListProjectsResponse) ProtoMessage ¶
func (*ListProjectsResponse) ProtoMessage()
func (*ListProjectsResponse) ProtoReflect ¶
func (x *ListProjectsResponse) ProtoReflect() protoreflect.Message
func (*ListProjectsResponse) Reset ¶
func (x *ListProjectsResponse) Reset()
func (*ListProjectsResponse) String ¶
func (x *ListProjectsResponse) String() 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 aliases that can be used to refer to the organization. // The full path of the alias is: // 'organizations/{organization_alias}' Aliases []string `protobuf:"bytes,3,rep,name=aliases,proto3" json:"aliases,omitempty"` // The display name of the organization. DisplayName string `protobuf:"bytes,4,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"` // Time when the organization was created. CreateTime *timestamppb.Timestamp `protobuf:"bytes,12,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // The time when the organization was last modified. UpdateTime *timestamppb.Timestamp `protobuf:"bytes,13,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` // The owner of the organization. Owner string `protobuf:"bytes,14,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) GetAliases ¶
func (x *Organization) GetAliases() []string
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/{organization}/users/{user}` 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. User string `protobuf:"bytes,3,opt,name=user,proto3" json:"user,omitempty"` // Time when the 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 the organization user was last modified. UpdateTime *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` // The user's email address. Email string `protobuf:"bytes,14,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,15,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"` // The user's avatar URL. AvatarUrl string `protobuf:"bytes,16,opt,name=avatar_url,json=avatarUrl,proto3" json:"avatar_url,omitempty"` // contains filtered or unexported fields }
OrganizationUser represents a user resource registered for an organization.
func (*OrganizationUser) Descriptor
deprecated
func (*OrganizationUser) Descriptor() ([]byte, []int)
Deprecated: Use OrganizationUser.ProtoReflect.Descriptor instead.
func (*OrganizationUser) GetAvatarUrl ¶
func (x *OrganizationUser) GetAvatarUrl() string
func (*OrganizationUser) GetCreateTime ¶
func (x *OrganizationUser) GetCreateTime() *timestamppb.Timestamp
func (*OrganizationUser) GetDisplayName ¶
func (x *OrganizationUser) GetDisplayName() string
func (*OrganizationUser) GetEmail ¶
func (x *OrganizationUser) GetEmail() string
func (*OrganizationUser) GetName ¶
func (x *OrganizationUser) GetName() string
func (*OrganizationUser) GetUid ¶
func (x *OrganizationUser) GetUid() string
func (*OrganizationUser) GetUpdateTime ¶
func (x *OrganizationUser) GetUpdateTime() *timestamppb.Timestamp
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 { // Gets the organization by the identifier. GetOrganization(ctx context.Context, in *GetOrganizationRequest, opts ...grpc.CallOption) (*Organization, error) // Lists the organizations that are visible to the user and satisfy the // specified filter. ListOrganizationUsers(ctx context.Context, in *ListOrganizationsRequest, opts ...grpc.CallOption) (*ListOrganizationsResponse, 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.
func NewOrganizationsServiceClient ¶
func NewOrganizationsServiceClient(cc grpc.ClientConnInterface) OrganizationsServiceClient
type OrganizationsServiceServer ¶
type OrganizationsServiceServer interface { // Gets the organization by the identifier. GetOrganization(context.Context, *GetOrganizationRequest) (*Organization, error) // Lists the organizations that are visible to the user and satisfy the // specified filter. ListOrganizationUsers(context.Context, *ListOrganizationsRequest) (*ListOrganizationsResponse, error) // contains filtered or unexported methods }
OrganizationsServiceServer is the server API for OrganizationsService service. All implementations must embed UnimplementedOrganizationsServiceServer for forward compatibility
type Project ¶
type Project struct { // Resource name of the Project // The format of the project resource name: // `projects/*` Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // Globally unique server-generated identifier for the key. // It could be used as the project identifier in its resource name. Uid string `protobuf:"bytes,2,opt,name=uid,proto3" json:"uid,omitempty"` // The project's current state. State Project_State `protobuf:"varint,3,opt,name=state,proto3,enum=blocky.cloud.resourcemanager.v1alpha.Project_State" json:"state,omitempty"` // The display name of the project. DisplayName string `protobuf:"bytes,4,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"` // Time when the key was created. CreateTime *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // The time when the project was last modified. UpdateTime *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` // The time when the project was marked for deletion. DeleteTime *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=delete_time,json=deleteTime,proto3" json:"delete_time,omitempty"` // An optional parent resource name of the project. Parent string `protobuf:"bytes,8,opt,name=parent,proto3" json:"parent,omitempty"` // contains filtered or unexported fields }
Project represents a cloud project resource.
func (*Project) Descriptor
deprecated
func (*Project) GetCreateTime ¶
func (x *Project) GetCreateTime() *timestamppb.Timestamp
func (*Project) GetDeleteTime ¶
func (x *Project) GetDeleteTime() *timestamppb.Timestamp
func (*Project) GetDisplayName ¶
func (*Project) GetState ¶
func (x *Project) GetState() Project_State
func (*Project) GetUpdateTime ¶
func (x *Project) GetUpdateTime() *timestamppb.Timestamp
func (*Project) ProtoMessage ¶
func (*Project) ProtoMessage()
func (*Project) ProtoReflect ¶
func (x *Project) ProtoReflect() protoreflect.Message
type ProjectCreatedEvent ¶
type ProjectCreatedEvent struct { // The project that was created. Project *Project `protobuf:"bytes,1,opt,name=project,proto3" json:"project,omitempty"` // contains filtered or unexported fields }
ProjectCreatedEvent is published
func (*ProjectCreatedEvent) Descriptor
deprecated
func (*ProjectCreatedEvent) Descriptor() ([]byte, []int)
Deprecated: Use ProjectCreatedEvent.ProtoReflect.Descriptor instead.
func (*ProjectCreatedEvent) GetProject ¶
func (x *ProjectCreatedEvent) GetProject() *Project
func (*ProjectCreatedEvent) ProtoMessage ¶
func (*ProjectCreatedEvent) ProtoMessage()
func (*ProjectCreatedEvent) ProtoReflect ¶
func (x *ProjectCreatedEvent) ProtoReflect() protoreflect.Message
func (*ProjectCreatedEvent) Reset ¶
func (x *ProjectCreatedEvent) Reset()
func (*ProjectCreatedEvent) String ¶
func (x *ProjectCreatedEvent) String() string
type Project_State ¶
type Project_State int32
The project's lifecycle state.
const ( // The project is in an unspecified state. Project_STATE_UNSPECIFIED Project_State = 0 // The project is active. Project_ACTIVE Project_State = 1 // The project has been marked for deletion by the user // (by invoking DeleteProject) or by the system. Project_DELETE_REQUESTED Project_State = 2 )
func (Project_State) Descriptor ¶
func (Project_State) Descriptor() protoreflect.EnumDescriptor
func (Project_State) Enum ¶
func (x Project_State) Enum() *Project_State
func (Project_State) EnumDescriptor
deprecated
func (Project_State) EnumDescriptor() ([]byte, []int)
Deprecated: Use Project_State.Descriptor instead.
func (Project_State) Number ¶
func (x Project_State) Number() protoreflect.EnumNumber
func (Project_State) String ¶
func (x Project_State) String() string
func (Project_State) Type ¶
func (Project_State) Type() protoreflect.EnumType
type ProjectsServiceClient ¶
type ProjectsServiceClient interface { // Creates a new project. CreateProject(ctx context.Context, in *CreateProjectRequest, opts ...grpc.CallOption) (*Project, error) // Gets the project by the identifier. GetProject(ctx context.Context, in *GetProjectRequest, opts ...grpc.CallOption) (*Project, error) // Lists the projects that user is a member of. // If the user is a member of the organization, the projects of the organization are returned as well. ListProjects(ctx context.Context, in *ListProjectsRequest, opts ...grpc.CallOption) (*ListProjectsResponse, error) // Updates the project. UpdateProject(ctx context.Context, in *UpdateProjectRequest, opts ...grpc.CallOption) (*Project, error) // Deletes the project by the identifier. DeleteProject(ctx context.Context, in *DeleteProjectRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) }
ProjectsServiceClient is the client API for ProjectsService 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 NewProjectsServiceClient ¶
func NewProjectsServiceClient(cc grpc.ClientConnInterface) ProjectsServiceClient
type ProjectsServiceServer ¶
type ProjectsServiceServer interface { // Creates a new project. CreateProject(context.Context, *CreateProjectRequest) (*Project, error) // Gets the project by the identifier. GetProject(context.Context, *GetProjectRequest) (*Project, error) // Lists the projects that user is a member of. // If the user is a member of the organization, the projects of the organization are returned as well. ListProjects(context.Context, *ListProjectsRequest) (*ListProjectsResponse, error) // Updates the project. UpdateProject(context.Context, *UpdateProjectRequest) (*Project, error) // Deletes the project by the identifier. DeleteProject(context.Context, *DeleteProjectRequest) (*emptypb.Empty, error) // contains filtered or unexported methods }
ProjectsServiceServer is the server API for ProjectsService service. All implementations must embed UnimplementedProjectsServiceServer for forward compatibility
type UnimplementedOrganizationsServiceServer ¶
type UnimplementedOrganizationsServiceServer struct { }
UnimplementedOrganizationsServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedOrganizationsServiceServer) GetOrganization ¶
func (UnimplementedOrganizationsServiceServer) GetOrganization(context.Context, *GetOrganizationRequest) (*Organization, error)
func (UnimplementedOrganizationsServiceServer) ListOrganizationUsers ¶
func (UnimplementedOrganizationsServiceServer) ListOrganizationUsers(context.Context, *ListOrganizationsRequest) (*ListOrganizationsResponse, error)
type UnimplementedProjectsServiceServer ¶
type UnimplementedProjectsServiceServer struct { }
UnimplementedProjectsServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedProjectsServiceServer) CreateProject ¶
func (UnimplementedProjectsServiceServer) CreateProject(context.Context, *CreateProjectRequest) (*Project, error)
func (UnimplementedProjectsServiceServer) DeleteProject ¶
func (UnimplementedProjectsServiceServer) DeleteProject(context.Context, *DeleteProjectRequest) (*emptypb.Empty, error)
func (UnimplementedProjectsServiceServer) GetProject ¶
func (UnimplementedProjectsServiceServer) GetProject(context.Context, *GetProjectRequest) (*Project, error)
func (UnimplementedProjectsServiceServer) ListProjects ¶
func (UnimplementedProjectsServiceServer) ListProjects(context.Context, *ListProjectsRequest) (*ListProjectsResponse, error)
func (UnimplementedProjectsServiceServer) UpdateProject ¶
func (UnimplementedProjectsServiceServer) UpdateProject(context.Context, *UpdateProjectRequest) (*Project, error)
type UnimplementedUsersServiceServer ¶
type UnimplementedUsersServiceServer struct { }
UnimplementedUsersServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedUsersServiceServer) BatchGetUsers ¶
func (UnimplementedUsersServiceServer) BatchGetUsers(context.Context, *BatchGetUsersRequest) (*BatchGetUsersResponse, error)
func (UnimplementedUsersServiceServer) Get ¶
func (UnimplementedUsersServiceServer) Get(context.Context, *GetUserRequest) (*User, error)
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 UnsafeProjectsServiceServer ¶
type UnsafeProjectsServiceServer interface {
// contains filtered or unexported methods
}
UnsafeProjectsServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ProjectsServiceServer will result in compilation errors.
type UnsafeUsersServiceServer ¶
type UnsafeUsersServiceServer interface {
// contains filtered or unexported methods
}
UnsafeUsersServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to UsersServiceServer will result in compilation errors.
type UpdateProjectRequest ¶
type UpdateProjectRequest struct { // The resource name of the project to update. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // The project to update. Project *Project `protobuf:"bytes,2,opt,name=project,proto3" json:"project,omitempty"` // contains filtered or unexported fields }
A request message for UpdateProject method.
func (*UpdateProjectRequest) Descriptor
deprecated
func (*UpdateProjectRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateProjectRequest.ProtoReflect.Descriptor instead.
func (*UpdateProjectRequest) GetName ¶
func (x *UpdateProjectRequest) GetName() string
func (*UpdateProjectRequest) GetProject ¶
func (x *UpdateProjectRequest) GetProject() *Project
func (*UpdateProjectRequest) ProtoMessage ¶
func (*UpdateProjectRequest) ProtoMessage()
func (*UpdateProjectRequest) ProtoReflect ¶
func (x *UpdateProjectRequest) ProtoReflect() protoreflect.Message
func (*UpdateProjectRequest) Reset ¶
func (x *UpdateProjectRequest) Reset()
func (*UpdateProjectRequest) String ¶
func (x *UpdateProjectRequest) 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,3,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` // The time when the user was created. CreateTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // The display name of the user. If not provided, some default, generated // name will be used. DisplayName string `protobuf:"bytes,5,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"` // The avatar URL of the user. AvatarUrl string `protobuf:"bytes,6,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) GetAvatarUrl ¶
func (*User) GetCreateTime ¶
func (x *User) GetCreateTime() *timestamppb.Timestamp
func (*User) GetDisplayName ¶
func (*User) ProtoMessage ¶
func (*User) ProtoMessage()
func (*User) ProtoReflect ¶
func (x *User) ProtoReflect() protoreflect.Message
type UsersServiceClient ¶
type UsersServiceClient interface { // Gets the specified user. Get(ctx context.Context, in *GetUserRequest, opts ...grpc.CallOption) (*User, error) // Gets the batch of users specified in the request. BatchGetUsers(ctx context.Context, in *BatchGetUsersRequest, opts ...grpc.CallOption) (*BatchGetUsersResponse, error) }
UsersServiceClient is the client API for UsersService 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 NewUsersServiceClient ¶
func NewUsersServiceClient(cc grpc.ClientConnInterface) UsersServiceClient
type UsersServiceServer ¶
type UsersServiceServer interface { // Gets the specified user. Get(context.Context, *GetUserRequest) (*User, error) // Gets the batch of users specified in the request. BatchGetUsers(context.Context, *BatchGetUsersRequest) (*BatchGetUsersResponse, error) // contains filtered or unexported methods }
UsersServiceServer is the server API for UsersService service. All implementations must embed UnimplementedUsersServiceServer for forward compatibility