2626from ..queries .response import BinaryTypeResponse
2727
2828
29- def get_binary_type (conn : 'Connection' , binary_type : Union [str , int ], query_id = None ) -> APIResult :
29+ def get_binary_type (conn : 'Connection' , binary_type : Union [str , int ]) -> APIResult :
3030 """
3131 Gets the binary type information by type ID.
3232
3333 :param conn: connection to Ignite server,
3434 :param binary_type: binary type name or ID,
35- :param query_id: (optional) a value generated by client and returned as-is
36- in response.query_id. When the parameter is omitted, a random value
37- is generated,
3835 :return: API result data object.
3936 """
40- return __get_binary_type (conn , binary_type , query_id )
37+ return __get_binary_type (conn , binary_type )
4138
4239
43- async def get_binary_type_async (conn : 'AioConnection' , binary_type : Union [str , int ], query_id = None ) -> APIResult :
40+ async def get_binary_type_async (conn : 'AioConnection' , binary_type : Union [str , int ]) -> APIResult :
4441 """
4542 Async version of get_binary_type.
4643 """
47- return await __get_binary_type (conn , binary_type , query_id )
44+ return await __get_binary_type (conn , binary_type )
4845
4946
50- def __get_binary_type (conn , binary_type , query_id ):
47+ def __get_binary_type (conn , binary_type ):
5148 query_struct = Query (
5249 OP_GET_BINARY_TYPE ,
5350 [
5451 ('type_id' , Int ),
5552 ],
56- query_id = query_id ,
5753 response_type = BinaryTypeResponse
5854 )
5955
@@ -63,7 +59,7 @@ def __get_binary_type(conn, binary_type, query_id):
6359
6460
6561def put_binary_type (connection : 'Connection' , type_name : str , affinity_key_field : str = None ,
66- is_enum = False , schema : dict = None , query_id = None ) -> APIResult :
62+ is_enum = False , schema : dict = None ) -> APIResult :
6763 """
6864 Registers binary type information in cluster.
6965
@@ -76,20 +72,17 @@ def put_binary_type(connection: 'Connection', type_name: str, affinity_key_field
7672 parameter names as keys and an integers as values. When register binary
7773 type, pass a dict of field names: field types. Binary type with no fields
7874 is OK,
79- :param query_id: (optional) a value generated by client and returned as-is
80- in response.query_id. When the parameter is omitted, a random value
81- is generated,
8275 :return: API result data object.
8376 """
84- return __put_binary_type (connection , type_name , affinity_key_field , is_enum , schema , query_id )
77+ return __put_binary_type (connection , type_name , affinity_key_field , is_enum , schema )
8578
8679
8780async def put_binary_type_async (connection : 'AioConnection' , type_name : str , affinity_key_field : str = None ,
8881 is_enum = False , schema : dict = None , query_id = None ) -> APIResult :
8982 """
9083 Async version of put_binary_type.
9184 """
92- return await __put_binary_type (connection , type_name , affinity_key_field , is_enum , schema , query_id )
85+ return await __put_binary_type (connection , type_name , affinity_key_field , is_enum , schema )
9386
9487
9588def __post_process_put_binary (type_id ):
@@ -103,7 +96,7 @@ def internal(result):
10396 return internal
10497
10598
106- def __put_binary_type (connection , type_name , affinity_key_field , is_enum , schema , query_id ):
99+ def __put_binary_type (connection , type_name , affinity_key_field , is_enum , schema ):
107100 # prepare data
108101 if schema is None :
109102 schema = {}
@@ -158,8 +151,7 @@ def __put_binary_type(connection, type_name, affinity_key_field, is_enum, schema
158151 ('is_enum' , Bool ),
159152 ('enums' , enum_struct ),
160153 ('schema' , schema_struct ),
161- ],
162- query_id = query_id ,
154+ ]
163155 )
164156 else :
165157 query_struct = Query (
@@ -171,8 +163,7 @@ def __put_binary_type(connection, type_name, affinity_key_field, is_enum, schema
171163 ('binary_fields' , binary_fields_struct ),
172164 ('is_enum' , Bool ),
173165 ('schema' , schema_struct ),
174- ],
175- query_id = query_id ,
166+ ]
176167 )
177168 return query_perform (query_struct , connection , query_params = data ,
178169 post_process_fun = __post_process_put_binary (type_id ))
0 commit comments