Skip to content

Commit

Permalink
feat: partitions
Browse files Browse the repository at this point in the history
  • Loading branch information
esoubiran-aneo committed Dec 14, 2022
1 parent ebd85d6 commit de4a395
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 0 deletions.
21 changes: 21 additions & 0 deletions Protos/V1/partitions_common.proto
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. */
}
22 changes: 22 additions & 0 deletions Protos/V1/partitions_service.proto
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) {}
}

0 comments on commit de4a395

Please sign in to comment.