rucio 37.4.0__py3-none-any.whl → 37.5.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of rucio might be problematic. Click here for more details.
- rucio/client/downloadclient.py +1 -1
- rucio/client/requestclient.py +6 -5
- rucio/common/constants.py +14 -17
- rucio/common/utils.py +18 -2
- rucio/core/permission/generic.py +3 -0
- rucio/core/replica.py +1 -1
- rucio/core/request.py +2 -2
- rucio/core/transfer.py +4 -5
- rucio/daemons/conveyor/throttler.py +2 -1
- rucio/db/sqla/constants.py +3 -3
- rucio/db/sqla/migrate_repo/versions/13d4f70c66a9_introduce_transfer_limits.py +1 -1
- rucio/db/sqla/models.py +1 -1
- rucio/gateway/request.py +13 -12
- rucio/rse/rsemanager.py +2 -2
- rucio/vcsversion.py +3 -3
- rucio/web/rest/flaskapi/v1/accountlimits.py +22 -22
- rucio/web/rest/flaskapi/v1/accounts.py +157 -157
- rucio/web/rest/flaskapi/v1/archives.py +10 -10
- rucio/web/rest/flaskapi/v1/auth.py +106 -106
- rucio/web/rest/flaskapi/v1/config.py +37 -37
- rucio/web/rest/flaskapi/v1/credentials.py +25 -25
- rucio/web/rest/flaskapi/v1/dids.py +381 -381
- rucio/web/rest/flaskapi/v1/dirac.py +8 -8
- rucio/web/rest/flaskapi/v1/export.py +6 -6
- rucio/web/rest/flaskapi/v1/heartbeats.py +14 -14
- rucio/web/rest/flaskapi/v1/identities.py +25 -25
- rucio/web/rest/flaskapi/v1/import.py +19 -19
- rucio/web/rest/flaskapi/v1/lifetime_exceptions.py +54 -54
- rucio/web/rest/flaskapi/v1/locks.py +60 -60
- rucio/web/rest/flaskapi/v1/meta_conventions.py +29 -29
- rucio/web/rest/flaskapi/v1/nongrid_traces.py +4 -4
- rucio/web/rest/flaskapi/v1/ping.py +4 -4
- rucio/web/rest/flaskapi/v1/redirect.py +16 -16
- rucio/web/rest/flaskapi/v1/replicas.py +281 -281
- rucio/web/rest/flaskapi/v1/requests.py +274 -270
- rucio/web/rest/flaskapi/v1/rses.py +427 -427
- rucio/web/rest/flaskapi/v1/rules.py +129 -129
- rucio/web/rest/flaskapi/v1/scopes.py +21 -21
- rucio/web/rest/flaskapi/v1/subscriptions.py +113 -113
- rucio/web/rest/flaskapi/v1/traces.py +18 -18
- rucio/web/rest/flaskapi/v1/vos.py +32 -32
- {rucio-37.4.0.data → rucio-37.5.0.data}/data/rucio/requirements.server.txt +1 -1
- {rucio-37.4.0.dist-info → rucio-37.5.0.dist-info}/METADATA +1 -1
- {rucio-37.4.0.dist-info → rucio-37.5.0.dist-info}/RECORD +102 -102
- {rucio-37.4.0.dist-info → rucio-37.5.0.dist-info}/WHEEL +1 -1
- {rucio-37.4.0.data → rucio-37.5.0.data}/data/rucio/etc/alembic.ini.template +0 -0
- {rucio-37.4.0.data → rucio-37.5.0.data}/data/rucio/etc/alembic_offline.ini.template +0 -0
- {rucio-37.4.0.data → rucio-37.5.0.data}/data/rucio/etc/globus-config.yml.template +0 -0
- {rucio-37.4.0.data → rucio-37.5.0.data}/data/rucio/etc/ldap.cfg.template +0 -0
- {rucio-37.4.0.data → rucio-37.5.0.data}/data/rucio/etc/mail_templates/rule_approval_request.tmpl +0 -0
- {rucio-37.4.0.data → rucio-37.5.0.data}/data/rucio/etc/mail_templates/rule_approved_admin.tmpl +0 -0
- {rucio-37.4.0.data → rucio-37.5.0.data}/data/rucio/etc/mail_templates/rule_approved_user.tmpl +0 -0
- {rucio-37.4.0.data → rucio-37.5.0.data}/data/rucio/etc/mail_templates/rule_denied_admin.tmpl +0 -0
- {rucio-37.4.0.data → rucio-37.5.0.data}/data/rucio/etc/mail_templates/rule_denied_user.tmpl +0 -0
- {rucio-37.4.0.data → rucio-37.5.0.data}/data/rucio/etc/mail_templates/rule_ok_notification.tmpl +0 -0
- {rucio-37.4.0.data → rucio-37.5.0.data}/data/rucio/etc/rse-accounts.cfg.template +0 -0
- {rucio-37.4.0.data → rucio-37.5.0.data}/data/rucio/etc/rucio.cfg.atlas.client.template +0 -0
- {rucio-37.4.0.data → rucio-37.5.0.data}/data/rucio/etc/rucio.cfg.template +0 -0
- {rucio-37.4.0.data → rucio-37.5.0.data}/data/rucio/etc/rucio_multi_vo.cfg.template +0 -0
- {rucio-37.4.0.data → rucio-37.5.0.data}/data/rucio/tools/bootstrap.py +0 -0
- {rucio-37.4.0.data → rucio-37.5.0.data}/data/rucio/tools/merge_rucio_configs.py +0 -0
- {rucio-37.4.0.data → rucio-37.5.0.data}/data/rucio/tools/reset_database.py +0 -0
- {rucio-37.4.0.data → rucio-37.5.0.data}/scripts/rucio +0 -0
- {rucio-37.4.0.data → rucio-37.5.0.data}/scripts/rucio-abacus-account +0 -0
- {rucio-37.4.0.data → rucio-37.5.0.data}/scripts/rucio-abacus-collection-replica +0 -0
- {rucio-37.4.0.data → rucio-37.5.0.data}/scripts/rucio-abacus-rse +0 -0
- {rucio-37.4.0.data → rucio-37.5.0.data}/scripts/rucio-admin +0 -0
- {rucio-37.4.0.data → rucio-37.5.0.data}/scripts/rucio-atropos +0 -0
- {rucio-37.4.0.data → rucio-37.5.0.data}/scripts/rucio-auditor +0 -0
- {rucio-37.4.0.data → rucio-37.5.0.data}/scripts/rucio-automatix +0 -0
- {rucio-37.4.0.data → rucio-37.5.0.data}/scripts/rucio-bb8 +0 -0
- {rucio-37.4.0.data → rucio-37.5.0.data}/scripts/rucio-cache-client +0 -0
- {rucio-37.4.0.data → rucio-37.5.0.data}/scripts/rucio-cache-consumer +0 -0
- {rucio-37.4.0.data → rucio-37.5.0.data}/scripts/rucio-conveyor-finisher +0 -0
- {rucio-37.4.0.data → rucio-37.5.0.data}/scripts/rucio-conveyor-poller +0 -0
- {rucio-37.4.0.data → rucio-37.5.0.data}/scripts/rucio-conveyor-preparer +0 -0
- {rucio-37.4.0.data → rucio-37.5.0.data}/scripts/rucio-conveyor-receiver +0 -0
- {rucio-37.4.0.data → rucio-37.5.0.data}/scripts/rucio-conveyor-stager +0 -0
- {rucio-37.4.0.data → rucio-37.5.0.data}/scripts/rucio-conveyor-submitter +0 -0
- {rucio-37.4.0.data → rucio-37.5.0.data}/scripts/rucio-conveyor-throttler +0 -0
- {rucio-37.4.0.data → rucio-37.5.0.data}/scripts/rucio-dark-reaper +0 -0
- {rucio-37.4.0.data → rucio-37.5.0.data}/scripts/rucio-dumper +0 -0
- {rucio-37.4.0.data → rucio-37.5.0.data}/scripts/rucio-follower +0 -0
- {rucio-37.4.0.data → rucio-37.5.0.data}/scripts/rucio-hermes +0 -0
- {rucio-37.4.0.data → rucio-37.5.0.data}/scripts/rucio-judge-cleaner +0 -0
- {rucio-37.4.0.data → rucio-37.5.0.data}/scripts/rucio-judge-evaluator +0 -0
- {rucio-37.4.0.data → rucio-37.5.0.data}/scripts/rucio-judge-injector +0 -0
- {rucio-37.4.0.data → rucio-37.5.0.data}/scripts/rucio-judge-repairer +0 -0
- {rucio-37.4.0.data → rucio-37.5.0.data}/scripts/rucio-kronos +0 -0
- {rucio-37.4.0.data → rucio-37.5.0.data}/scripts/rucio-minos +0 -0
- {rucio-37.4.0.data → rucio-37.5.0.data}/scripts/rucio-minos-temporary-expiration +0 -0
- {rucio-37.4.0.data → rucio-37.5.0.data}/scripts/rucio-necromancer +0 -0
- {rucio-37.4.0.data → rucio-37.5.0.data}/scripts/rucio-oauth-manager +0 -0
- {rucio-37.4.0.data → rucio-37.5.0.data}/scripts/rucio-reaper +0 -0
- {rucio-37.4.0.data → rucio-37.5.0.data}/scripts/rucio-replica-recoverer +0 -0
- {rucio-37.4.0.data → rucio-37.5.0.data}/scripts/rucio-rse-decommissioner +0 -0
- {rucio-37.4.0.data → rucio-37.5.0.data}/scripts/rucio-storage-consistency-actions +0 -0
- {rucio-37.4.0.data → rucio-37.5.0.data}/scripts/rucio-transmogrifier +0 -0
- {rucio-37.4.0.data → rucio-37.5.0.data}/scripts/rucio-undertaker +0 -0
- {rucio-37.4.0.dist-info → rucio-37.5.0.dist-info}/licenses/AUTHORS.rst +0 -0
- {rucio-37.4.0.dist-info → rucio-37.5.0.dist-info}/licenses/LICENSE +0 -0
- {rucio-37.4.0.dist-info → rucio-37.5.0.dist-info}/top_level.txt +0 -0
|
@@ -31,59 +31,59 @@ class LifetimeException(ErrorHandlingMethodView):
|
|
|
31
31
|
"""
|
|
32
32
|
---
|
|
33
33
|
summary: List Exceptions
|
|
34
|
-
description: Retrieves all exceptions.
|
|
34
|
+
description: "Retrieves all exceptions."
|
|
35
35
|
tags:
|
|
36
36
|
- Lifetime Exceptions
|
|
37
37
|
responses:
|
|
38
38
|
200:
|
|
39
|
-
description: OK
|
|
39
|
+
description: "OK"
|
|
40
40
|
content:
|
|
41
41
|
application/x-json-stream:
|
|
42
42
|
schema:
|
|
43
|
-
description: One exception per line.
|
|
43
|
+
description: "One exception per line."
|
|
44
44
|
type: array
|
|
45
45
|
items:
|
|
46
|
-
description: A lifetime exception
|
|
46
|
+
description: "A lifetime exception"
|
|
47
47
|
type: object
|
|
48
48
|
properties:
|
|
49
49
|
id:
|
|
50
|
-
description: The id of the lifetime exception.
|
|
50
|
+
description: "The id of the lifetime exception."
|
|
51
51
|
type: string
|
|
52
52
|
scope:
|
|
53
|
-
description: The scope associated with the lifetime exception.
|
|
53
|
+
description: "The scope associated with the lifetime exception."
|
|
54
54
|
type: string
|
|
55
55
|
name:
|
|
56
|
-
description: The name of the lifetime exception.
|
|
56
|
+
description: "The name of the lifetime exception."
|
|
57
57
|
type: string
|
|
58
58
|
did_type:
|
|
59
|
-
description: The type of the did.
|
|
59
|
+
description: "The type of the did."
|
|
60
60
|
type: string
|
|
61
61
|
enum: ['F', 'D', 'C', 'A', 'X', 'Y', 'Z']
|
|
62
62
|
account:
|
|
63
|
-
description: The account associated with the lifetime exception.
|
|
63
|
+
description: "The account associated with the lifetime exception."
|
|
64
64
|
type: string
|
|
65
65
|
pattern:
|
|
66
|
-
description: The pattern of the lifetime exception.
|
|
66
|
+
description: "The pattern of the lifetime exception."
|
|
67
67
|
type: string
|
|
68
68
|
comments:
|
|
69
|
-
description: The comments of the lifetime exception.
|
|
69
|
+
description: "The comments of the lifetime exception."
|
|
70
70
|
type: string
|
|
71
71
|
state:
|
|
72
|
-
description: The state of the lifetime exception.
|
|
72
|
+
description: "The state of the lifetime exception."
|
|
73
73
|
type: string
|
|
74
74
|
enum: ['A', 'R', 'W']
|
|
75
75
|
created_at:
|
|
76
|
-
description: The datetime the lifetime exception was created.
|
|
76
|
+
description: "The datetime the lifetime exception was created."
|
|
77
77
|
type: string
|
|
78
78
|
expires_at:
|
|
79
|
-
description: The datetime the lifetime exception expires.
|
|
79
|
+
description: "The datetime the lifetime exception expires."
|
|
80
80
|
type: string
|
|
81
81
|
401:
|
|
82
|
-
description: Invalid Auth Token
|
|
82
|
+
description: "Invalid Auth Token"
|
|
83
83
|
404:
|
|
84
|
-
description: Lifetime exception not found
|
|
84
|
+
description: "Lifetime exception not found"
|
|
85
85
|
406:
|
|
86
|
-
description: Not acceptable
|
|
86
|
+
description: "Not acceptable"
|
|
87
87
|
"""
|
|
88
88
|
try:
|
|
89
89
|
def generate(vo):
|
|
@@ -98,7 +98,7 @@ class LifetimeException(ErrorHandlingMethodView):
|
|
|
98
98
|
"""
|
|
99
99
|
---
|
|
100
100
|
summary: Create Exception
|
|
101
|
-
description: Creates a Lifetime Exception.
|
|
101
|
+
description: "Creates a Lifetime Exception."
|
|
102
102
|
tags:
|
|
103
103
|
- Lifetime Exceptions
|
|
104
104
|
requestBody:
|
|
@@ -108,38 +108,38 @@ class LifetimeException(ErrorHandlingMethodView):
|
|
|
108
108
|
type: object
|
|
109
109
|
properties:
|
|
110
110
|
dids:
|
|
111
|
-
description: List of dids associated with the lifetime exception.
|
|
111
|
+
description: "List of dids associated with the lifetime exception."
|
|
112
112
|
type: array
|
|
113
113
|
items:
|
|
114
|
-
description: A did
|
|
114
|
+
description: "A did"
|
|
115
115
|
type: object
|
|
116
116
|
properties:
|
|
117
117
|
name:
|
|
118
|
-
description: The name of the did.
|
|
118
|
+
description: "The name of the did."
|
|
119
119
|
type: string
|
|
120
120
|
pattern:
|
|
121
|
-
description: The pattern of the lifetime exception.
|
|
121
|
+
description: "The pattern of the lifetime exception."
|
|
122
122
|
type: string
|
|
123
123
|
comments:
|
|
124
|
-
description: The comment for the lifetime exception.
|
|
124
|
+
description: "The comment for the lifetime exception."
|
|
125
125
|
type: string
|
|
126
126
|
expires_at:
|
|
127
|
-
description: The expiration date for the lifetime exception.
|
|
127
|
+
description: "The expiration date for the lifetime exception."
|
|
128
128
|
type: string
|
|
129
129
|
responses:
|
|
130
130
|
201:
|
|
131
|
-
description: OK
|
|
131
|
+
description: "OK"
|
|
132
132
|
content:
|
|
133
133
|
application/json:
|
|
134
134
|
schema:
|
|
135
|
-
description: The exception id.
|
|
135
|
+
description: "The exception id."
|
|
136
136
|
type: string
|
|
137
137
|
401:
|
|
138
|
-
description: Invalid Auth Token
|
|
138
|
+
description: "Invalid Auth Token"
|
|
139
139
|
400:
|
|
140
|
-
description: Cannot decode json parameter list.
|
|
140
|
+
description: "Cannot decode json parameter list."
|
|
141
141
|
409:
|
|
142
|
-
description: Lifetime exception already exists.
|
|
142
|
+
description: "Lifetime exception already exists."
|
|
143
143
|
"""
|
|
144
144
|
parameters = json_parameters()
|
|
145
145
|
try:
|
|
@@ -169,66 +169,66 @@ class LifetimeExceptionId(ErrorHandlingMethodView):
|
|
|
169
169
|
"""
|
|
170
170
|
---
|
|
171
171
|
summary: Get Exception
|
|
172
|
-
description: Get a single Lifetime Exception.
|
|
172
|
+
description: "Get a single Lifetime Exception."
|
|
173
173
|
tags:
|
|
174
174
|
- Lifetime Exceptions
|
|
175
175
|
parameters:
|
|
176
176
|
- name: exception_id
|
|
177
177
|
in: path
|
|
178
|
-
description: The id of the lifetime exception.
|
|
178
|
+
description: "The id of the lifetime exception."
|
|
179
179
|
schema:
|
|
180
180
|
type: string
|
|
181
181
|
style: simple
|
|
182
182
|
responses:
|
|
183
183
|
200:
|
|
184
|
-
description: OK
|
|
184
|
+
description: "OK"
|
|
185
185
|
content:
|
|
186
186
|
application/x-json-stream:
|
|
187
187
|
schema:
|
|
188
|
-
description: List of lifetime exceptions associated with the id.
|
|
188
|
+
description: "List of lifetime exceptions associated with the id."
|
|
189
189
|
type: array
|
|
190
190
|
items:
|
|
191
|
-
description: A lifetime exception
|
|
191
|
+
description: "A lifetime exception"
|
|
192
192
|
type: object
|
|
193
193
|
properties:
|
|
194
194
|
id:
|
|
195
|
-
description: The id of the lifetime exception.
|
|
195
|
+
description: "The id of the lifetime exception."
|
|
196
196
|
type: string
|
|
197
197
|
scope:
|
|
198
|
-
description: The scope associated with the lifetime exception.
|
|
198
|
+
description: "The scope associated with the lifetime exception."
|
|
199
199
|
type: string
|
|
200
200
|
name:
|
|
201
|
-
description: The name of the lifetime exception.
|
|
201
|
+
description: "The name of the lifetime exception."
|
|
202
202
|
type: string
|
|
203
203
|
did_type:
|
|
204
|
-
description: The type of the did.
|
|
204
|
+
description: "The type of the did."
|
|
205
205
|
type: string
|
|
206
206
|
enum: ['F', 'D', 'C', 'A', 'X', 'Y', 'Z']
|
|
207
207
|
account:
|
|
208
|
-
description: The account associated with the lifetime exception.
|
|
208
|
+
description: "The account associated with the lifetime exception."
|
|
209
209
|
type: string
|
|
210
210
|
pattern:
|
|
211
|
-
description: The pattern of the lifetime exception.
|
|
211
|
+
description: "The pattern of the lifetime exception."
|
|
212
212
|
type: string
|
|
213
213
|
comments:
|
|
214
|
-
description: The comments of the lifetime exception.
|
|
214
|
+
description: "The comments of the lifetime exception."
|
|
215
215
|
type: string
|
|
216
216
|
state:
|
|
217
|
-
description: The state of the lifetime exception.
|
|
217
|
+
description: "The state of the lifetime exception."
|
|
218
218
|
type: string
|
|
219
219
|
enum: ['A', 'R', 'W']
|
|
220
220
|
created_at:
|
|
221
|
-
description: The datetime the lifetime exception was created.
|
|
221
|
+
description: "The datetime the lifetime exception was created."
|
|
222
222
|
type: string
|
|
223
223
|
expires_at:
|
|
224
|
-
description: The datetime the lifetime exception expires.
|
|
224
|
+
description: "The datetime the lifetime exception expires."
|
|
225
225
|
type: string
|
|
226
226
|
401:
|
|
227
|
-
description: Invalid Auth Token
|
|
227
|
+
description: "Invalid Auth Token"
|
|
228
228
|
404:
|
|
229
|
-
description: Lifetime exception not found
|
|
229
|
+
description: "Lifetime exception not found"
|
|
230
230
|
406:
|
|
231
|
-
description: Not acceptable
|
|
231
|
+
description: "Not acceptable"
|
|
232
232
|
"""
|
|
233
233
|
try:
|
|
234
234
|
def generate(vo):
|
|
@@ -243,13 +243,13 @@ class LifetimeExceptionId(ErrorHandlingMethodView):
|
|
|
243
243
|
"""
|
|
244
244
|
---
|
|
245
245
|
summary: Approve/Reject exception
|
|
246
|
-
description: Approve/Reject a Lifetime Exception.
|
|
246
|
+
description: "Approve/Reject a Lifetime Exception."
|
|
247
247
|
tags:
|
|
248
248
|
- Lifetime Exceptions
|
|
249
249
|
parameters:
|
|
250
250
|
- name: exception_id
|
|
251
251
|
in: path
|
|
252
|
-
description: The id of the Lifetime Exception.
|
|
252
|
+
description: "The id of the Lifetime Exception."
|
|
253
253
|
schema:
|
|
254
254
|
type: string
|
|
255
255
|
style: simple
|
|
@@ -260,23 +260,23 @@ class LifetimeExceptionId(ErrorHandlingMethodView):
|
|
|
260
260
|
type: object
|
|
261
261
|
properties:
|
|
262
262
|
state:
|
|
263
|
-
description: The new state for the Lifetime Exception.
|
|
263
|
+
description: "The new state for the Lifetime Exception."
|
|
264
264
|
type: string
|
|
265
265
|
enum: ['A', 'R']
|
|
266
266
|
responses:
|
|
267
267
|
201:
|
|
268
|
-
description: OK
|
|
268
|
+
description: "OK"
|
|
269
269
|
content:
|
|
270
270
|
application/json:
|
|
271
271
|
schema:
|
|
272
272
|
type: string
|
|
273
273
|
enum: ['Created']
|
|
274
274
|
401:
|
|
275
|
-
description: Invalid Auth Token
|
|
275
|
+
description: "Invalid Auth Token"
|
|
276
276
|
404:
|
|
277
|
-
description: Lifetime Exception not found
|
|
277
|
+
description: "Lifetime Exception not found"
|
|
278
278
|
400:
|
|
279
|
-
description: Cannot decode json parameter list.
|
|
279
|
+
description: "Cannot decode json parameter list."
|
|
280
280
|
"""
|
|
281
281
|
parameters = json_parameters()
|
|
282
282
|
state = param_get(parameters, 'state', default=None)
|
|
@@ -29,13 +29,13 @@ class LockByRSE(ErrorHandlingMethodView):
|
|
|
29
29
|
"""
|
|
30
30
|
---
|
|
31
31
|
summary: Get locks by rse
|
|
32
|
-
description: Get all dataset locks for an associated rse.
|
|
32
|
+
description: "Get all dataset locks for an associated rse."
|
|
33
33
|
tags:
|
|
34
34
|
- Lock
|
|
35
35
|
parameters:
|
|
36
36
|
- name: rse
|
|
37
37
|
in: path
|
|
38
|
-
description: The rse name.
|
|
38
|
+
description: "The rse name."
|
|
39
39
|
schema:
|
|
40
40
|
type: string
|
|
41
41
|
style: simple
|
|
@@ -46,63 +46,63 @@ class LockByRSE(ErrorHandlingMethodView):
|
|
|
46
46
|
type: object
|
|
47
47
|
properties:
|
|
48
48
|
did_type:
|
|
49
|
-
description: The did type to filter for.
|
|
49
|
+
description: "The did type to filter for."
|
|
50
50
|
type: string
|
|
51
51
|
enum: ['dataset']
|
|
52
52
|
responses:
|
|
53
53
|
200:
|
|
54
|
-
description: OK
|
|
54
|
+
description: "OK"
|
|
55
55
|
content:
|
|
56
56
|
application/x-json-stream:
|
|
57
57
|
schema:
|
|
58
|
-
description: Locks associated with the rse.
|
|
58
|
+
description: "Locks associated with the rse."
|
|
59
59
|
type: array
|
|
60
60
|
items:
|
|
61
|
-
description: A lock
|
|
61
|
+
description: "A lock"
|
|
62
62
|
type: object
|
|
63
63
|
properties:
|
|
64
64
|
rse_id:
|
|
65
|
-
description: The id of the associated rse.
|
|
65
|
+
description: "The id of the associated rse."
|
|
66
66
|
type: string
|
|
67
67
|
rse:
|
|
68
|
-
description: The name of the associated rse.
|
|
68
|
+
description: "The name of the associated rse."
|
|
69
69
|
type: string
|
|
70
70
|
scope:
|
|
71
|
-
description: The scope of the associated rse.
|
|
71
|
+
description: "The scope of the associated rse."
|
|
72
72
|
type: string
|
|
73
73
|
name:
|
|
74
|
-
description: The name of the rule.
|
|
74
|
+
description: "The name of the rule."
|
|
75
75
|
type: string
|
|
76
76
|
rule_id:
|
|
77
|
-
description: The id of the rule.
|
|
77
|
+
description: "The id of the rule."
|
|
78
78
|
type: string
|
|
79
79
|
account:
|
|
80
|
-
description: The associated account.
|
|
80
|
+
description: "The associated account."
|
|
81
81
|
type: string
|
|
82
82
|
state:
|
|
83
|
-
description: The state of the rule.
|
|
83
|
+
description: "The state of the rule."
|
|
84
84
|
type: string
|
|
85
85
|
enum: ['R', 'O', 'S']
|
|
86
86
|
length:
|
|
87
|
-
description: The length of the rule.
|
|
87
|
+
description: "The length of the rule."
|
|
88
88
|
type: integer
|
|
89
89
|
bytes:
|
|
90
|
-
description: The bytes limit for the lock.
|
|
90
|
+
description: "The bytes limit for the lock."
|
|
91
91
|
type: integer
|
|
92
92
|
accessed_at:
|
|
93
|
-
description: The last time is was accessed.
|
|
93
|
+
description: "The last time is was accessed."
|
|
94
94
|
type: string
|
|
95
95
|
401:
|
|
96
|
-
description: Invalid Auth Token
|
|
96
|
+
description: "Invalid Auth Token"
|
|
97
97
|
500:
|
|
98
|
-
description: Wrong did type
|
|
98
|
+
description: "Wrong did type"
|
|
99
99
|
content:
|
|
100
100
|
application/json:
|
|
101
101
|
schema:
|
|
102
102
|
type: string
|
|
103
103
|
enum: ['wrong did_type specified']
|
|
104
104
|
406:
|
|
105
|
-
description: Not acceptable
|
|
105
|
+
description: "Not acceptable"
|
|
106
106
|
"""
|
|
107
107
|
did_type = request.args.get('did_type', default=None)
|
|
108
108
|
if did_type != 'dataset':
|
|
@@ -126,13 +126,13 @@ class LocksByScopeName(ErrorHandlingMethodView):
|
|
|
126
126
|
"""
|
|
127
127
|
---
|
|
128
128
|
summary: Get locks by scope
|
|
129
|
-
description: Get all dataset locks for an associated rse.
|
|
129
|
+
description: "Get all dataset locks for an associated rse."
|
|
130
130
|
tags:
|
|
131
131
|
- Lock
|
|
132
132
|
parameters:
|
|
133
133
|
- name: scope_name
|
|
134
134
|
in: path
|
|
135
|
-
description: The scope name.
|
|
135
|
+
description: "The scope name."
|
|
136
136
|
schema:
|
|
137
137
|
type: string
|
|
138
138
|
style: simple
|
|
@@ -143,63 +143,63 @@ class LocksByScopeName(ErrorHandlingMethodView):
|
|
|
143
143
|
type: object
|
|
144
144
|
properties:
|
|
145
145
|
did_type:
|
|
146
|
-
description: The did type to filter for.
|
|
146
|
+
description: "The did type to filter for."
|
|
147
147
|
type: string
|
|
148
148
|
enum: ['dataset']
|
|
149
149
|
responses:
|
|
150
150
|
200:
|
|
151
|
-
description: OK
|
|
151
|
+
description: "OK"
|
|
152
152
|
content:
|
|
153
153
|
application/x-json-stream:
|
|
154
154
|
schema:
|
|
155
|
-
description: Locks associated with the rse.
|
|
155
|
+
description: "Locks associated with the rse."
|
|
156
156
|
type: array
|
|
157
157
|
items:
|
|
158
|
-
description: A lock
|
|
158
|
+
description: "A lock"
|
|
159
159
|
type: object
|
|
160
160
|
properties:
|
|
161
161
|
rse_id:
|
|
162
|
-
description: The id of the associated rse.
|
|
162
|
+
description: "The id of the associated rse."
|
|
163
163
|
type: string
|
|
164
164
|
rse:
|
|
165
|
-
description: The name of the associated rse.
|
|
165
|
+
description: "The name of the associated rse."
|
|
166
166
|
type: string
|
|
167
167
|
scope:
|
|
168
|
-
description: The scope of the associated rse.
|
|
168
|
+
description: "The scope of the associated rse."
|
|
169
169
|
type: string
|
|
170
170
|
name:
|
|
171
|
-
description: The name of the rule.
|
|
171
|
+
description: "The name of the rule."
|
|
172
172
|
type: string
|
|
173
173
|
rule_id:
|
|
174
|
-
description: The id of the rule.
|
|
174
|
+
description: "The id of the rule."
|
|
175
175
|
type: string
|
|
176
176
|
account:
|
|
177
|
-
description: The associated account.
|
|
177
|
+
description: "The associated account."
|
|
178
178
|
type: string
|
|
179
179
|
state:
|
|
180
|
-
description: The state of the rule.
|
|
180
|
+
description: "The state of the rule."
|
|
181
181
|
type: string
|
|
182
182
|
enum: ['R', 'O', 'S']
|
|
183
183
|
length:
|
|
184
|
-
description: The length of the rule.
|
|
184
|
+
description: "The length of the rule."
|
|
185
185
|
type: integer
|
|
186
186
|
bytes:
|
|
187
|
-
description: The bytes limit for the lock.
|
|
187
|
+
description: "The bytes limit for the lock."
|
|
188
188
|
type: integer
|
|
189
189
|
accessed_at:
|
|
190
|
-
description: The last time is was accessed.
|
|
190
|
+
description: "The last time is was accessed."
|
|
191
191
|
type: string
|
|
192
192
|
401:
|
|
193
|
-
description: Invalid Auth Token
|
|
193
|
+
description: "Invalid Auth Token"
|
|
194
194
|
500:
|
|
195
|
-
description: Wrong did type
|
|
195
|
+
description: "Wrong did type"
|
|
196
196
|
content:
|
|
197
197
|
application/json:
|
|
198
198
|
schema:
|
|
199
199
|
type: string
|
|
200
200
|
enum: ['wrong did_type specified']
|
|
201
201
|
406:
|
|
202
|
-
description: Not acceptable
|
|
202
|
+
description: "Not acceptable"
|
|
203
203
|
"""
|
|
204
204
|
did_type = request.args.get('did_type', default=None)
|
|
205
205
|
if did_type != 'dataset':
|
|
@@ -230,7 +230,7 @@ class DatasetLocksForDids(ErrorHandlingMethodView):
|
|
|
230
230
|
:returns: Line separated list of dictionary with lock information.
|
|
231
231
|
---
|
|
232
232
|
summary: Get locks by dids
|
|
233
|
-
description: Get all dataset locks for the associated dids.
|
|
233
|
+
description: "Get all dataset locks for the associated dids."
|
|
234
234
|
tags:
|
|
235
235
|
- Lock
|
|
236
236
|
requestBody:
|
|
@@ -240,79 +240,79 @@ class DatasetLocksForDids(ErrorHandlingMethodView):
|
|
|
240
240
|
type: object
|
|
241
241
|
properties:
|
|
242
242
|
dids:
|
|
243
|
-
description: The dids associated with the locks.
|
|
243
|
+
description: "The dids associated with the locks."
|
|
244
244
|
type: array
|
|
245
245
|
items:
|
|
246
246
|
type: object
|
|
247
|
-
description: A did
|
|
247
|
+
description: "A did"
|
|
248
248
|
required:
|
|
249
249
|
- scope
|
|
250
250
|
- name
|
|
251
251
|
properties:
|
|
252
252
|
scope:
|
|
253
|
-
description: The scope of the did.
|
|
253
|
+
description: "The scope of the did."
|
|
254
254
|
type: string
|
|
255
255
|
name:
|
|
256
|
-
description: The name of the did.
|
|
256
|
+
description: "The name of the did."
|
|
257
257
|
type: string
|
|
258
258
|
type:
|
|
259
|
-
description: The type of the did.
|
|
259
|
+
description: "The type of the did."
|
|
260
260
|
type: string
|
|
261
261
|
enum: ['dataset', 'container']
|
|
262
262
|
responses:
|
|
263
263
|
200:
|
|
264
|
-
description: OK
|
|
264
|
+
description: "OK"
|
|
265
265
|
content:
|
|
266
266
|
application/x-json-stream:
|
|
267
267
|
schema:
|
|
268
|
-
description: Locks associated with the rse.
|
|
268
|
+
description: "Locks associated with the rse."
|
|
269
269
|
type: array
|
|
270
270
|
items:
|
|
271
|
-
description: A lock
|
|
271
|
+
description: "A lock"
|
|
272
272
|
type: object
|
|
273
273
|
properties:
|
|
274
274
|
rse_id:
|
|
275
|
-
description: The id of the associated rse.
|
|
275
|
+
description: "The id of the associated rse."
|
|
276
276
|
type: string
|
|
277
277
|
rse:
|
|
278
|
-
description: The name of the associated rse.
|
|
278
|
+
description: "The name of the associated rse."
|
|
279
279
|
type: string
|
|
280
280
|
scope:
|
|
281
|
-
description: The scope of the associated rse.
|
|
281
|
+
description: "The scope of the associated rse."
|
|
282
282
|
type: string
|
|
283
283
|
name:
|
|
284
|
-
description: The name of the rule.
|
|
284
|
+
description: "The name of the rule."
|
|
285
285
|
type: string
|
|
286
286
|
rule_id:
|
|
287
|
-
description: The id of the rule.
|
|
287
|
+
description: "The id of the rule."
|
|
288
288
|
type: string
|
|
289
289
|
account:
|
|
290
|
-
description: The associated account.
|
|
290
|
+
description: "The associated account."
|
|
291
291
|
type: string
|
|
292
292
|
state:
|
|
293
|
-
description: The state of the rule.
|
|
293
|
+
description: "The state of the rule."
|
|
294
294
|
type: string
|
|
295
295
|
enum: ['R', 'O', 'S']
|
|
296
296
|
length:
|
|
297
|
-
description: The length of the rule.
|
|
297
|
+
description: "The length of the rule."
|
|
298
298
|
type: integer
|
|
299
299
|
bytes:
|
|
300
|
-
description: The bytes limit for the lock.
|
|
300
|
+
description: "The bytes limit for the lock."
|
|
301
301
|
type: integer
|
|
302
302
|
accessed_at:
|
|
303
|
-
description: The last time is was accessed.
|
|
303
|
+
description: "The last time is was accessed."
|
|
304
304
|
type: string
|
|
305
305
|
401:
|
|
306
|
-
description: Invalid Auth Token
|
|
306
|
+
description: "Invalid Auth Token"
|
|
307
307
|
400:
|
|
308
|
-
description: Wrong did type
|
|
308
|
+
description: "Wrong did type"
|
|
309
309
|
content:
|
|
310
310
|
application/json:
|
|
311
311
|
schema:
|
|
312
312
|
type: string
|
|
313
313
|
enum: ['Can not find the list of DIDs in the data. Use "dids" keyword.']
|
|
314
314
|
406:
|
|
315
|
-
description: Not acceptable
|
|
315
|
+
description: "Not acceptable"
|
|
316
316
|
|
|
317
317
|
"""
|
|
318
318
|
|