@@ -68,13 +68,6 @@ pub struct DatabaseOptions {
6868 #[ prost( uint32, tag = "3" ) ]
6969 pub plan_resolution : u32 ,
7070}
71- #[ derive( Clone , PartialEq , :: prost:: Message ) ]
72- pub struct Attribute {
73- #[ prost( string, tag = "1" ) ]
74- pub name : :: prost:: alloc:: string:: String ,
75- #[ prost( string, tag = "2" ) ]
76- pub value : :: prost:: alloc:: string:: String ,
77- }
7871/// A set of quotas for schema operations
7972#[ derive( Clone , PartialEq , :: prost:: Message ) ]
8073pub struct SchemaOperationQuotas {
@@ -110,6 +103,13 @@ pub struct DatabaseQuotas {
110103 /// A maximum count of shards in all data streams.
111104 #[ prost( uint64, tag = "3" ) ]
112105 pub data_stream_shards_quota : u64 ,
106+ /// A maximum storage that will be reserved for all data stream shards.
107+ #[ prost( uint64, tag = "5" ) ]
108+ pub data_stream_reserved_storage_quota : u64 ,
109+ /// A minimum value of `TtlSettings.run_interval_seconds` that can be specified.
110+ /// Default is 1800 (15 minutes).
111+ #[ prost( uint32, tag = "4" ) ]
112+ pub ttl_min_run_internal_seconds : u32 ,
113113}
114114/// Request to create a new database. For successfull creation
115115/// specified database shouldn't exist. At least one storage
@@ -125,8 +125,9 @@ pub struct CreateDatabaseRequest {
125125 #[ prost( message, optional, tag = "4" ) ]
126126 pub options : :: core:: option:: Option < DatabaseOptions > ,
127127 /// Attach attributes to database.
128- #[ prost( message, repeated, tag = "5" ) ]
129- pub attributes : :: prost:: alloc:: vec:: Vec < Attribute > ,
128+ #[ prost( map = "string, string" , tag = "5" ) ]
129+ pub attributes :
130+ :: std:: collections:: HashMap < :: prost:: alloc:: string:: String , :: prost:: alloc:: string:: String > ,
130131 /// Optional quotas for schema operations
131132 #[ prost( message, optional, tag = "8" ) ]
132133 pub schema_operation_quotas : :: core:: option:: Option < SchemaOperationQuotas > ,
@@ -261,6 +262,10 @@ pub struct AlterDatabaseRequest {
261262 /// Change quotas for the database
262263 #[ prost( message, optional, tag = "11" ) ]
263264 pub database_quotas : :: core:: option:: Option < DatabaseQuotas > ,
265+ /// Alter attributes. Leave the value blank to drop an attribute.
266+ #[ prost( map = "string, string" , tag = "12" ) ]
267+ pub alter_attributes :
268+ :: std:: collections:: HashMap < :: prost:: alloc:: string:: String , :: prost:: alloc:: string:: String > ,
264269}
265270#[ derive( Clone , PartialEq , :: prost:: Message ) ]
266271pub struct AlterDatabaseResponse {
@@ -345,4 +350,4 @@ pub struct DescribeDatabaseOptionsResult {
345350 pub availability_zones : :: prost:: alloc:: vec:: Vec < AvailabilityZoneDescription > ,
346351 #[ prost( message, repeated, tag = "3" ) ]
347352 pub computational_units : :: prost:: alloc:: vec:: Vec < ComputationalUnitDescription > ,
348- }
353+ }
0 commit comments