-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ebd85d6
commit de4a395
Showing
2 changed files
with
43 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
syntax = "proto3"; | ||
|
||
package armonik.api.grpc.v1.partitions; | ||
|
||
option csharp_namespace = "Armonik.Api.Grpc.V1.Partitions"; | ||
|
||
/** | ||
* A raw partition object. | ||
* | ||
* Used when a list or a single partition is returned. | ||
*/ | ||
message PartitionRaw { | ||
string id = 1; /** The partition ID. */ | ||
repeated string parent_partition_ids = 2; /** The parent partition IDs. */ | ||
bool pod_reserved = 3; /** Whether the partition is reserved for pods. */ | ||
int64 pod_max = 4; /** The maximum number of pods that can be used by sessions using the partition. */ | ||
PodConfigucation pod_configuration = 7; /** The pod configuration. */ | ||
|
||
int32 preemption_percentage = 5; /** The percentage of the partition that can be preempted. */ | ||
int32 priority = 6; /** The priority of the partition. */ | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
syntax = "proto3"; | ||
|
||
package armonik.api.grpc.v1.partitions; | ||
|
||
import "partitions_common.proto"; | ||
|
||
option csharp_namespace = "Armonik.Api.Grpc.V1.Partitions"; | ||
|
||
/** | ||
* The PartitionsService provides methods to manage partitions. | ||
*/ | ||
service Partitions { | ||
/** | ||
* Get a partitions list using pagination, filters and sorting. | ||
*/ | ||
rpc ListPartitions(ListPartitionsRequest) returns (ListPartitionsResponse) {} | ||
|
||
/** | ||
* Get a partition. | ||
*/ | ||
rpc GetPartition(GetPartitionRequest) returns (GetPartitionResponse) {} | ||
} |