Class: Bosh::Director::Api::Controllers::UsersController

Inherits:
BaseController show all
Defined in:
lib/bosh/director/api/controllers/users_controller.rb

Constant Summary

Constants included from DnsHelper

DnsHelper::SOA, DnsHelper::TTL_4H, DnsHelper::TTL_5M

Constants included from Http

Http::BAD_REQUEST, Http::CREATED, Http::FORBIDDEN, Http::INTERNAL_SERVER_ERROR, Http::NOT_FOUND, Http::NO_CONTENT, Http::OK, Http::UNAUTHORIZED

Constants included from ApiHelper

ApiHelper::READ_CHUNK_SIZE

Instance Attribute Summary

Attributes inherited from BaseController

#identity_provider

Instance Method Summary collapse

Methods inherited from BaseController

consumes, #requires_authentication?

Methods included from DnsHelper

#add_default_dns_server, #canonical, #default_dns_server, #delete_dns_records, #delete_empty_domain, #dns_domain_name, #dns_ns_record, #dns_servers, #flush_dns_cache, #invalid_dns, #reverse_domain, #reverse_host, #update_dns_a_record, #update_dns_ptr_record

Methods included from ApiHelper

#check_available_disk_space, #json_decode, #json_encode, #send_disposable_file, #start_task, #write_file

Constructor Details

#initialize(config) ⇒ UsersController

Returns a new instance of UsersController.



6
7
8
9
# File 'lib/bosh/director/api/controllers/users_controller.rb', line 6

def initialize(config)
  super(config)
  @identity_provider = config.identity_provider
end

Instance Method Details

#validate_user_management_supportObject



40
41
42
43
44
# File 'lib/bosh/director/api/controllers/users_controller.rb', line 40

def validate_user_management_support
  unless @identity_provider.supports_api_update?
    raise UserManagementNotSupported, 'User management is not supported via API'
  end
end