module Gitlab::Client::Environments
def edit_environment(project, id, options = {})
-
(Gitlab::ObjectifiedHash)
- The updated environment.
Options Hash:
(**options)
-
external_url
(String
) -- Optional URL for viewing the deployed project in this environment -
env_name
(String
) -- Name for the environment
Parameters:
-
options
(Hash
) -- A hash of the attribute keys & values to update. -
id
(Integer
) -- The ID of an environment. -
project
(Integer, String
) -- The ID or name of a project.
def edit_environment(project, id, options = {}) put("/projects/#{url_encode project}/environments/#{id}", body: options) end