class Fog::DNS::HuaweiCloud::V1::Real
Public Class Methods
new(options = {})
click to toggle source
# File lib/fog/dns/huaweicloud/v1.rb, line 105 def initialize(options = {}) initialize_identity options @huaweicloud_service_type = options[:huaweicloud_service_type] || ['dns'] @huaweicloud_service_name = options[:huaweicloud_service_name] @connection_options = options[:connection_options] || {} authenticate set_api_path @persistent = options[:persistent] || false @connection = Fog::Core::Connection.new("#{@scheme}://#{@host}:#{@port}", @persistent, @connection_options) end
not_found_class()
click to toggle source
# File lib/fog/dns/huaweicloud/v1.rb, line 101 def self.not_found_class Fog::DNS::HuaweiCloud::NotFound end
Public Instance Methods
get_quota(project_id)
click to toggle source
# File lib/fog/dns/huaweicloud/v1/requests/get_quota.rb, line 6 def get_quota(project_id) request( :expects => 200, :method => 'GET', :path => "quotas/#{project_id}" ) end
list_domains(options = {})
click to toggle source
# File lib/fog/dns/huaweicloud/v1/requests/list_domains.rb, line 6 def list_domains(options = {}) request( :expects => 200, :method => 'GET', :path => 'domains', :query => options ) end
set_api_path()
click to toggle source
# File lib/fog/dns/huaweicloud/v1.rb, line 119 def set_api_path # version explicitly set to allow usage also in 'DEPRECATED' mitaka version, # where f.i. quota modification was not possible at the time of creation @path = '/v1' unless @path =~ /v1/ end
update_quota(project_id, options = {})
click to toggle source
# File lib/fog/dns/huaweicloud/v1/requests/update_quota.rb, line 6 def update_quota(project_id, options = {}) request( :body => Fog::JSON.encode(options), :expects => 200, :method => 'PUT', :path => "quotas/#{project_id}" ) end