Telemetry: storage bucket proto (#4824)

* oss:feat(storage): add observation tag in proto for telemetry

* oss:feat(storage): add observation tag in proto service

* oss:feat(storage): generate proto files with changes

* oss:feat(storage): add storage bucket id to target proto
This commit is contained in:
Sepehr authored and GitHub committed 2024-05-24 10:34:15 -07:00
1 parent 1aa8c2e1d7
commit 1f48ba5d1a
6 files changed
+28 -28

No files matched your search

@@ -17,22 +17,22 @@ option go_package = "github.com/hashicorp/boundary/sdk/pbs/controller/api/resour
// StorageBucket manages external object stores
message StorageBucket {
// Output only. The ID of the storage bucket.
string id = 10; // @gotags: `class:"public"`
string id = 10; // @gotags: `class:"public" eventstream:"observation"`
// The ID of the Scope of which this storage bucket 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; // @gotags: `class:"public"`
resources.scopes.v1.ScopeInfo scope = 30;
// The ID of the plugin of which this storage bucket is created.
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; // @gotags: `class:"public"`
resources.plugins.v1.PluginInfo plugin = 35;
// Optional name for identification purposes.
google.protobuf.StringValue name = 40 [
@@ -65,7 +65,7 @@ message StorageBucket {
]; // @gotags: `class:"public"`
// Output only. The time this resource was created.
google.protobuf.Timestamp created_time = 80 [json_name = "created_time"]; // @gotags: `class:"public"`
google.protobuf.Timestamp created_time = 80 [json_name = "created_time"]; // @gotags: `class:"public" eventstream:"observation"`
// Output only. The time this resource was last updated.
google.protobuf.Timestamp updated_time = 90 [json_name = "updated_time"]; // @gotags: `class:"secret"`
@@ -75,7 +75,7 @@ message StorageBucket {
uint32 version = 100; // @gotags: `class:"public"`
// The type of Storage Bucket (currently only plugin).
string type = 110; // @gotags: `class:"public"`
string type = 110; // @gotags: `class:"public" eventstream:"observation"`
// Attributes specific to the catalog type.
google.protobuf.Struct attributes = 120 [(custom_options.v1.generate_sdk_option) = true]; // @gotags: `class:"public"`
@@ -310,7 +310,7 @@ message SshTargetAttributes {
this: "attributes.storage_bucket_id"
that: "StorageBucketId"
}
]; // @gotags: `class:"public"`
]; // @gotags: `class:"public" eventstream:"observation"`
// A boolean indicating if session recording has been enabled
google.protobuf.BoolValue enable_session_recording = 40 [
@@ -84,7 +84,7 @@ service StorageBucketService {
}
message GetStorageBucketRequest {
string id = 1; // @gotags: `class:"public"`
string id = 1; // @gotags: `class:"public" eventstream:"observation"`
}
message GetStorageBucketResponse {
@@ -92,8 +92,8 @@ message GetStorageBucketResponse {
}
message ListStorageBucketsRequest {
string scope_id = 1 [json_name = "scope_id"]; // @gotags: `class:"public"`
bool recursive = 20 [json_name = "recursive"]; // @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" eventstream:"observation"`
// You can specify that the filter should only return items that match.
// Refer to [filter expressions](https://developer.hashicorp.com/boundary/docs/concepts/filtering) for more information.
string filter = 30 [json_name = "filter"]; // @gotags: `class:"public"`
@@ -142,12 +142,12 @@ message CreateStorageBucketRequest {
}
message CreateStorageBucketResponse {
string uri = 1; // @gotags: `class:"public"`
string uri = 1; // @gotags: `class:"public" eventstream:"observation"`
api.resources.storagebuckets.v1.StorageBucket item = 2;
}
message UpdateStorageBucketRequest {
string id = 1; // @gotags: `class:"public"`
string id = 1; // @gotags: `class:"public" eventstream:"observation"`
api.resources.storagebuckets.v1.StorageBucket item = 2;
google.protobuf.FieldMask update_mask = 3;
}
@@ -157,7 +157,7 @@ message UpdateStorageBucketResponse {
}
message DeleteStorageBucketRequest {
string id = 1; // @gotags: `class:"public"`
string id = 1; // @gotags: `class:"public" eventstream:"observation"`
}
message DeleteStorageBucketResponse {}