[core] fixing more paths after rearrange

This commit is contained in:
geemus 2011-09-22 19:33:45 -05:00
parent 5ba9ad25fc
commit 2f9654993e
17 changed files with 41 additions and 41 deletions

View File

@ -8,7 +8,7 @@ module Fog
# ==== Parameters
# * domain<~String>: The zone's name. Note, if master zone, SOA_email is required and if slave
# master_ips is/are required
# * type<~String>: master or slave
# * type<~String>: master or slave
# * options<~Hash>
# * description<~String> Currently undisplayed
# * SOA_email<~String> Required when type=master
@ -16,8 +16,8 @@ module Fog
# * retry_sec<~Integer> numeric, default: '0'
# * expire_sec<~Integer> numeric, default: '0'
# * ttl_sec<~String> numeric, default: '0'
# * 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
# * 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
#
# ==== Returns
# * response<~Excon::Response>:

View File

@ -28,7 +28,7 @@ module Fog
if domain_id
options.merge!(:domainId => domain_id)
end
request(
:expects => 200,
:method => 'GET',

View File

@ -7,18 +7,18 @@ module Fog
#
# ==== Parameters
# * 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>
# * 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<~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
# 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
# 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.
# * priority<~Integer>: priority for MX and SRV records, 0-255 - default: 10
# * weight<~Integer>: default: 5
# * port<~Integer>: default: 80
# * protocol<~String>: The protocol to append to an SRV record. Ignored on other record
# types. default: udp
# * port<~Integer>: default: 80
# * protocol<~String>: The protocol to append to an SRV record. Ignored on other record
# types. default: udp
# * ttl_sec<~Integer>: note, Linode will round the input to set values (300, 3600, 7200, etc)
# ==== Returns
# * response<~Excon::Response>:

View File

@ -13,18 +13,18 @@ module Fog
# * response<~Excon::Response>:
# * body<~Array>:
# * DATA<~Array>
# * 'PROTOCOL'<~String>: for SRV records. default is UDP
# * 'TTL_SEC'<~Interger>:
# * 'PROTOCOL'<~String>: for SRV records. default is UDP
# * 'TTL_SEC'<~Interger>:
# * 'PRIORITY'<~Interger>: for MX and SRV records
# * '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.
# When Type=TXT the value of the record. When Type=A or AAAA the token
# * '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.
# 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.
# * 'WEIGHT'<~Interger>:
# * 'WEIGHT'<~Interger>:
# * 'RESOURCEID'<~Interger>: ID of the resource record
# * 'PORT'<~Interger>:
# * 'PORT'<~Interger>:
# * '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)
query = { :api_action => 'domain.resource.list', :domainID => domain_id }
if resource_id

View File

@ -9,17 +9,17 @@ module Fog
# * domain_id<~Integer>: limit the list to the domain ID specified
# * resource_id<~Integer>: id of resouce to delete
# * options<~Hash>
# * 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
# * 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
# Target MX server
# * 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
# 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
# * 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
# 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
# * weight<~Integer>: default: 5
# * port<~Integer>: default: 80
# * protocol<~String>: The protocol to append to an SRV record. Ignored on other record
# types. default: udp
# * port<~Integer>: default: 80
# * protocol<~String>: The protocol to append to an SRV record. Ignored on other record
# types. default: udp
# * ttl_sec<~Integer>: note, Linode will round the input to set values (300, 3600, 7200, etc)
# ==== Returns
# * response<~Excon::Response>:

View File

@ -8,16 +8,16 @@ module Fog
# ==== Parameters
# * domain_id<~Integer>: The ID to identify the zone
# * options<~Hash>
# * domain<~String>: The zone's name.
# * type<~String>: master or slave
# * domain<~String>: The zone's name.
# * type<~String>: master or slave
# * description<~String> Currently undisplayed
# * SOA_email<~String> Required when type=master
# * refresh_sec<~Integer> numeric, default: '0'
# * retry_sec<~Integer> numeric, default: '0'
# * expire_sec<~Integer> numeric, default: '0'
# * ttl_sec<~String> numeric, default: '0'
# * 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
# * 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
#
# ==== Returns
# * response<~Excon::Response>:
@ -25,7 +25,7 @@ module Fog
# * DATA<~Hash>:
# * 'DomainID'<~Integer>: domain ID
def domain_update(domain_id, options = {})
request(
:expects => 200,
:method => 'GET',

View File

@ -21,7 +21,7 @@ module Fog
model :ip_forwarding_rule
collection :ip_forwarding_rules
request_path 'fog/compute/requests/ninefold'
request_path 'fog/ninefold/requests/compute'
# General list-only stuff
request :list_accounts
request :list_events

View File

@ -9,7 +9,7 @@ module Fog
# ==== Parameters
# * record_type<~String> - type of DNS record to create (A, CNAME, etc)
# * 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)
# * options<~Hash> - extra parameters that are not mandatory
# * ttl<~Integer> - time to live in seconds
@ -36,7 +36,7 @@ module Fog
optional_tags+= "<aux>#{value}</aux>"
end
}
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>},
:expects => 201,

View File

@ -30,7 +30,7 @@ module Fog
optional_tags+= "<active>#{value}</active>"
end
}
request(
:body => %Q{<?xml version="1.0" encoding="UTF-8"?><zone><origin>#{origin}</origin>#{optional_tags}</zone>},
:expects => 201,

View File

@ -5,14 +5,14 @@ module Fog
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
# * response<~Excon::Response>:
# * body<~Hash>:
# * 'record_type'<~String> - type of DNS record to create (A, CNAME, etc)
# * '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)
# * 'ttl'<~Integer> - time to live in seconds
# * 'active'<~String> - whether this record is active or not ('Y' or 'N')

View File

@ -5,7 +5,7 @@ module Fog
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
# * response<~Excon::Response>: