From 910644f88de07d7496e2d40c04b1f32de1ef9b13 Mon Sep 17 00:00:00 2001 From: Paul Adams Date: Sat, 23 Feb 2019 00:13:29 +0000 Subject: [PATCH] Removed file created by mistake --- src/Endpoints/TLS.php.orig | 127 ------------------------------------- 1 file changed, 127 deletions(-) delete mode 100644 src/Endpoints/TLS.php.orig diff --git a/src/Endpoints/TLS.php.orig b/src/Endpoints/TLS.php.orig deleted file mode 100644 index cb67298..0000000 --- a/src/Endpoints/TLS.php.orig +++ /dev/null @@ -1,127 +0,0 @@ -adapter = $adapter; - } - - public function enableTLS13($zoneID) - { - $return = $this->adapter->patch( - 'zones/' . $zoneID . '/settings/tls_1_3', - ['value' => 'on'] - ); - $body = json_decode($return->getBody()); - - if ($body->success) { - return true; - } - - return false; - } - - public function disableTLS13($zoneID) - { - $return = $this->adapter->patch( - 'zones/' . $zoneID . '/settings/tls_1_3', - ['value' => 'off'] - ); - $body = json_decode($return->getBody()); - - if ($body->success) { - return true; - } - - return false; - } - - - - public function changeMinimumTLSVersion($zoneID, $minimumVersion) - { - $return = $this->adapter->patch( - 'zones/' . $zoneID . '/settings/min_tls_version', - [ - 'value' => $minimumVersion - ] - ); - $body = json_decode($return->getBody()); - - if ($body->success) { - return true; - } - - return false; - } -<<<<<<< HEAD - public function getHTTPSRedirectStatus($zoneID) { - $return = $this->adapter->get( - 'zones/' . $zoneID . '/settings/always_use_https' - ); - $body = json_decode($return->getBody()); - - if ($body->success) { - return $body->result; - } - - return false; - } - public function getHTTPSRewritesStatus($zoneID) { - $return = $this->adapter->get( - 'zones/' . $zoneID . '/settings/automatic_https_rewrites' - ); - $body = json_decode($return->getBody()); - - if ($body->success) { - return $body->result; - } - - return false; - } - public function updateHTTPSRedirects($zoneID, $value) { - $return = $this->adapter->patch( - 'zones/' . $zoneID . '/settings/always_use_https', - [ - 'value' => $value - ] - ); - $body = json_decode($return->getBody()); - - if ($body->success) { - return true; - } - - return false; - } - public function updateHTTPSRewrites($zoneID, $value) { - $return = $this->adapter->patch( - 'zones/' . $zoneID . '/settings/automatic_https_rewrites', - [ - 'value' => $value - ] - ); - $body = json_decode($return->getBody()); - - if ($body->success) { - return true; - } - - return false; - } -======= ->>>>>>> 4694904b38fdf5f251559a473cecf77a63cf9202 -}