Esempio n. 1
0
 /**
  * Enable log retention for this CDN container.
  *
  * Enable CDN log retention on the container. If enabled logs will
  * be periodically (at unpredictable intervals) compressed and
  * uploaded to a ".CDN_ACCESS_LOGS" container in the form of
  * "container_name.YYYYMMDDHH-XXXX.gz". Requires CDN be enabled on
  * the account.
  *
  * Example:
  * <code>
  * # ... authentication code excluded (see previous examples) ...
  * #
  * $conn = new CF_Connection($auth);
  *
  * $public_container = $conn->get_container("public");
  *
  * # Enable logs retention.
  * $public_container->log_retention(True);
  * </code>
  *
  * @returns boolean True if successful
  * @throws CDNNotEnabledException CDN functionality not returned during auth
  * @throws AuthenticationException if auth token is not valid/expired
  * @throws InvalidResponseException unexpected response
  */
 function log_retention($cdn_log_retention = False)
 {
     $this->initContainer();
     return parent::log_retention($cdn_log_retention);
 }