Class: Octokit::EnterpriseManagementConsoleClient
- Inherits:
-
Object
- Object
- Octokit::EnterpriseManagementConsoleClient
- Includes:
- Configurable, Connection, ManagementConsole, Warnable
- Defined in:
- lib/octokit/enterprise_management_console_client.rb,
lib/octokit/enterprise_management_console_client/management_console.rb
Overview
EnterpriseManagementConsoleClient is only meant to be used by GitHub Enterprise Admins and provides access to the management console API endpoints.
Defined Under Namespace
Modules: ManagementConsole
Constant Summary
Constants included from Connection
Connection::CONVENIENCE_HEADERS
Instance Attribute Summary
Attributes included from Configurable
#access_token, #api_endpoint, #auto_paginate, #bearer_token, #client_id, #client_secret, #connection_options, #default_media_type, #login, #management_console_endpoint, #management_console_password, #middleware, #netrc, #netrc_file, #password, #per_page, #proxy, #user_agent, #web_endpoint
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ EnterpriseManagementConsoleClient
constructor
A new instance of EnterpriseManagementConsoleClient.
Methods included from ManagementConsole
#add_authorized_key, #authorized_keys, #config_status, #edit_settings, #maintenance_status, #remove_authorized_key, #set_maintenance_status, #settings, #start_configuration, #upgrade, #upload_license
Methods included from Warnable
Methods included from Connection
#agent, #delete, #get, #head, #last_response, #paginate, #patch, #post, #put, #root
Methods included from Authentication
#application_authenticated?, #basic_authenticated?, #bearer_authenticated?, #token_authenticated?, #user_authenticated?
Methods included from Configurable
#configure, keys, #netrc?, #reset!, #same_options?
Constructor Details
#initialize(options = {}) ⇒ EnterpriseManagementConsoleClient
Returns a new instance of EnterpriseManagementConsoleClient.
21 22 23 24 25 26 |
# File 'lib/octokit/enterprise_management_console_client.rb', line 21 def initialize( = {}) # Use options passed in, but fall back to module defaults Octokit::Configurable.keys.each do |key| instance_variable_set(:"@#{key}", [key] || Octokit.instance_variable_get(:"@#{key}")) end end |