Class: Fog::OpenStack::DNS::V1::Real
- Inherits:
-
Object
- Object
- Fog::OpenStack::DNS::V1::Real
show all
- Includes:
- Core
- Defined in:
- lib/fog/openstack/dns/v1.rb,
lib/fog/openstack/dns/v1/requests/get_quota.rb,
lib/fog/openstack/dns/v1/requests/list_domains.rb,
lib/fog/openstack/dns/v1/requests/update_quota.rb
Instance Attribute Summary
Attributes included from Core
#auth_token, #auth_token_expiration, #current_tenant, #current_user, #current_user_id, #openstack_application_credential_id, #openstack_application_credential_secret, #openstack_cache_ttl, #openstack_domain_id, #openstack_domain_name, #openstack_identity_api_version, #openstack_project_domain, #openstack_project_domain_id, #openstack_project_id, #openstack_user_domain, #openstack_user_domain_id, #unscoped_token
Class Method Summary
collapse
Instance Method Summary
collapse
Methods included from Core
#credentials, #initialize, #reload
Class Method Details
.not_found_class ⇒ Object
101
102
103
|
# File 'lib/fog/openstack/dns/v1.rb', line 101
def self.not_found_class
Fog::OpenStack::DNS::NotFound
end
|
Instance Method Details
#default_path_prefix ⇒ Object
105
106
107
|
# File 'lib/fog/openstack/dns/v1.rb', line 105
def default_path_prefix
'v1'
end
|
#default_service_type ⇒ Object
109
110
111
|
# File 'lib/fog/openstack/dns/v1.rb', line 109
def default_service_type
%w[dns]
end
|
#get_quota(project_id) ⇒ Object
6
7
8
9
10
11
12
|
# File 'lib/fog/openstack/dns/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 = {}) ⇒ Object
6
7
8
9
10
11
12
13
|
# File 'lib/fog/openstack/dns/v1/requests/list_domains.rb', line 6
def list_domains(options = {})
request(
:expects => 200,
:method => 'GET',
:path => 'domains',
:query => options
)
end
|
#update_quota(project_id, options = {}) ⇒ Object
6
7
8
9
10
11
12
13
|
# File 'lib/fog/openstack/dns/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
|