Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Open Subsurface Data Universe Software
Platform
System
SDKs
Python SDK
Commits
3f58534d
Commit
3f58534d
authored
Nov 15, 2021
by
Yan Sushchynski (EPAM)
Browse files
revert data-workflow-client
parent
58d845ac
Pipeline
#85879
passed with stages
in 1 minute and 35 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
osdu_api/clients/data_workflow/data_workflow_client.py
View file @
3f58534d
...
...
@@ -30,16 +30,6 @@ class DataWorkflowClient(BaseClient):
return
self
.
make_request
(
method
=
HttpMethod
.
POST
,
url
=
'{}{}'
.
format
(
self
.
data_workflow_url
,
'/startWorkflow'
),
data
=
start_workflow
.
to_JSON
(),
bearer_token
=
bearer_token
)
def
update_status
(
self
,
update_status_request
:
UpdateStatusRequest
,
workflow_name
:
str
,
run_id
:
str
,
bearer_token
=
None
):
return
self
.
make_request
(
method
=
HttpMethod
.
PUT
,
url
=
f
'
{
workflow_name
}
/workflowRun/
{
run_id
}
'
,
data
=
update_status_request
.
to_JSON
(),
bearer_token
=
bearer_token
)
\ No newline at end of file
def
update_status
(
self
,
update_status_request
:
UpdateStatusRequest
,
bearer_token
=
None
):
return
self
.
make_request
(
method
=
HttpMethod
.
POST
,
url
=
'{}{}'
.
format
(
self
.
data_workflow_url
,
'/updateStatus'
),
data
=
update_status_request
.
to_JSON
(),
bearer_token
=
bearer_token
)
\ No newline at end of file
osdu_api/model/data_workflow/update_status_request.py
View file @
3f58534d
...
...
@@ -15,5 +15,6 @@ from osdu_api.model.base import Base
class
UpdateStatusRequest
(
Base
):
def
__init__
(
self
,
workflow_status_type
:
str
):
def
__init__
(
self
,
workflow_id
:
str
,
workflow_status_type
:
str
):
self
.
workflowId
=
workflow_id
self
.
status
=
workflow_status_type
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment