public function buckets() {
        if (!$this->id) {
            throw new Exception("The server has no ID, can\'t get buckets");
        }

        $bucket = new Bucket($this->patrol);

        $bucket->defaults([
            'server_id' => $this->id
        ]);

        return $bucket->all();
    }
public function buckets() {
        if (!$this->id) {
            throw new Exception("The server has no ID, can\'t get buckets");
        }

        $bucket = new Bucket($this->patrol);

        $bucket->defaults([
            'server_id' => $this->id
        ]);

        return $bucket->all();
    }
public function buckets ( ) { if ( ! $ this -> id ) { throw new Exception ( "The server has no ID, can\'t get buckets" ) ; } $ bucket = new Bucket ( $ this -> patrol ) ; $ bucket -> defaults ( [ 'server_id' => $ this -> id ] ) ; return $ bucket -> all ( ) ; }
Gets all software buckets from this server

@return array List of PatrolSdk\Bucket
Gets all software buckets from this server