30 lines
625 B
Protocol Buffer
30 lines
625 B
Protocol Buffer
syntax = "proto3";
|
|
|
|
package rtx.platform.tenant;
|
|
|
|
service TenantService {
|
|
rpc CreateTenant(CreateTenantRequest) returns (CreateTenantResponse);
|
|
rpc AllocateResources(AllocateResourcesRequest) returns (AllocateResourcesResponse);
|
|
}
|
|
|
|
message CreateTenantRequest {
|
|
string tenant_id = 1;
|
|
string name = 2;
|
|
string isolation_level = 3;
|
|
}
|
|
|
|
message CreateTenantResponse {
|
|
string tenant_id = 1;
|
|
bool success = 2;
|
|
}
|
|
|
|
message AllocateResourcesRequest {
|
|
string tenant_id = 1;
|
|
string region = 2;
|
|
map<string, uint64> resources = 3;
|
|
}
|
|
|
|
message AllocateResourcesResponse {
|
|
string allocation_id = 1;
|
|
bool success = 2;
|
|
} |