lib/fastly.rb in fastly-1.5.0 vs lib/fastly.rb in fastly-1.6.0
- old
+ new
@@ -20,11 +20,10 @@
require 'fastly/header'
require 'fastly/healthcheck'
require 'fastly/gzip'
require 'fastly/invoice'
require 'fastly/match'
-require 'fastly/origin'
require 'fastly/request_setting'
require 'fastly/response_object'
require 'fastly/service'
require 'fastly/settings'
require 'fastly/syslog'
@@ -141,11 +140,11 @@
# Fetches the list of codes for regions that are covered by the Fastly CDN service.
def regions
client.get_stats('/stats/regions')
end
- [User, Customer, Backend, CacheSetting, Condition, Dictionary, DictionaryItem, Director, Domain, Header, Healthcheck, Gzip, Match, Origin, RequestSetting, ResponseObject, Service, S3Logging, Syslog, VCL, Version].each do |klass|
+ [User, Customer, Backend, CacheSetting, Condition, Dictionary, DictionaryItem, Director, Domain, Header, Healthcheck, Gzip, Match, RequestSetting, ResponseObject, Service, S3Logging, Syslog, VCL, Version].each do |klass|
type = Util.class_to_path(klass)
if klass.respond_to?(:pluralize)
plural = klass.pluralize
else
@@ -202,14 +201,10 @@
##
# :method: create_match(opts)
# opts must contain service_id, version and name params
##
- # :method: create_origin(opts)
- # opts must contain service_id, version and name params
-
- ##
# :method: create_healthcheck(opts)
# opts must contain service_id, version and name params
##
# :method: create_s3_logging(opts)
@@ -290,14 +285,10 @@
##
# :method: get_match(service_id, number, name)
# Get a Match
##
- # :method: get_origin(service_id, number, name)
- # Get an Origin
-
- ##
# :method: get_s3_logging(service_id, number, name)
# Get a S3 logging
##
# :method: get_syslog(service_id, number, name)
@@ -393,15 +384,10 @@
# :method: update_match(match)
# You can also call
# match.save!
##
- # :method: update_origin(origin)
- # You can also call
- # origin.save!
-
- ##
# :method: update_settings(settings)
# You can also call
# settings.save!
##
@@ -508,15 +494,10 @@
# :method: delete_match(match)
# You can also call
# match.delete!(match)
##
- # :method: delete_origin(origin)
- # You can also call
- # origin.delete!
-
- ##
# :method: delete_s3_logging(s3_logging)
# You can also call
# s3_logging.delete!
##
@@ -605,13 +586,9 @@
# Get a list of all healthchecks
# :method: list_matchs(:service_id => service.id, :version => version.number)
#
# Get a list of all matches
-
- # :method: list_origins(:service_id => service.id, :version => version.number)
- #
- # Get a list of all origins
# :method: list_syslogs(:service_id => service.id, :version => version.number)
#
# Get a list of all syslogs