Scheduled service maintenance on November 22


On Friday, November 22, 2024, between 06:00 CET and 18:00 CET, GIN services will undergo planned maintenance. Extended service interruptions should be expected. We will try to keep downtimes to a minimum, but recommend that users avoid critical tasks, large data uploads, or DOI requests during this time.

We apologize for any inconvenience.

simplified_api.py 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125
  1. # each item is a command that is allowed in the API
  2. # the key is the command name in the Python API.
  3. # the values are dicts with the following keys
  4. # - exclude_parameters: set with parameter names to
  5. # exclude from the API
  6. api = dict(
  7. clone=dict(
  8. name='Clone a dataset',
  9. exclude_parameters=set((
  10. 'git_clone_opts',
  11. 'reckless',
  12. 'description',
  13. )),
  14. parameter_display_names=dict(
  15. source='Clone from',
  16. path='Clone into',
  17. dataset='Register clone in dataset',
  18. ),
  19. parameter_order=dict(
  20. source=0,
  21. path=1,
  22. dataset=2,
  23. ),
  24. ),
  25. create=dict(
  26. name='Create a dataset',
  27. exclude_parameters=set((
  28. 'initopts',
  29. 'description',
  30. 'fake_dates',
  31. )),
  32. parameter_display_names=dict(
  33. force='OK if target directory not empty',
  34. path='Create at',
  35. dataset='Register in dataset',
  36. ),
  37. parameter_order=dict(
  38. path=0,
  39. annex=1,
  40. dataset=2,
  41. ),
  42. ),
  43. create_sibling_gitlab=dict(
  44. ),
  45. create_sibling_gin=dict(
  46. ),
  47. create_sibling_github=dict(
  48. ),
  49. drop=dict(
  50. ),
  51. get=dict(
  52. ),
  53. push=dict(
  54. ),
  55. save=dict(
  56. name='Save the state in a dataset',
  57. exclude_parameters=set((
  58. 'updated',
  59. 'message_file',
  60. )),
  61. parameter_display_names=dict(
  62. dataset='Save changes in dataset at',
  63. message='Description of change',
  64. path='Only save',
  65. recursive='Include changes in subdatasets',
  66. to_git='Do not put files in annex',
  67. version_tag='Tag for saved dataset state',
  68. amend='Amend last saved state',
  69. ),
  70. parameter_order=dict(
  71. dataset=0,
  72. message=1,
  73. path=2,
  74. recursive=3,
  75. to_git=4,
  76. version_tag=5,
  77. amend=6,
  78. ),
  79. ),
  80. update=dict(
  81. ),
  82. )
  83. exclude_parameters = set((
  84. 'result_renderer',
  85. 'return_type',
  86. 'result_filter',
  87. 'result_xfm',
  88. 'on_failure',
  89. 'jobs',
  90. 'recursion_limit',
  91. ))
  92. parameter_display_names = dict(
  93. annex='Dataset with file annex',
  94. cfg_proc='Configuration procedure(s)',
  95. dataset='Dataset location',
  96. )
  97. dataset_api = {
  98. c: s for c, s in api.items()
  99. if c in (
  100. 'clone', 'create', 'create_sibling_gitlab', 'create_sibling_gin',
  101. 'create_sibling_github', 'drop', 'get', 'push', 'save', 'update'
  102. )
  103. }
  104. directory_api = {
  105. c: s for c, s in api.items() if c in ('clone', 'create')
  106. }
  107. directory_in_ds_api = {
  108. c: s for c, s in api.items()
  109. if c in ('clone', 'create', 'drop', 'get', 'push', 'save')
  110. }
  111. file_api = None
  112. file_in_ds_api = {
  113. c: s for c, s in api.items() if c in ('save',)
  114. }
  115. annexed_file_api = {
  116. c: s for c, s in api.items()
  117. if c in ('drop', 'get', 'push', 'save')
  118. }
  119. # simplified API has no groups
  120. api_group_order = {}