@@ 758-767 (lines=10) @@ | ||
755 | * |
|
756 | * @see http://cloudapi.acquia.com/#GET__sites__site_envs__env_domains__domain-instance_route |
|
757 | */ |
|
758 | public function domain($site, $env, $domain) |
|
759 | { |
|
760 | $variables = array( |
|
761 | 'site' => $site, |
|
762 | 'env' => $env, |
|
763 | 'domain' => $domain, |
|
764 | ); |
|
765 | $request = $this->get(array('{+base_path}/sites/{site}/envs/{env}/domains/{domain}.json', $variables)); |
|
766 | return new Response\Domain($request); |
|
767 | } |
|
768 | ||
769 | /** |
|
770 | * @param string $site |
|
@@ 780-789 (lines=10) @@ | ||
777 | * |
|
778 | * @see http://cloudapi.acquia.com/#POST__sites__site_envs__env_domains__domain-instance_route |
|
779 | */ |
|
780 | public function addDomain($site, $env, $domain) |
|
781 | { |
|
782 | $variables = array( |
|
783 | 'site' => $site, |
|
784 | 'env' => $env, |
|
785 | 'domain' => $domain, |
|
786 | ); |
|
787 | $request = $this->post(array('{+base_path}/sites/{site}/envs/{env}/domains/{domain}.json', $variables)); |
|
788 | return new Response\Task($request); |
|
789 | } |
|
790 | ||
791 | /** |
|
792 | * Moves domains atomically from one environment to another. |
|
@@ 843-852 (lines=10) @@ | ||
840 | * |
|
841 | * @see http://cloudapi.acquia.com/#DELETE__sites__site_envs__env_domains__domain-instance_route |
|
842 | */ |
|
843 | public function deleteDomain($site, $env, $domain) |
|
844 | { |
|
845 | $variables = array( |
|
846 | 'site' => $site, |
|
847 | 'env' => $env, |
|
848 | 'domain' => $domain, |
|
849 | ); |
|
850 | $request = $this->delete(array('{+base_path}/sites/{site}/envs/{env}/domains/{domain}.json', $variables)); |
|
851 | return new Response\Task($request); |
|
852 | } |
|
853 | ||
854 | /** |
|
855 | * @param string $site |
|
@@ 865-874 (lines=10) @@ | ||
862 | * |
|
863 | * @see http://cloudapi.acquia.com/#DELETE__sites__site_envs__env_domains__domain_cache-instance_route |
|
864 | */ |
|
865 | public function purgeVarnishCache($site, $env, $domain) |
|
866 | { |
|
867 | $variables = array( |
|
868 | 'site' => $site, |
|
869 | 'env' => $env, |
|
870 | 'domain' => $domain, |
|
871 | ); |
|
872 | $request = $this->delete(array('{+base_path}/sites/{site}/envs/{env}/domains/{domain}/cache.json', $variables)); |
|
873 | return new Response\Task($request); |
|
874 | } |
|
875 | ||
876 | /** |
|
877 | * @param string $site |