observation tags proto messages

This commit is contained in:
Sepehr authored and Jim committed 2023-09-22 11:31:42 -04:00
1 parent b64eadedbf
commit 14af8e8cd7
51 files changed
+458 -454

No files matched your search

@@ -17,7 +17,7 @@ option go_package = "github.com/hashicorp/boundary/sdk/pbs/controller/api/resour
// Account contains all fields related to an Account resource
message Account {
// Output only. The ID of the Account.
string id = 10; // @gotags: `class:"public"`
string id = 10; // @gotags: `class:"public" eventstream:"observation"`
// Output only. Scope information for the Account.
resources.scopes.v1.ScopeInfo scope = 20;
@@ -41,23 +41,23 @@ message Account {
]; // @gotags: `class:"public"`
// Output only. The time this resource was created.
google.protobuf.Timestamp created_time = 50 [json_name = "created_time"]; // @gotags: `class:"public"`
google.protobuf.Timestamp created_time = 50 [json_name = "created_time"]; // @gotags: `class:"public" eventstream:"observation"`
// Output only. The time this resource was last updated.
google.protobuf.Timestamp updated_time = 60 [json_name = "updated_time"]; // @gotags: `class:"public"`
google.protobuf.Timestamp updated_time = 60 [json_name = "updated_time"]; // @gotags: `class:"public" eventstream:"observation"`
// Version is used in mutation requests, after the initial creation, to ensure this resource has not changed.
// The mutation will fail if the version does not match the latest known good version.
uint32 version = 70; // @gotags: `class:"public"`
uint32 version = 70; // @gotags: `class:"public" eventstream:"observation"`
// The type of this Account.
string type = 80; // @gotags: `class:"public"`
string type = 80; // @gotags: `class:"public" eventstream:"observation"`
// The ID of the Auth Method that is associated with this Account.
string auth_method_id = 90 [
json_name = "auth_method_id",
(custom_options.v1.subtype_source_id) = true
]; // @gotags: `class:"public"`
]; // @gotags: `class:"public" eventstream:"observation"`
oneof attrs {
// The attributes that are applicable for the specific Account type.
@@ -83,10 +83,10 @@ message Account {
}
// Output only. managed_group_ids indicates IDs of the managed groups that currently contain this account
repeated string managed_group_ids = 110 [json_name = "managed_group_ids"]; // @gotags: `class:"public"`
repeated string managed_group_ids = 110 [json_name = "managed_group_ids"]; // @gotags: `class:"public" eventstream:"observation"`
// Output only. The available actions on this resource for this user.
repeated string authorized_actions = 300 [json_name = "authorized_actions"]; // @gotags: `class:"public"`
repeated string authorized_actions = 300 [json_name = "authorized_actions"]; // @gotags: `class:"public" eventstream:"observation"`
}
// Attributes associated only with Accounts with type "password".
@@ -18,10 +18,10 @@ option (custom_options.v1.domain) = "auth";
// AuthMethod contains all fields related to an Auth Method resource
message AuthMethod {
// Output only. The ID of the Auth Method.
string id = 10; // @gotags: `class:"public"`
string id = 10; // @gotags: `class:"public" eventstream:"observation"`
// The ID of the Scope of which this Auth Method is a part.
string scope_id = 20 [json_name = "scope_id"]; // @gotags: `class:"public"`
string scope_id = 20 [json_name = "scope_id"]; // @gotags: `class:"public" eventstream:"observation"`
// Output only. Scope information for this Auth method.
resources.scopes.v1.ScopeInfo scope = 30;
@@ -45,17 +45,17 @@ message AuthMethod {
]; // @gotags: `class:"public"`
// Output only. The time this resource was created.
google.protobuf.Timestamp created_time = 60 [json_name = "created_time"]; // @gotags: `class:"public"`
google.protobuf.Timestamp created_time = 60 [json_name = "created_time"]; // @gotags: `class:"public" eventstream:"observation"`
// Output only. The time this resource was last updated.
google.protobuf.Timestamp updated_time = 70 [json_name = "updated_time"]; // @gotags: `class:"public"`
google.protobuf.Timestamp updated_time = 70 [json_name = "updated_time"]; // @gotags: `class:"public" eventstream:"observation"`
// Version is used in mutation requests, after the initial creation, to ensure this resource has not changed.
// The mutation will fail if the version does not match the latest known good version.
uint32 version = 80; // @gotags: `class:"public"`
// The Auth Method type.
string type = 90; // @gotags: `class:"public"`
string type = 90; // @gotags: `class:"public" eventstream:"observation"`
oneof attrs {
// The attributes that are applicable for the specific Auth Method type.
@@ -82,10 +82,10 @@ message AuthMethod {
// Output only. Whether this auth method is the primary auth method for it's scope.
// To change this value update the primary_auth_method_id field on the scope.
bool is_primary = 110 [json_name = "is_primary"]; // @gotags: `class:"public"`
bool is_primary = 110 [json_name = "is_primary"]; // @gotags: `class:"public" eventstream:"observation"`
// Output only. The available actions on this resource for this user.
repeated string authorized_actions = 300 [json_name = "authorized_actions"]; // @gotags: `class:"public"`
repeated string authorized_actions = 300 [json_name = "authorized_actions"]; // @gotags: `class:"public" eventstream:"observation"`
// Output only. The authorized actions for the scope's collections.
map<string, google.protobuf.ListValue> authorized_collection_actions = 310 [json_name = "authorized_collection_actions"]; // classified as public via taggable implementation
@@ -14,19 +14,19 @@ option go_package = "github.com/hashicorp/boundary/sdk/pbs/controller/api/resour
message Member {
// Output only. The ID of the member.
string id = 10; // @gotags: `class:"public"`
string id = 10; // @gotags: `class:"public" eventstream:"observation"`
// Output only. The Scope ID of the member.
string scope_id = 20 [json_name = "scope_id"]; // @gotags: `class:"public"`
string scope_id = 20 [json_name = "scope_id"]; // @gotags: `class:"public" eventstream:"observation"`
}
// Group contains all fields related to a Group resource
message Group {
// Output only. The ID of the Group.
string id = 10; // @gotags: `class:"public"`
string id = 10; // @gotags: `class:"public" eventstream:"observation"`
// The ID of the scope of which this Group is a part.
string scope_id = 20 [json_name = "scope_id"]; // @gotags: `class:"public"`
string scope_id = 20 [json_name = "scope_id"]; // @gotags: `class:"public" eventstream:"observation"`
// Output only. Scope information for this Group.
resources.scopes.v1.ScopeInfo scope = 30;
@@ -50,21 +50,21 @@ message Group {
]; // @gotags: `class:"public"`
// Output only. The time this resource was created.
google.protobuf.Timestamp created_time = 60 [json_name = "created_time"]; // @gotags: `class:"public"`
google.protobuf.Timestamp created_time = 60 [json_name = "created_time"]; // @gotags: `class:"public" eventstream:"observation"`
// Output only. The time this resource was last updated.
google.protobuf.Timestamp updated_time = 70 [json_name = "updated_time"]; // @gotags: `class:"public"`
google.protobuf.Timestamp updated_time = 70 [json_name = "updated_time"]; // @gotags: `class:"public" eventstream:"observation"`
// Version is used in mutation requests, after the initial creation, to ensure this resource has not changed.
// The mutation will fail if the version does not match the latest known good version.
uint32 version = 80; // @gotags: `class:"public"`
// Output only. Contains the list of member IDs in this Group.
repeated string member_ids = 90 [json_name = "member_ids"]; // @gotags: `class:"public"`
repeated string member_ids = 90 [json_name = "member_ids"]; // @gotags: `class:"public" eventstream:"observation"`
// Output only. The members of this Group.
repeated Member members = 100;
// Output only. The available actions on this resource for this user.
repeated string authorized_actions = 300 [json_name = "authorized_actions"]; // @gotags: `class:"public"`
repeated string authorized_actions = 300 [json_name = "authorized_actions"]; // @gotags: `class:"public" eventstream:"observation"`
}
@@ -17,10 +17,10 @@ option go_package = "github.com/hashicorp/boundary/sdk/pbs/controller/api/resour
// HostCatalog manages Hosts and Host Sets
message HostCatalog {
// Output only. The ID of the host.
string id = 10; // @gotags: `class:"public"`
string id = 10; // @gotags: `class:"public" eventstream:"observation"`
// The ID of the Scope of which this Host Catalog is a part.
string scope_id = 20 [json_name = "scope_id"]; // @gotags: `class:"public"`
string scope_id = 20 [json_name = "scope_id"]; // @gotags: `class:"public" eventstream:"observation"`
// Output only. Scope information for this resource.
resources.scopes.v1.ScopeInfo scope = 30;
@@ -29,7 +29,7 @@ message HostCatalog {
string plugin_id = 34 [
json_name = "plugin_id",
(custom_options.v1.generate_sdk_option) = true
]; // @gotags: `class:"public"`
]; // @gotags: `class:"public" eventstream:"observation"`
// Output only. Plugin information for this resource.
resources.plugins.v1.PluginInfo plugin = 35;
@@ -53,17 +53,17 @@ message HostCatalog {
]; // @gotags: `class:"public"`
// Output only. The time this resource was created.
google.protobuf.Timestamp created_time = 60 [json_name = "created_time"]; // @gotags: `class:"public"`
google.protobuf.Timestamp created_time = 60 [json_name = "created_time"]; // @gotags: `class:"public" eventstream:"observation"`
// Output only. The time this resource was last updated.
google.protobuf.Timestamp updated_time = 70 [json_name = "updated_time"]; // @gotags: `class:"public"`
google.protobuf.Timestamp updated_time = 70 [json_name = "updated_time"]; // @gotags: `class:"public" eventstream:"observation"`
// Version is used in mutation requests, after the initial creation, to ensure this resource has not changed.
// The mutation will fail if the version does not match the latest known good version.
uint32 version = 80; // @gotags: `class:"public"`
// The type of Host Catalog.
string type = 90; // @gotags: `class:"public"`
string type = 90; // @gotags: `class:"public" eventstream:"observation"`
oneof attrs {
// Attributes specific to the catalog type.
@@ -80,7 +80,7 @@ message HostCatalog {
string secrets_hmac = 120; // @gotags: `class:"public"`
// Output only. The available actions on this resource for this user.
repeated string authorized_actions = 300 [json_name = "authorized_actions"]; // @gotags: `class:"public"`
repeated string authorized_actions = 300 [json_name = "authorized_actions"]; // @gotags: `class:"public" eventstream:"observation"`
// Output only. The authorized actions for the scope's collections.
map<string, google.protobuf.ListValue> authorized_collection_actions = 310 [json_name = "authorized_collection_actions"]; // classified as public via taggable implementation
@@ -17,7 +17,7 @@ option go_package = "github.com/hashicorp/boundary/sdk/pbs/controller/api/resour
// ManagedGroup contains all fields related to an ManagedGroup resource
message ManagedGroup {
// Output only. The ID of the ManagedGroup.
string id = 10; // @gotags: `class:"public"`
string id = 10; // @gotags: `class:"public" eventstream:"observation"`
// Output only. Scope information for the ManagedGroup.
resources.scopes.v1.ScopeInfo scope = 20;
@@ -41,23 +41,23 @@ message ManagedGroup {
]; // @gotags: `class:"public"`
// Output only. The time this resource was created.
google.protobuf.Timestamp created_time = 50 [json_name = "created_time"]; // @gotags: `class:"public"`
google.protobuf.Timestamp created_time = 50 [json_name = "created_time"]; // @gotags: `class:"public" eventstream:"observation"`
// Output only. The time this resource was last updated.
google.protobuf.Timestamp updated_time = 60 [json_name = "updated_time"]; // @gotags: `class:"public"`
google.protobuf.Timestamp updated_time = 60 [json_name = "updated_time"]; // @gotags: `class:"public" eventstream:"observation"`
// Version is used in mutation requests, after the initial creation, to ensure this resource has not changed.
// The mutation will fail if the version does not match the latest known good version.
uint32 version = 70; // @gotags: `class:"public"`
// The type of this ManagedGroup.
string type = 80; // @gotags: `class:"public"`
string type = 80; // @gotags: `class:"public" eventstream:"observation"`
// The ID of the Auth Method that is associated with this ManagedGroup.
string auth_method_id = 90 [
json_name = "auth_method_id",
(custom_options.v1.subtype_source_id) = true
]; // @gotags: `class:"public"`
]; // @gotags: `class:"public" eventstream:"observation"`
oneof attrs {
// The attributes that are applicable for the specific ManagedGroup type.
@@ -78,7 +78,7 @@ message ManagedGroup {
}
// Output only. The IDs of the current set of members (accounts) that are associated with this ManagedGroup.
repeated string member_ids = 110 [json_name = "member_ids"]; // @gotags: `class:"public"`
repeated string member_ids = 110 [json_name = "member_ids"]; // @gotags: `class:"public" eventstream:"observation"`
// Output only. The available actions on this resource for this user.
repeated string authorized_actions = 300 [json_name = "authorized_actions"]; // @gotags: `class:"public"`
@@ -14,13 +14,13 @@ option go_package = "github.com/hashicorp/boundary/sdk/pbs/controller/api/resour
message Principal {
// Output only. The ID of the principal.
string id = 1; // @gotags: `class:"public"`
string id = 1; // @gotags: `class:"public" eventstream:"observation"`
// Output only. The type of the principal.
string type = 2; // @gotags: `class:"public"`
string type = 2; // @gotags: `class:"public" eventstream:"observation"`
// Output only. The Scope of the principal.
string scope_id = 3 [json_name = "scope_id"]; // @gotags: `class:"public"`
string scope_id = 3 [json_name = "scope_id"]; // @gotags: `class:"public" eventstream:"observation"`
}
message GrantJson {
@@ -52,10 +52,10 @@ message Grant {
// Role contains all fields related to a Role resource
message Role {
// Output only. The ID of the Role.
string id = 10; // @gotags: `class:"public"`
string id = 10; // @gotags: `class:"public" eventstream:"observation"`
// The ID of the Scope containing this Role.
string scope_id = 20 [json_name = "scope_id"]; // @gotags: `class:"public"`
string scope_id = 20 [json_name = "scope_id"]; // @gotags: `class:"public" eventstream:"observation"`
// Output only. Scope information for this resource.
resources.scopes.v1.ScopeInfo scope = 30;
@@ -79,10 +79,10 @@ message Role {
]; // @gotags: `class:"public"`
// Output only. The time this resource was created.
google.protobuf.Timestamp created_time = 60 [json_name = "created_time"]; // @gotags: `class:"public"`
google.protobuf.Timestamp created_time = 60 [json_name = "created_time"]; // @gotags: `class:"public" eventstream:"observation"`
// Output only. The time this resource was last updated.
google.protobuf.Timestamp updated_time = 70 [json_name = "updated_time"]; // @gotags: `class:"public"`
google.protobuf.Timestamp updated_time = 70 [json_name = "updated_time"]; // @gotags: `class:"public" eventstream:"observation"`
// Version is used in mutation requests, after the initial creation, to ensure this resource has not changed.
// The mutation will fail if the version does not match the latest known good version.
@@ -96,10 +96,10 @@ message Role {
this: "grant_scope_id"
that: "GrantScopeId"
}
]; // @gotags: `class:"public"`
]; // @gotags: `class:"public" eventstream:"observation"`
// Output only. The IDs (only) of principals that are assigned to this role.
repeated string principal_ids = 100 [json_name = "principal_ids"]; // @gotags: `class:"public"`
repeated string principal_ids = 100 [json_name = "principal_ids"]; // @gotags: `class:"public" eventstream:"observation"`
// Output only. The principals that are assigned to this role.
repeated Principal principals = 110;
@@ -14,10 +14,10 @@ option go_package = "github.com/hashicorp/boundary/sdk/pbs/controller/api/resour
message ScopeInfo {
// Output only. The ID of the Scope.
string id = 1; // @gotags: `class:"public"`
string id = 1; // @gotags: `class:"public" eventstream:"observation"`
// Output only. The type of the Scope.
string type = 2; // @gotags: `class:"public"`
string type = 2; // @gotags: `class:"public" eventstream:"observation"`
// Output only. The name of the Scope, if any.
string name = 3; // @gotags: `class:"public"`
@@ -26,16 +26,16 @@ message ScopeInfo {
string description = 4; // @gotags: `class:"public"`
// Output only. The ID of the parent Scope, if any. This field will be empty if this is the "global" scope.
string parent_scope_id = 5 [json_name = "parent_scope_id"]; // @gotags: `class:"public"`
string parent_scope_id = 5 [json_name = "parent_scope_id"]; // @gotags: `class:"public" eventstream:"observation"`
}
// Scope contains all fields related to a Scope resource
message Scope {
// Output only. The ID of the Scope.
string id = 10; // @gotags: `class:"public"`
string id = 10; // @gotags: `class:"public" eventstream:"observation"`
// The ID of the Scope this resource is in. If this is the "global" Scope this field will be empty.
string scope_id = 20 [json_name = "scope_id"]; // @gotags: `class:"public"`
string scope_id = 20 [json_name = "scope_id"]; // @gotags: `class:"public" eventstream:"observation"`
// Output only. Scope information for this resource.
ScopeInfo scope = 30;
@@ -59,17 +59,17 @@ message Scope {
]; // @gotags: `class:"public"`
// Output only. The time this resource was created.
google.protobuf.Timestamp created_time = 60 [json_name = "created_time"]; // @gotags: `class:"public"`
google.protobuf.Timestamp created_time = 60 [json_name = "created_time"]; // @gotags: `class:"public" eventstream:"observation"`
// Output only. The time this resource was last updated.
google.protobuf.Timestamp updated_time = 70 [json_name = "updated_time"]; // @gotags: `class:"public"`
google.protobuf.Timestamp updated_time = 70 [json_name = "updated_time"]; // @gotags: `class:"public" eventstream:"observation"`
// Version is used in mutation requests, after the initial creation, to ensure this resource has not changed.
// The mutation will fail if the version does not match the latest known good version.
uint32 version = 80; // @gotags: `class:"public"`
// The type of the resource.
string type = 90; // @gotags: `class:"public"`
string type = 90; // @gotags: `class:"public" eventstream:"observation"`
// The ID of the primary auth method for this scope. A primary auth method
// is allowed to vivify users when new accounts are created and is the source for the users account info
@@ -80,7 +80,7 @@ message Scope {
this: "primary_auth_method_id"
that: "PrimaryAuthMethodId"
}
]; // @gotags: `class:"public"`
]; // @gotags: `class:"public" eventstream:"observation"`
// Output only. The available actions on this resource for this user.
repeated string authorized_actions = 300 [json_name = "authorized_actions"]; // @gotags: `class:"public"`
@@ -12,13 +12,13 @@ option go_package = "github.com/hashicorp/boundary/sdk/pbs/controller/api/resour
message SessionState {
// The status of the Session, e.g. "pending", "active", "canceling", "terminated".
string status = 10; // @gotags: `class:"public"`
string status = 10; // @gotags: `class:"public" eventstream:"observation"`
// Output only. The time the Session entered this state.
google.protobuf.Timestamp start_time = 20 [json_name = "start_time"]; // @gotags: `class:"public"`
google.protobuf.Timestamp start_time = 20 [json_name = "start_time"]; // @gotags: `class:"public" eventstream:"observation"`
// Output only. The time the Session stopped being in this state.
google.protobuf.Timestamp end_time = 30 [json_name = "end_time"]; // @gotags: `class:"public"`
google.protobuf.Timestamp end_time = 30 [json_name = "end_time"]; // @gotags: `class:"public" eventstream:"observation"`
}
// Connection contains information about a specific connection in a session
@@ -55,43 +55,43 @@ message Session {
reserved "worker_info";
// Output only. The ID of the Session.
string id = 10; // @gotags: `class:"public"`
string id = 10; // @gotags: `class:"public" eventstream:"observation"`
// Output only. The ID of the Target that created this Session.
string target_id = 20 [json_name = "target_id"]; // @gotags: `class:"public"`
string target_id = 20 [json_name = "target_id"]; // @gotags: `class:"public" eventstream:"observation"`
// Output only. Scope information for this resource.
resources.scopes.v1.ScopeInfo scope = 30;
// Output only. The time this resource was created.
google.protobuf.Timestamp created_time = 60 [json_name = "created_time"]; // @gotags: `class:"public"`
google.protobuf.Timestamp created_time = 60 [json_name = "created_time"]; // @gotags: `class:"public" eventstream:"observation"`
// Output only. The time this resource was last updated.
google.protobuf.Timestamp updated_time = 70 [json_name = "updated_time"]; // @gotags: `class:"public"`
google.protobuf.Timestamp updated_time = 70 [json_name = "updated_time"]; // @gotags: `class:"public" eventstream:"observation"`
// Version is used when canceling this Session to ensure that the operation is acting on a known session state.
uint32 version = 80; // @gotags: `class:"public"`
// Output only. Type of the Session (e.g. tcp).
string type = 90; // @gotags: `class:"public"`
string type = 90; // @gotags: `class:"public" eventstream:"observation"`
// Output only. After this time the connection will be expired, e.g. forcefully terminated.
google.protobuf.Timestamp expiration_time = 100 [json_name = "expiration_time"]; // @gotags: `class:"public"`
google.protobuf.Timestamp expiration_time = 100 [json_name = "expiration_time"]; // @gotags: `class:"public" eventstream:"observation"`
// Output only. The ID of the Auth Token used to authenticate.
string auth_token_id = 110 [json_name = "auth_token_id"]; // @gotags: `class:"public"`
// Output only. The ID of the User that requested the Session.
string user_id = 120 [json_name = "user_id"]; // @gotags: `class:"public"`
string user_id = 120 [json_name = "user_id"]; // @gotags: `class:"public" eventstream:"observation"`
// Output only. The Host Set sourcing the Host for this Session.
string host_set_id = 130 [json_name = "host_set_id"]; // @gotags: `class:"public"`
string host_set_id = 130 [json_name = "host_set_id"]; // @gotags: `class:"public" eventstream:"observation"`
// Output only. The Host used by the Session.
string host_id = 140 [json_name = "host_id"]; // @gotags: `class:"public"`
string host_id = 140 [json_name = "host_id"]; // @gotags: `class:"public" eventstream:"observation"`
// Output only. The Scope of the Session.
string scope_id = 150 [json_name = "scope_id"]; // @gotags: `class:"public"`
string scope_id = 150 [json_name = "scope_id"]; // @gotags: `class:"public" eventstream:"observation"`
// Output only. The endpoint of the Session; that is, the address to which the worker is proxying data.
string endpoint = 160; // @gotags: `class:"public"`
@@ -100,13 +100,13 @@ message Session {
repeated SessionState states = 170;
// Output only. The current status of this Session.
string status = 180; // @gotags: `class:"public"`
string status = 180; // @gotags: `class:"public" eventstream:"observation"`
// Output only. The certificate generated for the session. Raw DER bytes.
bytes certificate = 200; // @gotags: `class:"public"`
// Output only. If the session is terminated, this provides a short description as to why.
string termination_reason = 210 [json_name = "termination_reason"]; // @gotags: `class:"public"`
string termination_reason = 210 [json_name = "termination_reason"]; // @gotags: `class:"public" eventstream:"observation"`
// Output only. The available actions on this resource for this user.
repeated string authorized_actions = 300 [json_name = "authorized_actions"]; // @gotags: `class:"public"`
@@ -16,10 +16,10 @@ option go_package = "github.com/hashicorp/boundary/sdk/pbs/controller/api/resour
message HostSource {
// Output only. The ID of the Host Set.
string id = 10; // @gotags: `class:"public"`
string id = 10; // @gotags: `class:"public" eventstream:"observation"`
// Output only. The Host Catalog to which this Host Source belongs.
string host_catalog_id = 20 [json_name = "host_catalog_id"]; // @gotags: `class:"public"`
string host_catalog_id = 20 [json_name = "host_catalog_id"]; // @gotags: `class:"public" eventstream:"observation"`
}
message CredentialSource {
@@ -72,10 +72,10 @@ message SessionCredential {
// Target contains all fields related to a Target resource
message Target {
// Output only. The ID of the resource.
string id = 10; // @gotags: `class:"public"`
string id = 10; // @gotags: `class:"public" eventstream:"observation"`
// The Scope of of this resource. This must be defined for creation of this resource, but is otherwise output only.
string scope_id = 20 [json_name = "scope_id"]; // @gotags: `class:"public"`
string scope_id = 20 [json_name = "scope_id"]; // @gotags: `class:"public" eventstream:"observation"`
// Output only. Scope information for this resource.
resources.scopes.v1.ScopeInfo scope = 30;
@@ -99,20 +99,20 @@ message Target {
]; // @gotags: `class:"public"`
// Output only. The time this resource was created.
google.protobuf.Timestamp created_time = 60 [json_name = "created_time"]; // @gotags: `class:"public"`
google.protobuf.Timestamp created_time = 60 [json_name = "created_time"]; // @gotags: `class:"public" eventstream:"observation"`
// Output only. The time this resource was last updated.
google.protobuf.Timestamp updated_time = 70 [json_name = "updated_time"]; // @gotags: `class:"public"`
google.protobuf.Timestamp updated_time = 70 [json_name = "updated_time"]; // @gotags: `class:"public" eventstream:"observation"`
// Version is used in mutation requests, after the initial creation, to ensure this resource has not changed.
// The mutation will fail if the version does not match the latest known good version.
uint32 version = 80; // @gotags: `class:"public"`
// The type of the Target.
string type = 90; // @gotags: `class:"public"`
string type = 90; // @gotags: `class:"public" eventstream:"observation"`
// Output only. The IDs of the Host Sources associated with this Target.
repeated string host_source_ids = 420 [json_name = "host_source_ids"]; // @gotags: `class:"public"`
repeated string host_source_ids = 420 [json_name = "host_source_ids"]; // @gotags: `class:"public" eventstream:"observation"`
// Output only. The Host Sources associated with this Target.
repeated HostSource host_sources = 430 [json_name = "host_sources"];
@@ -297,7 +297,7 @@ message SshTargetAttributes {
this: "attributes.enable_session_recording"
that: "EnableSessionRecording"
}
]; // @gotags: `class:"public"`
]; // @gotags: `class:"public" eventstream:"observation"`
}
// WorkerInfo contains information about workers, returned in to the client in SessionAuthorization
@@ -309,19 +309,19 @@ message WorkerInfo {
// SessionAuthorizationData contains the fields needed by the proxy command to connect to a worker. It is marshaled inside the SessionAuthorization message.
message SessionAuthorizationData {
// Output only. The ID of the session.
string session_id = 10 [json_name = "session_id"]; // @gotags: `class:"public"`
string session_id = 10 [json_name = "session_id"]; // @gotags: `class:"public" eventstream:"observation"`
// Output only. The ID of the Target authorizing this session.
string target_id = 20 [json_name = "target_id"]; // @gotags: `class:"public"`
string target_id = 20 [json_name = "target_id"]; // @gotags: `class:"public" eventstream:"observation"`
// Output only. Scope information for this the Target that authorized this session.
resources.scopes.v1.ScopeInfo scope = 30;
// Output only. The time this resource was created.
google.protobuf.Timestamp created_time = 40 [json_name = "created_time"]; // @gotags: `class:"public"`
google.protobuf.Timestamp created_time = 40 [json_name = "created_time"]; // @gotags: `class:"public" eventstream:"observation"`
// Output only. Type of the session (e.g. tcp, ssh, etc.).
string type = 80; // @gotags: `class:"public"`
string type = 80; // @gotags: `class:"public" eventstream:"observation"`
// Output only. The connection limit being applied to this session. -1 means unlimited. This is not actually enforced on the client side but it provides for better listener handling by including it.
int32 connection_limit = 90 [json_name = "connection_limit"];
@@ -333,7 +333,7 @@ message SessionAuthorizationData {
bytes private_key = 130 [json_name = "private_key"]; // @gotags: `class:"secret"`
// Output only. The host ID...not used for security purposes, but for some special command handling (e.g. ssh host key aliasing).
string host_id = 140; // @gotags: `class:"public"`
string host_id = 140; // @gotags: `class:"public" eventstream:"observation"`
// Output only. The endpoint, for some special command handling.
string endpoint = 141; // @gotags: `class:"public"`
@@ -348,28 +348,28 @@ message SessionAuthorizationData {
// SessionAuthorization contains all fields related to authorization for a Session. It's in the Targets package because it's returned by a Target's authorize action.
message SessionAuthorization {
// Output only. The ID of the Session.
string session_id = 10 [json_name = "session_id"]; // @gotags: `class:"public"`
string session_id = 10 [json_name = "session_id"]; // @gotags: `class:"public" eventstream:"observation"`
// Output only. The ID of the Target authorizing this Session.
string target_id = 20 [json_name = "target_id"]; // @gotags: `class:"public"`
string target_id = 20 [json_name = "target_id"]; // @gotags: `class:"public" eventstream:"observation"`
// Output only. Scope information for this resource.
resources.scopes.v1.ScopeInfo scope = 30;
// Output only. The time this resource was created.
google.protobuf.Timestamp created_time = 40 [json_name = "created_time"]; // @gotags: `class:"public"`
google.protobuf.Timestamp created_time = 40 [json_name = "created_time"]; // @gotags: `class:"public" eventstream:"observation"`
// Output only. The User for which this Session was authorized.
string user_id = 50 [json_name = "user_id"]; // @gotags: `class:"public"`
string user_id = 50 [json_name = "user_id"]; // @gotags: `class:"public" eventstream:"observation"`
// Output only. The Host Set containing the Host being used for this Session.
string host_set_id = 60 [json_name = "host_set_id"]; // @gotags: `class:"public"`
string host_set_id = 60 [json_name = "host_set_id"]; // @gotags: `class:"public" eventstream:"observation"`
// Output only. The Host whose address is being used as the endpoint for this Session.
string host_id = 70 [json_name = "host_id"]; // @gotags: `class:"public"`
string host_id = 70 [json_name = "host_id"]; // @gotags: `class:"public" eventstream:"observation"`
// Output only. Type of the Session (e.g. tcp, ssh, etc.).
string type = 80; // @gotags: `class:"public"`
string type = 80; // @gotags: `class:"public" eventstream:"observation"`
// Output only. The marshaled SessionAuthorizationData message containing all information that the proxy needs.
string authorization_token = 90 [json_name = "authorization_token"]; // @gotags: `class:"secret"`
@@ -14,19 +14,19 @@ option go_package = "github.com/hashicorp/boundary/sdk/pbs/controller/api/resour
message Account {
// Output only. The ID of the Account.
string id = 10; // @gotags: `class:"public"`
string id = 10; // @gotags: `class:"public" eventstream:"observation"`
// Output only. The Scope containing the Account.
string scope_id = 20 [json_name = "scope_id"]; // @gotags: `class:"public"`
string scope_id = 20 [json_name = "scope_id"]; // @gotags: `class:"public" eventstream:"observation"`
}
// User contains all fields related to a User resource
message User {
// Output only. The ID of the User.
string id = 10; // @gotags: `class:"public"`
string id = 10; // @gotags: `class:"public" eventstream:"observation"`
// The ID of the Scope this resource is in.
string scope_id = 20 [json_name = "scope_id"]; // @gotags: `class:"public"`
string scope_id = 20 [json_name = "scope_id"]; // @gotags: `class:"public" eventstream:"observation"`
// Output only. Scope information for this resource.
resources.scopes.v1.ScopeInfo scope = 30;
@@ -50,17 +50,17 @@ message User {
]; // @gotags: `class:"sensitive"`
// Output only. The time this resource was created.
google.protobuf.Timestamp created_time = 60 [json_name = "created_time"]; // @gotags: `class:"public"`
google.protobuf.Timestamp created_time = 60 [json_name = "created_time"]; // @gotags: `class:"public" eventstream:"observation"`
// Output only. The time this resource was last updated.
google.protobuf.Timestamp updated_time = 70 [json_name = "updated_time"]; // @gotags: `class:"public"`
google.protobuf.Timestamp updated_time = 70 [json_name = "updated_time"]; // @gotags: `class:"public" eventstream:"observation"`
// Version is used in mutation requests, after the initial creation, to ensure this resource has not changed.
// The mutation will fail if the version does not match the latest known good version.
uint32 version = 80; // @gotags: `class:"public"`
// Output only. Contains the list of Account IDs linked to this User.
repeated string account_ids = 90 [json_name = "account_ids"]; // @gotags: `class:"public"`
repeated string account_ids = 90 [json_name = "account_ids"]; // @gotags: `class:"public" eventstream:"observation"`
// Output only. The Accounts linked to this User.
repeated Account accounts = 100;
@@ -82,5 +82,5 @@ message User {
// Output only. primary_account_id is a string that maps to the user's account
// public_id from the scope's primary auth method
string primary_account_id = 140 [json_name = "primary_account_id"]; // @gotags: `class:"public"`
string primary_account_id = 140 [json_name = "primary_account_id"]; // @gotags: `class:"public" eventstream:"observation"`
}
@@ -16,10 +16,10 @@ option go_package = "github.com/hashicorp/boundary/sdk/pbs/controller/api/resour
// Worker contains all fields related to a Worker resource
message Worker {
// Output only. The ID of the User.
string id = 10; // @gotags: `class:"public"`
string id = 10; // @gotags: `class:"public" eventstream:"observation"`
// The ID of the Scope this resource is in.
string scope_id = 20 [json_name = "scope_id"]; // @gotags: `class:"public"`
string scope_id = 20 [json_name = "scope_id"]; // @gotags: `class:"public" eventstream:"observation"`
// Output only. Scope information for this resource.
resources.scopes.v1.ScopeInfo scope = 30;
@@ -45,10 +45,10 @@ message Worker {
]; // @gotags: `class:"sensitive"`
// Output only. The time this resource was created.
google.protobuf.Timestamp created_time = 60 [json_name = "created_time"]; // @gotags: `class:"public"`
google.protobuf.Timestamp created_time = 60 [json_name = "created_time"]; // @gotags: `class:"public" eventstream:"observation"`
// Output only. The time this resource was last updated.
google.protobuf.Timestamp updated_time = 70 [json_name = "updated_time"]; // @gotags: `class:"public"`
google.protobuf.Timestamp updated_time = 70 [json_name = "updated_time"]; // @gotags: `class:"public" eventstream:"observation"`
// Version is used in mutation requests, after the initial creation, to ensure this resource has not changed.
// The mutation will fail if the version does not match the latest known good version.
@@ -67,7 +67,7 @@ message Worker {
map<string, google.protobuf.ListValue> config_tags = 130 [json_name = "config_tags"]; // @gotags: `class:"public"`
// Output only. The time this worker daemon last reported its status.
google.protobuf.Timestamp last_status_time = 140 [json_name = "last_status_time"]; // @gotags: `class:"public"`
google.protobuf.Timestamp last_status_time = 140 [json_name = "last_status_time"]; // @gotags: `class:"public" eventstream:"observation"`
// worker_generated_auth_token is input only. Supports the worker led node
// enrollment flow where this credentials token is produced by a worker. This
@@ -80,7 +80,7 @@ message Worker {
google.protobuf.StringValue controller_generated_activation_token = 151 [json_name = "controller_generated_activation_token"]; // @gotags: `class:"secret"`
// Output only. The number of connections that this worker is currently handling.
google.protobuf.UInt32Value active_connection_count = 160 [json_name = "active_connection_count"]; // @gotags: `class:"public"`
google.protobuf.UInt32Value active_connection_count = 160 [json_name = "active_connection_count"]; // @gotags: `class:"public" eventstream:"observation"`
// Output only. The type of the worker, denoted by how it authenticates: `pki`
// or `kms`.
@@ -90,10 +90,10 @@ message Worker {
map<string, google.protobuf.ListValue> api_tags = 180 [json_name = "api_tags"]; // @gotags: `class:"public"`
// Output only. The version of the Boundary binary the worker is running.
string release_version = 190 [json_name = "release_version"]; // @gotags: `class:"public"`
string release_version = 190 [json_name = "release_version"]; // @gotags: `class:"public" eventstream:"observation"`
// Output only. The ids of the workers directly connected to this worker.
repeated string directly_connected_downstream_workers = 200 [json_name = "directly_connected_downstream_workers"]; // @gotags: `class:"public"`
repeated string directly_connected_downstream_workers = 200 [json_name = "directly_connected_downstream_workers"]; // @gotags: `class:"public" eventstream:"observation"`
// Output only. The available actions on this resource for the requester.
repeated string authorized_actions = 300 [json_name = "authorized_actions"]; // @gotags: `class:"public"`
@@ -100,7 +100,7 @@ service AccountService {
}
message GetAccountRequest {
string id = 1; // @gotags: `class:"public"`
string id = 1; // @gotags: `class:"public" eventstream:"observation"`
}
message GetAccountResponse {
@@ -108,7 +108,7 @@ message GetAccountResponse {
}
message ListAccountsRequest {
string auth_method_id = 1 [json_name = "auth_method_id"]; // @gotags: `class:"public"`
string auth_method_id = 1 [json_name = "auth_method_id"]; // @gotags: `class:"public" eventstream:"observation"`
string filter = 30 [json_name = "filter"]; // @gotags: `class:"sensitive"`
}
@@ -121,12 +121,12 @@ message CreateAccountRequest {
}
message CreateAccountResponse {
string uri = 1; // @gotags: `class:"public"`
string uri = 1; // @gotags: `class:"public" eventstream:"observation"`
resources.accounts.v1.Account item = 2;
}
message UpdateAccountRequest {
string id = 1; // @gotags: `class:"public"`
string id = 1; // @gotags: `class:"public" eventstream:"observation"`
resources.accounts.v1.Account item = 2;
google.protobuf.FieldMask update_mask = 3 [json_name = "update_mask"];
}
@@ -136,16 +136,16 @@ message UpdateAccountResponse {
}
message DeleteAccountRequest {
string id = 1; // @gotags: `class:"public"`
string id = 1; // @gotags: `class:"public" eventstream:"observation"`
}
message DeleteAccountResponse {}
message SetPasswordRequest {
string id = 1; // @gotags: `class:"public"`
string id = 1; // @gotags: `class:"public" eventstream:"observation"`
// Version is used to ensure this resource has not changed.
// The mutation will fail if the version does not match the latest known good version.
uint32 version = 2; // @gotags: `class:"public"`
uint32 version = 2; // @gotags: `class:"public" eventstream:"observation"`
string password = 3; // @gotags: `class:"secret"`
}
@@ -154,10 +154,10 @@ message SetPasswordResponse {
}
message ChangePasswordRequest {
string id = 1; // @gotags: `class:"public"`
string id = 1; // @gotags: `class:"public" eventstream:"observation"`
// Version is used to ensure this resource has not changed.
// The mutation will fail if the version does not match the latest known good version.
uint32 version = 2; // @gotags: `class:"public"`
uint32 version = 2; // @gotags: `class:"public" eventstream:"observation"`
string current_password = 3 [json_name = "current_password"]; // @gotags: `class:"secret"`
string new_password = 4 [json_name = "new_password"]; // @gotags: `class:"secret"`
}
@@ -96,7 +96,7 @@ service AuthMethodService {
}
message GetAuthMethodRequest {
string id = 1; // @gotags: `class:"public"`
string id = 1; // @gotags: `class:"public" eventstream:"observation"`
}
message GetAuthMethodResponse {
@@ -104,7 +104,7 @@ message GetAuthMethodResponse {
}
message ListAuthMethodsRequest {
string scope_id = 1 [json_name = "scope_id"]; // @gotags: `class:"public"`
string scope_id = 1 [json_name = "scope_id"]; // @gotags: `class:"public" eventstream:"observation"`
bool recursive = 20 [json_name = "recursive"]; // @gotags: `class:"public"`
string filter = 30 [json_name = "filter"]; // @gotags: `class:"public"`
}
@@ -118,12 +118,12 @@ message CreateAuthMethodRequest {
}
message CreateAuthMethodResponse {
string uri = 1; // @gotags: `class:"public"`
string uri = 1; // @gotags: `class:"public" eventstream:"observation"`
resources.authmethods.v1.AuthMethod item = 2;
}
message UpdateAuthMethodRequest {
string id = 1; // @gotags: `class:"public"`
string id = 1; // @gotags: `class:"public" eventstream:"observation"`
resources.authmethods.v1.AuthMethod item = 2;
google.protobuf.FieldMask update_mask = 3 [json_name = "update_mask"];
}
@@ -133,7 +133,7 @@ message UpdateAuthMethodResponse {
}
message DeleteAuthMethodRequest {
string id = 1; // @gotags: `class:"public"`
string id = 1; // @gotags: `class:"public" eventstream:"observation"`
}
message DeleteAuthMethodResponse {}
@@ -194,7 +194,7 @@ message LdapLoginAttributes {
message AuthenticateRequest {
// The ID of the Auth Method in the system that should be used for authentication.
string auth_method_id = 1 [json_name = "auth_method_id"]; // @gotags: `class:"public"`
string auth_method_id = 1 [json_name = "auth_method_id"]; // @gotags: `class:"public" eventstream:"observation"`
// This can be "cookie" or "token". If not provided, "token" will be used. "cookie" activates a split-cookie method where the token is split partially between http-only and regular cookies in order
// to keep it safe from rogue JS in the browser. Deprecated, use "type" instead.
string token_type = 2 [
@@ -203,7 +203,7 @@ message AuthenticateRequest {
]; // @gotags: `class:"public"`
// This can be "cookie" or "token". If not provided, "token" will be used. "cookie" activates a split-cookie method where the token is split partially between http-only and regular cookies in order
// to keep it safe from rogue JS in the browser.
string type = 6 [json_name = "type"]; // @gotags: `class:"public"`
string type = 6 [json_name = "type"]; // @gotags: `class:"public" eventstream:"observation"`
oneof attrs {
// Attributes are passed to the Auth Method; the valid keys and values depend on the type of Auth Method as well as the command.
google.protobuf.Struct attributes = 4;
@@ -227,7 +227,7 @@ message AuthenticateResponse {
reserved 1, 2; // Old item and token_type
reserved "item", "token_type";
// The type of the token returned. Either "cookie" or "token".
string type = 3; // @gotags: `class:"public"`
string type = 3; // @gotags: `class:"public" eventstream:"observation"`
oneof attrs {
// Valid keys and values depend on the type of Auth Method as well as the command.
google.protobuf.Struct attributes = 4 [json_name = "attributes"];
@@ -113,7 +113,7 @@ service GroupService {
}
message GetGroupRequest {
string id = 1; // @gotags: `class:"public"`
string id = 1; // @gotags: `class:"public" eventstream:"observation"`
}
message GetGroupResponse {
@@ -121,7 +121,7 @@ message GetGroupResponse {
}
message ListGroupsRequest {
string scope_id = 1 [json_name = "scope_id"]; // @gotags: `class:"public"`
string scope_id = 1 [json_name = "scope_id"]; // @gotags: `class:"public" eventstream:"observation"`
bool recursive = 20 [json_name = "recursive"]; // @gotags: `class:"public"`
string filter = 30 [json_name = "filter"]; // @gotags: `class:"public"`
}
@@ -135,12 +135,12 @@ message CreateGroupRequest {
}
message CreateGroupResponse {
string uri = 1; // @gotags: `class:"public"`
string uri = 1; // @gotags: `class:"public" eventstream:"observation"`
resources.groups.v1.Group item = 2;
}
message UpdateGroupRequest {
string id = 1; // @gotags: `class:"public"`
string id = 1; // @gotags: `class:"public" eventstream:"observation"`
resources.groups.v1.Group item = 2;
google.protobuf.FieldMask update_mask = 3 [json_name = "update_mask"];
}
@@ -150,17 +150,17 @@ message UpdateGroupResponse {
}
message DeleteGroupRequest {
string id = 1; // @gotags: `class:"public"`
string id = 1; // @gotags: `class:"public" eventstream:"observation"`
}
message DeleteGroupResponse {}
message AddGroupMembersRequest {
string id = 1; // @gotags: `class:"public"`
string id = 1; // @gotags: `class:"public" eventstream:"observation"`
// Version is used to ensure this resource has not changed.
// The mutation will fail if the version does not match the latest known good version.
uint32 version = 2; // @gotags: `class:"public"`
repeated string member_ids = 3 [json_name = "member_ids"]; // @gotags: `class:"public"`
repeated string member_ids = 3 [json_name = "member_ids"]; // @gotags: `class:"public" eventstream:"observation"`
}
message AddGroupMembersResponse {
@@ -168,11 +168,11 @@ message AddGroupMembersResponse {
}
message SetGroupMembersRequest {
string id = 1; // @gotags: `class:"public"`
string id = 1; // @gotags: `class:"public" eventstream:"observation"`
// Version is used to ensure this resource has not changed.
// The mutation will fail if the version does not match the latest known good version.
uint32 version = 2; // @gotags: `class:"public"`
repeated string member_ids = 3 [json_name = "member_ids"]; // @gotags: `class:"public"`
repeated string member_ids = 3 [json_name = "member_ids"]; // @gotags: `class:"public" eventstream:"observation"`
}
message SetGroupMembersResponse {
@@ -180,11 +180,11 @@ message SetGroupMembersResponse {
}
message RemoveGroupMembersRequest {
string id = 1; // @gotags: `class:"public"`
string id = 1; // @gotags: `class:"public" eventstream:"observation"`
// Version is used to ensure this resource has not changed.
// The mutation will fail if the version does not match the latest known good version.
uint32 version = 2; // @gotags: `class:"public"`
repeated string member_ids = 3 [json_name = "member_ids"]; // @gotags: `class:"public"`
repeated string member_ids = 3 [json_name = "member_ids"]; // @gotags: `class:"public" eventstream:"observation"`
}
message RemoveGroupMembersResponse {
@@ -74,7 +74,7 @@ service HostCatalogService {
}
message GetHostCatalogRequest {
string id = 1; // @gotags: `class:"public"`
string id = 1; // @gotags: `class:"public" eventstream:"observation"`
}
message GetHostCatalogResponse {
@@ -82,7 +82,7 @@ message GetHostCatalogResponse {
}
message ListHostCatalogsRequest {
string scope_id = 1 [json_name = "scope_id"]; // @gotags: `class:"public"`
string scope_id = 1 [json_name = "scope_id"]; // @gotags: `class:"public" eventstream:"observation"`
bool recursive = 20 [json_name = "recursive"]; // @gotags: `class:"public"`
string filter = 30 [json_name = "filter"]; // @gotags: `class:"public"`
}
@@ -99,12 +99,12 @@ message CreateHostCatalogRequest {
}
message CreateHostCatalogResponse {
string uri = 1; // @gotags: `class:"public"`
string uri = 1; // @gotags: `class:"public" eventstream:"observation"`
api.resources.hostcatalogs.v1.HostCatalog item = 2;
}
message UpdateHostCatalogRequest {
string id = 1; // @gotags: `class:"public"`
string id = 1; // @gotags: `class:"public" eventstream:"observation"`
api.resources.hostcatalogs.v1.HostCatalog item = 2;
google.protobuf.FieldMask update_mask = 3;
}
@@ -114,7 +114,7 @@ message UpdateHostCatalogResponse {
}
message DeleteHostCatalogRequest {
string id = 1; // @gotags: `class:"public"`
string id = 1; // @gotags: `class:"public" eventstream:"observation"`
}
message DeleteHostCatalogResponse {}
@@ -76,7 +76,7 @@ service ManagedGroupService {
}
message GetManagedGroupRequest {
string id = 1; // @gotags: `class:"public"`
string id = 1; // @gotags: `class:"public" eventstream:"observation"`
}
message GetManagedGroupResponse {
@@ -84,7 +84,7 @@ message GetManagedGroupResponse {
}
message ListManagedGroupsRequest {
string auth_method_id = 1 [json_name = "auth_method_id"]; // @gotags: `class:"public"`
string auth_method_id = 1 [json_name = "auth_method_id"]; // @gotags: `class:"public" eventstream:"observation"`
string filter = 30 [json_name = "filter"]; // @gotags: `class:"public"`
}
@@ -102,7 +102,7 @@ message CreateManagedGroupResponse {
}
message UpdateManagedGroupRequest {
string id = 1; // @gotags: `class:"public"`
string id = 1; // @gotags: `class:"public" eventstream:"observation"`
resources.managedgroups.v1.ManagedGroup item = 2;
google.protobuf.FieldMask update_mask = 3 [json_name = "update_mask"];
}
@@ -112,7 +112,7 @@ message UpdateManagedGroupResponse {
}
message DeleteManagedGroupRequest {
string id = 1; // @gotags: `class:"public"`
string id = 1; // @gotags: `class:"public" eventstream:"observation"`
}
message DeleteManagedGroupResponse {}
@@ -155,7 +155,7 @@ service RoleService {
}
message GetRoleRequest {
string id = 1; // @gotags: `class:"public"`
string id = 1; // @gotags: `class:"public" eventstream:"observation"`
}
message GetRoleResponse {
@@ -163,7 +163,7 @@ message GetRoleResponse {
}
message ListRolesRequest {
string scope_id = 1 [json_name = "scope_id"]; // @gotags: `class:"public"`
string scope_id = 1 [json_name = "scope_id"]; // @gotags: `class:"public" eventstream:"observation"`
bool recursive = 20 [json_name = "recursive"]; // @gotags: `class:"public"`
string filter = 30 [json_name = "filter"]; // @gotags: `class:"public"`
}
@@ -182,7 +182,7 @@ message CreateRoleResponse {
}
message UpdateRoleRequest {
string id = 1; // @gotags: `class:"public"`
string id = 1; // @gotags: `class:"public" eventstream:"observation"`
resources.roles.v1.Role item = 2;
google.protobuf.FieldMask update_mask = 3 [json_name = "update_mask"];
}
@@ -192,17 +192,17 @@ message UpdateRoleResponse {
}
message DeleteRoleRequest {
string id = 1; // @gotags: `class:"public"`
string id = 1; // @gotags: `class:"public" eventstream:"observation"`
}
message DeleteRoleResponse {}
message AddRolePrincipalsRequest {
string id = 1; // @gotags: `class:"public"`
string id = 1; // @gotags: `class:"public" eventstream:"observation"`
// Version is used to ensure this resource has not changed.
// The mutation will fail if the version does not match the latest known good version.
uint32 version = 2; // @gotags: `class:"public"`
repeated string principal_ids = 3 [json_name = "principal_ids"]; // @gotags: `class:"public"`
repeated string principal_ids = 3 [json_name = "principal_ids"]; // @gotags: `class:"public" eventstream:"observation"`
}
message AddRolePrincipalsResponse {
@@ -210,11 +210,11 @@ message AddRolePrincipalsResponse {
}
message SetRolePrincipalsRequest {
string id = 1; // @gotags: `class:"public"`
string id = 1; // @gotags: `class:"public" eventstream:"observation"`
// Version is used to ensure this resource has not changed.
// The mutation will fail if the version does not match the latest known good version.
uint32 version = 2; // @gotags: `class:"public"`
repeated string principal_ids = 3 [json_name = "principal_ids"]; // @gotags: `class:"public"`
repeated string principal_ids = 3 [json_name = "principal_ids"]; // @gotags: `class:"public" eventstream:"observation"`
}
message SetRolePrincipalsResponse {
@@ -222,11 +222,11 @@ message SetRolePrincipalsResponse {
}
message RemoveRolePrincipalsRequest {
string id = 1; // @gotags: `class:"public"`
string id = 1; // @gotags: `class:"public" eventstream:"observation"`
// Version is used to ensure this resource has not changed.
// The mutation will fail if the version does not match the latest known good version.
uint32 version = 2; // @gotags: `class:"public"`
repeated string principal_ids = 3 [json_name = "principal_ids"]; // @gotags: `class:"public"`
repeated string principal_ids = 3 [json_name = "principal_ids"]; // @gotags: `class:"public" eventstream:"observation"`
}
message RemoveRolePrincipalsResponse {
@@ -112,7 +112,7 @@ service ScopeService {
}
message GetScopeRequest {
string id = 1; // @gotags: `class:"public"`
string id = 1; // @gotags: `class:"public" eventstream:"observation"`
}
message GetScopeResponse {
@@ -120,7 +120,7 @@ message GetScopeResponse {
}
message ListScopesRequest {
string scope_id = 1; // @gotags: `class:"public"`
string scope_id = 1; // @gotags: `class:"public" eventstream:"observation"`
bool recursive = 20 [json_name = "recursive"]; // @gotags: `class:"public"`
string filter = 30 [json_name = "filter"]; // @gotags: `class:"public"`
}
@@ -136,12 +136,12 @@ message CreateScopeRequest {
}
message CreateScopeResponse {
string uri = 1; // @gotags: `class:"public"`
string uri = 1; // @gotags: `class:"public" eventstream:"observation"`
resources.scopes.v1.Scope item = 2;
}
message UpdateScopeRequest {
string id = 1; // @gotags: `class:"public"`
string id = 1; // @gotags: `class:"public" eventstream:"observation"`
resources.scopes.v1.Scope item = 2;
google.protobuf.FieldMask update_mask = 3 [json_name = "update_mask"];
}
@@ -151,7 +151,7 @@ message UpdateScopeResponse {
}
message DeleteScopeRequest {
string id = 1; // @gotags: `class:"public"`
string id = 1; // @gotags: `class:"public" eventstream:"observation"`
}
message DeleteScopeResponse {}
@@ -47,7 +47,7 @@ service SessionService {
}
message GetSessionRequest {
string id = 1; // @gotags: `class:"public"`
string id = 1; // @gotags: `class:"public" eventstream:"observation"`
}
message GetSessionResponse {
@@ -55,12 +55,12 @@ message GetSessionResponse {
}
message ListSessionsRequest {
string scope_id = 1; // @gotags: `class:"public"`
bool recursive = 20 [json_name = "recursive"]; // @gotags: `class:"public"`
string scope_id = 1; // @gotags: `class:"public" eventstream:"observation"`
bool recursive = 20 [json_name = "recursive"]; // @gotags: `class:"public" eventstream:"observation"`
string filter = 30 [json_name = "filter"]; // @gotags: `class:"public"`
// Experimental. By default only non-terminated (i.e. pending, active, canceling) are returned.
// Set this option to include terminated sessions as well.
bool include_terminated = 40 [json_name = "include_terminated"]; // @gotags: `class:"public"`
bool include_terminated = 40 [json_name = "include_terminated"]; // @gotags: `class:"public" eventstream:"observation"`
}
message ListSessionsResponse {
@@ -68,7 +68,7 @@ message ListSessionsResponse {
}
message CancelSessionRequest {
string id = 1; // @gotags: `class:"public"`
string id = 1; // @gotags: `class:"public" eventstream:"observation"`
uint32 version = 2; // @gotags: `class:"public"`
}
@@ -187,7 +187,7 @@ service TargetService {
}
message GetTargetRequest {
string id = 1; // @gotags: `class:"public"`
string id = 1; // @gotags: `class:"public" eventstream:"observation"`
}
message GetTargetResponse {
@@ -195,8 +195,8 @@ message GetTargetResponse {
}
message ListTargetsRequest {
string scope_id = 1; // @gotags: `class:"public"`
bool recursive = 20 [json_name = "recursive"]; // @gotags: `class:"public"`
string scope_id = 1; // @gotags: `class:"public" eventstream:"observation"`
bool recursive = 20 [json_name = "recursive"]; // @gotags: `class:"public" eventstream:"observation"`
string filter = 30 [json_name = "filter"]; // @gotags: `class:"public"`
}
@@ -209,12 +209,12 @@ message CreateTargetRequest {
}
message CreateTargetResponse {
string uri = 1; // @gotags: `class:"public"`
string uri = 1; // @gotags: `class:"public" eventstream:"observation"`
resources.targets.v1.Target item = 2;
}
message UpdateTargetRequest {
string id = 1; // @gotags: `class:"public"`
string id = 1; // @gotags: `class:"public" eventstream:"observation"`
resources.targets.v1.Target item = 2;
google.protobuf.FieldMask update_mask = 3 [json_name = "update_mask"];
}
@@ -224,17 +224,17 @@ message UpdateTargetResponse {
}
message DeleteTargetRequest {
string id = 1; // @gotags: `class:"public"`
string id = 1; // @gotags: `class:"public" eventstream:"observation"`
}
message DeleteTargetResponse {}
message AddTargetHostSourcesRequest {
string id = 1; // @gotags: `class:"public"`
string id = 1; // @gotags: `class:"public" eventstream:"observation"`
// Version is used to ensure this resource has not changed.
// The mutation will fail if the version does not match the latest known good version.
uint32 version = 2; // @gotags: `class:"public"`
repeated string host_source_ids = 3 [json_name = "host_source_ids"]; // @gotags: `class:"public"`
repeated string host_source_ids = 3 [json_name = "host_source_ids"]; // @gotags: `class:"public" eventstream:"observation"`
}
message AddTargetHostSourcesResponse {
@@ -242,11 +242,11 @@ message AddTargetHostSourcesResponse {
}
message SetTargetHostSourcesRequest {
string id = 1; // @gotags: `class:"public"`
string id = 1; // @gotags: `class:"public" eventstream:"observation"`
// Version is used to ensure this resource has not changed.
// The mutation will fail if the version does not match the latest known good version.
uint32 version = 2; // @gotags: `class:"public"`
repeated string host_source_ids = 3 [json_name = "host_source_ids"]; // @gotags: `class:"public"`
repeated string host_source_ids = 3 [json_name = "host_source_ids"]; // @gotags: `class:"public" eventstream:"observation"`
}
message SetTargetHostSourcesResponse {
@@ -254,11 +254,11 @@ message SetTargetHostSourcesResponse {
}
message RemoveTargetHostSourcesRequest {
string id = 1; // @gotags: `class:"public"`
string id = 1; // @gotags: `class:"public" eventstream:"observation"`
// Version is used to ensure this resource has not changed.
// The mutation will fail if the version does not match the latest known good version.
uint32 version = 2; // @gotags: `class:"public"`
repeated string host_source_ids = 3 [json_name = "host_source_ids"]; // @gotags: `class:"public"`
repeated string host_source_ids = 3 [json_name = "host_source_ids"]; // @gotags: `class:"public" eventstream:"observation"`
}
message RemoveTargetHostSourcesResponse {
@@ -356,19 +356,19 @@ message RemoveTargetCredentialSourcesResponse {
message AuthorizeSessionRequest {
// The ID of the target. Required unless some combination of scope_id/scope_name and name are set.
string id = 1; // @gotags: `class:"public"`
string id = 1; // @gotags: `class:"public" eventstream:"observation"`
// The name of the target. When using this, scope_id or scope_name must be set.
string name = 3; // @gotags: `class:"public"`
// The scope ID containing the target, if specifying the target by name.
string scope_id = 4; // @gotags: `class:"public"`
string scope_id = 4; // @gotags: `class:"public" eventstream:"observation"`
// The scope name containing the target, if specifying the target by name.
string scope_name = 5; // @gotags: `class:"public"`
// An optional parameter allowing specification of the particular Host within the Target's configured Host Sets to connect to during this Session.
string host_id = 2 [json_name = "host_id"]; // @gotags: `class:"public"`
string host_id = 2 [json_name = "host_id"]; // @gotags: `class:"public" eventstream:"observation"`
}
message AuthorizeSessionResponse {
@@ -118,7 +118,7 @@ service UserService {
}
message GetUserRequest {
string id = 1; // @gotags: `class:"public"`
string id = 1; // @gotags: `class:"public" eventstream:"observation"`
}
message GetUserResponse {
@@ -126,7 +126,7 @@ message GetUserResponse {
}
message ListUsersRequest {
string scope_id = 1; // @gotags: `class:"public"`
string scope_id = 1; // @gotags: `class:"public" eventstream:"observation"`
bool recursive = 20 [json_name = "recursive"]; // @gotags: `class:"public"`
string filter = 30 [json_name = "filter"]; // @gotags: `class:"sensitive"`
}
@@ -140,12 +140,12 @@ message CreateUserRequest {
}
message CreateUserResponse {
string uri = 1; // @gotags: `class:"public"`
string uri = 1; // @gotags: `class:"public" eventstream:"observation"`
resources.users.v1.User item = 2;
}
message UpdateUserRequest {
string id = 1; // @gotags: `class:"public"`
string id = 1; // @gotags: `class:"public" eventstream:"observation"`
resources.users.v1.User item = 2;
google.protobuf.FieldMask update_mask = 3 [json_name = "update_mask"];
}
@@ -155,16 +155,16 @@ message UpdateUserResponse {
}
message DeleteUserRequest {
string id = 1; // @gotags: `class:"public"`
string id = 1; // @gotags: `class:"public" eventstream:"observation"`
}
message DeleteUserResponse {}
message AddUserAccountsRequest {
string id = 1; // @gotags: `class:"public"`
string id = 1; // @gotags: `class:"public" eventstream:"observation"`
// The version ensures the User hasn't changed since it was last retrieved and if it has the request will fail.
uint32 version = 2; // @gotags: `class:"public"`
repeated string account_ids = 3 [json_name = "account_ids"]; // @gotags: `class:"public"`
repeated string account_ids = 3 [json_name = "account_ids"]; // @gotags: `class:"public" eventstream:"observation"`
}
message AddUserAccountsResponse {
@@ -172,10 +172,10 @@ message AddUserAccountsResponse {
}
message SetUserAccountsRequest {
string id = 1; // @gotags: `class:"public"`
string id = 1; // @gotags: `class:"public" eventstream:"observation"`
// The version ensures the User hasn't changed since it was last retrieved and if it has the request will fail.
uint32 version = 2; // @gotags: `class:"public"`
repeated string account_ids = 3 [json_name = "account_ids"]; // @gotags: `class:"public"`
repeated string account_ids = 3 [json_name = "account_ids"]; // @gotags: `class:"public" eventstream:"observation"`
}
message SetUserAccountsResponse {
@@ -183,10 +183,10 @@ message SetUserAccountsResponse {
}
message RemoveUserAccountsRequest {
string id = 1; // @gotags: `class:"public"`
string id = 1; // @gotags: `class:"public" eventstream:"observation"`
// The version ensures the User hasn't changed since it was last retrieved and if it has the request will fail.
uint32 version = 2; // @gotags: `class:"public"`
repeated string account_ids = 3 [json_name = "account_ids"]; // @gotags: `class:"public"`
repeated string account_ids = 3 [json_name = "account_ids"]; // @gotags: `class:"public" eventstream:"observation"`
}
message RemoveUserAccountsResponse {
@@ -143,7 +143,7 @@ service WorkerService {
}
message GetWorkerRequest {
string id = 1; // @gotags: `class:"public"`
string id = 1; // @gotags: `class:"public" eventstream:"observation"`
}
message GetWorkerResponse {
@@ -151,7 +151,7 @@ message GetWorkerResponse {
}
message ListWorkersRequest {
string scope_id = 1; // @gotags: `class:"public"`
string scope_id = 1; // @gotags: `class:"public" eventstream:"observation"`
bool recursive = 20 [json_name = "recursive"]; // @gotags: `class:"public"`
string filter = 30 [json_name = "filter"]; // @gotags: `class:"sensitive"`
}
@@ -165,7 +165,7 @@ message CreateWorkerLedRequest {
}
message CreateWorkerLedResponse {
string uri = 1; // @gotags: `class:"public"`
string uri = 1; // @gotags: `class:"public" eventstream:"observation"`
resources.workers.v1.Worker item = 2;
}
@@ -174,7 +174,7 @@ message CreateControllerLedRequest {
}
message CreateControllerLedResponse {
string uri = 1; // @gotags: `class:"public"`
string uri = 1; // @gotags: `class:"public" eventstream:"observation"`
resources.workers.v1.Worker item = 2;
}
@@ -195,7 +195,7 @@ message DeleteWorkerRequest {
message DeleteWorkerResponse {}
message AddWorkerTagsRequest {
string id = 1; // @gotags: `class:"public"`
string id = 1; // @gotags: `class:"public" eventstream:"observation"`
// Version is used to ensure this resource has not changed.
// The mutation will fail if the version does not match the latest known good version.
uint32 version = 2; // @gotags: `class:"public"`
@@ -207,7 +207,7 @@ message AddWorkerTagsResponse {
}
message SetWorkerTagsRequest {
string id = 1; // @gotags: `class:"public"`
string id = 1; // @gotags: `class:"public" eventstream:"observation"`
// Version is used to ensure this resource has not changed.
// The mutation will fail if the version does not match the latest known good version.
uint32 version = 2; // @gotags: `class:"public"`
@@ -219,7 +219,7 @@ message SetWorkerTagsResponse {
}
message RemoveWorkerTagsRequest {
string id = 1; // @gotags: `class:"public"`
string id = 1; // @gotags: `class:"public" eventstream:"observation"`
// Version is used to ensure this resource has not changed.
// The mutation will fail if the version does not match the latest known good version.
uint32 version = 2; // @gotags: `class:"public"`