Module: Digdag::Client::Project

Included in:
Digdag::Client
Defined in:
lib/digdag_client/client/project.rb

Instance Method Summary collapse

Instance Method Details

#delete_projectObject



74
75
76
# File 'lib/digdag_client/client/project.rb', line 74

def delete_project
  # TODO
end

#delete_project_secretObject



90
91
92
# File 'lib/digdag_client/client/project.rb', line 90

def delete_project_secret
  # TODO
end

#get_archiveObject



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)
  options = {}
  options['name'] = name

  get('project', options)
end

#get_project_secretsObject



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)
  options = {}
  if name
    options['name'] = name
  end

  get('projects', options)['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_sessionsObject



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)
  options = {}
  options[:name] = params[:name]

  if params[:revision]
    options[:revision] = params[:revision]
  end

  get("projects/#{id}/workflow", options)
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={})
  options = {}
  if params[:revision]
    options[:revision] = params[:revision]
  end

  get("projects/#{id}/workflows/#{name}", options)
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={})
  options = {}

  if params[:name]
    options[:name] = params[:name]
  end

  if params[:revision]
    options[:revision] = params[:revision]
  end

  get("projects/#{id}/workflows", options)['workflows']
end

#put_projectObject



78
79
80
# File 'lib/digdag_client/client/project.rb', line 78

def put_project
  # TODO
end

#put_project_secretObject



86
87
88
# File 'lib/digdag_client/client/project.rb', line 86

def put_project_secret
  # TODO
end

#read_archive_metadataObject



82
83
84
# File 'lib/digdag_client/client/project.rb', line 82

def 
  # TODO
end