Module: Digdag::Client::Project
- Included in:
- Digdag::Client
- Defined in:
- lib/digdag_client/client/project.rb
Instance Method Summary collapse
- #delete_project ⇒ Object
- #delete_project_secret ⇒ Object
- #get_archive ⇒ Object
- #get_project(id) ⇒ Object
- #get_project_by_name(name) ⇒ Object
- #get_project_secrets ⇒ Object
- #get_projects(name = nil) ⇒ Object
- #get_revisions(id) ⇒ Object
- #get_schedules(id) ⇒ Object
- #get_sessions ⇒ Object
- #get_workflow(id, params) ⇒ Object
- #get_workflow_by_name(id, name, params = {}) ⇒ Object
- #get_workflows(id, params = {}) ⇒ Object
- #put_project ⇒ Object
- #put_project_secret ⇒ Object
- #read_archive_metadata ⇒ Object
Instance Method Details
#delete_project ⇒ Object
74 75 76 |
# File 'lib/digdag_client/client/project.rb', line 74 def delete_project # TODO end |
#delete_project_secret ⇒ Object
90 91 92 |
# File 'lib/digdag_client/client/project.rb', line 90 def delete_project_secret # TODO end |
#get_archive ⇒ Object
70 71 72 |
# File 'lib/digdag_client/client/project.rb', line 70 def get_archive # TODO end |
#get_project(id) ⇒ Object
20 21 22 |
# File 'lib/digdag_client/client/project.rb', line 20 def get_project(id) get("projects/#{id}") end |
#get_project_by_name(name) ⇒ Object
4 5 6 7 8 9 |
# File 'lib/digdag_client/client/project.rb', line 4 def get_project_by_name(name) = {} ['name'] = name get('project', ) end |
#get_project_secrets ⇒ Object
94 95 96 |
# File 'lib/digdag_client/client/project.rb', line 94 def get_project_secrets # TODO end |
#get_projects(name = nil) ⇒ Object
11 12 13 14 15 16 17 18 |
# File 'lib/digdag_client/client/project.rb', line 11 def get_projects(name = nil) = {} if name ['name'] = name end get('projects', )['projects'] end |
#get_revisions(id) ⇒ Object
24 25 26 |
# File 'lib/digdag_client/client/project.rb', line 24 def get_revisions(id) get("projects/#{id}/revisions") end |
#get_schedules(id) ⇒ Object
62 63 64 |
# File 'lib/digdag_client/client/project.rb', line 62 def get_schedules(id) get("projects/#{id}/sessions")['sessions'] end |
#get_sessions ⇒ Object
66 67 68 |
# File 'lib/digdag_client/client/project.rb', line 66 def get_sessions # TODO end |
#get_workflow(id, params) ⇒ Object
28 29 30 31 32 33 34 35 36 37 |
# File 'lib/digdag_client/client/project.rb', line 28 def get_workflow(id, params) = {} [:name] = params[:name] if params[:revision] [:revision] = params[:revision] end get("projects/#{id}/workflow", ) end |
#get_workflow_by_name(id, name, params = {}) ⇒ Object
39 40 41 42 43 44 45 46 |
# File 'lib/digdag_client/client/project.rb', line 39 def get_workflow_by_name(id, name, params={}) = {} if params[:revision] [:revision] = params[:revision] end get("projects/#{id}/workflows/#{name}", ) end |
#get_workflows(id, params = {}) ⇒ Object
48 49 50 51 52 53 54 55 56 57 58 59 60 |
# File 'lib/digdag_client/client/project.rb', line 48 def get_workflows(id, params={}) = {} if params[:name] [:name] = params[:name] end if params[:revision] [:revision] = params[:revision] end get("projects/#{id}/workflows", )['workflows'] end |
#put_project ⇒ Object
78 79 80 |
# File 'lib/digdag_client/client/project.rb', line 78 def put_project # TODO end |
#put_project_secret ⇒ Object
86 87 88 |
# File 'lib/digdag_client/client/project.rb', line 86 def put_project_secret # TODO end |
#read_archive_metadata ⇒ Object
82 83 84 |
# File 'lib/digdag_client/client/project.rb', line 82 def # TODO end |