Skip to content

Commit

Permalink
Add description to protocol for blocks/resources
Browse files Browse the repository at this point in the history
  • Loading branch information
paultyng committed Jan 17, 2020
1 parent 9b0bdee commit 2dba279
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions docs/plugin-protocol/tfplugin5.2.proto
Original file line number Diff line number Diff line change
Expand Up @@ -70,12 +70,20 @@ message RawState {
map<string, string> flatmap = 2;
}

enum StringKind {
PLAIN = 0;
MARKDOWN = 1;
}

// Schema is the configuration schema for a Resource, Provider, or Provisioner.
message Schema {
message Block {
int64 version = 1;
repeated Attribute attributes = 2;
repeated NestedBlock block_types = 3;
string description = 4;
StringKind description_kind = 5;
bool deprecated = 6;
}

message Attribute {
Expand All @@ -86,6 +94,8 @@ message Schema {
bool optional = 5;
bool computed = 6;
bool sensitive = 7;
StringKind description_kind = 8;
bool deprecated = 8;
}

message NestedBlock {
Expand Down

0 comments on commit 2dba279

Please sign in to comment.