Add versioning to auth methods and accounts (#249)

This commit is contained in:
Jeff Mitchell authored and GitHub committed 2020-08-11 11:19:29 -04:00
1 parent a7c467bd68
commit 565059ed63
23 files changed
+640 -444

No files matched your search

@@ -41,11 +41,16 @@ message Account {
// Whether the resource is disabled
google.protobuf.BoolValue disabled = 8 [(custom_options.v1.generate_sdk_option) = true];
// The version can be used in subsequent write requests to ensure this resource
// has not changed and to fail the write if it has.
// Output only.
uint32 version = 9;
// The type of this account. Possible values are: "password", "oidc".
string type = 9;
string type = 10;
// The attributes that are applicable for the specific Account type.
google.protobuf.Struct attributes = 10 [(custom_options.v1.generate_sdk_option) = true];
google.protobuf.Struct attributes = 11 [(custom_options.v1.generate_sdk_option) = true];
}
message PasswordAccountAttributes {
@@ -34,11 +34,16 @@ message AuthMethod {
// Output only.
google.protobuf.Timestamp updated_time = 6 [json_name="updated_time"];
// The version can be used in subsequent write requests to ensure this resource
// has not changed and to fail the write if it has.
// Output only.
uint32 version = 7;
// The auth method type. This can be "password" or "oidc".
string type = 7 [(custom_options.v1.generate_sdk_option) = true];
string type = 8 [(custom_options.v1.generate_sdk_option) = true];
// The attributes that are applied for the specific Auth Method type.
google.protobuf.Struct attributes = 8 [(custom_options.v1.generate_sdk_option) = true];
google.protobuf.Struct attributes = 9 [(custom_options.v1.generate_sdk_option) = true];
}
message PasswordAuthMethodAttributes {