From 16d86d601a2ecc9a45284651b235bbf1c85ce9c1 Mon Sep 17 00:00:00 2001 From: Sepehr Date: Thu, 24 Aug 2023 12:43:52 -0700 Subject: [PATCH] Add additional observation tags, remove from version and authorized_action --- .../controller/api/services/account_service.pb.go | 4 ++-- .../api/services/auth_method_service.pb.go | 2 +- .../gen/controller/api/services/group_service.pb.go | 2 +- .../api/services/host_catalog_service.pb.go | 2 +- .../gen/controller/api/services/host_service.pb.go | 10 +++++----- .../gen/controller/api/services/role_service.pb.go | 2 +- .../gen/controller/api/services/scope_service.pb.go | 2 +- .../gen/controller/api/services/user_service.pb.go | 2 +- .../gen/controller/api/services/worker_service.pb.go | 2 +- .../api/resources/accounts/v1/account.proto | 4 ++-- .../api/resources/authmethods/v1/auth_method.proto | 2 +- .../controller/api/resources/groups/v1/group.proto | 2 +- .../api/resources/hostcatalogs/v1/host_catalog.proto | 2 +- .../controller/api/resources/hosts/v1/host.proto | 12 ++++++------ .../controller/api/services/v1/account_service.proto | 4 ++-- .../api/services/v1/auth_method_service.proto | 2 +- .../controller/api/services/v1/group_service.proto | 2 +- .../api/services/v1/host_catalog_service.proto | 2 +- .../controller/api/services/v1/host_service.proto | 10 +++++----- .../controller/api/services/v1/role_service.proto | 2 +- .../controller/api/services/v1/scope_service.proto | 2 +- .../controller/api/services/v1/user_service.proto | 2 +- .../controller/api/services/v1/worker_service.proto | 2 +- .../controller/api/resources/accounts/account.pb.go | 4 ++-- .../api/resources/authmethods/auth_method.pb.go | 2 +- sdk/pbs/controller/api/resources/groups/group.pb.go | 2 +- .../api/resources/hostcatalogs/host_catalog.pb.go | 2 +- sdk/pbs/controller/api/resources/hosts/host.pb.go | 12 ++++++------ 28 files changed, 50 insertions(+), 50 deletions(-) diff --git a/internal/gen/controller/api/services/account_service.pb.go b/internal/gen/controller/api/services/account_service.pb.go index ed38c68ad..bfd15d46b 100644 --- a/internal/gen/controller/api/services/account_service.pb.go +++ b/internal/gen/controller/api/services/account_service.pb.go @@ -529,7 +529,7 @@ type SetPasswordRequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty" class:"public" eventstream:"observation"` // @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. - Version uint32 `protobuf:"varint,2,opt,name=version,proto3" json:"version,omitempty" class:"public" eventstream:"observation"` // @gotags: `class:"public" eventstream:"observation"` + Version uint32 `protobuf:"varint,2,opt,name=version,proto3" json:"version,omitempty" class:"public"` // @gotags: `class:"public"` Password string `protobuf:"bytes,3,opt,name=password,proto3" json:"password,omitempty" class:"secret"` // @gotags: `class:"secret"` } @@ -641,7 +641,7 @@ type ChangePasswordRequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty" class:"public" eventstream:"observation"` // @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. - Version uint32 `protobuf:"varint,2,opt,name=version,proto3" json:"version,omitempty" class:"public" eventstream:"observation"` // @gotags: `class:"public" eventstream:"observation"` + Version uint32 `protobuf:"varint,2,opt,name=version,proto3" json:"version,omitempty" class:"public"` // @gotags: `class:"public"` CurrentPassword string `protobuf:"bytes,3,opt,name=current_password,proto3" json:"current_password,omitempty" class:"secret"` // @gotags: `class:"secret"` NewPassword string `protobuf:"bytes,4,opt,name=new_password,proto3" json:"new_password,omitempty" class:"secret"` // @gotags: `class:"secret"` } diff --git a/internal/gen/controller/api/services/auth_method_service.pb.go b/internal/gen/controller/api/services/auth_method_service.pb.go index c7a61b7b2..f3cb4a648 100644 --- a/internal/gen/controller/api/services/auth_method_service.pb.go +++ b/internal/gen/controller/api/services/auth_method_service.pb.go @@ -131,7 +131,7 @@ type ListAuthMethodsRequest struct { unknownFields protoimpl.UnknownFields ScopeId string `protobuf:"bytes,1,opt,name=scope_id,proto3" json:"scope_id,omitempty" class:"public" eventstream:"observation"` // @gotags: `class:"public" eventstream:"observation"` - Recursive bool `protobuf:"varint,20,opt,name=recursive,proto3" json:"recursive,omitempty" class:"public"` // @gotags: `class:"public"` + Recursive bool `protobuf:"varint,20,opt,name=recursive,proto3" json:"recursive,omitempty" class:"public" eventstream:"observation"` // @gotags: `class:"public" eventstream:"observation"` Filter string `protobuf:"bytes,30,opt,name=filter,proto3" json:"filter,omitempty" class:"public"` // @gotags: `class:"public"` } diff --git a/internal/gen/controller/api/services/group_service.pb.go b/internal/gen/controller/api/services/group_service.pb.go index 7bb6f73fc..a3cd8872b 100644 --- a/internal/gen/controller/api/services/group_service.pb.go +++ b/internal/gen/controller/api/services/group_service.pb.go @@ -127,7 +127,7 @@ type ListGroupsRequest struct { unknownFields protoimpl.UnknownFields ScopeId string `protobuf:"bytes,1,opt,name=scope_id,proto3" json:"scope_id,omitempty" class:"public" eventstream:"observation"` // @gotags: `class:"public" eventstream:"observation"` - Recursive bool `protobuf:"varint,20,opt,name=recursive,proto3" json:"recursive,omitempty" class:"public"` // @gotags: `class:"public"` + Recursive bool `protobuf:"varint,20,opt,name=recursive,proto3" json:"recursive,omitempty" class:"public" eventstream:"observation"` // @gotags: `class:"public" eventstream:"observation"` Filter string `protobuf:"bytes,30,opt,name=filter,proto3" json:"filter,omitempty" class:"public"` // @gotags: `class:"public"` } diff --git a/internal/gen/controller/api/services/host_catalog_service.pb.go b/internal/gen/controller/api/services/host_catalog_service.pb.go index f3e066e6f..edbfebf33 100644 --- a/internal/gen/controller/api/services/host_catalog_service.pb.go +++ b/internal/gen/controller/api/services/host_catalog_service.pb.go @@ -128,7 +128,7 @@ type ListHostCatalogsRequest struct { unknownFields protoimpl.UnknownFields ScopeId string `protobuf:"bytes,1,opt,name=scope_id,proto3" json:"scope_id,omitempty" class:"public" eventstream:"observation"` // @gotags: `class:"public" eventstream:"observation"` - Recursive bool `protobuf:"varint,20,opt,name=recursive,proto3" json:"recursive,omitempty" class:"public"` // @gotags: `class:"public"` + Recursive bool `protobuf:"varint,20,opt,name=recursive,proto3" json:"recursive,omitempty" class:"public" eventstream:"observation"` // @gotags: `class:"public" eventstream:"observation"` Filter string `protobuf:"bytes,30,opt,name=filter,proto3" json:"filter,omitempty" class:"public"` // @gotags: `class:"public"` } diff --git a/internal/gen/controller/api/services/host_service.pb.go b/internal/gen/controller/api/services/host_service.pb.go index 9d495b5ae..a93b06fcd 100644 --- a/internal/gen/controller/api/services/host_service.pb.go +++ b/internal/gen/controller/api/services/host_service.pb.go @@ -33,7 +33,7 @@ type GetHostRequest struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty" class:"public"` // @gotags: `class:"public"` + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty" class:"public" eventstream:"observation"` // @gotags: `class:"public" eventstream:"observation"` } func (x *GetHostRequest) Reset() { @@ -127,7 +127,7 @@ type ListHostsRequest struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - HostCatalogId string `protobuf:"bytes,1,opt,name=host_catalog_id,proto3" json:"host_catalog_id,omitempty" class:"public"` // @gotags: `class:"public"` + HostCatalogId string `protobuf:"bytes,1,opt,name=host_catalog_id,proto3" json:"host_catalog_id,omitempty" class:"public" eventstream:"observation"` // @gotags: `class:"public" eventstream:"observation"` Filter string `protobuf:"bytes,30,opt,name=filter,proto3" json:"filter,omitempty" class:"public"` // @gotags: `class:"public"` } @@ -276,7 +276,7 @@ type CreateHostResponse struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Uri string `protobuf:"bytes,1,opt,name=uri,proto3" json:"uri,omitempty" class:"public"` // @gotags: `class:"public"` + Uri string `protobuf:"bytes,1,opt,name=uri,proto3" json:"uri,omitempty" class:"public" eventstream:"observation"` // @gotags: `class:"public" eventstream:"observation"` Item *hosts.Host `protobuf:"bytes,2,opt,name=item,proto3" json:"item,omitempty"` } @@ -331,7 +331,7 @@ type UpdateHostRequest struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty" class:"public"` // @gotags: `class:"public"` + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty" class:"public" eventstream:"observation"` // @gotags: `class:"public" eventstream:"observation"` Item *hosts.Host `protobuf:"bytes,2,opt,name=item,proto3" json:"item,omitempty"` UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,3,opt,name=update_mask,proto3" json:"update_mask,omitempty"` } @@ -441,7 +441,7 @@ type DeleteHostRequest struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty" class:"public"` // @gotags: `class:"public"` + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty" class:"public" eventstream:"observation"` // @gotags: `class:"public" eventstream:"observation"` } func (x *DeleteHostRequest) Reset() { diff --git a/internal/gen/controller/api/services/role_service.pb.go b/internal/gen/controller/api/services/role_service.pb.go index 5cdc584d4..91fc6bcac 100644 --- a/internal/gen/controller/api/services/role_service.pb.go +++ b/internal/gen/controller/api/services/role_service.pb.go @@ -127,7 +127,7 @@ type ListRolesRequest struct { unknownFields protoimpl.UnknownFields ScopeId string `protobuf:"bytes,1,opt,name=scope_id,proto3" json:"scope_id,omitempty" class:"public" eventstream:"observation"` // @gotags: `class:"public" eventstream:"observation"` - Recursive bool `protobuf:"varint,20,opt,name=recursive,proto3" json:"recursive,omitempty" class:"public"` // @gotags: `class:"public"` + Recursive bool `protobuf:"varint,20,opt,name=recursive,proto3" json:"recursive,omitempty" class:"public" eventstream:"observation"` // @gotags: `class:"public" eventstream:"observation"` Filter string `protobuf:"bytes,30,opt,name=filter,proto3" json:"filter,omitempty" class:"public"` // @gotags: `class:"public"` } diff --git a/internal/gen/controller/api/services/scope_service.pb.go b/internal/gen/controller/api/services/scope_service.pb.go index 55b0ea687..dd8f21896 100644 --- a/internal/gen/controller/api/services/scope_service.pb.go +++ b/internal/gen/controller/api/services/scope_service.pb.go @@ -127,7 +127,7 @@ type ListScopesRequest struct { unknownFields protoimpl.UnknownFields ScopeId string `protobuf:"bytes,1,opt,name=scope_id,json=scopeId,proto3" json:"scope_id,omitempty" class:"public" eventstream:"observation"` // @gotags: `class:"public" eventstream:"observation"` - Recursive bool `protobuf:"varint,20,opt,name=recursive,proto3" json:"recursive,omitempty" class:"public"` // @gotags: `class:"public"` + Recursive bool `protobuf:"varint,20,opt,name=recursive,proto3" json:"recursive,omitempty" class:"public" eventstream:"observation"` // @gotags: `class:"public" eventstream:"observation"` Filter string `protobuf:"bytes,30,opt,name=filter,proto3" json:"filter,omitempty" class:"public"` // @gotags: `class:"public"` } diff --git a/internal/gen/controller/api/services/user_service.pb.go b/internal/gen/controller/api/services/user_service.pb.go index cd83748e5..25024527f 100644 --- a/internal/gen/controller/api/services/user_service.pb.go +++ b/internal/gen/controller/api/services/user_service.pb.go @@ -127,7 +127,7 @@ type ListUsersRequest struct { unknownFields protoimpl.UnknownFields ScopeId string `protobuf:"bytes,1,opt,name=scope_id,json=scopeId,proto3" json:"scope_id,omitempty" class:"public" eventstream:"observation"` // @gotags: `class:"public" eventstream:"observation"` - Recursive bool `protobuf:"varint,20,opt,name=recursive,proto3" json:"recursive,omitempty" class:"public"` // @gotags: `class:"public"` + Recursive bool `protobuf:"varint,20,opt,name=recursive,proto3" json:"recursive,omitempty" class:"public" eventstream:"observation"` // @gotags: `class:"public" eventstream:"observation"` Filter string `protobuf:"bytes,30,opt,name=filter,proto3" json:"filter,omitempty" class:"sensitive"` // @gotags: `class:"sensitive"` } diff --git a/internal/gen/controller/api/services/worker_service.pb.go b/internal/gen/controller/api/services/worker_service.pb.go index 16f4780f1..c980083ba 100644 --- a/internal/gen/controller/api/services/worker_service.pb.go +++ b/internal/gen/controller/api/services/worker_service.pb.go @@ -128,7 +128,7 @@ type ListWorkersRequest struct { unknownFields protoimpl.UnknownFields ScopeId string `protobuf:"bytes,1,opt,name=scope_id,json=scopeId,proto3" json:"scope_id,omitempty" class:"public" eventstream:"observation"` // @gotags: `class:"public" eventstream:"observation"` - Recursive bool `protobuf:"varint,20,opt,name=recursive,proto3" json:"recursive,omitempty" class:"public"` // @gotags: `class:"public"` + Recursive bool `protobuf:"varint,20,opt,name=recursive,proto3" json:"recursive,omitempty" class:"public" eventstream:"observation"` // @gotags: `class:"public" eventstream:"observation"` Filter string `protobuf:"bytes,30,opt,name=filter,proto3" json:"filter,omitempty" class:"sensitive"` // @gotags: `class:"sensitive"` } diff --git a/internal/proto/controller/api/resources/accounts/v1/account.proto b/internal/proto/controller/api/resources/accounts/v1/account.proto index db903b5a4..54a859038 100644 --- a/internal/proto/controller/api/resources/accounts/v1/account.proto +++ b/internal/proto/controller/api/resources/accounts/v1/account.proto @@ -48,7 +48,7 @@ message Account { // 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" eventstream:"observation"` + uint32 version = 70; // @gotags: `class:"public"` // The type of this Account. string type = 80; // @gotags: `class:"public" eventstream:"observation"` @@ -86,7 +86,7 @@ message Account { 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" eventstream:"observation"` + repeated string authorized_actions = 300 [json_name = "authorized_actions"]; // @gotags: `class:"public"` } // Attributes associated only with Accounts with type "password". diff --git a/internal/proto/controller/api/resources/authmethods/v1/auth_method.proto b/internal/proto/controller/api/resources/authmethods/v1/auth_method.proto index 4fc73f156..cc22f2b7c 100644 --- a/internal/proto/controller/api/resources/authmethods/v1/auth_method.proto +++ b/internal/proto/controller/api/resources/authmethods/v1/auth_method.proto @@ -85,7 +85,7 @@ message AuthMethod { 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" eventstream:"observation"` + repeated string authorized_actions = 300 [json_name = "authorized_actions"]; // @gotags: `class:"public"` // Output only. The authorized actions for the scope's collections. map authorized_collection_actions = 310 [json_name = "authorized_collection_actions"]; // classified as public via taggable implementation diff --git a/internal/proto/controller/api/resources/groups/v1/group.proto b/internal/proto/controller/api/resources/groups/v1/group.proto index d55e68bbf..2d93f7311 100644 --- a/internal/proto/controller/api/resources/groups/v1/group.proto +++ b/internal/proto/controller/api/resources/groups/v1/group.proto @@ -66,5 +66,5 @@ message 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" eventstream:"observation"` + repeated string authorized_actions = 300 [json_name = "authorized_actions"]; // @gotags: `class:"public"` } diff --git a/internal/proto/controller/api/resources/hostcatalogs/v1/host_catalog.proto b/internal/proto/controller/api/resources/hostcatalogs/v1/host_catalog.proto index 779de26cf..f06bdec38 100644 --- a/internal/proto/controller/api/resources/hostcatalogs/v1/host_catalog.proto +++ b/internal/proto/controller/api/resources/hostcatalogs/v1/host_catalog.proto @@ -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" eventstream:"observation"` + repeated string authorized_actions = 300 [json_name = "authorized_actions"]; // @gotags: `class:"public"` // Output only. The authorized actions for the scope's collections. map authorized_collection_actions = 310 [json_name = "authorized_collection_actions"]; // classified as public via taggable implementation diff --git a/internal/proto/controller/api/resources/hosts/v1/host.proto b/internal/proto/controller/api/resources/hosts/v1/host.proto index 665b73997..98be60951 100644 --- a/internal/proto/controller/api/resources/hosts/v1/host.proto +++ b/internal/proto/controller/api/resources/hosts/v1/host.proto @@ -18,13 +18,13 @@ option go_package = "github.com/hashicorp/boundary/sdk/pbs/controller/api/resour // Host contains all fields related to a Host resource message Host { // Output only. The ID of the Host. - string id = 10; // @gotags: `class:"public"` + string id = 10; // @gotags: `class:"public" eventstream:"observation"` // The Host Catalog of which this Host is a part. string host_catalog_id = 20 [ json_name = "host_catalog_id", (custom_options.v1.subtype_source_id) = true - ]; // @gotags: `class:"public"` + ]; // @gotags: `class:"public" eventstream:"observation"` // Output only. Scope information for this resource. resources.scopes.v1.ScopeInfo scope = 30; @@ -51,20 +51,20 @@ message Host { ]; // @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"` // Output only. A list of Host Sets containing this Host. - repeated string host_set_ids = 100 [json_name = "host_set_ids"]; // @gotags: `class:"public"` + repeated string host_set_ids = 100 [json_name = "host_set_ids"]; // @gotags: `class:"public" eventstream:"observation"` oneof attrs { // The attributes that are applicable to the specific Host type. diff --git a/internal/proto/controller/api/services/v1/account_service.proto b/internal/proto/controller/api/services/v1/account_service.proto index 8f262f020..f3198bfab 100644 --- a/internal/proto/controller/api/services/v1/account_service.proto +++ b/internal/proto/controller/api/services/v1/account_service.proto @@ -145,7 +145,7 @@ message SetPasswordRequest { 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" eventstream:"observation"` + uint32 version = 2; // @gotags: `class:"public"` string password = 3; // @gotags: `class:"secret"` } @@ -157,7 +157,7 @@ message ChangePasswordRequest { 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" eventstream:"observation"` + uint32 version = 2; // @gotags: `class:"public"` string current_password = 3 [json_name = "current_password"]; // @gotags: `class:"secret"` string new_password = 4 [json_name = "new_password"]; // @gotags: `class:"secret"` } diff --git a/internal/proto/controller/api/services/v1/auth_method_service.proto b/internal/proto/controller/api/services/v1/auth_method_service.proto index 20213195a..b6877cb66 100644 --- a/internal/proto/controller/api/services/v1/auth_method_service.proto +++ b/internal/proto/controller/api/services/v1/auth_method_service.proto @@ -105,7 +105,7 @@ message GetAuthMethodResponse { message ListAuthMethodsRequest { string scope_id = 1 [json_name = "scope_id"]; // @gotags: `class:"public" eventstream:"observation"` - bool recursive = 20 [json_name = "recursive"]; // @gotags: `class:"public"` + bool recursive = 20 [json_name = "recursive"]; // @gotags: `class:"public" eventstream:"observation"` string filter = 30 [json_name = "filter"]; // @gotags: `class:"public"` } diff --git a/internal/proto/controller/api/services/v1/group_service.proto b/internal/proto/controller/api/services/v1/group_service.proto index 21ccdd480..beececf7a 100644 --- a/internal/proto/controller/api/services/v1/group_service.proto +++ b/internal/proto/controller/api/services/v1/group_service.proto @@ -122,7 +122,7 @@ message GetGroupResponse { message ListGroupsRequest { string scope_id = 1 [json_name = "scope_id"]; // @gotags: `class:"public" eventstream:"observation"` - bool recursive = 20 [json_name = "recursive"]; // @gotags: `class:"public"` + bool recursive = 20 [json_name = "recursive"]; // @gotags: `class:"public" eventstream:"observation"` string filter = 30 [json_name = "filter"]; // @gotags: `class:"public"` } diff --git a/internal/proto/controller/api/services/v1/host_catalog_service.proto b/internal/proto/controller/api/services/v1/host_catalog_service.proto index 68717b2f0..b65a9b063 100644 --- a/internal/proto/controller/api/services/v1/host_catalog_service.proto +++ b/internal/proto/controller/api/services/v1/host_catalog_service.proto @@ -83,7 +83,7 @@ message GetHostCatalogResponse { message ListHostCatalogsRequest { string scope_id = 1 [json_name = "scope_id"]; // @gotags: `class:"public" eventstream:"observation"` - bool recursive = 20 [json_name = "recursive"]; // @gotags: `class:"public"` + bool recursive = 20 [json_name = "recursive"]; // @gotags: `class:"public" eventstream:"observation"` string filter = 30 [json_name = "filter"]; // @gotags: `class:"public"` } diff --git a/internal/proto/controller/api/services/v1/host_service.proto b/internal/proto/controller/api/services/v1/host_service.proto index 7cee6d3ee..4605c328d 100644 --- a/internal/proto/controller/api/services/v1/host_service.proto +++ b/internal/proto/controller/api/services/v1/host_service.proto @@ -76,7 +76,7 @@ service HostService { } message GetHostRequest { - string id = 1; // @gotags: `class:"public"` + string id = 1; // @gotags: `class:"public" eventstream:"observation"` } message GetHostResponse { @@ -84,7 +84,7 @@ message GetHostResponse { } message ListHostsRequest { - string host_catalog_id = 1 [json_name = "host_catalog_id"]; // @gotags: `class:"public"` + string host_catalog_id = 1 [json_name = "host_catalog_id"]; // @gotags: `class:"public" eventstream:"observation"` string filter = 30 [json_name = "filter"]; // @gotags: `class:"public"` } @@ -97,12 +97,12 @@ message CreateHostRequest { } message CreateHostResponse { - string uri = 1; // @gotags: `class:"public"` + string uri = 1; // @gotags: `class:"public" eventstream:"observation"` api.resources.hosts.v1.Host item = 2; } message UpdateHostRequest { - string id = 1; // @gotags: `class:"public"` + string id = 1; // @gotags: `class:"public" eventstream:"observation"` api.resources.hosts.v1.Host item = 2; google.protobuf.FieldMask update_mask = 3 [json_name = "update_mask"]; } @@ -112,7 +112,7 @@ message UpdateHostResponse { } message DeleteHostRequest { - string id = 1; // @gotags: `class:"public"` + string id = 1; // @gotags: `class:"public" eventstream:"observation"` } message DeleteHostResponse {} diff --git a/internal/proto/controller/api/services/v1/role_service.proto b/internal/proto/controller/api/services/v1/role_service.proto index ada9a60a6..de3de9ba8 100644 --- a/internal/proto/controller/api/services/v1/role_service.proto +++ b/internal/proto/controller/api/services/v1/role_service.proto @@ -164,7 +164,7 @@ message GetRoleResponse { message ListRolesRequest { string scope_id = 1 [json_name = "scope_id"]; // @gotags: `class:"public" eventstream:"observation"` - bool recursive = 20 [json_name = "recursive"]; // @gotags: `class:"public"` + bool recursive = 20 [json_name = "recursive"]; // @gotags: `class:"public" eventstream:"observation"` string filter = 30 [json_name = "filter"]; // @gotags: `class:"public"` } diff --git a/internal/proto/controller/api/services/v1/scope_service.proto b/internal/proto/controller/api/services/v1/scope_service.proto index 1eb9f4d6c..d94b769c6 100644 --- a/internal/proto/controller/api/services/v1/scope_service.proto +++ b/internal/proto/controller/api/services/v1/scope_service.proto @@ -121,7 +121,7 @@ message GetScopeResponse { message ListScopesRequest { string scope_id = 1; // @gotags: `class:"public" eventstream:"observation"` - bool recursive = 20 [json_name = "recursive"]; // @gotags: `class:"public"` + bool recursive = 20 [json_name = "recursive"]; // @gotags: `class:"public" eventstream:"observation"` string filter = 30 [json_name = "filter"]; // @gotags: `class:"public"` } diff --git a/internal/proto/controller/api/services/v1/user_service.proto b/internal/proto/controller/api/services/v1/user_service.proto index 91b632596..cd393accd 100644 --- a/internal/proto/controller/api/services/v1/user_service.proto +++ b/internal/proto/controller/api/services/v1/user_service.proto @@ -127,7 +127,7 @@ message GetUserResponse { message ListUsersRequest { string scope_id = 1; // @gotags: `class:"public" eventstream:"observation"` - bool recursive = 20 [json_name = "recursive"]; // @gotags: `class:"public"` + bool recursive = 20 [json_name = "recursive"]; // @gotags: `class:"public" eventstream:"observation"` string filter = 30 [json_name = "filter"]; // @gotags: `class:"sensitive"` } diff --git a/internal/proto/controller/api/services/v1/worker_service.proto b/internal/proto/controller/api/services/v1/worker_service.proto index 73f81a0ff..6a90427b2 100644 --- a/internal/proto/controller/api/services/v1/worker_service.proto +++ b/internal/proto/controller/api/services/v1/worker_service.proto @@ -152,7 +152,7 @@ message GetWorkerResponse { message ListWorkersRequest { string scope_id = 1; // @gotags: `class:"public" eventstream:"observation"` - bool recursive = 20 [json_name = "recursive"]; // @gotags: `class:"public"` + bool recursive = 20 [json_name = "recursive"]; // @gotags: `class:"public" eventstream:"observation"` string filter = 30 [json_name = "filter"]; // @gotags: `class:"sensitive"` } diff --git a/sdk/pbs/controller/api/resources/accounts/account.pb.go b/sdk/pbs/controller/api/resources/accounts/account.pb.go index 5a4ecd984..6aa14124b 100644 --- a/sdk/pbs/controller/api/resources/accounts/account.pb.go +++ b/sdk/pbs/controller/api/resources/accounts/account.pb.go @@ -49,7 +49,7 @@ type Account struct { UpdatedTime *timestamppb.Timestamp `protobuf:"bytes,60,opt,name=updated_time,proto3" json:"updated_time,omitempty" class:"public" eventstream:"observation"` // @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. - Version uint32 `protobuf:"varint,70,opt,name=version,proto3" json:"version,omitempty" class:"public" eventstream:"observation"` // @gotags: `class:"public" eventstream:"observation"` + Version uint32 `protobuf:"varint,70,opt,name=version,proto3" json:"version,omitempty" class:"public"` // @gotags: `class:"public"` // The type of this Account. Type string `protobuf:"bytes,80,opt,name=type,proto3" json:"type,omitempty" class:"public" eventstream:"observation"` // @gotags: `class:"public" eventstream:"observation"` // The ID of the Auth Method that is associated with this Account. @@ -64,7 +64,7 @@ type Account struct { // Output only. managed_group_ids indicates IDs of the managed groups that currently contain this account ManagedGroupIds []string `protobuf:"bytes,110,rep,name=managed_group_ids,proto3" json:"managed_group_ids,omitempty" class:"public" eventstream:"observation"` // @gotags: `class:"public" eventstream:"observation"` // Output only. The available actions on this resource for this user. - AuthorizedActions []string `protobuf:"bytes,300,rep,name=authorized_actions,proto3" json:"authorized_actions,omitempty" class:"public" eventstream:"observation"` // @gotags: `class:"public" eventstream:"observation"` + AuthorizedActions []string `protobuf:"bytes,300,rep,name=authorized_actions,proto3" json:"authorized_actions,omitempty" class:"public"` // @gotags: `class:"public"` } func (x *Account) Reset() { diff --git a/sdk/pbs/controller/api/resources/authmethods/auth_method.pb.go b/sdk/pbs/controller/api/resources/authmethods/auth_method.pb.go index 41e06051b..fe8df0445 100644 --- a/sdk/pbs/controller/api/resources/authmethods/auth_method.pb.go +++ b/sdk/pbs/controller/api/resources/authmethods/auth_method.pb.go @@ -65,7 +65,7 @@ type AuthMethod struct { // To change this value update the primary_auth_method_id field on the scope. IsPrimary bool `protobuf:"varint,110,opt,name=is_primary,proto3" json:"is_primary,omitempty" class:"public" eventstream:"observation"` // @gotags: `class:"public" eventstream:"observation"` // Output only. The available actions on this resource for this user. - AuthorizedActions []string `protobuf:"bytes,300,rep,name=authorized_actions,proto3" json:"authorized_actions,omitempty" class:"public" eventstream:"observation"` // @gotags: `class:"public" eventstream:"observation"` + AuthorizedActions []string `protobuf:"bytes,300,rep,name=authorized_actions,proto3" json:"authorized_actions,omitempty" class:"public"` // @gotags: `class:"public"` // Output only. The authorized actions for the scope's collections. AuthorizedCollectionActions map[string]*structpb.ListValue `protobuf:"bytes,310,rep,name=authorized_collection_actions,proto3" json:"authorized_collection_actions,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` // classified as public via taggable implementation } diff --git a/sdk/pbs/controller/api/resources/groups/group.pb.go b/sdk/pbs/controller/api/resources/groups/group.pb.go index 9c6e9fad5..a4533e40f 100644 --- a/sdk/pbs/controller/api/resources/groups/group.pb.go +++ b/sdk/pbs/controller/api/resources/groups/group.pb.go @@ -112,7 +112,7 @@ type Group struct { // Output only. The members of this Group. Members []*Member `protobuf:"bytes,100,rep,name=members,proto3" json:"members,omitempty"` // Output only. The available actions on this resource for this user. - AuthorizedActions []string `protobuf:"bytes,300,rep,name=authorized_actions,proto3" json:"authorized_actions,omitempty" class:"public" eventstream:"observation"` // @gotags: `class:"public" eventstream:"observation"` + AuthorizedActions []string `protobuf:"bytes,300,rep,name=authorized_actions,proto3" json:"authorized_actions,omitempty" class:"public"` // @gotags: `class:"public"` } func (x *Group) Reset() { diff --git a/sdk/pbs/controller/api/resources/hostcatalogs/host_catalog.pb.go b/sdk/pbs/controller/api/resources/hostcatalogs/host_catalog.pb.go index 6cad5f9a4..3d1fdae3a 100644 --- a/sdk/pbs/controller/api/resources/hostcatalogs/host_catalog.pb.go +++ b/sdk/pbs/controller/api/resources/hostcatalogs/host_catalog.pb.go @@ -67,7 +67,7 @@ type HostCatalog struct { // Output only. The HMAC of the last secrets supplied via the API, if any. SecretsHmac string `protobuf:"bytes,120,opt,name=secrets_hmac,json=secretsHmac,proto3" json:"secrets_hmac,omitempty" class:"public"` // @gotags: `class:"public"` // Output only. The available actions on this resource for this user. - AuthorizedActions []string `protobuf:"bytes,300,rep,name=authorized_actions,proto3" json:"authorized_actions,omitempty" class:"public" eventstream:"observation"` // @gotags: `class:"public" eventstream:"observation"` + AuthorizedActions []string `protobuf:"bytes,300,rep,name=authorized_actions,proto3" json:"authorized_actions,omitempty" class:"public"` // @gotags: `class:"public"` // Output only. The authorized actions for the scope's collections. AuthorizedCollectionActions map[string]*structpb.ListValue `protobuf:"bytes,310,rep,name=authorized_collection_actions,proto3" json:"authorized_collection_actions,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` // classified as public via taggable implementation } diff --git a/sdk/pbs/controller/api/resources/hosts/host.pb.go b/sdk/pbs/controller/api/resources/hosts/host.pb.go index 73926b9b6..3ce134f80 100644 --- a/sdk/pbs/controller/api/resources/hosts/host.pb.go +++ b/sdk/pbs/controller/api/resources/hosts/host.pb.go @@ -37,9 +37,9 @@ type Host struct { unknownFields protoimpl.UnknownFields // Output only. The ID of the Host. - Id string `protobuf:"bytes,10,opt,name=id,proto3" json:"id,omitempty" class:"public"` // @gotags: `class:"public"` + Id string `protobuf:"bytes,10,opt,name=id,proto3" json:"id,omitempty" class:"public" eventstream:"observation"` // @gotags: `class:"public" eventstream:"observation"` // The Host Catalog of which this Host is a part. - HostCatalogId string `protobuf:"bytes,20,opt,name=host_catalog_id,proto3" json:"host_catalog_id,omitempty" class:"public"` // @gotags: `class:"public"` + HostCatalogId string `protobuf:"bytes,20,opt,name=host_catalog_id,proto3" json:"host_catalog_id,omitempty" class:"public" eventstream:"observation"` // @gotags: `class:"public" eventstream:"observation"` // Output only. Scope information for this resource. Scope *scopes.ScopeInfo `protobuf:"bytes,30,opt,name=scope,proto3" json:"scope,omitempty"` // Output only. Plugin information for this resource. @@ -49,16 +49,16 @@ type Host struct { // Optional user-set description for identification purposes. Description *wrapperspb.StringValue `protobuf:"bytes,50,opt,name=description,proto3" json:"description,omitempty" class:"public"` // @gotags: `class:"public"` // Output only. The time this resource was created. - CreatedTime *timestamppb.Timestamp `protobuf:"bytes,60,opt,name=created_time,proto3" json:"created_time,omitempty" class:"public"` // @gotags: `class:"public"` + CreatedTime *timestamppb.Timestamp `protobuf:"bytes,60,opt,name=created_time,proto3" json:"created_time,omitempty" class:"public" eventstream:"observation"` // @gotags: `class:"public" eventstream:"observation"` // Output only. The time this resource was last updated. - UpdatedTime *timestamppb.Timestamp `protobuf:"bytes,70,opt,name=updated_time,proto3" json:"updated_time,omitempty" class:"public"` // @gotags: `class:"public"` + UpdatedTime *timestamppb.Timestamp `protobuf:"bytes,70,opt,name=updated_time,proto3" json:"updated_time,omitempty" class:"public" eventstream:"observation"` // @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. Version uint32 `protobuf:"varint,80,opt,name=version,proto3" json:"version,omitempty" class:"public"` // @gotags: `class:"public"` // The type of the resource. - Type string `protobuf:"bytes,90,opt,name=type,proto3" json:"type,omitempty" class:"public"` // @gotags: `class:"public"` + Type string `protobuf:"bytes,90,opt,name=type,proto3" json:"type,omitempty" class:"public" eventstream:"observation"` // @gotags: `class:"public" eventstream:"observation"` // Output only. A list of Host Sets containing this Host. - HostSetIds []string `protobuf:"bytes,100,rep,name=host_set_ids,proto3" json:"host_set_ids,omitempty" class:"public"` // @gotags: `class:"public"` + HostSetIds []string `protobuf:"bytes,100,rep,name=host_set_ids,proto3" json:"host_set_ids,omitempty" class:"public" eventstream:"observation"` // @gotags: `class:"public" eventstream:"observation"` // Types that are assignable to Attrs: // // *Host_Attributes