public function view($params, $optParams = [])
    {
        if ($params instanceof Firewall) {
            $params = $params->id;
        }

        return $this->sendRequest([], [
            'restAction' => 'view',
            'restId' => $params,
            'getParams' => $optParams,
        ], function ($response) {
            return isset($response->data) ? new Firewall($response->data) : $response;
        });
    }
public function view($params, $optParams = [])
    {
        if ($params instanceof Firewall) {
            $params = $params->id;
        }

        return $this->sendRequest([], [
            'restAction' => 'view',
            'restId' => $params,
            'getParams' => $optParams,
        ], function ($response) {
            return isset($response->data) ? new Firewall($response->data) : $response;
        });
    }
public function view ( $ params , $ optParams = [ ] ) { if ( $ params instanceof Firewall ) { $ params = $ params -> id ; } return $ this -> sendRequest ( [ ] , [ 'restAction' => 'view' , 'restId' => $ params , 'getParams' => $ optParams , ] , function ( $ response ) { return isset ( $ response -> data ) ? new Firewall ( $ response -> data ) : $ response ; } ) ; }
Fetches a firewall.

@param Firewall|string $params    Firewall object or Firewall ID
@param array           $optParams Optional API parameters

@return Firewall|Response
Fetches a firewall .