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
2 changes: 2 additions & 0 deletions RELEASE_NOTES.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,6 @@

## New Features

- Add the `GetGridpool` RPC to the `PlatformAssets` service.


21 changes: 21 additions & 0 deletions proto/frequenz/api/assets/v1/assets.proto
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ syntax = "proto3";

package frequenz.api.assets.v1;

import "frequenz/api/common/v1alpha8/gridpool/gridpool.proto";
import "frequenz/api/common/v1alpha8/microgrid/electrical_components/electrical_components.proto";
import "frequenz/api/common/v1alpha8/microgrid/microgrid.proto";

Expand All @@ -33,6 +34,9 @@ service PlatformAssets {
rpc ListMicrogridElectricalComponentConnections(
ListMicrogridElectricalComponentConnectionsRequest
) returns (ListMicrogridElectricalComponentConnectionsResponse);

// Returns details of a specific gridpool.
rpc GetGridpool(GetGridpoolRequest) returns (GetGridpoolResponse);
}

// GetMicrogridRequest is the input parameter for fetching details
Expand Down Expand Up @@ -118,3 +122,20 @@ message ListMicrogridElectricalComponentConnectionsResponse {
// Contains the list of connections that match the filtering criteria.
repeated frequenz.api.common.v1alpha8.microgrid.electrical_components.ElectricalComponentConnection connections =2;
}


// GetGridpoolRequest is the input parameter for fetching details
// given a specific gridpool.
message GetGridpoolRequest {
// The unique identifier of the gridpool for which to fetch details.
uint64 gridpool_id = 1;
}

// GetGridpoolResponse is the response for fetching details
// given a specific gridpool.
message GetGridpoolResponse {
// Details of the requested gridpool.
frequenz.api.common.v1alpha8.gridpool.Gridpool gridpool = 1;
// List of microgrids in the gridpool.
repeated frequenz.api.common.v1alpha8.microgrid.Microgrid microgrids = 2;
}
2 changes: 1 addition & 1 deletion submodules/frequenz-api-common
Loading