Pathing updated to support new and old styles (#323)
This commit is contained in:
1 parent
2a98432143
commit
37e56ab46b
85 files changed
+11689
-4462
No files matched your search
@@ -14,41 +14,44 @@ import "controller/custom_options/v1/options.proto";
|
||||
message AuthMethod {
|
||||
// The ID of the AuthMethod
|
||||
// Output only.
|
||||
string id = 1;
|
||||
string id = 10;
|
||||
|
||||
// The id of the scope this resource is a part of
|
||||
string scope_id = 20 [json_name="scope_id"];
|
||||
|
||||
// Scope information for this resource
|
||||
// Output only.
|
||||
resources.scopes.v1.ScopeInfo scope = 2;
|
||||
resources.scopes.v1.ScopeInfo scope = 30;
|
||||
|
||||
// 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 = 40 [(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 = 50 [(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 = 60 [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 = 70 [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.
|
||||
uint32 version = 7;
|
||||
uint32 version = 80;
|
||||
|
||||
// The auth method type. This can be "password" or "oidc".
|
||||
string type = 8;
|
||||
string type = 90;
|
||||
|
||||
// The attributes that are applied for the specific Auth Method type.
|
||||
google.protobuf.Struct attributes = 9 [(custom_options.v1.generate_sdk_option) = true];
|
||||
google.protobuf.Struct attributes = 100 [(custom_options.v1.generate_sdk_option) = true];
|
||||
}
|
||||
|
||||
message PasswordAuthMethodAttributes {
|
||||
// The minimum length allowed for user names for accounts in this auth method.
|
||||
uint32 min_login_name_length = 1 [(custom_options.v1.generate_sdk_option) = true, (custom_options.v1.mask_mapping) = {this:"attributes.min_login_name_length" that: "MinLoginNameLength"}];
|
||||
uint32 min_login_name_length = 10 [(custom_options.v1.generate_sdk_option) = true, (custom_options.v1.mask_mapping) = {this:"attributes.min_login_name_length" that: "MinLoginNameLength"}];
|
||||
|
||||
// The minimum length allowed for passwords for accounts in this auth method.
|
||||
uint32 min_password_length = 2 [(custom_options.v1.generate_sdk_option) = true, (custom_options.v1.mask_mapping) = {this:"attributes.min_password_length" that: "MinPasswordLength"}];
|
||||
uint32 min_password_length = 20 [(custom_options.v1.generate_sdk_option) = true, (custom_options.v1.mask_mapping) = {this:"attributes.min_password_length" that: "MinPasswordLength"}];
|
||||
}
|
||||
@@ -12,39 +12,42 @@ import "controller/api/resources/scopes/v1/scope.proto";
|
||||
message AuthToken {
|
||||
// The ID of the AuthToken
|
||||
// Output only.
|
||||
string id = 1;
|
||||
string id = 10;
|
||||
|
||||
// The scope this auth token is in.
|
||||
string scope_id = 20 [json_name="scope_id"];
|
||||
|
||||
// Scope information for this resource
|
||||
// Output only.
|
||||
resources.scopes.v1.ScopeInfo scope = 2;
|
||||
resources.scopes.v1.ScopeInfo scope = 30;
|
||||
|
||||
// The token value, which will only be populated after authentication and is
|
||||
// only ever visible to the end user whose login request resulted in this
|
||||
// auth token being created.
|
||||
// Output only.
|
||||
string token = 3;
|
||||
string token = 40;
|
||||
|
||||
// The id of the user of this AuthToken.
|
||||
// Output only.
|
||||
string user_id = 4 [json_name="user_id"];
|
||||
string user_id = 50 [json_name="user_id"];
|
||||
|
||||
// The id of the user of this AuthToken.
|
||||
// Output only.
|
||||
string auth_method_id = 5 [json_name="auth_method_id"];
|
||||
string auth_method_id = 60 [json_name="auth_method_id"];
|
||||
|
||||
// The time this resource was created
|
||||
// Output only.
|
||||
google.protobuf.Timestamp created_time = 6 [json_name="created_time"];
|
||||
google.protobuf.Timestamp created_time = 70 [json_name="created_time"];
|
||||
|
||||
// The time this resource was last updated.
|
||||
// Output only.
|
||||
google.protobuf.Timestamp updated_time = 7 [json_name="updated_time"];
|
||||
google.protobuf.Timestamp updated_time = 80 [json_name="updated_time"];
|
||||
|
||||
// The approximate time this AuthToken was last used.
|
||||
// Output only.
|
||||
google.protobuf.Timestamp approximate_last_used_time = 8 [json_name = "approximate_last_used_time"];
|
||||
google.protobuf.Timestamp approximate_last_used_time = 90 [json_name = "approximate_last_used_time"];
|
||||
|
||||
// The time this AuthToken expires.
|
||||
// Output only.
|
||||
google.protobuf.Timestamp expiration_time = 9 [json_name="expiration_time"];
|
||||
google.protobuf.Timestamp expiration_time = 100 [json_name="expiration_time"];
|
||||
}
|
||||
@@ -25,33 +25,36 @@ message Group {
|
||||
// Output only.
|
||||
string id = 10;
|
||||
|
||||
// The id of the scope this resource is a part of.
|
||||
string scope_id = 20 [json_name="scope_id"];
|
||||
|
||||
// Scope information for this resource
|
||||
// Output only.
|
||||
resources.scopes.v1.ScopeInfo scope = 20;
|
||||
resources.scopes.v1.ScopeInfo scope = 30;
|
||||
|
||||
// Optional name for identification purposes
|
||||
google.protobuf.StringValue name = 30 [(custom_options.v1.generate_sdk_option) = true, (custom_options.v1.mask_mapping) = {this:"name" that: "name"}];
|
||||
google.protobuf.StringValue name = 40 [(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 = 40 [(custom_options.v1.generate_sdk_option) = true, (custom_options.v1.mask_mapping) = {this:"description" that: "description"}];
|
||||
google.protobuf.StringValue description = 50 [(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 = 50 [json_name="created_time"];
|
||||
google.protobuf.Timestamp created_time = 60 [json_name="created_time"];
|
||||
|
||||
// The time this resource was last updated.
|
||||
// Output only.
|
||||
google.protobuf.Timestamp updated_time = 60 [json_name="updated_time"];
|
||||
google.protobuf.Timestamp updated_time = 70 [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.
|
||||
uint32 version = 70;
|
||||
uint32 version = 80;
|
||||
|
||||
// Contains the list of member ids in this group.
|
||||
// Output only.
|
||||
repeated string member_ids = 80;
|
||||
repeated string member_ids = 90;
|
||||
|
||||
// The members of this group.
|
||||
// Output only.
|
||||
repeated Member members = 90;
|
||||
repeated Member members = 100;
|
||||
}
|
||||
@@ -16,31 +16,34 @@ message HostCatalog {
|
||||
// Output only.
|
||||
string id = 10;
|
||||
|
||||
// The id of the scope this resource belongs to.
|
||||
string scope_id = 20 [json_name="scope_id"];
|
||||
|
||||
// Scope information for this resource
|
||||
// Output only.
|
||||
resources.scopes.v1.ScopeInfo scope = 20;
|
||||
resources.scopes.v1.ScopeInfo scope = 30;
|
||||
|
||||
// Optional name for identification purposes
|
||||
google.protobuf.StringValue name = 30 [(custom_options.v1.generate_sdk_option) = true, (custom_options.v1.mask_mapping) = {this:"name" that: "name"}];
|
||||
google.protobuf.StringValue name = 40 [(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 = 40 [(custom_options.v1.generate_sdk_option) = true, (custom_options.v1.mask_mapping) = {this:"description" that: "description"}];
|
||||
google.protobuf.StringValue description = 50 [(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 = 50 [json_name="created_time"];
|
||||
google.protobuf.Timestamp created_time = 60 [json_name="created_time"];
|
||||
|
||||
// The time this resource was last updated
|
||||
// Output only.
|
||||
google.protobuf.Timestamp updated_time = 60 [json_name="updated_time"];
|
||||
google.protobuf.Timestamp updated_time = 70 [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.
|
||||
uint32 version = 70;
|
||||
uint32 version = 80;
|
||||
|
||||
// The type of the resource, to help differentiate schemas
|
||||
string type = 80;
|
||||
string type = 90;
|
||||
|
||||
// Attributes specific to the catalog type
|
||||
google.protobuf.Struct attributes = 90 [(custom_options.v1.generate_sdk_option) = true];
|
||||
google.protobuf.Struct attributes = 100 [(custom_options.v1.generate_sdk_option) = true];
|
||||
}
|
||||
@@ -16,34 +16,34 @@ message Host {
|
||||
// Output only.
|
||||
string id = 10;
|
||||
|
||||
// The host catalog this host set is a part of
|
||||
// Output only
|
||||
string host_catalog_id = 20 [json_name="host_catalog_id"];
|
||||
|
||||
// Scope information for this resource
|
||||
// Output only.
|
||||
resources.scopes.v1.ScopeInfo scope = 20;
|
||||
resources.scopes.v1.ScopeInfo scope = 30;
|
||||
|
||||
// Optional name for identification purposes
|
||||
google.protobuf.StringValue name = 30 [(custom_options.v1.generate_sdk_option) = true, (custom_options.v1.mask_mapping) = {this:"name" that: "name"}];
|
||||
google.protobuf.StringValue name = 40 [(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 = 40 [(custom_options.v1.generate_sdk_option) = true, (custom_options.v1.mask_mapping) = {this:"description" that: "description"}];
|
||||
google.protobuf.StringValue description = 50 [(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 = 50 [json_name="created_time"];
|
||||
google.protobuf.Timestamp created_time = 60 [json_name="created_time"];
|
||||
|
||||
// The time this resource was last updated
|
||||
// Output only.
|
||||
google.protobuf.Timestamp updated_time = 60 [json_name="updated_time"];
|
||||
google.protobuf.Timestamp updated_time = 70 [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.
|
||||
uint32 version = 70;
|
||||
uint32 version = 80;
|
||||
|
||||
// The type of the resource, to help differentiate schemas
|
||||
string type = 80;
|
||||
|
||||
// The host catalog this host set is a part of
|
||||
// Output only
|
||||
string host_catalog_id = 90 [json_name="host_catalog_id"];
|
||||
string type = 90;
|
||||
|
||||
// A list of host sets this host is in
|
||||
// Output only.
|
||||
|
||||
@@ -57,48 +57,51 @@ message Role {
|
||||
// Output only.
|
||||
string id = 10;
|
||||
|
||||
// The id of the scope this resource is in.
|
||||
string scope_id = 20 [json_name="scope_id"];
|
||||
|
||||
// Scope information for this resource
|
||||
// Output only.
|
||||
resources.scopes.v1.ScopeInfo scope = 20;
|
||||
resources.scopes.v1.ScopeInfo scope = 30;
|
||||
|
||||
// Optional name for identification purposes
|
||||
google.protobuf.StringValue name = 30 [(custom_options.v1.generate_sdk_option) = true, (custom_options.v1.mask_mapping) = {this:"name" that: "name"}];
|
||||
google.protobuf.StringValue name = 40 [(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 = 40 [(custom_options.v1.generate_sdk_option) = true, (custom_options.v1.mask_mapping) = {this:"description" that: "description"}];
|
||||
google.protobuf.StringValue description = 50 [(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 = 50 [json_name="created_time"];
|
||||
google.protobuf.Timestamp created_time = 60 [json_name="created_time"];
|
||||
|
||||
// The time this resource was last updated.
|
||||
// Output only.
|
||||
google.protobuf.Timestamp updated_time = 60 [json_name="updated_time"];
|
||||
google.protobuf.Timestamp updated_time = 70 [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.
|
||||
uint32 version = 70;
|
||||
uint32 version = 80;
|
||||
|
||||
// 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 = 80 [json_name="grant_scope_id", (custom_options.v1.generate_sdk_option) = true, (custom_options.v1.mask_mapping) = {this:"grant_scope_id" that: "GrantScopeId"}];
|
||||
google.protobuf.StringValue grant_scope_id = 90 [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 = 90 [json_name="principal_ids"];
|
||||
repeated string principal_ids = 100 [json_name="principal_ids"];
|
||||
|
||||
// The principals that are assigned to this role.
|
||||
// Output only.
|
||||
repeated Principal principals = 100;
|
||||
repeated Principal principals = 110;
|
||||
|
||||
// The grants that this role provides for its principals.
|
||||
// Output only.
|
||||
repeated string grant_strings = 110 [json_name="grant_strings"];
|
||||
repeated string grant_strings = 120 [json_name="grant_strings"];
|
||||
|
||||
// The parsed grant information.
|
||||
// Output only.
|
||||
repeated Grant grants = 120;
|
||||
repeated Grant grants = 130;
|
||||
}
|
||||
@@ -36,26 +36,29 @@ message Scope {
|
||||
// Output only.
|
||||
string id = 10;
|
||||
|
||||
// The id of the scope this resource is in.
|
||||
string scope_id = 20 [json_name="scope_id"];
|
||||
|
||||
// Scope information for this resource
|
||||
// Output only.
|
||||
ScopeInfo scope = 20;
|
||||
ScopeInfo scope = 30;
|
||||
|
||||
// Optional name for identification purposes
|
||||
google.protobuf.StringValue name = 30 [(custom_options.v1.generate_sdk_option) = true, (custom_options.v1.mask_mapping) = {this: "name" that: "name"}];
|
||||
google.protobuf.StringValue name = 40 [(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 = 40 [(custom_options.v1.generate_sdk_option) = true, (custom_options.v1.mask_mapping) = {this: "description" that: "description"}];
|
||||
google.protobuf.StringValue description = 50 [(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 = 50 [json_name="created_time"];
|
||||
google.protobuf.Timestamp created_time = 60 [json_name="created_time"];
|
||||
|
||||
// The time this resource was last updated.
|
||||
// Output only.
|
||||
google.protobuf.Timestamp updated_time = 60 [json_name="updated_time"];
|
||||
google.protobuf.Timestamp updated_time = 70 [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 = 70;
|
||||
uint32 version = 80;
|
||||
}
|
||||
@@ -23,7 +23,7 @@ message Target {
|
||||
|
||||
// The id of the parent of this resource. This must be defined for creation of this resource, but is otherwise
|
||||
// read only.
|
||||
string scope_id = 20;
|
||||
string scope_id = 20 [json_name="scope_id"];
|
||||
|
||||
// Scope information for this resource
|
||||
// Output only.
|
||||
|
||||
@@ -15,25 +15,28 @@ message User {
|
||||
// Output only.
|
||||
string id = 10;
|
||||
|
||||
// The id of the scope this resource is in.
|
||||
string scope_id = 20 [json_name="scope_id"];
|
||||
|
||||
// Scope information for this resource
|
||||
// Output only.
|
||||
resources.scopes.v1.ScopeInfo scope = 20;
|
||||
resources.scopes.v1.ScopeInfo scope = 30;
|
||||
|
||||
// Optional name for identification purposes
|
||||
google.protobuf.StringValue name = 30 [(custom_options.v1.generate_sdk_option) = true, (custom_options.v1.mask_mapping) = {this:"name" that: "name"}];
|
||||
google.protobuf.StringValue name = 40 [(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 = 40 [(custom_options.v1.generate_sdk_option) = true, (custom_options.v1.mask_mapping) = {this:"description" that: "description"}];
|
||||
google.protobuf.StringValue description = 50 [(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 = 50 [json_name="created_time"];
|
||||
google.protobuf.Timestamp created_time = 60 [json_name="created_time"];
|
||||
|
||||
// The time this resource was last updated.
|
||||
// Output only.
|
||||
google.protobuf.Timestamp updated_time = 60 [json_name="updated_time"];
|
||||
google.protobuf.Timestamp updated_time = 70 [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.
|
||||
uint32 version = 70;
|
||||
uint32 version = 80;
|
||||
}
|
||||
Reference in new issue
Block a user