lib/fastly.rb in fastly-1.9.0 vs lib/fastly.rb in fastly-1.10.0

- old
+ new

@@ -22,10 +22,11 @@ require 'fastly/header' require 'fastly/healthcheck' require 'fastly/gzip' require 'fastly/invoice' require 'fastly/match' +require 'fastly/papertrail_logging' require 'fastly/request_setting' require 'fastly/response_object' require 'fastly/service' require 'fastly/settings' require 'fastly/syslog' @@ -142,11 +143,11 @@ # Fetches the list of codes for regions that are covered by the Fastly CDN service. def regions client.get_stats('/stats/regions') end - [ACL, ACLEntry, User, Customer, Backend, CacheSetting, Condition, Dictionary, DictionaryItem, Director, Domain, Header, Healthcheck, Gzip, Match, RequestSetting, ResponseObject, Service, S3Logging, Syslog, VCL, Version].each do |klass| + [ACL, ACLEntry, User, Customer, Backend, CacheSetting, Condition, Dictionary, DictionaryItem, Director, Domain, Header, Healthcheck, Gzip, Match, PapertrailLogging, 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 @@ -217,10 +218,14 @@ ## # :method: create_s3_logging(opts) # opts must contain service_id, version and name params ## + # :method: create_papertrail_logging(opts) + # opts must contain service_id, version and name params + + ## # :method: create_syslog(opts) # opts must contain service_id, version and name params ## # :method: create_vcl(opts) @@ -297,10 +302,14 @@ ## # :method: get_s3_logging(service_id, number, name) # Get a S3 logging ## + # :method: get_papertrail_logging(service_id, number, name) + # Get a Papertrail logging stream config + + ## # :method: get_syslog(service_id, number, name) # Get a Syslog ## # :method: get_vcl(service_id, number, name) @@ -402,10 +411,15 @@ # :method: update_s3_logging(s3_logging) # You can also call # s3_logging.save! ## + # :method: update_papertrail_logging(papertrail_logging) + # You can also call + # papertrail_logging.save! + + ## # :method: update_syslog(syslog) # You can also call # syslog.save! ## @@ -505,9 +519,14 @@ ## # :method: delete_s3_logging(s3_logging) # You can also call # s3_logging.delete! + + ## + # :method: delete_papertrail_logging(papertrail_logging) + # You can also call + # papertrail_logging.delete! ## # :method: delete_syslog(syslog) # You can also call # syslog.delete!