mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
[core] fixing more paths after rearrange
This commit is contained in:
parent
5ba9ad25fc
commit
2f9654993e
17 changed files with 41 additions and 41 deletions
|
@ -8,7 +8,7 @@ module Fog
|
||||||
# ==== Parameters
|
# ==== Parameters
|
||||||
# * domain<~String>: The zone's name. Note, if master zone, SOA_email is required and if slave
|
# * domain<~String>: The zone's name. Note, if master zone, SOA_email is required and if slave
|
||||||
# master_ips is/are required
|
# master_ips is/are required
|
||||||
# * type<~String>: master or slave
|
# * type<~String>: master or slave
|
||||||
# * options<~Hash>
|
# * options<~Hash>
|
||||||
# * description<~String> Currently undisplayed
|
# * description<~String> Currently undisplayed
|
||||||
# * SOA_email<~String> Required when type=master
|
# * SOA_email<~String> Required when type=master
|
||||||
|
@ -16,8 +16,8 @@ module Fog
|
||||||
# * retry_sec<~Integer> numeric, default: '0'
|
# * retry_sec<~Integer> numeric, default: '0'
|
||||||
# * expire_sec<~Integer> numeric, default: '0'
|
# * expire_sec<~Integer> numeric, default: '0'
|
||||||
# * ttl_sec<~String> numeric, default: '0'
|
# * ttl_sec<~String> numeric, default: '0'
|
||||||
# * status<~Integer> 0, 1, or 2 (disabled, active, edit mode), default: 1
|
# * status<~Integer> 0, 1, or 2 (disabled, active, edit mode), default: 1
|
||||||
# * master_ips<~String> When type=slave, the zone's master DNS servers list, semicolon separated
|
# * master_ips<~String> When type=slave, the zone's master DNS servers list, semicolon separated
|
||||||
#
|
#
|
||||||
# ==== Returns
|
# ==== Returns
|
||||||
# * response<~Excon::Response>:
|
# * response<~Excon::Response>:
|
|
@ -28,7 +28,7 @@ module Fog
|
||||||
if domain_id
|
if domain_id
|
||||||
options.merge!(:domainId => domain_id)
|
options.merge!(:domainId => domain_id)
|
||||||
end
|
end
|
||||||
|
|
||||||
request(
|
request(
|
||||||
:expects => 200,
|
:expects => 200,
|
||||||
:method => 'GET',
|
:method => 'GET',
|
|
@ -7,18 +7,18 @@ module Fog
|
||||||
#
|
#
|
||||||
# ==== Parameters
|
# ==== Parameters
|
||||||
# * domain_id<~Integer>: limit the list to the domain ID specified
|
# * domain_id<~Integer>: limit the list to the domain ID specified
|
||||||
# * type<~String>: One of: NS, MX, A, AAAA, CNAME, TXT, or SRV
|
# * type<~String>: One of: NS, MX, A, AAAA, CNAME, TXT, or SRV
|
||||||
# * options<~Hash>
|
# * options<~Hash>
|
||||||
# * name<~String>: The hostname or FQDN. When Type=MX the subdomain to delegate to the
|
# * name<~String>: The hostname or FQDN. When Type=MX the subdomain to delegate to the
|
||||||
# Target MX server
|
# Target MX server
|
||||||
# * target<~String> When Type=MX the hostname. When Type=CNAME the target of the alias.
|
# * target<~String> When Type=MX the hostname. When Type=CNAME the target of the alias.
|
||||||
# When Type=TXT the value of the record. When Type=A or AAAA the token
|
# When Type=TXT the value of the record. When Type=A or AAAA the token
|
||||||
# of '[remote_addr]' will be substituted with the IP address of the request.
|
# of '[remote_addr]' will be substituted with the IP address of the request.
|
||||||
# * priority<~Integer>: priority for MX and SRV records, 0-255 - default: 10
|
# * priority<~Integer>: priority for MX and SRV records, 0-255 - default: 10
|
||||||
# * weight<~Integer>: default: 5
|
# * weight<~Integer>: default: 5
|
||||||
# * port<~Integer>: default: 80
|
# * port<~Integer>: default: 80
|
||||||
# * protocol<~String>: The protocol to append to an SRV record. Ignored on other record
|
# * protocol<~String>: The protocol to append to an SRV record. Ignored on other record
|
||||||
# types. default: udp
|
# types. default: udp
|
||||||
# * ttl_sec<~Integer>: note, Linode will round the input to set values (300, 3600, 7200, etc)
|
# * ttl_sec<~Integer>: note, Linode will round the input to set values (300, 3600, 7200, etc)
|
||||||
# ==== Returns
|
# ==== Returns
|
||||||
# * response<~Excon::Response>:
|
# * response<~Excon::Response>:
|
|
@ -13,18 +13,18 @@ module Fog
|
||||||
# * response<~Excon::Response>:
|
# * response<~Excon::Response>:
|
||||||
# * body<~Array>:
|
# * body<~Array>:
|
||||||
# * DATA<~Array>
|
# * DATA<~Array>
|
||||||
# * 'PROTOCOL'<~String>: for SRV records. default is UDP
|
# * 'PROTOCOL'<~String>: for SRV records. default is UDP
|
||||||
# * 'TTL_SEC'<~Interger>:
|
# * 'TTL_SEC'<~Interger>:
|
||||||
# * 'PRIORITY'<~Interger>: for MX and SRV records
|
# * 'PRIORITY'<~Interger>: for MX and SRV records
|
||||||
# * 'TYPE'<~String>: One of: NS, MX, A, AAAA, CNAME, TXT, or SRV
|
# * 'TYPE'<~String>: One of: NS, MX, A, AAAA, CNAME, TXT, or SRV
|
||||||
# * 'TARGET'<~String>: When Type=MX the hostname. When Type=CNAME the target of the alias.
|
# * 'TARGET'<~String>: When Type=MX the hostname. When Type=CNAME the target of the alias.
|
||||||
# When Type=TXT the value of the record. When Type=A or AAAA the token
|
# When Type=TXT the value of the record. When Type=A or AAAA the token
|
||||||
# of '[remote_addr]' will be substituted with the IP address of the request.
|
# of '[remote_addr]' will be substituted with the IP address of the request.
|
||||||
# * 'WEIGHT'<~Interger>:
|
# * 'WEIGHT'<~Interger>:
|
||||||
# * 'RESOURCEID'<~Interger>: ID of the resource record
|
# * 'RESOURCEID'<~Interger>: ID of the resource record
|
||||||
# * 'PORT'<~Interger>:
|
# * 'PORT'<~Interger>:
|
||||||
# * 'DOMAINID'<~Interger>: ID of the domain that this record belongs to
|
# * 'DOMAINID'<~Interger>: ID of the domain that this record belongs to
|
||||||
# * 'NAME'<~Interger>: The hostname or FQDN. When Type=MX, the subdomain to delegate to
|
# * 'NAME'<~Interger>: The hostname or FQDN. When Type=MX, the subdomain to delegate to
|
||||||
def domain_resource_list(domain_id, resource_id = nil)
|
def domain_resource_list(domain_id, resource_id = nil)
|
||||||
query = { :api_action => 'domain.resource.list', :domainID => domain_id }
|
query = { :api_action => 'domain.resource.list', :domainID => domain_id }
|
||||||
if resource_id
|
if resource_id
|
|
@ -9,17 +9,17 @@ module Fog
|
||||||
# * domain_id<~Integer>: limit the list to the domain ID specified
|
# * domain_id<~Integer>: limit the list to the domain ID specified
|
||||||
# * resource_id<~Integer>: id of resouce to delete
|
# * resource_id<~Integer>: id of resouce to delete
|
||||||
# * options<~Hash>
|
# * options<~Hash>
|
||||||
# * type<~String>: One of: NS, MX, A, AAAA, CNAME, TXT, or SRV
|
# * type<~String>: One of: NS, MX, A, AAAA, CNAME, TXT, or SRV
|
||||||
# * name<~String>: The hostname or FQDN. When Type=MX the subdomain to delegate to the
|
# * name<~String>: The hostname or FQDN. When Type=MX the subdomain to delegate to the
|
||||||
# Target MX server
|
# Target MX server
|
||||||
# * target<~String> When Type=MX the hostname. When Type=CNAME the target of the alias.
|
# * target<~String> When Type=MX the hostname. When Type=CNAME the target of the alias.
|
||||||
# When Type=TXT the value of the record. When Type=A or AAAA the token
|
# When Type=TXT the value of the record. When Type=A or AAAA the token
|
||||||
# of '[remote_addr]' will be substituted with the IP address of the request.
|
# of '[remote_addr]' will be substituted with the IP address of the request.
|
||||||
# * priority<~Integer>: priority for MX and SRV records, 0-255 - default: 10
|
# * priority<~Integer>: priority for MX and SRV records, 0-255 - default: 10
|
||||||
# * weight<~Integer>: default: 5
|
# * weight<~Integer>: default: 5
|
||||||
# * port<~Integer>: default: 80
|
# * port<~Integer>: default: 80
|
||||||
# * protocol<~String>: The protocol to append to an SRV record. Ignored on other record
|
# * protocol<~String>: The protocol to append to an SRV record. Ignored on other record
|
||||||
# types. default: udp
|
# types. default: udp
|
||||||
# * ttl_sec<~Integer>: note, Linode will round the input to set values (300, 3600, 7200, etc)
|
# * ttl_sec<~Integer>: note, Linode will round the input to set values (300, 3600, 7200, etc)
|
||||||
# ==== Returns
|
# ==== Returns
|
||||||
# * response<~Excon::Response>:
|
# * response<~Excon::Response>:
|
|
@ -8,16 +8,16 @@ module Fog
|
||||||
# ==== Parameters
|
# ==== Parameters
|
||||||
# * domain_id<~Integer>: The ID to identify the zone
|
# * domain_id<~Integer>: The ID to identify the zone
|
||||||
# * options<~Hash>
|
# * options<~Hash>
|
||||||
# * domain<~String>: The zone's name.
|
# * domain<~String>: The zone's name.
|
||||||
# * type<~String>: master or slave
|
# * type<~String>: master or slave
|
||||||
# * description<~String> Currently undisplayed
|
# * description<~String> Currently undisplayed
|
||||||
# * SOA_email<~String> Required when type=master
|
# * SOA_email<~String> Required when type=master
|
||||||
# * refresh_sec<~Integer> numeric, default: '0'
|
# * refresh_sec<~Integer> numeric, default: '0'
|
||||||
# * retry_sec<~Integer> numeric, default: '0'
|
# * retry_sec<~Integer> numeric, default: '0'
|
||||||
# * expire_sec<~Integer> numeric, default: '0'
|
# * expire_sec<~Integer> numeric, default: '0'
|
||||||
# * ttl_sec<~String> numeric, default: '0'
|
# * ttl_sec<~String> numeric, default: '0'
|
||||||
# * status<~Integer> 0, 1, or 2 (disabled, active, edit mode), default: 1
|
# * status<~Integer> 0, 1, or 2 (disabled, active, edit mode), default: 1
|
||||||
# * master_ips<~String> When type=slave, the zone's master DNS servers list, semicolon separated
|
# * master_ips<~String> When type=slave, the zone's master DNS servers list, semicolon separated
|
||||||
#
|
#
|
||||||
# ==== Returns
|
# ==== Returns
|
||||||
# * response<~Excon::Response>:
|
# * response<~Excon::Response>:
|
||||||
|
@ -25,7 +25,7 @@ module Fog
|
||||||
# * DATA<~Hash>:
|
# * DATA<~Hash>:
|
||||||
# * 'DomainID'<~Integer>: domain ID
|
# * 'DomainID'<~Integer>: domain ID
|
||||||
def domain_update(domain_id, options = {})
|
def domain_update(domain_id, options = {})
|
||||||
|
|
||||||
request(
|
request(
|
||||||
:expects => 200,
|
:expects => 200,
|
||||||
:method => 'GET',
|
:method => 'GET',
|
|
@ -21,7 +21,7 @@ module Fog
|
||||||
model :ip_forwarding_rule
|
model :ip_forwarding_rule
|
||||||
collection :ip_forwarding_rules
|
collection :ip_forwarding_rules
|
||||||
|
|
||||||
request_path 'fog/compute/requests/ninefold'
|
request_path 'fog/ninefold/requests/compute'
|
||||||
# General list-only stuff
|
# General list-only stuff
|
||||||
request :list_accounts
|
request :list_accounts
|
||||||
request :list_events
|
request :list_events
|
||||||
|
|
|
@ -9,7 +9,7 @@ module Fog
|
||||||
# ==== Parameters
|
# ==== Parameters
|
||||||
# * record_type<~String> - type of DNS record to create (A, CNAME, etc)
|
# * record_type<~String> - type of DNS record to create (A, CNAME, etc)
|
||||||
# * zone_id<~Integer> - ID of the zone to update
|
# * zone_id<~Integer> - ID of the zone to update
|
||||||
# * name<~String> - host name this DNS record is for
|
# * name<~String> - host name this DNS record is for
|
||||||
# * data<~String> - data for the DNS record (ie for an A record, the IP address)
|
# * data<~String> - data for the DNS record (ie for an A record, the IP address)
|
||||||
# * options<~Hash> - extra parameters that are not mandatory
|
# * options<~Hash> - extra parameters that are not mandatory
|
||||||
# * ttl<~Integer> - time to live in seconds
|
# * ttl<~Integer> - time to live in seconds
|
||||||
|
@ -36,7 +36,7 @@ module Fog
|
||||||
optional_tags+= "<aux>#{value}</aux>"
|
optional_tags+= "<aux>#{value}</aux>"
|
||||||
end
|
end
|
||||||
}
|
}
|
||||||
|
|
||||||
request(
|
request(
|
||||||
:body => %Q{<?xml version="1.0" encoding="UTF-8"?><record><record_type>#{record_type}</record_type><zone_id type="integer">#{zone_id}</zone_id><name>#{name}</name><data>#{data}</data>#{optional_tags}</record>},
|
:body => %Q{<?xml version="1.0" encoding="UTF-8"?><record><record_type>#{record_type}</record_type><zone_id type="integer">#{zone_id}</zone_id><name>#{name}</name><data>#{data}</data>#{optional_tags}</record>},
|
||||||
:expects => 201,
|
:expects => 201,
|
|
@ -30,7 +30,7 @@ module Fog
|
||||||
optional_tags+= "<active>#{value}</active>"
|
optional_tags+= "<active>#{value}</active>"
|
||||||
end
|
end
|
||||||
}
|
}
|
||||||
|
|
||||||
request(
|
request(
|
||||||
:body => %Q{<?xml version="1.0" encoding="UTF-8"?><zone><origin>#{origin}</origin>#{optional_tags}</zone>},
|
:body => %Q{<?xml version="1.0" encoding="UTF-8"?><zone><origin>#{origin}</origin>#{optional_tags}</zone>},
|
||||||
:expects => 201,
|
:expects => 201,
|
|
@ -5,14 +5,14 @@ module Fog
|
||||||
|
|
||||||
require 'fog/slicehost/parsers/dns/get_record'
|
require 'fog/slicehost/parsers/dns/get_record'
|
||||||
|
|
||||||
# Get an individual DNS record from the specified zone
|
# Get an individual DNS record from the specified zone
|
||||||
#
|
#
|
||||||
# ==== Returns
|
# ==== Returns
|
||||||
# * response<~Excon::Response>:
|
# * response<~Excon::Response>:
|
||||||
# * body<~Hash>:
|
# * body<~Hash>:
|
||||||
# * 'record_type'<~String> - type of DNS record to create (A, CNAME, etc)
|
# * 'record_type'<~String> - type of DNS record to create (A, CNAME, etc)
|
||||||
# * 'zone_id'<~Integer> - ID of the zone to update
|
# * 'zone_id'<~Integer> - ID of the zone to update
|
||||||
# * 'name'<~String> - host name this DNS record is for
|
# * 'name'<~String> - host name this DNS record is for
|
||||||
# * 'data'<~String> - data for the DNS record (ie for an A record, the IP address)
|
# * 'data'<~String> - data for the DNS record (ie for an A record, the IP address)
|
||||||
# * 'ttl'<~Integer> - time to live in seconds
|
# * 'ttl'<~Integer> - time to live in seconds
|
||||||
# * 'active'<~String> - whether this record is active or not ('Y' or 'N')
|
# * 'active'<~String> - whether this record is active or not ('Y' or 'N')
|
|
@ -5,7 +5,7 @@ module Fog
|
||||||
|
|
||||||
require 'fog/slicehost/parsers/dns/get_records'
|
require 'fog/slicehost/parsers/dns/get_records'
|
||||||
|
|
||||||
# Get all the DNS records across all the DNS zones for this account
|
# Get all the DNS records across all the DNS zones for this account
|
||||||
#
|
#
|
||||||
# ==== Returns
|
# ==== Returns
|
||||||
# * response<~Excon::Response>:
|
# * response<~Excon::Response>:
|
Loading…
Reference in a new issue