Skip to content
Open
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
7 changes: 2 additions & 5 deletions RELEASE_NOTES.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,8 @@

## Summary

## Breaking Changes

## Upgrading

- Update the `frequenz-api-common` dependency

## New Features
- Changed list methods to streaming methods to align with the rest of the APIs


28 changes: 14 additions & 14 deletions proto/frequenz/api/assets/v1/assets.proto
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,14 @@ service PlatformAssets {
rpc GetMicrogrid(GetMicrogridRequest) returns (GetMicrogridResponse);

// Returns list of a electrical components for a specific microgrid.
rpc ListMicrogridElectricalComponents(ListMicrogridElectricalComponentsRequest)
returns (ListMicrogridElectricalComponentsResponse);
rpc ReceiveMicrogridElectricalComponentsStream(ReceiveMicrogridElectricalComponentsStreamRequest)
returns (stream ReceiveMicrogridElectricalComponentsStreamResponse);

// Returns a list of the connections between electrical components for a
// specific microgrid.
rpc ListMicrogridElectricalComponentConnections(
ListMicrogridElectricalComponentConnectionsRequest
) returns (ListMicrogridElectricalComponentConnectionsResponse);
rpc ReceiveMicrogridElectricalComponentConnectionsStream(
ReceiveMicrogridElectricalComponentConnectionsStreamRequest
) returns (stream ReceiveMicrogridElectricalComponentConnectionsStreamResponse);
}

// GetMicrogridRequest is the input parameter for fetching details
Expand All @@ -49,8 +49,8 @@ message GetMicrogridResponse {
frequenz.api.common.v1alpha8.microgrid.Microgrid microgrid = 1;
}

// Request parameters for the RPC `ListMicrogridElectricalComponents`.
message ListMicrogridElectricalComponentsRequest {
// Request parameters for the RPC `ReceiveMicrogridElectricalComponentsStream`.
message ReceiveMicrogridElectricalComponentsStreamRequest {
// Mandatory field. The ID of the microgrid for which components
// are to be listed.
uint64 microgrid_id = 1;
Expand All @@ -62,16 +62,16 @@ message ListMicrogridElectricalComponentsRequest {
repeated frequenz.api.common.v1alpha8.microgrid.electrical_components.ElectricalComponentCategory categories = 3;
}

// A message containing a list of electrical components.
message ListMicrogridElectricalComponentsResponse {
// ReceiveMicrogridElectricalComponentsStreamResponse is a message containing a list of electrical components.
message ReceiveMicrogridElectricalComponentsStreamResponse {
// Unique microgrid identifier used in the request.
uint64 microgrid_id = 1;

// List of electrical components matching the filter criteria.
repeated frequenz.api.common.v1alpha8.microgrid.electrical_components.ElectricalComponent components = 2;
}

// ListMicrogridElectricalComponentConnectionsRequest is used for filtering and listing
// ReceiveMicrogridElectricalComponentConnectionsStreamRequest is used for filtering and listing
// the electrical connections between components in a specific microgrid.
// These connections can be used to construct a component graph of the
// microgrid.
Expand All @@ -94,7 +94,7 @@ message ListMicrogridElectricalComponentsResponse {
// destination_component_id. If these fields are left empty, connections with
// any source or destination will be returned.
//
message ListMicrogridElectricalComponentConnectionsRequest {
message ReceiveMicrogridElectricalComponentConnectionsStreamRequest {
// Mandatory field. The ID of the microgrid
// for which connections are to be listed.
uint64 microgrid_id = 1;
Expand All @@ -108,10 +108,10 @@ message ListMicrogridElectricalComponentConnectionsRequest {
repeated uint64 destination_component_ids = 3;
}

// ListMicrogridElectricalComponentConnectionsResponse holds the list of electrical
// ReceiveMicrogridElectricalComponentConnectionsStreamResponse holds the list of electrical
// connections that match the filter criteria specified in the
// ListMicrogridElectricalComponentConnectionsRequest.
message ListMicrogridElectricalComponentConnectionsResponse {
// ReceiveMicrogridElectricalComponentConnectionsStreamRequest.
message ReceiveMicrogridElectricalComponentConnectionsStreamResponse {
// The ID of the microgrid for which connections are returned.
uint64 microgrid_id = 1;

Expand Down
Loading