Method: Gitlab::Client::PipelineSchedules#edit_pipeline_schedule_variable

Defined in:
lib/gitlab/client/pipeline_schedules.rb

#edit_pipeline_schedule_variable(project, pipeline_schedule_id, key, options = {}) ⇒ Array<Gitlab::ObjectifiedHash>

Updates the variable of a pipeline schedule.

Examples:

Gitlab.edit_pipeline_schedule_variable(3, 2, "foo" { value: 'bar' })

Parameters:

  • project (Integer, String)

    The ID or name of a project.

  • The (Integer)

    pipeline schedule ID.

  • The (String)

    key of a variable.

  • options (Hash) (defaults to: {})

    A customizable set of options.

Options Hash (options):

  • :value (String)

    The value of a variable.

Returns:

[View source]

142
143
144
# File 'lib/gitlab/client/pipeline_schedules.rb', line 142

def edit_pipeline_schedule_variable(project, pipeline_schedule_id, key, options = {})
  put("/projects/#{url_encode project}/pipeline_schedules/#{pipeline_schedule_id}/variables/#{url_encode key}", body: options)
end