Method: LabClient::PipelineVariables#update

Defined in:
lib/labclient/projects/pipeline_schedules/variables/update.rb

#update(project_id, pipeline_schedule_id, variable_key, query) ⇒ Object



34
35
36
37
38
39
# File 'lib/labclient/projects/pipeline_schedules/variables/update.rb', line 34

def update(project_id, pipeline_schedule_id, variable_key, query)
  pipeline_schedule_id = format_id(pipeline_schedule_id)
  project_id = format_id(project_id)

  client.request(:put, "projects/#{project_id}/pipeline_schedules/#{pipeline_schedule_id}/variables/#{variable_key}", body: query)
end