Skip to content

Commit

Permalink
Management Console Client: Update deprecation version (#1703)
Browse files Browse the repository at this point in the history
Update deprecation version
  • Loading branch information
alejndr0 committed Jul 2, 2024
1 parent 66bf1a9 commit c1a9cb7
Showing 1 changed file with 11 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ module ManagementConsole
# @see https://docs.github.com/en/[email protected]/rest/enterprise-admin/management-console#create-a-github-license
# @return nil
def upload_license(license, settings = nil)
octokit_warn('The Management Console API will be deprecated in GitHub Enterprise Server 3.14.0, please use the ManageGHES client instead.')
octokit_warn('The Management Console API will be deprecated in GitHub Enterprise Server 3.15.0, please use the ManageGHES client instead.')
conn = faraday_configuration

params = {}
Expand All @@ -29,7 +29,7 @@ def upload_license(license, settings = nil)
#
# @return nil
def start_configuration
octokit_warn('The Management Console API will be deprecated in GitHub Enterprise Server 3.14.0, please use the ManageGHES client instead.')
octokit_warn('The Management Console API will be deprecated in GitHub Enterprise Server 3.15.0, please use the ManageGHES client instead.')
post '/setup/api/configure', password_hash
end

Expand All @@ -39,7 +39,7 @@ def start_configuration
#
# @return nil
def upgrade(license)
octokit_warn('The Management Console API will be deprecated in GitHub Enterprise Server 3.14.0, please use the ManageGHES client instead.')
octokit_warn('The Management Console API will be deprecated in GitHub Enterprise Server 3.15.0, please use the ManageGHES client instead.')
conn = faraday_configuration

params = {}
Expand All @@ -52,7 +52,7 @@ def upgrade(license)
#
# @return [Sawyer::Resource] The installation information
def config_status
octokit_warn('The Management Console API will be deprecated in GitHub Enterprise Server 3.14.0, please use the ManageGHES client instead.')
octokit_warn('The Management Console API will be deprecated in GitHub Enterprise Server 3.15.0, please use the ManageGHES client instead.')
get '/setup/api/configcheck', password_hash
end
alias config_check config_status
Expand All @@ -61,7 +61,7 @@ def config_status
#
# @return [Sawyer::Resource] The settings
def settings
octokit_warn('The Management Console API will be deprecated in GitHub Enterprise Server 3.14.0, please use the ManageGHES client instead.')
octokit_warn('The Management Console API will be deprecated in GitHub Enterprise Server 3.15.0, please use the ManageGHES client instead.')
get '/setup/api/settings', password_hash
end
alias get_settings settings
Expand All @@ -72,7 +72,7 @@ def settings
#
# @return [nil]
def edit_settings(settings)
octokit_warn('The Management Console API will be deprecated in GitHub Enterprise Server 3.14.0, please use the ManageGHES client instead.')
octokit_warn('The Management Console API will be deprecated in GitHub Enterprise Server 3.15.0, please use the ManageGHES client instead.')
queries = password_hash
queries[:query][:settings] = settings.to_json.to_s
put '/setup/api/settings', queries
Expand All @@ -82,7 +82,7 @@ def edit_settings(settings)
#
# @return [Sawyer::Resource] The maintenance status
def maintenance_status
octokit_warn('The Management Console API will be deprecated in GitHub Enterprise Server 3.14.0, please use the ManageGHES client instead.')
octokit_warn('The Management Console API will be deprecated in GitHub Enterprise Server 3.15.0, please use the ManageGHES client instead.')
get '/setup/api/maintenance', password_hash
end
alias get_maintenance_status maintenance_status
Expand All @@ -92,7 +92,7 @@ def maintenance_status
# @param maintenance [Hash] A hash configuration of the maintenance settings
# @return [nil]
def set_maintenance_status(maintenance)
octokit_warn('The Management Console API will be deprecated in GitHub Enterprise Server 3.14.0, please use the ManageGHES client instead.')
octokit_warn('The Management Console API will be deprecated in GitHub Enterprise Server 3.15.0, please use the ManageGHES client instead.')
queries = password_hash
queries[:query][:maintenance] = maintenance.to_json.to_s
post '/setup/api/maintenance', queries
Expand All @@ -103,7 +103,7 @@ def set_maintenance_status(maintenance)
#
# @return [Sawyer::Resource] An array of authorized SSH keys
def authorized_keys
octokit_warn('The Management Console API will be deprecated in GitHub Enterprise Server 3.14.0, please use the ManageGHES client instead.')
octokit_warn('The Management Console API will be deprecated in GitHub Enterprise Server 3.15.0, please use the ManageGHES client instead.')
get '/setup/api/settings/authorized-keys', password_hash
end
alias get_authorized_keys authorized_keys
Expand All @@ -113,7 +113,7 @@ def authorized_keys
# @param key Either the file path to a key, a File handler to the key, or the contents of the key itself
# @return [Sawyer::Resource] An array of authorized SSH keys
def add_authorized_key(key)
octokit_warn('The Management Console API will be deprecated in GitHub Enterprise Server 3.14.0, please use the ManageGHES client instead.')
octokit_warn('The Management Console API will be deprecated in GitHub Enterprise Server 3.15.0, please use the ManageGHES client instead.')
queries = password_hash
case key
when String
Expand All @@ -138,7 +138,7 @@ def add_authorized_key(key)
# @param key Either the file path to a key, a File handler to the key, or the contents of the key itself
# @return [Sawyer::Resource] An array of authorized SSH keys
def remove_authorized_key(key)
octokit_warn('The Management Console API will be deprecated in GitHub Enterprise Server 3.14.0, please use the ManageGHES client instead.')
octokit_warn('The Management Console API will be deprecated in GitHub Enterprise Server 3.15.0, please use the ManageGHES client instead.')
queries = password_hash
case key
when String
Expand Down

0 comments on commit c1a9cb7

Please sign in to comment.