agilicus 1.236.6__py3-none-any.whl → 1.237.1__py3-none-any.whl
Sign up to get free protection for your applications and to get access to all the features.
- agilicus/.openapi-generator/FILES +9 -0
- agilicus/agilicus_api/__init__.py +3 -0
- agilicus/agilicus_api/api/files_api.py +717 -40
- agilicus/agilicus_api/api/files_api_mock.py +35 -0
- agilicus/agilicus_api/api_client.py +1 -1
- agilicus/agilicus_api/configuration.py +1 -1
- agilicus/agilicus_api/docs/FilesApi.md +447 -0
- agilicus/agilicus_api/docs/ListPublicFileOrgLinksResponse.md +15 -0
- agilicus/agilicus_api/docs/PublicFileOrgLink.md +14 -0
- agilicus/agilicus_api/docs/PublicFileOrgLinkSpec.md +15 -0
- agilicus/agilicus_api/model/list_public_file_org_links_response.py +307 -0
- agilicus/agilicus_api/model/public_file_org_link.py +295 -0
- agilicus/agilicus_api/model/public_file_org_link_spec.py +303 -0
- agilicus/agilicus_api/models/__init__.py +3 -0
- agilicus/agilicus_api/test/test_files_api.py +35 -0
- agilicus/agilicus_api/test/test_list_public_file_org_links_response.py +38 -0
- agilicus/agilicus_api/test/test_public_file_org_link.py +40 -0
- agilicus/agilicus_api/test/test_public_file_org_link_spec.py +36 -0
- agilicus/agilicus_api_README.md +9 -1
- agilicus/files_pkg/files_main.py +50 -0
- agilicus/files_pkg/public_file_org_links.py +60 -0
- agilicus/main.py +2 -0
- {agilicus-1.236.6.dist-info → agilicus-1.237.1.dist-info}/METADATA +2 -2
- {agilicus-1.236.6.dist-info → agilicus-1.237.1.dist-info}/RECORD +27 -16
- {agilicus-1.236.6.dist-info → agilicus-1.237.1.dist-info}/LICENSE.txt +0 -0
- {agilicus-1.236.6.dist-info → agilicus-1.237.1.dist-info}/WHEEL +0 -0
- {agilicus-1.236.6.dist-info → agilicus-1.237.1.dist-info}/entry_points.txt +0 -0
@@ -32,7 +32,9 @@ from agilicus_api.model.file_summary import FileSummary
|
|
32
32
|
from agilicus_api.model.file_visibility import FileVisibility
|
33
33
|
from agilicus_api.model.list_file_associations_response import ListFileAssociationsResponse
|
34
34
|
from agilicus_api.model.list_files_response import ListFilesResponse
|
35
|
+
from agilicus_api.model.list_public_file_org_links_response import ListPublicFileOrgLinksResponse
|
35
36
|
from agilicus_api.model.object_oper_status import ObjectOperStatus
|
37
|
+
from agilicus_api.model.public_file_org_link import PublicFileOrgLink
|
36
38
|
from agilicus_api.model.storage_region import StorageRegion
|
37
39
|
|
38
40
|
|
@@ -458,6 +460,127 @@ class FilesApi(object):
|
|
458
460
|
callable=__create_file_association_clear_task
|
459
461
|
)
|
460
462
|
|
463
|
+
def __create_public_file_org_link(
|
464
|
+
self,
|
465
|
+
public_file_org_link,
|
466
|
+
**kwargs
|
467
|
+
):
|
468
|
+
"""link public files based on org # noqa: E501
|
469
|
+
|
470
|
+
links public files based on organisation and tag # noqa: E501
|
471
|
+
This method makes a synchronous HTTP request by default. To make an
|
472
|
+
asynchronous HTTP request, please pass async_req=True
|
473
|
+
|
474
|
+
>>> thread = api.create_public_file_org_link(public_file_org_link, async_req=True)
|
475
|
+
>>> result = thread.get()
|
476
|
+
|
477
|
+
Args:
|
478
|
+
public_file_org_link (PublicFileOrgLink): The link to create
|
479
|
+
|
480
|
+
Keyword Args:
|
481
|
+
_return_http_data_only (bool): response data without head status
|
482
|
+
code and headers. Default is True.
|
483
|
+
_preload_content (bool): if False, the urllib3.HTTPResponse object
|
484
|
+
will be returned without reading/decoding response data.
|
485
|
+
Default is True.
|
486
|
+
_request_timeout (float/tuple): timeout setting for this request. If one
|
487
|
+
number provided, it will be total request timeout. It can also
|
488
|
+
be a pair (tuple) of (connection, read) timeouts.
|
489
|
+
Default is None.
|
490
|
+
_check_input_type (bool): specifies if type checking
|
491
|
+
should be done one the data sent to the server.
|
492
|
+
Default is True.
|
493
|
+
_check_return_type (bool): specifies if type checking
|
494
|
+
should be done one the data received from the server.
|
495
|
+
Default is True.
|
496
|
+
_host_index (int/None): specifies the index of the server
|
497
|
+
that we want to use.
|
498
|
+
Default is read from the configuration.
|
499
|
+
async_req (bool): execute request asynchronously
|
500
|
+
|
501
|
+
Returns:
|
502
|
+
PublicFileOrgLink
|
503
|
+
If the method is called asynchronously, returns the request
|
504
|
+
thread.
|
505
|
+
"""
|
506
|
+
kwargs['async_req'] = kwargs.get(
|
507
|
+
'async_req', False
|
508
|
+
)
|
509
|
+
kwargs['_return_http_data_only'] = kwargs.get(
|
510
|
+
'_return_http_data_only', True
|
511
|
+
)
|
512
|
+
kwargs['_preload_content'] = kwargs.get(
|
513
|
+
'_preload_content', True
|
514
|
+
)
|
515
|
+
kwargs['_request_timeout'] = kwargs.get(
|
516
|
+
'_request_timeout', None
|
517
|
+
)
|
518
|
+
kwargs['_check_input_type'] = kwargs.get(
|
519
|
+
'_check_input_type', True
|
520
|
+
)
|
521
|
+
kwargs['_check_return_type'] = kwargs.get(
|
522
|
+
'_check_return_type', True
|
523
|
+
)
|
524
|
+
kwargs['_host_index'] = kwargs.get('_host_index')
|
525
|
+
kwargs['public_file_org_link'] = \
|
526
|
+
public_file_org_link
|
527
|
+
return self.call_with_http_info(**kwargs)
|
528
|
+
|
529
|
+
if self.create_public_file_org_link is None:
|
530
|
+
self.create_public_file_org_link = _Endpoint(
|
531
|
+
settings={
|
532
|
+
'response_type': (PublicFileOrgLink,),
|
533
|
+
'auth': [
|
534
|
+
'token-valid'
|
535
|
+
],
|
536
|
+
'endpoint_path': '/v1/public_file_org_links',
|
537
|
+
'operation_id': 'create_public_file_org_link',
|
538
|
+
'http_method': 'POST',
|
539
|
+
'servers': None,
|
540
|
+
},
|
541
|
+
params_map={
|
542
|
+
'all': [
|
543
|
+
'public_file_org_link',
|
544
|
+
],
|
545
|
+
'required': [
|
546
|
+
'public_file_org_link',
|
547
|
+
],
|
548
|
+
'nullable': [
|
549
|
+
],
|
550
|
+
'enum': [
|
551
|
+
],
|
552
|
+
'validation': [
|
553
|
+
]
|
554
|
+
},
|
555
|
+
root_map={
|
556
|
+
'validations': {
|
557
|
+
},
|
558
|
+
'allowed_values': {
|
559
|
+
},
|
560
|
+
'openapi_types': {
|
561
|
+
'public_file_org_link':
|
562
|
+
(PublicFileOrgLink,),
|
563
|
+
},
|
564
|
+
'attribute_map': {
|
565
|
+
},
|
566
|
+
'location_map': {
|
567
|
+
'public_file_org_link': 'body',
|
568
|
+
},
|
569
|
+
'collection_format_map': {
|
570
|
+
}
|
571
|
+
},
|
572
|
+
headers_map={
|
573
|
+
'accept': [
|
574
|
+
'application/json'
|
575
|
+
],
|
576
|
+
'content_type': [
|
577
|
+
'application/json'
|
578
|
+
]
|
579
|
+
},
|
580
|
+
api_client=api_client,
|
581
|
+
callable=__create_public_file_org_link
|
582
|
+
)
|
583
|
+
|
461
584
|
def __delete_file(
|
462
585
|
self,
|
463
586
|
file_id,
|
@@ -706,6 +829,136 @@ class FilesApi(object):
|
|
706
829
|
callable=__delete_file_association
|
707
830
|
)
|
708
831
|
|
832
|
+
def __delete_public_file_org_link(
|
833
|
+
self,
|
834
|
+
public_file_org_link_id,
|
835
|
+
**kwargs
|
836
|
+
):
|
837
|
+
"""Remove a link from an org # noqa: E501
|
838
|
+
|
839
|
+
Remove a link from an org. Note that link_org_id and org_id are alises for one another in this query. # noqa: E501
|
840
|
+
This method makes a synchronous HTTP request by default. To make an
|
841
|
+
asynchronous HTTP request, please pass async_req=True
|
842
|
+
|
843
|
+
>>> thread = api.delete_public_file_org_link(public_file_org_link_id, async_req=True)
|
844
|
+
>>> result = thread.get()
|
845
|
+
|
846
|
+
Args:
|
847
|
+
public_file_org_link_id (str): public file org link id in path
|
848
|
+
|
849
|
+
Keyword Args:
|
850
|
+
link_org_id (str): Search for the Organisation that is linked to another. [optional]
|
851
|
+
org_id (str): Organisation Unique identifier. [optional]
|
852
|
+
_return_http_data_only (bool): response data without head status
|
853
|
+
code and headers. Default is True.
|
854
|
+
_preload_content (bool): if False, the urllib3.HTTPResponse object
|
855
|
+
will be returned without reading/decoding response data.
|
856
|
+
Default is True.
|
857
|
+
_request_timeout (float/tuple): timeout setting for this request. If one
|
858
|
+
number provided, it will be total request timeout. It can also
|
859
|
+
be a pair (tuple) of (connection, read) timeouts.
|
860
|
+
Default is None.
|
861
|
+
_check_input_type (bool): specifies if type checking
|
862
|
+
should be done one the data sent to the server.
|
863
|
+
Default is True.
|
864
|
+
_check_return_type (bool): specifies if type checking
|
865
|
+
should be done one the data received from the server.
|
866
|
+
Default is True.
|
867
|
+
_host_index (int/None): specifies the index of the server
|
868
|
+
that we want to use.
|
869
|
+
Default is read from the configuration.
|
870
|
+
async_req (bool): execute request asynchronously
|
871
|
+
|
872
|
+
Returns:
|
873
|
+
None
|
874
|
+
If the method is called asynchronously, returns the request
|
875
|
+
thread.
|
876
|
+
"""
|
877
|
+
kwargs['async_req'] = kwargs.get(
|
878
|
+
'async_req', False
|
879
|
+
)
|
880
|
+
kwargs['_return_http_data_only'] = kwargs.get(
|
881
|
+
'_return_http_data_only', True
|
882
|
+
)
|
883
|
+
kwargs['_preload_content'] = kwargs.get(
|
884
|
+
'_preload_content', True
|
885
|
+
)
|
886
|
+
kwargs['_request_timeout'] = kwargs.get(
|
887
|
+
'_request_timeout', None
|
888
|
+
)
|
889
|
+
kwargs['_check_input_type'] = kwargs.get(
|
890
|
+
'_check_input_type', True
|
891
|
+
)
|
892
|
+
kwargs['_check_return_type'] = kwargs.get(
|
893
|
+
'_check_return_type', True
|
894
|
+
)
|
895
|
+
kwargs['_host_index'] = kwargs.get('_host_index')
|
896
|
+
kwargs['public_file_org_link_id'] = \
|
897
|
+
public_file_org_link_id
|
898
|
+
return self.call_with_http_info(**kwargs)
|
899
|
+
|
900
|
+
if self.delete_public_file_org_link is None:
|
901
|
+
self.delete_public_file_org_link = _Endpoint(
|
902
|
+
settings={
|
903
|
+
'response_type': None,
|
904
|
+
'auth': [
|
905
|
+
'token-valid'
|
906
|
+
],
|
907
|
+
'endpoint_path': '/v1/public_file_org_links/{public_file_org_link_id}',
|
908
|
+
'operation_id': 'delete_public_file_org_link',
|
909
|
+
'http_method': 'DELETE',
|
910
|
+
'servers': None,
|
911
|
+
},
|
912
|
+
params_map={
|
913
|
+
'all': [
|
914
|
+
'public_file_org_link_id',
|
915
|
+
'link_org_id',
|
916
|
+
'org_id',
|
917
|
+
],
|
918
|
+
'required': [
|
919
|
+
'public_file_org_link_id',
|
920
|
+
],
|
921
|
+
'nullable': [
|
922
|
+
],
|
923
|
+
'enum': [
|
924
|
+
],
|
925
|
+
'validation': [
|
926
|
+
]
|
927
|
+
},
|
928
|
+
root_map={
|
929
|
+
'validations': {
|
930
|
+
},
|
931
|
+
'allowed_values': {
|
932
|
+
},
|
933
|
+
'openapi_types': {
|
934
|
+
'public_file_org_link_id':
|
935
|
+
(str,),
|
936
|
+
'link_org_id':
|
937
|
+
(str,),
|
938
|
+
'org_id':
|
939
|
+
(str,),
|
940
|
+
},
|
941
|
+
'attribute_map': {
|
942
|
+
'public_file_org_link_id': 'public_file_org_link_id',
|
943
|
+
'link_org_id': 'link_org_id',
|
944
|
+
'org_id': 'org_id',
|
945
|
+
},
|
946
|
+
'location_map': {
|
947
|
+
'public_file_org_link_id': 'path',
|
948
|
+
'link_org_id': 'query',
|
949
|
+
'org_id': 'query',
|
950
|
+
},
|
951
|
+
'collection_format_map': {
|
952
|
+
}
|
953
|
+
},
|
954
|
+
headers_map={
|
955
|
+
'accept': [],
|
956
|
+
'content_type': [],
|
957
|
+
},
|
958
|
+
api_client=api_client,
|
959
|
+
callable=__delete_public_file_org_link
|
960
|
+
)
|
961
|
+
|
709
962
|
def __get_download(
|
710
963
|
self,
|
711
964
|
file_id,
|
@@ -1215,25 +1468,26 @@ class FilesApi(object):
|
|
1215
1468
|
callable=__get_file_association
|
1216
1469
|
)
|
1217
1470
|
|
1218
|
-
def
|
1471
|
+
def __get_public_file_org_link(
|
1219
1472
|
self,
|
1473
|
+
public_file_org_link_id,
|
1220
1474
|
**kwargs
|
1221
1475
|
):
|
1222
|
-
"""
|
1476
|
+
"""Get a public file org link # noqa: E501
|
1223
1477
|
|
1224
|
-
|
1478
|
+
Get a public file org link. Note that link_org_id and org_id are alises for one another in this query. # noqa: E501
|
1225
1479
|
This method makes a synchronous HTTP request by default. To make an
|
1226
1480
|
asynchronous HTTP request, please pass async_req=True
|
1227
1481
|
|
1228
|
-
>>> thread = api.
|
1482
|
+
>>> thread = api.get_public_file_org_link(public_file_org_link_id, async_req=True)
|
1229
1483
|
>>> result = thread.get()
|
1230
1484
|
|
1485
|
+
Args:
|
1486
|
+
public_file_org_link_id (str): public file org link id in path
|
1231
1487
|
|
1232
1488
|
Keyword Args:
|
1233
|
-
|
1489
|
+
link_org_id (str): Search for the Organisation that is linked to another. [optional]
|
1234
1490
|
org_id (str): Organisation Unique identifier. [optional]
|
1235
|
-
file_id (str): search by file id. [optional]
|
1236
|
-
object_id (str): search by object id. [optional]
|
1237
1491
|
_return_http_data_only (bool): response data without head status
|
1238
1492
|
code and headers. Default is True.
|
1239
1493
|
_preload_content (bool): if False, the urllib3.HTTPResponse object
|
@@ -1255,7 +1509,7 @@ class FilesApi(object):
|
|
1255
1509
|
async_req (bool): execute request asynchronously
|
1256
1510
|
|
1257
1511
|
Returns:
|
1258
|
-
|
1512
|
+
PublicFileOrgLink
|
1259
1513
|
If the method is called asynchronously, returns the request
|
1260
1514
|
thread.
|
1261
1515
|
"""
|
@@ -1278,67 +1532,60 @@ class FilesApi(object):
|
|
1278
1532
|
'_check_return_type', True
|
1279
1533
|
)
|
1280
1534
|
kwargs['_host_index'] = kwargs.get('_host_index')
|
1535
|
+
kwargs['public_file_org_link_id'] = \
|
1536
|
+
public_file_org_link_id
|
1281
1537
|
return self.call_with_http_info(**kwargs)
|
1282
1538
|
|
1283
|
-
if self.
|
1284
|
-
self.
|
1539
|
+
if self.get_public_file_org_link is None:
|
1540
|
+
self.get_public_file_org_link = _Endpoint(
|
1285
1541
|
settings={
|
1286
|
-
'response_type': (
|
1542
|
+
'response_type': (PublicFileOrgLink,),
|
1287
1543
|
'auth': [
|
1288
1544
|
'token-valid'
|
1289
1545
|
],
|
1290
|
-
'endpoint_path': '/v1/
|
1291
|
-
'operation_id': '
|
1546
|
+
'endpoint_path': '/v1/public_file_org_links/{public_file_org_link_id}',
|
1547
|
+
'operation_id': 'get_public_file_org_link',
|
1292
1548
|
'http_method': 'GET',
|
1293
1549
|
'servers': None,
|
1294
1550
|
},
|
1295
1551
|
params_map={
|
1296
1552
|
'all': [
|
1297
|
-
'
|
1553
|
+
'public_file_org_link_id',
|
1554
|
+
'link_org_id',
|
1298
1555
|
'org_id',
|
1299
|
-
'file_id',
|
1300
|
-
'object_id',
|
1301
1556
|
],
|
1302
|
-
'required': [
|
1557
|
+
'required': [
|
1558
|
+
'public_file_org_link_id',
|
1559
|
+
],
|
1303
1560
|
'nullable': [
|
1304
1561
|
],
|
1305
1562
|
'enum': [
|
1306
1563
|
],
|
1307
1564
|
'validation': [
|
1308
|
-
'limit',
|
1309
1565
|
]
|
1310
1566
|
},
|
1311
1567
|
root_map={
|
1312
1568
|
'validations': {
|
1313
|
-
('limit',): {
|
1314
|
-
|
1315
|
-
'inclusive_maximum': 500,
|
1316
|
-
'inclusive_minimum': 1,
|
1317
|
-
},
|
1318
1569
|
},
|
1319
1570
|
'allowed_values': {
|
1320
1571
|
},
|
1321
1572
|
'openapi_types': {
|
1322
|
-
'
|
1323
|
-
(int,),
|
1324
|
-
'org_id':
|
1573
|
+
'public_file_org_link_id':
|
1325
1574
|
(str,),
|
1326
|
-
'
|
1575
|
+
'link_org_id':
|
1327
1576
|
(str,),
|
1328
|
-
'
|
1577
|
+
'org_id':
|
1329
1578
|
(str,),
|
1330
1579
|
},
|
1331
1580
|
'attribute_map': {
|
1332
|
-
'
|
1581
|
+
'public_file_org_link_id': 'public_file_org_link_id',
|
1582
|
+
'link_org_id': 'link_org_id',
|
1333
1583
|
'org_id': 'org_id',
|
1334
|
-
'file_id': 'file_id',
|
1335
|
-
'object_id': 'object_id',
|
1336
1584
|
},
|
1337
1585
|
'location_map': {
|
1338
|
-
'
|
1586
|
+
'public_file_org_link_id': 'path',
|
1587
|
+
'link_org_id': 'query',
|
1339
1588
|
'org_id': 'query',
|
1340
|
-
'file_id': 'query',
|
1341
|
-
'object_id': 'query',
|
1342
1589
|
},
|
1343
1590
|
'collection_format_map': {
|
1344
1591
|
}
|
@@ -1350,27 +1597,165 @@ class FilesApi(object):
|
|
1350
1597
|
'content_type': [],
|
1351
1598
|
},
|
1352
1599
|
api_client=api_client,
|
1353
|
-
callable=
|
1600
|
+
callable=__get_public_file_org_link
|
1354
1601
|
)
|
1355
1602
|
|
1356
|
-
def
|
1603
|
+
def __list_file_associations(
|
1357
1604
|
self,
|
1358
1605
|
**kwargs
|
1359
1606
|
):
|
1360
|
-
"""Query
|
1607
|
+
"""Query File Associations # noqa: E501
|
1361
1608
|
|
1362
|
-
Query
|
1609
|
+
Query File Associations # noqa: E501
|
1363
1610
|
This method makes a synchronous HTTP request by default. To make an
|
1364
1611
|
asynchronous HTTP request, please pass async_req=True
|
1365
1612
|
|
1366
|
-
>>> thread = api.
|
1613
|
+
>>> thread = api.list_file_associations(async_req=True)
|
1367
1614
|
>>> result = thread.get()
|
1368
1615
|
|
1369
1616
|
|
1370
1617
|
Keyword Args:
|
1371
1618
|
limit (int): limit the number of rows in the response. [optional] if omitted the server will use the default value of 500
|
1372
1619
|
org_id (str): Organisation Unique identifier. [optional]
|
1373
|
-
|
1620
|
+
file_id (str): search by file id. [optional]
|
1621
|
+
object_id (str): search by object id. [optional]
|
1622
|
+
_return_http_data_only (bool): response data without head status
|
1623
|
+
code and headers. Default is True.
|
1624
|
+
_preload_content (bool): if False, the urllib3.HTTPResponse object
|
1625
|
+
will be returned without reading/decoding response data.
|
1626
|
+
Default is True.
|
1627
|
+
_request_timeout (float/tuple): timeout setting for this request. If one
|
1628
|
+
number provided, it will be total request timeout. It can also
|
1629
|
+
be a pair (tuple) of (connection, read) timeouts.
|
1630
|
+
Default is None.
|
1631
|
+
_check_input_type (bool): specifies if type checking
|
1632
|
+
should be done one the data sent to the server.
|
1633
|
+
Default is True.
|
1634
|
+
_check_return_type (bool): specifies if type checking
|
1635
|
+
should be done one the data received from the server.
|
1636
|
+
Default is True.
|
1637
|
+
_host_index (int/None): specifies the index of the server
|
1638
|
+
that we want to use.
|
1639
|
+
Default is read from the configuration.
|
1640
|
+
async_req (bool): execute request asynchronously
|
1641
|
+
|
1642
|
+
Returns:
|
1643
|
+
ListFileAssociationsResponse
|
1644
|
+
If the method is called asynchronously, returns the request
|
1645
|
+
thread.
|
1646
|
+
"""
|
1647
|
+
kwargs['async_req'] = kwargs.get(
|
1648
|
+
'async_req', False
|
1649
|
+
)
|
1650
|
+
kwargs['_return_http_data_only'] = kwargs.get(
|
1651
|
+
'_return_http_data_only', True
|
1652
|
+
)
|
1653
|
+
kwargs['_preload_content'] = kwargs.get(
|
1654
|
+
'_preload_content', True
|
1655
|
+
)
|
1656
|
+
kwargs['_request_timeout'] = kwargs.get(
|
1657
|
+
'_request_timeout', None
|
1658
|
+
)
|
1659
|
+
kwargs['_check_input_type'] = kwargs.get(
|
1660
|
+
'_check_input_type', True
|
1661
|
+
)
|
1662
|
+
kwargs['_check_return_type'] = kwargs.get(
|
1663
|
+
'_check_return_type', True
|
1664
|
+
)
|
1665
|
+
kwargs['_host_index'] = kwargs.get('_host_index')
|
1666
|
+
return self.call_with_http_info(**kwargs)
|
1667
|
+
|
1668
|
+
if self.list_file_associations is None:
|
1669
|
+
self.list_file_associations = _Endpoint(
|
1670
|
+
settings={
|
1671
|
+
'response_type': (ListFileAssociationsResponse,),
|
1672
|
+
'auth': [
|
1673
|
+
'token-valid'
|
1674
|
+
],
|
1675
|
+
'endpoint_path': '/v1/file_associations',
|
1676
|
+
'operation_id': 'list_file_associations',
|
1677
|
+
'http_method': 'GET',
|
1678
|
+
'servers': None,
|
1679
|
+
},
|
1680
|
+
params_map={
|
1681
|
+
'all': [
|
1682
|
+
'limit',
|
1683
|
+
'org_id',
|
1684
|
+
'file_id',
|
1685
|
+
'object_id',
|
1686
|
+
],
|
1687
|
+
'required': [],
|
1688
|
+
'nullable': [
|
1689
|
+
],
|
1690
|
+
'enum': [
|
1691
|
+
],
|
1692
|
+
'validation': [
|
1693
|
+
'limit',
|
1694
|
+
]
|
1695
|
+
},
|
1696
|
+
root_map={
|
1697
|
+
'validations': {
|
1698
|
+
('limit',): {
|
1699
|
+
|
1700
|
+
'inclusive_maximum': 500,
|
1701
|
+
'inclusive_minimum': 1,
|
1702
|
+
},
|
1703
|
+
},
|
1704
|
+
'allowed_values': {
|
1705
|
+
},
|
1706
|
+
'openapi_types': {
|
1707
|
+
'limit':
|
1708
|
+
(int,),
|
1709
|
+
'org_id':
|
1710
|
+
(str,),
|
1711
|
+
'file_id':
|
1712
|
+
(str,),
|
1713
|
+
'object_id':
|
1714
|
+
(str,),
|
1715
|
+
},
|
1716
|
+
'attribute_map': {
|
1717
|
+
'limit': 'limit',
|
1718
|
+
'org_id': 'org_id',
|
1719
|
+
'file_id': 'file_id',
|
1720
|
+
'object_id': 'object_id',
|
1721
|
+
},
|
1722
|
+
'location_map': {
|
1723
|
+
'limit': 'query',
|
1724
|
+
'org_id': 'query',
|
1725
|
+
'file_id': 'query',
|
1726
|
+
'object_id': 'query',
|
1727
|
+
},
|
1728
|
+
'collection_format_map': {
|
1729
|
+
}
|
1730
|
+
},
|
1731
|
+
headers_map={
|
1732
|
+
'accept': [
|
1733
|
+
'application/json'
|
1734
|
+
],
|
1735
|
+
'content_type': [],
|
1736
|
+
},
|
1737
|
+
api_client=api_client,
|
1738
|
+
callable=__list_file_associations
|
1739
|
+
)
|
1740
|
+
|
1741
|
+
def __list_files(
|
1742
|
+
self,
|
1743
|
+
**kwargs
|
1744
|
+
):
|
1745
|
+
"""Query Files # noqa: E501
|
1746
|
+
|
1747
|
+
Query Files # noqa: E501
|
1748
|
+
This method makes a synchronous HTTP request by default. To make an
|
1749
|
+
asynchronous HTTP request, please pass async_req=True
|
1750
|
+
|
1751
|
+
>>> thread = api.list_files(async_req=True)
|
1752
|
+
>>> result = thread.get()
|
1753
|
+
|
1754
|
+
|
1755
|
+
Keyword Args:
|
1756
|
+
limit (int): limit the number of rows in the response. [optional] if omitted the server will use the default value of 500
|
1757
|
+
org_id (str): Organisation Unique identifier. [optional]
|
1758
|
+
user_id (str): Query based on user id. [optional]
|
1374
1759
|
tag (str): Search files based on tag. [optional]
|
1375
1760
|
file_association_id (str): search by file association's id. [optional]
|
1376
1761
|
object_oper_status (ObjectOperStatus): search by object oper status. [optional]
|
@@ -1509,6 +1894,150 @@ class FilesApi(object):
|
|
1509
1894
|
callable=__list_files
|
1510
1895
|
)
|
1511
1896
|
|
1897
|
+
def __list_public_file_org_links(
|
1898
|
+
self,
|
1899
|
+
**kwargs
|
1900
|
+
):
|
1901
|
+
"""Query Public File Org Links # noqa: E501
|
1902
|
+
|
1903
|
+
Query Public File Org Links. Note that link_org_id and org_id are alises for one another in this query. # noqa: E501
|
1904
|
+
This method makes a synchronous HTTP request by default. To make an
|
1905
|
+
asynchronous HTTP request, please pass async_req=True
|
1906
|
+
|
1907
|
+
>>> thread = api.list_public_file_org_links(async_req=True)
|
1908
|
+
>>> result = thread.get()
|
1909
|
+
|
1910
|
+
|
1911
|
+
Keyword Args:
|
1912
|
+
limit (int): limit the number of rows in the response. [optional] if omitted the server will use the default value of 500
|
1913
|
+
link_org_id (str): Search for the Organisation that is linked to another. [optional]
|
1914
|
+
org_id (str): Organisation Unique identifier. [optional]
|
1915
|
+
tag (str): Search files based on tag. [optional]
|
1916
|
+
page_at_id (str): Pagination based query with the id as the key. To get the initial entries supply an empty string. On subsequent requests, supply the `page_at_id` field from the list response. . [optional]
|
1917
|
+
_return_http_data_only (bool): response data without head status
|
1918
|
+
code and headers. Default is True.
|
1919
|
+
_preload_content (bool): if False, the urllib3.HTTPResponse object
|
1920
|
+
will be returned without reading/decoding response data.
|
1921
|
+
Default is True.
|
1922
|
+
_request_timeout (float/tuple): timeout setting for this request. If one
|
1923
|
+
number provided, it will be total request timeout. It can also
|
1924
|
+
be a pair (tuple) of (connection, read) timeouts.
|
1925
|
+
Default is None.
|
1926
|
+
_check_input_type (bool): specifies if type checking
|
1927
|
+
should be done one the data sent to the server.
|
1928
|
+
Default is True.
|
1929
|
+
_check_return_type (bool): specifies if type checking
|
1930
|
+
should be done one the data received from the server.
|
1931
|
+
Default is True.
|
1932
|
+
_host_index (int/None): specifies the index of the server
|
1933
|
+
that we want to use.
|
1934
|
+
Default is read from the configuration.
|
1935
|
+
async_req (bool): execute request asynchronously
|
1936
|
+
|
1937
|
+
Returns:
|
1938
|
+
ListPublicFileOrgLinksResponse
|
1939
|
+
If the method is called asynchronously, returns the request
|
1940
|
+
thread.
|
1941
|
+
"""
|
1942
|
+
kwargs['async_req'] = kwargs.get(
|
1943
|
+
'async_req', False
|
1944
|
+
)
|
1945
|
+
kwargs['_return_http_data_only'] = kwargs.get(
|
1946
|
+
'_return_http_data_only', True
|
1947
|
+
)
|
1948
|
+
kwargs['_preload_content'] = kwargs.get(
|
1949
|
+
'_preload_content', True
|
1950
|
+
)
|
1951
|
+
kwargs['_request_timeout'] = kwargs.get(
|
1952
|
+
'_request_timeout', None
|
1953
|
+
)
|
1954
|
+
kwargs['_check_input_type'] = kwargs.get(
|
1955
|
+
'_check_input_type', True
|
1956
|
+
)
|
1957
|
+
kwargs['_check_return_type'] = kwargs.get(
|
1958
|
+
'_check_return_type', True
|
1959
|
+
)
|
1960
|
+
kwargs['_host_index'] = kwargs.get('_host_index')
|
1961
|
+
return self.call_with_http_info(**kwargs)
|
1962
|
+
|
1963
|
+
if self.list_public_file_org_links is None:
|
1964
|
+
self.list_public_file_org_links = _Endpoint(
|
1965
|
+
settings={
|
1966
|
+
'response_type': (ListPublicFileOrgLinksResponse,),
|
1967
|
+
'auth': [
|
1968
|
+
'token-valid'
|
1969
|
+
],
|
1970
|
+
'endpoint_path': '/v1/public_file_org_links',
|
1971
|
+
'operation_id': 'list_public_file_org_links',
|
1972
|
+
'http_method': 'GET',
|
1973
|
+
'servers': None,
|
1974
|
+
},
|
1975
|
+
params_map={
|
1976
|
+
'all': [
|
1977
|
+
'limit',
|
1978
|
+
'link_org_id',
|
1979
|
+
'org_id',
|
1980
|
+
'tag',
|
1981
|
+
'page_at_id',
|
1982
|
+
],
|
1983
|
+
'required': [],
|
1984
|
+
'nullable': [
|
1985
|
+
],
|
1986
|
+
'enum': [
|
1987
|
+
],
|
1988
|
+
'validation': [
|
1989
|
+
'limit',
|
1990
|
+
]
|
1991
|
+
},
|
1992
|
+
root_map={
|
1993
|
+
'validations': {
|
1994
|
+
('limit',): {
|
1995
|
+
|
1996
|
+
'inclusive_maximum': 500,
|
1997
|
+
'inclusive_minimum': 1,
|
1998
|
+
},
|
1999
|
+
},
|
2000
|
+
'allowed_values': {
|
2001
|
+
},
|
2002
|
+
'openapi_types': {
|
2003
|
+
'limit':
|
2004
|
+
(int,),
|
2005
|
+
'link_org_id':
|
2006
|
+
(str,),
|
2007
|
+
'org_id':
|
2008
|
+
(str,),
|
2009
|
+
'tag':
|
2010
|
+
(str,),
|
2011
|
+
'page_at_id':
|
2012
|
+
(str,),
|
2013
|
+
},
|
2014
|
+
'attribute_map': {
|
2015
|
+
'limit': 'limit',
|
2016
|
+
'link_org_id': 'link_org_id',
|
2017
|
+
'org_id': 'org_id',
|
2018
|
+
'tag': 'tag',
|
2019
|
+
'page_at_id': 'page_at_id',
|
2020
|
+
},
|
2021
|
+
'location_map': {
|
2022
|
+
'limit': 'query',
|
2023
|
+
'link_org_id': 'query',
|
2024
|
+
'org_id': 'query',
|
2025
|
+
'tag': 'query',
|
2026
|
+
'page_at_id': 'query',
|
2027
|
+
},
|
2028
|
+
'collection_format_map': {
|
2029
|
+
}
|
2030
|
+
},
|
2031
|
+
headers_map={
|
2032
|
+
'accept': [
|
2033
|
+
'application/json'
|
2034
|
+
],
|
2035
|
+
'content_type': [],
|
2036
|
+
},
|
2037
|
+
api_client=api_client,
|
2038
|
+
callable=__list_public_file_org_links
|
2039
|
+
)
|
2040
|
+
|
1512
2041
|
def __replace_file(
|
1513
2042
|
self,
|
1514
2043
|
file_id,
|
@@ -1646,6 +2175,149 @@ class FilesApi(object):
|
|
1646
2175
|
callable=__replace_file
|
1647
2176
|
)
|
1648
2177
|
|
2178
|
+
def __replace_public_file_org_link(
|
2179
|
+
self,
|
2180
|
+
public_file_org_link_id,
|
2181
|
+
public_file_org_link,
|
2182
|
+
**kwargs
|
2183
|
+
):
|
2184
|
+
"""Replace a public file org link # noqa: E501
|
2185
|
+
|
2186
|
+
Replace a public file org link # noqa: E501
|
2187
|
+
This method makes a synchronous HTTP request by default. To make an
|
2188
|
+
asynchronous HTTP request, please pass async_req=True
|
2189
|
+
|
2190
|
+
>>> thread = api.replace_public_file_org_link(public_file_org_link_id, public_file_org_link, async_req=True)
|
2191
|
+
>>> result = thread.get()
|
2192
|
+
|
2193
|
+
Args:
|
2194
|
+
public_file_org_link_id (str): public file org link id in path
|
2195
|
+
public_file_org_link (PublicFileOrgLink): The link to update
|
2196
|
+
|
2197
|
+
Keyword Args:
|
2198
|
+
link_org_id (str): Search for the Organisation that is linked to another. [optional]
|
2199
|
+
org_id (str): Organisation Unique identifier. [optional]
|
2200
|
+
_return_http_data_only (bool): response data without head status
|
2201
|
+
code and headers. Default is True.
|
2202
|
+
_preload_content (bool): if False, the urllib3.HTTPResponse object
|
2203
|
+
will be returned without reading/decoding response data.
|
2204
|
+
Default is True.
|
2205
|
+
_request_timeout (float/tuple): timeout setting for this request. If one
|
2206
|
+
number provided, it will be total request timeout. It can also
|
2207
|
+
be a pair (tuple) of (connection, read) timeouts.
|
2208
|
+
Default is None.
|
2209
|
+
_check_input_type (bool): specifies if type checking
|
2210
|
+
should be done one the data sent to the server.
|
2211
|
+
Default is True.
|
2212
|
+
_check_return_type (bool): specifies if type checking
|
2213
|
+
should be done one the data received from the server.
|
2214
|
+
Default is True.
|
2215
|
+
_host_index (int/None): specifies the index of the server
|
2216
|
+
that we want to use.
|
2217
|
+
Default is read from the configuration.
|
2218
|
+
async_req (bool): execute request asynchronously
|
2219
|
+
|
2220
|
+
Returns:
|
2221
|
+
PublicFileOrgLink
|
2222
|
+
If the method is called asynchronously, returns the request
|
2223
|
+
thread.
|
2224
|
+
"""
|
2225
|
+
kwargs['async_req'] = kwargs.get(
|
2226
|
+
'async_req', False
|
2227
|
+
)
|
2228
|
+
kwargs['_return_http_data_only'] = kwargs.get(
|
2229
|
+
'_return_http_data_only', True
|
2230
|
+
)
|
2231
|
+
kwargs['_preload_content'] = kwargs.get(
|
2232
|
+
'_preload_content', True
|
2233
|
+
)
|
2234
|
+
kwargs['_request_timeout'] = kwargs.get(
|
2235
|
+
'_request_timeout', None
|
2236
|
+
)
|
2237
|
+
kwargs['_check_input_type'] = kwargs.get(
|
2238
|
+
'_check_input_type', True
|
2239
|
+
)
|
2240
|
+
kwargs['_check_return_type'] = kwargs.get(
|
2241
|
+
'_check_return_type', True
|
2242
|
+
)
|
2243
|
+
kwargs['_host_index'] = kwargs.get('_host_index')
|
2244
|
+
kwargs['public_file_org_link_id'] = \
|
2245
|
+
public_file_org_link_id
|
2246
|
+
kwargs['public_file_org_link'] = \
|
2247
|
+
public_file_org_link
|
2248
|
+
return self.call_with_http_info(**kwargs)
|
2249
|
+
|
2250
|
+
if self.replace_public_file_org_link is None:
|
2251
|
+
self.replace_public_file_org_link = _Endpoint(
|
2252
|
+
settings={
|
2253
|
+
'response_type': (PublicFileOrgLink,),
|
2254
|
+
'auth': [
|
2255
|
+
'token-valid'
|
2256
|
+
],
|
2257
|
+
'endpoint_path': '/v1/public_file_org_links/{public_file_org_link_id}',
|
2258
|
+
'operation_id': 'replace_public_file_org_link',
|
2259
|
+
'http_method': 'PUT',
|
2260
|
+
'servers': None,
|
2261
|
+
},
|
2262
|
+
params_map={
|
2263
|
+
'all': [
|
2264
|
+
'public_file_org_link_id',
|
2265
|
+
'public_file_org_link',
|
2266
|
+
'link_org_id',
|
2267
|
+
'org_id',
|
2268
|
+
],
|
2269
|
+
'required': [
|
2270
|
+
'public_file_org_link_id',
|
2271
|
+
'public_file_org_link',
|
2272
|
+
],
|
2273
|
+
'nullable': [
|
2274
|
+
],
|
2275
|
+
'enum': [
|
2276
|
+
],
|
2277
|
+
'validation': [
|
2278
|
+
]
|
2279
|
+
},
|
2280
|
+
root_map={
|
2281
|
+
'validations': {
|
2282
|
+
},
|
2283
|
+
'allowed_values': {
|
2284
|
+
},
|
2285
|
+
'openapi_types': {
|
2286
|
+
'public_file_org_link_id':
|
2287
|
+
(str,),
|
2288
|
+
'public_file_org_link':
|
2289
|
+
(PublicFileOrgLink,),
|
2290
|
+
'link_org_id':
|
2291
|
+
(str,),
|
2292
|
+
'org_id':
|
2293
|
+
(str,),
|
2294
|
+
},
|
2295
|
+
'attribute_map': {
|
2296
|
+
'public_file_org_link_id': 'public_file_org_link_id',
|
2297
|
+
'link_org_id': 'link_org_id',
|
2298
|
+
'org_id': 'org_id',
|
2299
|
+
},
|
2300
|
+
'location_map': {
|
2301
|
+
'public_file_org_link_id': 'path',
|
2302
|
+
'public_file_org_link': 'body',
|
2303
|
+
'link_org_id': 'query',
|
2304
|
+
'org_id': 'query',
|
2305
|
+
},
|
2306
|
+
'collection_format_map': {
|
2307
|
+
}
|
2308
|
+
},
|
2309
|
+
headers_map={
|
2310
|
+
'accept': [
|
2311
|
+
'application/json'
|
2312
|
+
],
|
2313
|
+
'content_type': [
|
2314
|
+
'application/json'
|
2315
|
+
]
|
2316
|
+
},
|
2317
|
+
api_client=api_client,
|
2318
|
+
callable=__replace_public_file_org_link
|
2319
|
+
)
|
2320
|
+
|
1649
2321
|
def __reupload_file(
|
1650
2322
|
self,
|
1651
2323
|
file_id,
|
@@ -1791,13 +2463,18 @@ class FilesApi(object):
|
|
1791
2463
|
add_file = None
|
1792
2464
|
create_file_association = None
|
1793
2465
|
create_file_association_clear_task = None
|
2466
|
+
create_public_file_org_link = None
|
1794
2467
|
delete_file = None
|
1795
2468
|
delete_file_association = None
|
2469
|
+
delete_public_file_org_link = None
|
1796
2470
|
get_download = None
|
1797
2471
|
get_download_public = None
|
1798
2472
|
get_file = None
|
1799
2473
|
get_file_association = None
|
2474
|
+
get_public_file_org_link = None
|
1800
2475
|
list_file_associations = None
|
1801
2476
|
list_files = None
|
2477
|
+
list_public_file_org_links = None
|
1802
2478
|
replace_file = None
|
2479
|
+
replace_public_file_org_link = None
|
1803
2480
|
reupload_file = None
|