Skip to content

Commit ed18245

Browse files
feat: add missed endpoint for querying firewall schedule time ranges
1 parent 6fd4f93 commit ed18245

1 file changed

Lines changed: 24 additions & 0 deletions

File tree

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
<?php
2+
3+
namespace RESTAPI\Endpoints;
4+
5+
require_once 'RESTAPI/autoloader.inc';
6+
7+
use RESTAPI\Core\Endpoint;
8+
9+
/**
10+
* Defines an Endpoint for interacting with multiple FirewallScheduleTimeRange Model objects at
11+
* /api/v2/firewall/schedule/time_ranges.
12+
*/
13+
class FirewallScheduleTimeRangesEndpoint extends Endpoint {
14+
public function __construct() {
15+
# Set Endpoint attributes
16+
$this->url = '/api/v2/firewall/schedule/time_ranges';
17+
$this->model_name = 'FirewallScheduleTimeRange';
18+
$this->many = true;
19+
$this->request_method_options = ['GET', 'DELETE'];
20+
21+
# Construct the parent Endpoint object
22+
parent::__construct();
23+
}
24+
}

0 commit comments

Comments
 (0)