-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Management Console Client: Update deprecation version (#1703)
Update deprecation version
- Loading branch information
Showing
1 changed file
with
11 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 = {} | ||
|
@@ -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 | ||
|
||
|
@@ -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 = {} | ||
|
@@ -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 | ||
|
@@ -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 | ||
|
@@ -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 | ||
|
@@ -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 | ||
|
@@ -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 | ||
|
@@ -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 | ||
|
@@ -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 | ||
|
@@ -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 | ||
|