@@ -180,6 +180,22 @@ class Table(google.protobuf.message.Message):
180
180
) -> None : ...
181
181
def ClearField (self , field_name : typing_extensions .Literal ["enable_transparency" , b"enable_transparency" ]) -> None : ...
182
182
183
+ @typing_extensions .final
184
+ class Permission (google .protobuf .message .Message ):
185
+ """Permission defines how a table can be used."""
186
+
187
+ DESCRIPTOR : google .protobuf .descriptor .Descriptor
188
+
189
+ CAN_EDIT_FIELD_NUMBER : builtins .int
190
+ can_edit : builtins .bool
191
+ """Defines whether the table can be modified."""
192
+ def __init__ (
193
+ self ,
194
+ * ,
195
+ can_edit : builtins .bool = ...,
196
+ ) -> None : ...
197
+ def ClearField (self , field_name : typing_extensions .Literal ["can_edit" , b"can_edit" ]) -> None : ...
198
+
183
199
UID_FIELD_NUMBER : builtins .int
184
200
TITLE_FIELD_NUMBER : builtins .int
185
201
DESCRIPTION_FIELD_NUMBER : builtins .int
@@ -188,6 +204,7 @@ class Table(google.protobuf.message.Message):
188
204
UPDATE_TIME_FIELD_NUMBER : builtins .int
189
205
AGENT_CONFIG_FIELD_NUMBER : builtins .int
190
206
DRAFT_MODE_FIELD_NUMBER : builtins .int
207
+ PERMISSION_FIELD_NUMBER : builtins .int
191
208
uid : builtins .str
192
209
"""The unique identifier of the table."""
193
210
title : builtins .str
@@ -211,6 +228,9 @@ class Table(google.protobuf.message.Message):
211
228
"""The configuration for the agent."""
212
229
draft_mode : builtins .bool
213
230
"""Whether to enable draft mode for the table."""
231
+ @property
232
+ def permission (self ) -> global___Table .Permission :
233
+ """Permission defines how a table can be used."""
214
234
def __init__ (
215
235
self ,
216
236
* ,
@@ -222,116 +242,42 @@ class Table(google.protobuf.message.Message):
222
242
update_time : google .protobuf .timestamp_pb2 .Timestamp | None = ...,
223
243
agent_config : global___Table .AgentConfig | None = ...,
224
244
draft_mode : builtins .bool = ...,
245
+ permission : global___Table .Permission | None = ...,
225
246
) -> None : ...
226
- def HasField (self , field_name : typing_extensions .Literal ["agent_config" , b"agent_config" , "create_time" , b"create_time" , "metadata" , b"metadata" , "update_time" , b"update_time" ]) -> builtins .bool : ...
227
- def ClearField (self , field_name : typing_extensions .Literal ["agent_config" , b"agent_config" , "create_time" , b"create_time" , "description" , b"description" , "draft_mode" , b"draft_mode" , "metadata" , b"metadata" , "title" , b"title" , "uid" , b"uid" , "update_time" , b"update_time" ]) -> None : ...
247
+ def HasField (self , field_name : typing_extensions .Literal ["agent_config" , b"agent_config" , "create_time" , b"create_time" , "metadata" , b"metadata" , "permission" , b"permission" , " update_time" , b"update_time" ]) -> builtins .bool : ...
248
+ def ClearField (self , field_name : typing_extensions .Literal ["agent_config" , b"agent_config" , "create_time" , b"create_time" , "description" , b"description" , "draft_mode" , b"draft_mode" , "metadata" , b"metadata" , "permission" , b"permission" , " title" , b"title" , "uid" , b"uid" , "update_time" , b"update_time" ]) -> None : ...
228
249
229
250
global___Table = Table
230
251
231
- @typing_extensions .final
232
- class ListTableTemplatesRequest (google .protobuf .message .Message ):
233
- """ListTableTemplatesRequest represents a request to list table templates."""
234
-
235
- DESCRIPTOR : google .protobuf .descriptor .Descriptor
236
-
237
- PAGE_TOKEN_FIELD_NUMBER : builtins .int
238
- PAGE_SIZE_FIELD_NUMBER : builtins .int
239
- page_token : builtins .str
240
- """The page token for pagination."""
241
- page_size : builtins .int
242
- """The maximum number of table templates to return."""
243
- def __init__ (
244
- self ,
245
- * ,
246
- page_token : builtins .str = ...,
247
- page_size : builtins .int = ...,
248
- ) -> None : ...
249
- def ClearField (self , field_name : typing_extensions .Literal ["page_size" , b"page_size" , "page_token" , b"page_token" ]) -> None : ...
250
-
251
- global___ListTableTemplatesRequest = ListTableTemplatesRequest
252
-
253
- @typing_extensions .final
254
- class ListTableTemplatesResponse (google .protobuf .message .Message ):
255
- """ListTableTemplatesResponse contains the list of table templates."""
256
-
257
- DESCRIPTOR : google .protobuf .descriptor .Descriptor
258
-
259
- TABLE_TEMPLATES_FIELD_NUMBER : builtins .int
260
- @property
261
- def table_templates (self ) -> google .protobuf .internal .containers .RepeatedCompositeFieldContainer [global___Table ]:
262
- """The list of table templates."""
263
- def __init__ (
264
- self ,
265
- * ,
266
- table_templates : collections .abc .Iterable [global___Table ] | None = ...,
267
- ) -> None : ...
268
- def ClearField (self , field_name : typing_extensions .Literal ["table_templates" , b"table_templates" ]) -> None : ...
269
-
270
- global___ListTableTemplatesResponse = ListTableTemplatesResponse
271
-
272
- @typing_extensions .final
273
- class GetTableTemplateRequest (google .protobuf .message .Message ):
274
- """GetTableTemplateRequest represents a request to get a table template."""
275
-
276
- DESCRIPTOR : google .protobuf .descriptor .Descriptor
277
-
278
- TABLE_TEMPLATE_UID_FIELD_NUMBER : builtins .int
279
- table_template_uid : builtins .str
280
- """The UID of the table template to get."""
281
- def __init__ (
282
- self ,
283
- * ,
284
- table_template_uid : builtins .str = ...,
285
- ) -> None : ...
286
- def ClearField (self , field_name : typing_extensions .Literal ["table_template_uid" , b"table_template_uid" ]) -> None : ...
287
-
288
- global___GetTableTemplateRequest = GetTableTemplateRequest
289
-
290
- @typing_extensions .final
291
- class GetTableTemplateResponse (google .protobuf .message .Message ):
292
- """TableTemplate represents a table template.
293
- GetTableTemplateResponse contains the requested table template.
294
- """
295
-
296
- DESCRIPTOR : google .protobuf .descriptor .Descriptor
297
-
298
- TABLE_TEMPLATE_FIELD_NUMBER : builtins .int
299
- @property
300
- def table_template (self ) -> global___Table :
301
- """The table template."""
302
- def __init__ (
303
- self ,
304
- * ,
305
- table_template : global___Table | None = ...,
306
- ) -> None : ...
307
- def HasField (self , field_name : typing_extensions .Literal ["table_template" , b"table_template" ]) -> builtins .bool : ...
308
- def ClearField (self , field_name : typing_extensions .Literal ["table_template" , b"table_template" ]) -> None : ...
309
-
310
- global___GetTableTemplateResponse = GetTableTemplateResponse
311
-
312
252
@typing_extensions .final
313
253
class CreateTableFromTemplateRequest (google .protobuf .message .Message ):
314
254
"""CreateTableFromTemplateRequest represents a request to create a table from a table template."""
315
255
316
256
DESCRIPTOR : google .protobuf .descriptor .Descriptor
317
257
318
258
NAMESPACE_ID_FIELD_NUMBER : builtins .int
319
- TABLE_TEMPLATE_UID_FIELD_NUMBER : builtins .int
320
- TITLE_FIELD_NUMBER : builtins .int
259
+ TABLE_FIELD_NUMBER : builtins .int
260
+ TEMPLATE_NAMESPACE_ID_FIELD_NUMBER : builtins .int
261
+ TEMPLATE_TABLE_UID_FIELD_NUMBER : builtins .int
321
262
namespace_id : builtins .str
322
263
"""The ID of the namespace that owns the table."""
323
- table_template_uid : builtins .str
324
- """The UID of the table template to create the table from."""
325
- title : builtins .str
326
- """The title of the table."""
264
+ @property
265
+ def table (self ) -> global___Table :
266
+ """The table resource to create."""
267
+ template_namespace_id : builtins .str
268
+ """The ID of the table namespace to create the table from."""
269
+ template_table_uid : builtins .str
270
+ """The ID of the table to create the table from."""
327
271
def __init__ (
328
272
self ,
329
273
* ,
330
274
namespace_id : builtins .str = ...,
331
- table_template_uid : builtins .str = ...,
332
- title : builtins .str = ...,
275
+ table : global___Table | None = ...,
276
+ template_namespace_id : builtins .str = ...,
277
+ template_table_uid : builtins .str = ...,
333
278
) -> None : ...
334
- def ClearField (self , field_name : typing_extensions .Literal ["namespace_id" , b"namespace_id" , "table_template_uid" , b"table_template_uid" , "title" , b"title" ]) -> None : ...
279
+ def HasField (self , field_name : typing_extensions .Literal ["table" , b"table" ]) -> builtins .bool : ...
280
+ def ClearField (self , field_name : typing_extensions .Literal ["namespace_id" , b"namespace_id" , "table" , b"table" , "template_namespace_id" , b"template_namespace_id" , "template_table_uid" , b"template_table_uid" ]) -> None : ...
335
281
336
282
global___CreateTableFromTemplateRequest = CreateTableFromTemplateRequest
337
283
0 commit comments