-
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.
Co-authored-by: Jérôme Gurhem <[email protected]> Co-authored-by: Dylan Brasseur <[email protected]> Co-authored-by: ngruelaneo <[email protected]>
- Loading branch information
1 parent
45fcbba
commit da9b639
Showing
23 changed files
with
631 additions
and
409 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
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,29 @@ | ||
syntax = "proto3"; | ||
|
||
package armonik.api.grpc.v1.applications; | ||
|
||
option csharp_namespace = "ArmoniK.Api.gRPC.V1.Applications"; | ||
|
||
/** | ||
* Represents every available field in an application. | ||
*/ | ||
enum ApplicationRawEnumField { | ||
APPLICATION_RAW_ENUM_FIELD_UNSPECIFIED = 0; /** Unspecified */ | ||
APPLICATION_RAW_ENUM_FIELD_NAME = 1; /** Application name. */ | ||
APPLICATION_RAW_ENUM_FIELD_VERSION = 2; /** Application version. */ | ||
APPLICATION_RAW_ENUM_FIELD_NAMESPACE = 3; /** Application namespace. */ | ||
APPLICATION_RAW_ENUM_FIELD_SERVICE = 4; /** Application service. */ | ||
} | ||
|
||
/** | ||
* This message is used to wrap the enum in order to facilitate the 'oneOf' generation. | ||
*/ | ||
message ApplicationRawField { | ||
ApplicationRawEnumField field = 1; | ||
} | ||
|
||
message ApplicationField { | ||
oneof field { | ||
ApplicationRawField application_field = 1; | ||
} | ||
} |
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,25 @@ | ||
syntax = "proto3"; | ||
|
||
package armonik.api.grpc.v1.applications; | ||
|
||
import "applications_fields.proto"; | ||
import "filters_common.proto"; | ||
|
||
option csharp_namespace = "ArmoniK.Api.gRPC.V1.Applications"; | ||
|
||
message FilterField { | ||
ApplicationField field = 1; | ||
oneof value_condition { | ||
FilterString filter_string = 2; | ||
} | ||
} | ||
|
||
message FiltersAnd { | ||
repeated FilterField and = 1; | ||
} | ||
|
||
message Filters { | ||
repeated FiltersAnd or = 1; | ||
} | ||
|
||
// TODO: I think that we could add a duration filter. |
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
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,73 @@ | ||
syntax = "proto3"; | ||
|
||
package armonik.api.grpc.v1; | ||
|
||
import "google/protobuf/timestamp.proto"; | ||
|
||
option csharp_namespace = "Armonik.Api.gRPC.V1"; | ||
|
||
enum FilterStringOperator { | ||
FILTER_STRING_OPERATOR_EQUAL = 0; /** Equal */ | ||
FILTER_STRING_OPERATOR_NOT_EQUAL = 1; /** Not equal */ | ||
FILTER_STRING_OPERATOR_CONTAINS = 2; /** Contains */ | ||
FILTER_STRING_OPERATOR_NOT_CONTAINS = 3; /** Not contains */ | ||
FILTER_STRING_OPERATOR_STARTS_WITH = 4; /** Starts with */ | ||
FILTER_STRING_OPERATOR_ENDS_WITH = 5; /** Ends with */ | ||
} | ||
|
||
message FilterString { | ||
string value = 1; | ||
FilterStringOperator operator = 2; | ||
} | ||
|
||
enum FilterNumberOperator { | ||
FILTER_NUMBER_OPERATOR_EQUAL = 0; /** Equal */ | ||
FILTER_NUMBER_OPERATOR_NOT_EQUAL = 1; /** Not equal */ | ||
FILTER_NUMBER_OPERATOR_LESS_THAN = 2; /** Less than */ | ||
FILTER_NUMBER_OPERATOR_LESS_THAN_OR_EQUAL = 3; /** Less than or equal */ | ||
FILTER_NUMBER_OPERATOR_GREATER_THAN_OR_EQUAL = 4; /** Greater than or equal */ | ||
FILTER_NUMBER_OPERATOR_GREATER_THAN = 5; /** Greater than */ | ||
} | ||
|
||
message FilterNumber { | ||
int64 value = 1; | ||
FilterNumberOperator operator = 2; | ||
} | ||
|
||
enum FilterDateOperator { | ||
FILTER_DATE_OPERATOR_EQUAL = 0; /** Equal */ | ||
FILTER_DATE_OPERATOR_NOT_EQUAL = 1; /** Not equal */ | ||
FILTER_DATE_OPERATOR_BEFORE = 2; /** Before */ | ||
FILTER_DATE_OPERATOR_BEFORE_OR_EQUAL = 3; /** Before or equal */ | ||
FILTER_DATE_OPERATOR_AFTER_OR_EQUAL = 4; /** After or equal */ | ||
FILTER_DATE_OPERATOR_AFTER = 5; /** After */ | ||
} | ||
|
||
message FilterDate { | ||
google.protobuf.Timestamp value = 1; | ||
FilterDateOperator operator = 2; | ||
} | ||
|
||
enum FilterArrayOperator { | ||
FILTER_ARRAY_OPERATOR_CONTAINS = 0; /** Contains */ | ||
FILTER_ARRAY_OPERATOR_NOT_CONTAINS = 1; /** Not contains */ | ||
} | ||
|
||
message FilterArray { | ||
string value = 1; | ||
FilterArrayOperator operator = 2; | ||
} | ||
|
||
enum FilterStatusOperator { | ||
FILTER_STATUS_OPERATOR_EQUAL = 0; /** Equal */ | ||
FILTER_STATUS_OPERATOR_NOT_EQUAL = 1; /** Not equal */ | ||
} | ||
|
||
enum FilterBooleanOperator { | ||
FILTER_BOOLEAN_OPERATOR_IS = 0; /** Is */ | ||
} | ||
|
||
message FilterBoolean { | ||
bool value = 1; | ||
FilterBooleanOperator operator = 2; | ||
} |
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
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,31 @@ | ||
syntax = "proto3"; | ||
|
||
package armonik.api.grpc.v1.partitions; | ||
|
||
option csharp_namespace = "Armonik.Api.Grpc.V1.Partitions"; | ||
|
||
/** | ||
* Represents every available field in a partition. | ||
*/ | ||
enum PartitionRawEnumField { | ||
PARTITION_RAW_ENUM_FIELD_UNSPECIFIED = 0; /** Unspecified. */ | ||
PARTITION_RAW_ENUM_FIELD_ID = 1; /** The partition ID. */ | ||
PARTITION_RAW_ENUM_FIELD_PARENT_PARTITION_IDS = 2; /** The parent partition IDs. */ | ||
PARTITION_RAW_ENUM_FIELD_POD_RESERVED = 3; /** Whether the partition is reserved for pods. */ | ||
PARTITION_RAW_ENUM_FIELD_POD_MAX = 4; /** The maximum number of pods that can be used by sessions using the partition. */ | ||
PARTITION_RAW_ENUM_FIELD_PREEMPTION_PERCENTAGE = 5; /** The percentage of the partition that can be preempted. */ | ||
PARTITION_RAW_ENUM_FIELD_PRIORITY = 6; /** The priority of the partition. */ | ||
} | ||
|
||
/** | ||
* This message is used to wrap the enum in order to facilitate the 'oneOf' generation. | ||
*/ | ||
message PartitionRawField { | ||
PartitionRawEnumField field = 1; | ||
} | ||
|
||
message PartitionField { | ||
oneof field { | ||
PartitionRawField partition_raw_field = 1; /** The partition raw field. */ | ||
} | ||
} |
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,28 @@ | ||
syntax = "proto3"; | ||
|
||
package armonik.api.grpc.v1.partitions; | ||
|
||
import "filters_common.proto"; | ||
import "partitions_fields.proto"; | ||
|
||
option csharp_namespace = "Armonik.Api.Grpc.V1.Partitions"; | ||
|
||
message FilterField { | ||
PartitionField field = 1; | ||
oneof value_condition { | ||
FilterString filter_string = 2; | ||
FilterNumber filter_number = 3; | ||
FilterBoolean filter_boolean = 4; | ||
FilterArray filter_array = 5; | ||
} | ||
} | ||
|
||
message FiltersAnd { | ||
repeated FilterField and = 1; | ||
} | ||
|
||
message Filters { | ||
repeated FiltersAnd or = 1; | ||
} | ||
|
||
// TODO: I think that we could add a duration filter. |
Oops, something went wrong.