Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove deprecated streams from IoT #111

Merged
merged 2 commits into from
Feb 26, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 0 additions & 40 deletions iot/grpcapi.proto
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,9 @@ service IoT {
rpc CreateTask (InitialTaskDescription) returns (common.PrimitiveString) {}
rpc GetAllTasks (common.PrimitiveString) returns (TaskDescriptions) {}
rpc GetUncompletedTasks (common.PrimitiveString) returns (TaskDescriptions) {}
rpc SetTaskCompleted (TaskUser) returns (common.Void) {
option deprecated = true;
}
rpc DeleteTask (TaskUser) returns (common.Void) {}
rpc GetUncompletedTasksByHierarchy (common.PrimitiveString) returns (TaskDescriptions) {}
rpc SetTaskStatus (SetTaskStatusInput) returns (common.Void) {}
rpc GetTaskStream (GetTaskStreamInput) returns (stream GetTaskStreamOutput) {
option deprecated = true;
}
rpc GetTasksByStatus (GetTasksByStatusInput) returns (GetTasksByStatusOutput) {}
rpc GetTaskByUUID (GetTaskByUUIDInput) returns (GetTaskByUUIDOutput) {}
rpc GetTaskByLongId (GetTaskByLongIdInput) returns (GetTaskByLongIdOutput) {}
Expand Down Expand Up @@ -115,7 +109,6 @@ enum NodeDataContentType {
SPECTRUM = 2;
TIME_SERIES = 3;
NOTE = 4;
MEDIA = 5 [deprecated=true];
MEDIA_V2 = 7;
QUESTION_ANSWERS = 6;
}
Expand All @@ -128,7 +121,6 @@ message NodeData {
Spectrum spectrum = 4;
TimeSeries time_series = 5;
string note = 6;
bytes media = 7 [deprecated=true];
Media media_v2 = 9;
repeated string question_answers = 8;
string tags = 10;
Expand Down Expand Up @@ -216,18 +208,6 @@ message GetNodeEventLogOutput {
message IngestNodeDataOutput {}


// IngestNodeDataStream messages
message IngestNodeDataStreamInput {
option deprecated = true;
string node_id = 1;
common.Origin origin = 3;
repeated NodeData node_data_list = 2;
}
message IngestNodeDataStreamOutput {
option deprecated = true;
}


// GetNodeData messages
message GetNodeDataInput {
string node_id = 1;
Expand All @@ -249,16 +229,6 @@ message GetLatestNodeDataOutput {
NodeData node_data = 1;
}

// GetNodeDataStream messages
message GetNodeDataStreamInput {
option deprecated = true;
}
message GetNodeDataStreamOutput {
option deprecated = true;
string node_id = 1;
NodeData node_data = 2;
}

// GetMedia messages
message GetMediaInput {
string node_id = 1;
Expand Down Expand Up @@ -287,16 +257,6 @@ message GetMediaOutput {
Media media = 1;
}

message GetTaskStreamInput {
option deprecated = true;
string hierarchy_id = 1;
}

message GetTaskStreamOutput {
option deprecated = true;
TaskDescription task = 1;
}

message GetTasksByStatusInput {
string hierarchy_id = 1;
TaskStatus status = 2;
Expand Down
2 changes: 0 additions & 2 deletions pas/grpcapi.proto
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ message NodeData {
Spectrum spectrum = 4;
TimeSeries time_series = 5;
string note = 6;
bytes media = 7 [deprecated=true];
Media media_v2 = 9;
repeated string question_answers = 8;
}
Expand All @@ -40,7 +39,6 @@ enum NodeDataContentType {
SPECTRUM = 2;
TIME_SERIES = 3;
NOTE = 4;
MEDIA = 5 [deprecated=true];
MEDIA_V2 = 7;
QUESTION_ANSWERS = 6;
}
Expand Down