Skip to content

Commit

Permalink
Add capabilities field to DataProvider resource type.
Browse files Browse the repository at this point in the history
This includes a corresponding `ReplaceDataProviderCapabilities` method in the `DataProviders` service.
  • Loading branch information
SanjayVas committed Feb 13, 2024
1 parent 87d85e8 commit ec3c567
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -71,4 +71,12 @@ message DataProvider {
// Interval for when data is guaranteed to be available for a `Requisition`.
// If this field is specified, both `start_time` and `end_time` must be set.
google.type.Interval data_availability_interval = 7;

// Capabilities of a `DataProvider`.
message Capabilities {
// Whether the Honest Majority Share Shuffle (HMSS) protocol is supported.
bool honest_majority_share_shuffle_supported = 1;
}
// Capabilities of this `DataProvider`.
Capabilities capabilities = 8;
}
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,10 @@ service DataProviders {
};
option (google.api.method_signature) = "name,data_availability_interval";
}

// Replaces the `capabilities` field in a `DataProvider` resource.
rpc ReplaceDataProviderCapabilities(ReplaceDataProviderCapabilitiesRequest)
returns (DataProvider) {}
}

// Request message for the `ReplaceDataProviderRequiredDuchies` method.
Expand Down Expand Up @@ -83,3 +87,15 @@ message ReplaceDataAvailabilityIntervalRequest {
google.type.Interval data_availability_interval = 2
[(google.api.field_behavior) = REQUIRED];
}

// Request message for `ReplaceDataProviderCapabilities` method.
message ReplaceDataProviderCapabilitiesRequest {
// Resource name.
string name = 1 [
(google.api.resource_reference).type = "halo.wfanet.org/DataProvider",
(google.api.field_behavior) = REQUIRED
];

// New value for `capabilities`.
DataProvider.Capabilities capabilities = 2;
}

0 comments on commit ec3c567

Please sign in to comment.