Skip to content

Commit

Permalink
[RSDK-9632] Add deprecation notice to DiscoverComponents in API Repo (#…
Browse files Browse the repository at this point in the history
…621)

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
  • Loading branch information
randhid and github-actions[bot] authored Jan 24, 2025
1 parent e6bd6ba commit 2bef734
Show file tree
Hide file tree
Showing 3 changed files with 170 additions and 153 deletions.
7 changes: 7 additions & 0 deletions proto/viam/robot/v1/robot.proto
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,10 @@ service RobotService {
}

// DiscoverComponents returns the list of discovered component configurations.
// This API is deprecated
rpc DiscoverComponents(DiscoverComponentsRequest) returns (DiscoverComponentsResponse) {
option (google.api.http) = {get: "/viam/api/v1/discovery/components"};
option deprecated = true;
}

rpc FrameSystemConfig(FrameSystemConfigRequest) returns (FrameSystemConfigResponse) {
Expand Down Expand Up @@ -237,14 +239,17 @@ message GetSessionsResponse {
}

// Discovery
// Discovery is deprecated

message DiscoveryQuery {
option deprecated = true;
string subtype = 1;
string model = 2;
google.protobuf.Struct extra = 99;
}

message Discovery {
option deprecated = true;
DiscoveryQuery query = 1;
google.protobuf.Struct results = 2;
}
Expand All @@ -263,10 +268,12 @@ message GetModelsFromModulesResponse {
}

message DiscoverComponentsRequest {
option deprecated = true;
repeated DiscoveryQuery queries = 1;
}

message DiscoverComponentsResponse {
option deprecated = true;
repeated Discovery discovery = 1;
}

Expand Down
Loading

0 comments on commit 2bef734

Please sign in to comment.