public function purgeVarnishCache($environmentUuid, array $domains)
    {

        $options = [
            'form_params' => [
                'domains' => $domains,
            ],
        ];

        return new OperationResponse(
            $this->connector->request(
                'post',
                "/environments/${environmentUuid}/domains/actions/clear-varnish",
                $this->query,
                $options
            )
        );
    }
public function purgeVarnishCache($environmentUuid, array $domains)
    {

        $options = [
            'form_params' => [
                'domains' => $domains,
            ],
        ];

        return new OperationResponse(
            $this->connector->request(
                'post',
                "/environments/${environmentUuid}/domains/actions/clear-varnish",
                $this->query,
                $options
            )
        );
    }
public function purgeVarnishCache ( $ environmentUuid , array $ domains ) { $ options = [ 'form_params' => [ 'domains' => $ domains , ] , ] ; return new OperationResponse ( $ this -> connector -> request ( 'post' , "/environments/${environmentUuid}/domains/actions/clear-varnish" , $ this -> query , $ options ) ) ; }
Purges varnish for selected domains in an environment.

@param string $environmentUuid
@param array  $domains
@return OperationResponse
Purges varnish for selected domains in an environment .