Class: LabClient::PipelineSchedule
Overview
Instance Attribute Summary
Attributes inherited from Klass
#client, #response
Attributes inherited from LabStruct
#response
Instance Method Summary
collapse
#has?, #keys, #raw
Methods inherited from Klass
#api_methods, #collect_project_id, #collect_release_id, #collect_repository_id, date_time_attrs, #format_time?, #group_name, #help, #initialize, #klass, #quiet?, #success?, #to_json, #update_self, user_attrs, #valid_group_project_levels, #verbose
Methods included from Docs
#demo, #desc, #doc, docs, #example, #group_name, #help, json, #markdown, #navigation, #option, #result, #subtitle, #title
Methods included from CurlHelper
#curl
Methods included from Logger
#logger, logger, logger_setup
Methods inherited from LabStruct
#as_json, #client, #keys, #slice, #success?
Instance Method Details
#create_variable(query = {}) ⇒ Object
37
38
39
40
|
# File 'lib/labclient/projects/pipeline_schedules/pipeline_schedule.rb', line 37
def create_variable(query = {})
project_id = collect_project_id
client.projects.pipeline_schedules.variables.create(project_id, id, query)
end
|
#delete ⇒ Object
31
32
33
34
|
# File 'lib/labclient/projects/pipeline_schedules/pipeline_schedule.rb', line 31
def delete
project_id = collect_project_id
client.projects.pipeline_schedules.delete(project_id, id)
end
|
#delete_variable(variable_key) ⇒ Object
47
48
49
50
|
# File 'lib/labclient/projects/pipeline_schedules/pipeline_schedule.rb', line 47
def delete_variable(variable_key)
project_id = collect_project_id
client.projects.pipeline_schedules.variables.delete(project_id, id, variable_key)
end
|
#inspect ⇒ Object
7
8
9
|
# File 'lib/labclient/projects/pipeline_schedules/pipeline_schedule.rb', line 7
def inspect
"#<PipelineSchedule id: #{id}, ref: #{ref}>"
end
|
#play ⇒ Object
21
22
23
24
|
# File 'lib/labclient/projects/pipeline_schedules/pipeline_schedule.rb', line 21
def play
project_id = collect_project_id
client.projects.pipeline_schedules.play(project_id, id)
end
|
#project ⇒ Object
11
12
13
14
|
# File 'lib/labclient/projects/pipeline_schedules/pipeline_schedule.rb', line 11
def project
project_id = collect_project_id
client.projects.show project_id
end
|
#take_ownership ⇒ Object
26
27
28
29
|
# File 'lib/labclient/projects/pipeline_schedules/pipeline_schedule.rb', line 26
def take_ownership
project_id = collect_project_id
client.projects.pipeline_schedules.take_ownership(project_id, id)
end
|
#update(query = {}) ⇒ Object
16
17
18
19
|
# File 'lib/labclient/projects/pipeline_schedules/pipeline_schedule.rb', line 16
def update(query = {})
project_id = collect_project_id
update_self client.projects.pipeline_schedules.update(project_id, id, query)
end
|
#update_variable(variable_key, query = {}) ⇒ Object
42
43
44
45
|
# File 'lib/labclient/projects/pipeline_schedules/pipeline_schedule.rb', line 42
def update_variable(variable_key, query = {})
project_id = collect_project_id
client.projects.pipeline_schedules.variables.update(project_id, id, variable_key, query)
end
|