add Private fields to ReadResource

Private data was previously created during Plan, and sent back to the
provider during Apply. This data also needs to be persisteded accross
Read calls, but rather than rely on core for that we can send the data
to the provider during Read to allow for more flexibilty.
This commit is contained in:
James Bardin 2019-06-03 18:01:34 -04:00
parent e9e718b318
commit e2b2f1bbbc
2 changed files with 373 additions and 297 deletions

File diff suppressed because it is too large Load Diff

View File

@ -219,10 +219,12 @@ message ReadResource {
message Request {
string type_name = 1;
DynamicValue current_state = 2;
bytes private = 3;
}
message Response {
DynamicValue new_state = 1;
repeated Diagnostic diagnostics = 2;
bytes private = 3;
}
}