Skip to content

Commit c7984da

Browse files
committed
Require microgrid_id for all requests
Signed-off-by: Mathias L. Baumann <[email protected]>
1 parent 0246a54 commit c7984da

File tree

1 file changed

+14
-5
lines changed

1 file changed

+14
-5
lines changed

proto/frequenz/api/dispatch/v1/dispatch.proto

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -394,24 +394,33 @@ message DispatchUpdateRequest {
394394
RecurrenceRuleUpdate recurrence = 8;
395395
}
396396

397+
// ID of the microgrid
398+
uint64 microgrid_id = 1;
399+
397400
// The dispatch identifier
398-
uint64 id = 1;
401+
uint64 id = 2;
399402

400403
// Field mask specifying which fields should be updated
401-
google.protobuf.FieldMask update_mask = 2;
404+
google.protobuf.FieldMask update_mask = 3;
402405

403406
// The updated dispatch attributes
404-
DispatchUpdate update = 3;
407+
DispatchUpdate update = 4;
405408
}
406409

407410
// Message to get a single dispatch by its ID
408411
message DispatchGetRequest {
412+
// The microgrid ID that the dispatch belongs to
413+
uint64 microgrid_id = 1;
414+
409415
// The dispatch identifier
410-
uint64 id = 1;
416+
uint64 id = 2;
411417
}
412418

413419
// Message to delete a single dispatch by its ID
414420
message DispatchDeleteRequest {
421+
// The microgrid ID that the dispatch belongs to
422+
uint64 microgrid_id = 1;
423+
415424
// The dispatch identifier
416-
uint64 id = 1;
425+
uint64 id = 2;
417426
}

0 commit comments

Comments
 (0)