Skip to content

Commit

Permalink
feat: Remove useless APIs (#818)
Browse files Browse the repository at this point in the history
* feat: Remove useless APIs

Signed-off-by: Ce Gao <[email protected]>

* feat: Remove

Signed-off-by: Ce Gao <[email protected]>

* fix: Fix

Signed-off-by: Ce Gao <[email protected]>
  • Loading branch information
gaocegege authored and k8s-ci-robot committed Sep 26, 2019
1 parent e9c91ed commit d39865b
Show file tree
Hide file tree
Showing 20 changed files with 168 additions and 4,274 deletions.
776 changes: 132 additions & 644 deletions pkg/apis/manager/v1alpha3/api.pb.go

Large diffs are not rendered by default.

746 changes: 12 additions & 734 deletions pkg/apis/manager/v1alpha3/api.pb.gw.go

Large diffs are not rendered by default.

128 changes: 0 additions & 128 deletions pkg/apis/manager/v1alpha3/api.proto
Original file line number Diff line number Diff line change
Expand Up @@ -14,134 +14,6 @@ import "google/api/annotations.proto";
* https://cloud.google.com/service-infrastructure/docs/service-management/reference/rpc/google.api#http
*/
service Manager {
/**
* Register a Experiment to DB.
*/
rpc RegisterExperiment(RegisterExperimentRequest) returns (RegisterExperimentReply){
option (google.api.http) = {
post: "/api/Manager/RegisterExperiment"
body: "experiment"
};
};

/**
* PreCheck to register a Experiment to DB.
*/
rpc PreCheckRegisterExperiment(RegisterExperimentRequest) returns (PreCheckRegisterExperimentReply){
option (google.api.http) = {
post: "/api/Manager/PreCheckRegisterExperiment"
body: "experiment"
};
};


/**
* Delete a Experiment from DB by name.
*/
rpc DeleteExperiment(DeleteExperimentRequest) returns (DeleteExperimentReply){
option (google.api.http) = {
get: "/api/Manager/DeleteExperiment/{experiment_name}"
};
};

/**
* Get a Experiment from DB by name.
*/
rpc GetExperiment(GetExperimentRequest) returns (GetExperimentReply){
option (google.api.http) = {
get: "/api/Manager/GetExperiment/{experiment_name}"
};
};

/**
* Get a summary list of Experiment from DB.
* The summary includes name and condition.
*/
rpc GetExperimentList(GetExperimentListRequest) returns (GetExperimentListReply){
option (google.api.http) = {
get: "/api/Manager/GetExperimentList"
};
};

/**
* Update Status of a experiment.
*/
rpc UpdateExperimentStatus(UpdateExperimentStatusRequest) returns (UpdateExperimentStatusReply){
option (google.api.http) = {
put: "/api/Manager/UpdateExperimentStatus/{experiment_name}",
body: "*"
};
};

/**
* Update AlgorithmExtraSettings.
* The ExtraSetting is created if it does not exist, otherwise it is overwrited.
*/
rpc UpdateAlgorithmExtraSettings(UpdateAlgorithmExtraSettingsRequest) returns (UpdateAlgorithmExtraSettingsReply){
option (google.api.http) = {
put: "/api/Manager/UpdateAlgorithmExtraSettings/{experiment_name}",
body: "*"
};
};

/**
* Get all AlgorithmExtraSettings.
*/
rpc GetAlgorithmExtraSettings(GetAlgorithmExtraSettingsRequest) returns (GetAlgorithmExtraSettingsReply){
option (google.api.http) = {
get: "/api/Manager/GetAlgorithmExtraSettings/{experiment_name}",
};
};


/**
* Register a Trial to DB.
* ID will be filled by manager automatically.
*/
rpc RegisterTrial(RegisterTrialRequest) returns (RegisterTrialReply){
option (google.api.http) = {
post: "/api/Manager/RegisterTrial"
body: "trial"
};
};

/**
* Delete a Trial from DB by ID.
*/
rpc DeleteTrial(DeleteTrialRequest) returns (DeleteTrialReply){
option (google.api.http) = {
get: "/api/Manager/DeleteTrial/{trial_name}"
};
};

/**
* Get a list of Trial from DB by name of a Experiment.
*/
rpc GetTrialList(GetTrialListRequest) returns (GetTrialListReply){
option (google.api.http) = {
get: "/api/Manager/GetTrialList/{experiment_name}"
};
};

/**
* Get a Trial from DB by ID of Trial.
*/
rpc GetTrial(GetTrialRequest) returns (GetTrialReply){
option (google.api.http) = {
get: "/api/Manager/GetTrial/{trial_name}"
};
};

/**
* Update Status of a trial.
*/
rpc UpdateTrialStatus(UpdateTrialStatusRequest) returns (UpdateTrialStatusReply){
option (google.api.http) = {
put: "/api/Manager/UpdateTrialStatus",
body: "*"
};
};

/**
* Report a log of Observations for a Trial.
* The log consists of timestamp and value of metric.
Expand Down
Loading

0 comments on commit d39865b

Please sign in to comment.