diff --git a/pyrax/cloudcdn.py b/pyrax/cloudcdn.py index 54466a3b..1ca3ec26 100644 --- a/pyrax/cloudcdn.py +++ b/pyrax/cloudcdn.py @@ -57,14 +57,15 @@ def delete_assets(self, url=None, all=False): class CloudCDNServiceManager(BaseManager): def create(self, name, flavor_id, domains, origins, - restrictions=None, caching=None): + restrictions=None, caching=None, log_delivery=None): body = {"name": name, "flavor_id": flavor_id, "domains": domains, "origins": origins, "restrictions": restrictions or [], - "caching": caching or []} + "caching": caching or [], + "log_delivery": log_delivery or {"enabled": False}} resp, resp_body = self.api.method_post("/%s" % self.uri_base, body=body) @@ -150,7 +151,7 @@ def get_service(self, service_id): return self._services_manager.get(service_id) def create_service(self, name, flavor_id, domains, origins, - restrictions=None, caching=None): + restrictions=None, caching=None, log_delivery=None): """Create a new CDN service. Arguments: @@ -168,7 +169,8 @@ def create_service(self, name, flavor_id, domains, origins, """ return self._services_manager.create(name, flavor_id, domains, origins, - restrictions, caching) + restrictions, caching, + log_delivery) def patch_service(self, service_id, changes): """Update a CDN service with a patch