Remove disabled property and sync up field ordering and numbering (#259)

This commit is contained in:
Jeff Mitchell authored and GitHub committed 2020-08-12 13:00:49 -04:00
1 parent 012967e91b
commit c195c4bc9b
44 files changed
+742 -1056

No files matched your search

@@ -14,48 +14,45 @@ import "controller/custom_options/v1/options.proto";
message Account {
// The ID of the Account
// Output only.
string id = 1;
string id = 10;
// Scope information for this resource
// Output only.
resources.scopes.v1.ScopeInfo scope = 2;
// The auth method this account is created for.
// Output only.
string auth_method_id = 3 [json_name="auth_method_id"];
resources.scopes.v1.ScopeInfo scope = 20;
// Optional name for identification purposes
google.protobuf.StringValue name = 4 [(custom_options.v1.generate_sdk_option) = true, (custom_options.v1.mask_mapping) = {this:"name" that: "name"}];
google.protobuf.StringValue name = 30 [(custom_options.v1.generate_sdk_option) = true, (custom_options.v1.mask_mapping) = {this:"name" that: "name"}];
// Optional user-set descripton for identification purposes
google.protobuf.StringValue description = 5 [(custom_options.v1.generate_sdk_option) = true, (custom_options.v1.mask_mapping) = {this:"description" that: "description"}];
google.protobuf.StringValue description = 40 [(custom_options.v1.generate_sdk_option) = true, (custom_options.v1.mask_mapping) = {this:"description" that: "description"}];
// The time this resource was created
// Output only.
google.protobuf.Timestamp created_time = 6 [json_name="created_time"];
google.protobuf.Timestamp created_time = 50 [json_name="created_time"];
// The time this resource was last updated.
// Output only.
google.protobuf.Timestamp updated_time = 7 [json_name="updated_time"];
// Whether the resource is disabled
google.protobuf.BoolValue disabled = 8 [(custom_options.v1.generate_sdk_option) = true];
google.protobuf.Timestamp updated_time = 60 [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 = 9;
uint32 version = 70;
// The type of this account. Possible values are: "password", "oidc".
string type = 10;
string type = 80;
// The auth method this account is created for.
// Output only.
string auth_method_id = 90 [json_name="auth_method_id"];
// The attributes that are applicable for the specific Account type.
google.protobuf.Struct attributes = 11 [(custom_options.v1.generate_sdk_option) = true];
google.protobuf.Struct attributes = 100 [(custom_options.v1.generate_sdk_option) = true];
}
message PasswordAccountAttributes {
// The login name of this account. This is unique per auth method.
string login_name = 1 [(custom_options.v1.generate_sdk_option) = true];
string login_name = 10 [(custom_options.v1.generate_sdk_option) = true];
// The password for this account.
google.protobuf.StringValue password = 2 [(custom_options.v1.generate_sdk_option) = true];
google.protobuf.StringValue password = 20 [(custom_options.v1.generate_sdk_option) = true];
}
@@ -12,54 +12,51 @@ import "controller/custom_options/v1/options.proto";
message Member {
// The ID of the member.
// Output only.
string id = 1;
string id = 10;
// The type of the member.
// Output only.
string type = 2;
string type = 20;
// The scope ID of the member.
// Output only.
string scope_id = 3 [json_name="scope_id"];
string scope_id = 30 [json_name="scope_id"];
}
// Group contains all fields related to a Group resource
message Group {
// The ID of the Project
// Output only.
string id = 1;
string id = 10;
// Scope information for this resource
// Output only.
resources.scopes.v1.ScopeInfo scope = 2;
resources.scopes.v1.ScopeInfo scope = 20;
// Optional name for identification purposes
google.protobuf.StringValue name = 3 [(custom_options.v1.generate_sdk_option) = true, (custom_options.v1.mask_mapping) = {this:"name" that: "name"}];
google.protobuf.StringValue name = 30 [(custom_options.v1.generate_sdk_option) = true, (custom_options.v1.mask_mapping) = {this:"name" that: "name"}];
// Optional user-set descripton for identification purposes
google.protobuf.StringValue description = 4 [(custom_options.v1.generate_sdk_option) = true, (custom_options.v1.mask_mapping) = {this:"description" that: "description"}];
google.protobuf.StringValue description = 40 [(custom_options.v1.generate_sdk_option) = true, (custom_options.v1.mask_mapping) = {this:"description" that: "description"}];
// The time this resource was created
// Output only.
google.protobuf.Timestamp created_time = 5 [json_name="created_time"];
google.protobuf.Timestamp created_time = 50 [json_name="created_time"];
// The time this resource was last updated.
// Output only.
google.protobuf.Timestamp updated_time = 6 [json_name="updated_time"];
// Whether the resource is disabled
google.protobuf.BoolValue disabled = 7 [(custom_options.v1.generate_sdk_option) = true];
google.protobuf.Timestamp updated_time = 60 [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 = 8;
uint32 version = 70;
// Contains the list of member ids in this group.
// Output only.
repeated string member_ids = 9;
repeated string member_ids = 80;
// The members of this group.
// Output only.
repeated Member members = 10;
repeated Member members = 90;
}
@@ -13,37 +13,34 @@ import "controller/custom_options/v1/options.proto";
message Host {
// The ID of the host
// Output only.
string id = 1;
string id = 10;
// Scope information for this resource
// Output only.
resources.scopes.v1.ScopeInfo scope = 2;
// The type of the resource, to help differentiate schemas
google.protobuf.StringValue type = 3;
resources.scopes.v1.ScopeInfo scope = 20;
// Optional name for identification purposes
google.protobuf.StringValue name = 4 [(custom_options.v1.generate_sdk_option) = true];
google.protobuf.StringValue name = 30 [(custom_options.v1.generate_sdk_option) = true, (custom_options.v1.mask_mapping) = {this:"name" that: "name"}];
// Optional user-set description for identification purposes
google.protobuf.StringValue description = 5 [(custom_options.v1.generate_sdk_option) = true];
google.protobuf.StringValue description = 40 [(custom_options.v1.generate_sdk_option) = true, (custom_options.v1.mask_mapping) = {this:"description" that: "description"}];
// The time this resource was created
// Output only.
google.protobuf.Timestamp created_time = 6 [json_name="created_time"];
google.protobuf.Timestamp created_time = 50 [json_name="created_time"];
// The time this resource was last updated
// Output only.
google.protobuf.Timestamp updated_time = 7 [json_name="updated_time"];
// Whether the host is disabled
google.protobuf.BoolValue disabled = 8 [(custom_options.v1.generate_sdk_option) = true];
google.protobuf.Timestamp updated_time = 60 [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 = 9;
uint32 version = 70;
// The type of the resource, to help differentiate schemas
google.protobuf.StringValue type = 80;
// The address (DNS or IP name) used to reach the host
google.protobuf.StringValue address = 10 [(custom_options.v1.generate_sdk_option) = true];
google.protobuf.StringValue address = 90 [(custom_options.v1.generate_sdk_option) = true];
}
@@ -14,39 +14,36 @@ import "controller/custom_options/v1/options.proto";
message HostCatalog {
// The ID of the host
// Output only.
string id = 1;
string id = 10;
// Scope information for this resource
// Output only.
resources.scopes.v1.ScopeInfo scope = 2;
// The type of the resource, to help differentiate schemas
google.protobuf.StringValue type = 3 [(custom_options.v1.generate_sdk_option) = true];
resources.scopes.v1.ScopeInfo scope = 20;
// Optional name for identification purposes
google.protobuf.StringValue name = 4 [(custom_options.v1.generate_sdk_option) = true, (custom_options.v1.mask_mapping) = {this:"name" that: "name"}];
google.protobuf.StringValue name = 30 [(custom_options.v1.generate_sdk_option) = true, (custom_options.v1.mask_mapping) = {this:"name" that: "name"}];
// Optional user-set description for identification purposes
google.protobuf.StringValue description = 5 [(custom_options.v1.generate_sdk_option) = true, (custom_options.v1.mask_mapping) = {this:"description" that: "description"}];
google.protobuf.StringValue description = 40 [(custom_options.v1.generate_sdk_option) = true, (custom_options.v1.mask_mapping) = {this:"description" that: "description"}];
// The time this resource was created
// Output only.
google.protobuf.Timestamp created_time = 6 [json_name="created_time"];
google.protobuf.Timestamp created_time = 50 [json_name="created_time"];
// The time this resource was last updated
// Output only.
google.protobuf.Timestamp updated_time = 7 [json_name="updated_time"];
// Whether the catalog is disabled
google.protobuf.BoolValue disabled = 8 [(custom_options.v1.generate_sdk_option) = true];
google.protobuf.Timestamp updated_time = 60 [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 = 9;
uint32 version = 70;
// The type of the resource, to help differentiate schemas
google.protobuf.StringValue type = 80 [(custom_options.v1.generate_sdk_option) = true];
// Attributes specific to the catalog type
google.protobuf.Struct attributes = 10 [(custom_options.v1.generate_sdk_option) = true];
google.protobuf.Struct attributes = 90 [(custom_options.v1.generate_sdk_option) = true];
}
message StaticHostCatalogDetails {
@@ -55,13 +52,13 @@ message StaticHostCatalogDetails {
message AwsEc2HostCatalogDetails {
// The AWS regions from which this catalog will retrieve the EC2 instances.
repeated string regions = 1;
repeated string regions = 10;
// The access key used for authenticating with AWS when retrieving EC2 instance details.
google.protobuf.StringValue access_key = 2 [json_name="access_key"];
google.protobuf.StringValue access_key = 20 [json_name="access_key"];
// Input only.
google.protobuf.StringValue secret_key = 3 [json_name="secret_key"];
google.protobuf.StringValue secret_key = 30 [json_name="secret_key"];
// This value will never be returned in a response.
google.protobuf.BoolValue rotate = 4;
google.protobuf.BoolValue rotate = 40;
}
@@ -14,44 +14,41 @@ import "controller/custom_options/v1/options.proto";
message HostSet {
// The ID of the host
// Output only.
string id = 1;
string id = 10;
// Scope information for this resource
// Output only.
resources.scopes.v1.ScopeInfo scope = 2;
// The type of the resource, to help differentiate schemas
google.protobuf.StringValue type = 3 [(custom_options.v1.generate_sdk_option) = true];
resources.scopes.v1.ScopeInfo scope = 20;
// Optional name for identification purposes
google.protobuf.StringValue name = 4 [(custom_options.v1.generate_sdk_option) = true];
google.protobuf.StringValue name = 30 [(custom_options.v1.generate_sdk_option) = true, (custom_options.v1.mask_mapping) = {this:"name" that: "name"}];
// Optional user-set description for identification purposes
google.protobuf.StringValue description = 5 [(custom_options.v1.generate_sdk_option) = true];
google.protobuf.StringValue description = 40 [(custom_options.v1.generate_sdk_option) = true, (custom_options.v1.mask_mapping) = {this:"description" that: "description"}];
// The time this resource was created
// Output only.
google.protobuf.Timestamp created_time = 6 [json_name="created_time"];
google.protobuf.Timestamp created_time = 50 [json_name="created_time"];
// The time this resource was last updated
// Output only.
google.protobuf.Timestamp updated_time = 7 [json_name="updated_time"];
// Whether the host set is disabled
google.protobuf.BoolValue disabled = 8 [(custom_options.v1.generate_sdk_option) = true];
google.protobuf.Timestamp updated_time = 60 [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 = 9;
uint32 version = 70;
// The type of the resource, to help differentiate schemas
google.protobuf.StringValue type = 80 [(custom_options.v1.generate_sdk_option) = true];
// The total count of hosts in this host set
// Output only.
uint32 size = 10;
uint32 size = 90;
// A list of hosts in this host set
// TODO: Figure out if this should be in the basic HostSet view and what
// view to use on the Hosts.
// Output only.
repeated Host hosts = 11;
repeated Host hosts = 100;
}
@@ -55,54 +55,51 @@ message Grant {
message Role {
// The ID of the Role
// Output only.
string id = 1;
string id = 10;
// Scope information for this resource
// Output only.
resources.scopes.v1.ScopeInfo scope = 2;
resources.scopes.v1.ScopeInfo scope = 20;
// Optional name for identification purposes
google.protobuf.StringValue name = 3 [(custom_options.v1.generate_sdk_option) = true, (custom_options.v1.mask_mapping) = {this:"name" that: "name"}];
google.protobuf.StringValue name = 30 [(custom_options.v1.generate_sdk_option) = true, (custom_options.v1.mask_mapping) = {this:"name" that: "name"}];
// Optional user-set description for identification purposes
google.protobuf.StringValue description = 4 [(custom_options.v1.generate_sdk_option) = true, (custom_options.v1.mask_mapping) = {this:"description" that: "description"}];
google.protobuf.StringValue description = 40 [(custom_options.v1.generate_sdk_option) = true, (custom_options.v1.mask_mapping) = {this:"description" that: "description"}];
// The time this resource was created
// Output only.
google.protobuf.Timestamp created_time = 5 [json_name="created_time"];
google.protobuf.Timestamp created_time = 50 [json_name="created_time"];
// The time this resource was last updated.
// Output only.
google.protobuf.Timestamp updated_time = 6 [json_name="updated_time"];
google.protobuf.Timestamp updated_time = 60 [json_name="updated_time"];
// Whether the resource is disabled
google.protobuf.BoolValue disabled = 7 [(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 = 70;
// The scope the grants will apply to. If the role is at the global scope,
// this can be an org or project. If the role is at an org
// scope, this can be a project within the org. It is invalid for
// this to be anything other than the role's scope when the role's scope is
// a project.
google.protobuf.StringValue grant_scope_id = 8 [json_name="grant_scope_id", (custom_options.v1.generate_sdk_option) = true, (custom_options.v1.mask_mapping) = {this:"grant_scope_id" that: "GrantScopeId"}];
// 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;
google.protobuf.StringValue grant_scope_id = 80 [json_name="grant_scope_id", (custom_options.v1.generate_sdk_option) = true, (custom_options.v1.mask_mapping) = {this:"grant_scope_id" that: "GrantScopeId"}];
// The IDs (only) of principals that are assigned to this role.
// Output only.
repeated string principal_ids = 10 [json_name="principal_ids"];
repeated string principal_ids = 90 [json_name="principal_ids"];
// The principals that are assigned to this role.
// Output only.
repeated Principal principals = 11;
repeated Principal principals = 100;
// The grants that this role provides for its principals.
// Output only.
repeated string grant_strings = 12 [json_name="grant_strings"];
repeated string grant_strings = 110[json_name="grant_strings"];
// The parsed grant information.
// Output only.
repeated Grant grants = 13;
repeated Grant grants = 120;
}
@@ -34,31 +34,28 @@ message ScopeInfo {
message Scope {
// The ID of the Scope
// Output only.
string id = 1;
string id = 10;
// Scope information for this resource
// Output only.
ScopeInfo scope = 2;
ScopeInfo scope = 20;
// Optional name for identification purposes
google.protobuf.StringValue name = 3 [(custom_options.v1.generate_sdk_option) = true, (custom_options.v1.mask_mapping) = {this: "name" that: "name"}];
google.protobuf.StringValue name = 30 [(custom_options.v1.generate_sdk_option) = true, (custom_options.v1.mask_mapping) = {this: "name" that: "name"}];
// Optional user-set descripton for identification purposes
google.protobuf.StringValue description = 4 [(custom_options.v1.generate_sdk_option) = true, (custom_options.v1.mask_mapping) = {this: "description" that: "description"}];
google.protobuf.StringValue description = 40 [(custom_options.v1.generate_sdk_option) = true, (custom_options.v1.mask_mapping) = {this: "description" that: "description"}];
// The time this resource was created
// Output only.
google.protobuf.Timestamp created_time = 5 [json_name="created_time"];
google.protobuf.Timestamp created_time = 50 [json_name="created_time"];
// The time this resource was last updated.
// Output only.
google.protobuf.Timestamp updated_time = 6 [json_name="updated_time"];
// Whether the resource is disabled
google.protobuf.BoolValue disabled = 7 [(custom_options.v1.generate_sdk_option) = true];
google.protobuf.Timestamp updated_time = 60 [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 = 8;
uint32 version = 70;
}
@@ -13,31 +13,28 @@ import "controller/custom_options/v1/options.proto";
message User {
// The ID of the Project
// Output only.
string id = 1;
string id = 10;
// Scope information for this resource
// Output only.
resources.scopes.v1.ScopeInfo scope = 2;
resources.scopes.v1.ScopeInfo scope = 20;
// Optional name for identification purposes
google.protobuf.StringValue name = 3 [(custom_options.v1.generate_sdk_option) = true, (custom_options.v1.mask_mapping) = {this:"name" that: "name"}];
google.protobuf.StringValue name = 30 [(custom_options.v1.generate_sdk_option) = true, (custom_options.v1.mask_mapping) = {this:"name" that: "name"}];
// Optional user-set descripton for identification purposes
google.protobuf.StringValue description = 4 [(custom_options.v1.generate_sdk_option) = true, (custom_options.v1.mask_mapping) = {this:"description" that: "description"}];
google.protobuf.StringValue description = 40 [(custom_options.v1.generate_sdk_option) = true, (custom_options.v1.mask_mapping) = {this:"description" that: "description"}];
// The time this resource was created
// Output only.
google.protobuf.Timestamp created_time = 5 [json_name="created_time"];
google.protobuf.Timestamp created_time = 50 [json_name="created_time"];
// The time this resource was last updated.
// Output only.
google.protobuf.Timestamp updated_time = 6 [json_name="updated_time"];
// Whether the resource is disabled
google.protobuf.BoolValue disabled = 7 [(custom_options.v1.generate_sdk_option) = true];
google.protobuf.Timestamp updated_time = 60 [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 = 8;
uint32 version = 70;
}