Skip to content

Commit 83c140f

Browse files
committed
feat(assets): add GetGridpool RPC and associated request/response messages
- Introduced GetGridpool RPC to fetch details of a specific gridpool. - Added GetGridpoolRequest and GetGridpoolResponse messages for handling the request and response data. - Updated proto imports to include gridpool definitions. Signed-off-by: Richard Sandoval <rsandovaldev@gmail.com>
1 parent 9cf188e commit 83c140f

3 files changed

Lines changed: 24 additions & 1 deletion

File tree

RELEASE_NOTES.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,6 @@
99

1010
## New Features
1111

12+
- Add the `GetGridpool` RPC to the `PlatformAssets` service.
13+
1214

proto/frequenz/api/assets/v1/assets.proto

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ syntax = "proto3";
1414

1515
package frequenz.api.assets.v1;
1616

17+
import "frequenz/api/common/v1alpha8/gridpool/gridpool.proto";
1718
import "frequenz/api/common/v1alpha8/microgrid/electrical_components/electrical_components.proto";
1819
import "frequenz/api/common/v1alpha8/microgrid/microgrid.proto";
1920

@@ -33,6 +34,9 @@ service PlatformAssets {
3334
rpc ListMicrogridElectricalComponentConnections(
3435
ListMicrogridElectricalComponentConnectionsRequest
3536
) returns (ListMicrogridElectricalComponentConnectionsResponse);
37+
38+
// Returns details of a specific gridpool.
39+
rpc GetGridpool(GetGridpoolRequest) returns (GetGridpoolResponse);
3640
}
3741

3842
// GetMicrogridRequest is the input parameter for fetching details
@@ -118,3 +122,20 @@ message ListMicrogridElectricalComponentConnectionsResponse {
118122
// Contains the list of connections that match the filtering criteria.
119123
repeated frequenz.api.common.v1alpha8.microgrid.electrical_components.ElectricalComponentConnection connections =2;
120124
}
125+
126+
127+
// GetGridpoolRequest is the input parameter for fetching details
128+
// given a specific gridpool.
129+
message GetGridpoolRequest {
130+
// The unique identifier of the gridpool for which to fetch details.
131+
uint64 gridpool_id = 1;
132+
}
133+
134+
// GetGridpoolResponse is the response for fetching details
135+
// given a specific gridpool.
136+
message GetGridpoolResponse {
137+
// Details of the requested gridpool.
138+
frequenz.api.common.v1alpha8.gridpool.Gridpool gridpool = 1;
139+
// List of microgrids in the gridpool.
140+
repeated frequenz.api.common.v1alpha8.microgrid.Microgrid microgrids = 2;
141+
}

submodules/frequenz-api-common

0 commit comments

Comments
 (0)