1
|
|
|
<?php |
2
|
|
|
|
3
|
|
|
declare(strict_types=1); |
4
|
|
|
|
5
|
|
|
/* |
6
|
|
|
* This file has been auto generated by Jane, |
7
|
|
|
* |
8
|
|
|
* Do no edit it directly. |
9
|
|
|
*/ |
10
|
|
|
|
11
|
|
|
namespace Montross50\NetsparkerCloud\SDK; |
12
|
|
|
|
13
|
|
|
use Montross50\NetsparkerCloud\NetsparkerCloudInterface; |
14
|
|
|
|
15
|
|
|
class Client extends \Jane\OpenApiRuntime\Client\Psr7HttplugClient implements NetsparkerCloudInterface |
16
|
|
|
{ |
17
|
|
|
/** |
18
|
|
|
* @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) |
19
|
|
|
* |
20
|
|
|
* @return \Montross50\NetsparkerCloud\SDK\Model\AccountLicenseApiModel|\Psr\Http\Message\ResponseInterface|null |
21
|
|
|
*/ |
22
|
|
|
public function accountLicense(string $fetch = self::FETCH_OBJECT) |
23
|
|
|
{ |
24
|
|
|
return $this->executePsr7Endpoint(new \Montross50\NetsparkerCloud\SDK\Endpoint\AccountLicense(), $fetch); |
25
|
|
|
} |
26
|
|
|
|
27
|
|
|
/** |
28
|
|
|
* @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) |
29
|
|
|
* |
30
|
|
|
* @return \Montross50\NetsparkerCloud\SDK\Model\UserHealthCheckApiModel|\Psr\Http\Message\ResponseInterface|null |
31
|
|
|
*/ |
32
|
|
|
public function accountMe(string $fetch = self::FETCH_OBJECT) |
33
|
|
|
{ |
34
|
|
|
return $this->executePsr7Endpoint(new \Montross50\NetsparkerCloud\SDK\Endpoint\AccountMe(), $fetch); |
35
|
|
|
} |
36
|
|
|
|
37
|
|
|
/** |
38
|
|
|
* @param \Montross50\NetsparkerCloud\SDK\Model\AgentGroupApiDeleteModel $model the model |
39
|
|
|
* @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) |
40
|
|
|
* |
41
|
|
|
* @return \Psr\Http\Message\ResponseInterface|null |
42
|
|
|
*/ |
43
|
|
|
public function agentGroupsDelete(\Montross50\NetsparkerCloud\SDK\Model\AgentGroupApiDeleteModel $model, string $fetch = self::FETCH_OBJECT) |
44
|
|
|
{ |
45
|
|
|
return $this->executePsr7Endpoint(new \Montross50\NetsparkerCloud\SDK\Endpoint\AgentGroupsDelete($model), $fetch); |
46
|
|
|
} |
47
|
|
|
|
48
|
|
|
/** |
49
|
|
|
* @param array $queryParameters { |
50
|
|
|
* |
51
|
|
|
* @var int $page the page index |
52
|
|
|
* @var int $pageSize The page size. Page size can be any value between 1 and 200. |
53
|
|
|
* } |
54
|
|
|
* |
55
|
|
|
* @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) |
56
|
|
|
* |
57
|
|
|
* @return \Montross50\NetsparkerCloud\SDK\Model\AgentGroupsListApiResult|\Psr\Http\Message\ResponseInterface|null |
58
|
|
|
*/ |
59
|
|
|
public function agentGroupsList(array $queryParameters = [], string $fetch = self::FETCH_OBJECT) |
60
|
|
|
{ |
61
|
|
|
return $this->executePsr7Endpoint(new \Montross50\NetsparkerCloud\SDK\Endpoint\AgentGroupsList($queryParameters), $fetch); |
62
|
|
|
} |
63
|
|
|
|
64
|
|
|
/** |
65
|
|
|
* @param \Montross50\NetsparkerCloud\SDK\Model\AgentGroupApiNewModel $model the new agent group model |
66
|
|
|
* @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) |
67
|
|
|
* |
68
|
|
|
* @return \Montross50\NetsparkerCloud\SDK\Model\AgentGroupModel|\Psr\Http\Message\ResponseInterface|null |
69
|
|
|
*/ |
70
|
|
|
public function agentGroupsNew(\Montross50\NetsparkerCloud\SDK\Model\AgentGroupApiNewModel $model, string $fetch = self::FETCH_OBJECT) |
71
|
|
|
{ |
72
|
|
|
return $this->executePsr7Endpoint(new \Montross50\NetsparkerCloud\SDK\Endpoint\AgentGroupsNew($model), $fetch); |
73
|
|
|
} |
74
|
|
|
|
75
|
|
|
/** |
76
|
|
|
* @param \Montross50\NetsparkerCloud\SDK\Model\AgentGroupApiUpdateModel $model |
77
|
|
|
* @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) |
78
|
|
|
* |
79
|
|
|
* @return \Montross50\NetsparkerCloud\SDK\Model\AgentGroupModel|\Psr\Http\Message\ResponseInterface|null |
80
|
|
|
*/ |
81
|
|
|
public function agentGroupsUpdate(\Montross50\NetsparkerCloud\SDK\Model\AgentGroupApiUpdateModel $model, string $fetch = self::FETCH_OBJECT) |
82
|
|
|
{ |
83
|
|
|
return $this->executePsr7Endpoint(new \Montross50\NetsparkerCloud\SDK\Endpoint\AgentGroupsUpdate($model), $fetch); |
84
|
|
|
} |
85
|
|
|
|
86
|
|
|
/** |
87
|
|
|
* @param \Montross50\NetsparkerCloud\SDK\Model\DeleteScanNotificationApiModel $model the new scan notification model |
88
|
|
|
* @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) |
89
|
|
|
* |
90
|
|
|
* @throws \Montross50\NetsparkerCloud\SDK\Exception\NotificationsDeleteBadRequestException |
91
|
|
|
* @throws \Montross50\NetsparkerCloud\SDK\Exception\NotificationsDeleteNotFoundException |
92
|
|
|
* |
93
|
|
|
* @return \Psr\Http\Message\ResponseInterface|null |
94
|
|
|
*/ |
95
|
|
|
public function notificationsDelete(\Montross50\NetsparkerCloud\SDK\Model\DeleteScanNotificationApiModel $model, string $fetch = self::FETCH_OBJECT) |
96
|
|
|
{ |
97
|
|
|
return $this->executePsr7Endpoint(new \Montross50\NetsparkerCloud\SDK\Endpoint\NotificationsDelete($model), $fetch); |
98
|
|
|
} |
99
|
|
|
|
100
|
|
|
/** |
101
|
|
|
* @param string $id the identifier |
102
|
|
|
* @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) |
103
|
|
|
* |
104
|
|
|
* @return \Montross50\NetsparkerCloud\SDK\Model\ScanNotificationApiModel|\Psr\Http\Message\ResponseInterface|null |
105
|
|
|
*/ |
106
|
|
|
public function notificationsGet(string $id, string $fetch = self::FETCH_OBJECT) |
107
|
|
|
{ |
108
|
|
|
return $this->executePsr7Endpoint(new \Montross50\NetsparkerCloud\SDK\Endpoint\NotificationsGet($id), $fetch); |
109
|
|
|
} |
110
|
|
|
|
111
|
|
|
/** |
112
|
|
|
* @param array $queryParameters { |
113
|
|
|
* |
114
|
|
|
* @var string $event The notification event. |
115
|
|
|
* } |
116
|
|
|
* |
117
|
|
|
* @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) |
118
|
|
|
* |
119
|
|
|
* @return \Montross50\NetsparkerCloud\SDK\Model\ScanNotificationApiModel|\Psr\Http\Message\ResponseInterface|null |
120
|
|
|
*/ |
121
|
|
|
public function notificationsGetPriorities(array $queryParameters = [], string $fetch = self::FETCH_OBJECT) |
122
|
|
|
{ |
123
|
|
|
return $this->executePsr7Endpoint(new \Montross50\NetsparkerCloud\SDK\Endpoint\NotificationsGetPriorities($queryParameters), $fetch); |
124
|
|
|
} |
125
|
|
|
|
126
|
|
|
/** |
127
|
|
|
* @param array $queryParameters { |
128
|
|
|
* |
129
|
|
|
* @var int $page the page index |
130
|
|
|
* @var int $pageSize The page size. Page size can be any value between 1 and 200. |
131
|
|
|
* } |
132
|
|
|
* |
133
|
|
|
* @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) |
134
|
|
|
* |
135
|
|
|
* @return \Montross50\NetsparkerCloud\SDK\Model\ScanNotificationListApiResult|\Psr\Http\Message\ResponseInterface|null |
136
|
|
|
*/ |
137
|
|
|
public function notificationsList(array $queryParameters = [], string $fetch = self::FETCH_OBJECT) |
138
|
|
|
{ |
139
|
|
|
return $this->executePsr7Endpoint(new \Montross50\NetsparkerCloud\SDK\Endpoint\NotificationsList($queryParameters), $fetch); |
140
|
|
|
} |
141
|
|
|
|
142
|
|
|
/** |
143
|
|
|
* @param \Montross50\NetsparkerCloud\SDK\Model\NewScanNotificationApiModel $model the new scan notification model |
144
|
|
|
* @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) |
145
|
|
|
* |
146
|
|
|
* @return \Montross50\NetsparkerCloud\SDK\Model\ScanNotificationApiModel|\Psr\Http\Message\ResponseInterface|null |
147
|
|
|
*/ |
148
|
|
|
public function notificationsNew(\Montross50\NetsparkerCloud\SDK\Model\NewScanNotificationApiModel $model, string $fetch = self::FETCH_OBJECT) |
149
|
|
|
{ |
150
|
|
|
return $this->executePsr7Endpoint(new \Montross50\NetsparkerCloud\SDK\Endpoint\NotificationsNew($model), $fetch); |
151
|
|
|
} |
152
|
|
|
|
153
|
|
|
/** |
154
|
|
|
* @param \Montross50\NetsparkerCloud\SDK\Model\NotificationPriorityPair[] $priorities the notification priority pairs |
155
|
|
|
* @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) |
156
|
|
|
* |
157
|
|
|
* @throws \Montross50\NetsparkerCloud\SDK\Exception\NotificationsSetPrioritiesBadRequestException |
158
|
|
|
* |
159
|
|
|
* @return \Psr\Http\Message\ResponseInterface|null |
160
|
|
|
*/ |
161
|
|
|
public function notificationsSetPriorities(array $priorities, string $fetch = self::FETCH_OBJECT) |
162
|
|
|
{ |
163
|
|
|
return $this->executePsr7Endpoint(new \Montross50\NetsparkerCloud\SDK\Endpoint\NotificationsSetPriorities($priorities), $fetch); |
164
|
|
|
} |
165
|
|
|
|
166
|
|
|
/** |
167
|
|
|
* @param \Montross50\NetsparkerCloud\SDK\Model\UpdateScanNotificationApiModel $model the new scan notification model |
168
|
|
|
* @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) |
169
|
|
|
* |
170
|
|
|
* @return \Montross50\NetsparkerCloud\SDK\Model\ScanNotificationApiModel|\Psr\Http\Message\ResponseInterface|null |
171
|
|
|
*/ |
172
|
|
|
public function notificationsUpdate(\Montross50\NetsparkerCloud\SDK\Model\UpdateScanNotificationApiModel $model, string $fetch = self::FETCH_OBJECT) |
173
|
|
|
{ |
174
|
|
|
return $this->executePsr7Endpoint(new \Montross50\NetsparkerCloud\SDK\Endpoint\NotificationsUpdate($model), $fetch); |
175
|
|
|
} |
176
|
|
|
|
177
|
|
|
/** |
178
|
|
|
* @param string $name the scan policy name |
179
|
|
|
* @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) |
180
|
|
|
* |
181
|
|
|
* @throws \Montross50\NetsparkerCloud\SDK\Exception\ScanPoliciesDeleteBadRequestException |
182
|
|
|
* @throws \Montross50\NetsparkerCloud\SDK\Exception\ScanPoliciesDeleteNotFoundException |
183
|
|
|
* |
184
|
|
|
* @return \Psr\Http\Message\ResponseInterface|null |
185
|
|
|
*/ |
186
|
|
|
public function scanPoliciesDelete(string $name, string $fetch = self::FETCH_OBJECT) |
187
|
|
|
{ |
188
|
|
|
return $this->executePsr7Endpoint(new \Montross50\NetsparkerCloud\SDK\Endpoint\ScanPoliciesDelete($name), $fetch); |
189
|
|
|
} |
190
|
|
|
|
191
|
|
|
/** |
192
|
|
|
* @param array $queryParameters { |
193
|
|
|
* |
194
|
|
|
* @var string $name The scan policy name. |
195
|
|
|
* } |
196
|
|
|
* |
197
|
|
|
* @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) |
198
|
|
|
* |
199
|
|
|
* @return \Montross50\NetsparkerCloud\SDK\Model\ScanPolicySettingApiModel|\Psr\Http\Message\ResponseInterface|null |
200
|
|
|
*/ |
201
|
|
|
public function scanPoliciesFind(array $queryParameters = [], string $fetch = self::FETCH_OBJECT) |
202
|
|
|
{ |
203
|
|
|
return $this->executePsr7Endpoint(new \Montross50\NetsparkerCloud\SDK\Endpoint\ScanPoliciesFind($queryParameters), $fetch); |
204
|
|
|
} |
205
|
|
|
|
206
|
|
|
/** |
207
|
|
|
* @param string $id the identifier of scan policy |
208
|
|
|
* @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) |
209
|
|
|
* |
210
|
|
|
* @return \Montross50\NetsparkerCloud\SDK\Model\ScanPolicySettingApiModel|\Psr\Http\Message\ResponseInterface|null |
211
|
|
|
*/ |
212
|
|
|
public function scanPoliciesGet(string $id, string $fetch = self::FETCH_OBJECT) |
213
|
|
|
{ |
214
|
|
|
return $this->executePsr7Endpoint(new \Montross50\NetsparkerCloud\SDK\Endpoint\ScanPoliciesGet($id), $fetch); |
215
|
|
|
} |
216
|
|
|
|
217
|
|
|
/** |
218
|
|
|
* @param array $queryParameters { |
219
|
|
|
* |
220
|
|
|
* @var int $page the page index |
221
|
|
|
* @var int $pageSize The page size. Page size can be any value between 1 and 200. |
222
|
|
|
* } |
223
|
|
|
* |
224
|
|
|
* @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) |
225
|
|
|
* |
226
|
|
|
* @return \Montross50\NetsparkerCloud\SDK\Model\ScanPolicyListApiResult|\Psr\Http\Message\ResponseInterface|null |
227
|
|
|
*/ |
228
|
|
|
public function scanPoliciesList(array $queryParameters = [], string $fetch = self::FETCH_OBJECT) |
229
|
|
|
{ |
230
|
|
|
return $this->executePsr7Endpoint(new \Montross50\NetsparkerCloud\SDK\Endpoint\ScanPoliciesList($queryParameters), $fetch); |
231
|
|
|
} |
232
|
|
|
|
233
|
|
|
/** |
234
|
|
|
* @param \Montross50\NetsparkerCloud\SDK\Model\NewScanPolicySettingModel $model the model |
235
|
|
|
* @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) |
236
|
|
|
* |
237
|
|
|
* @return \Montross50\NetsparkerCloud\SDK\Model\ScanPolicySettingApiModel|\Psr\Http\Message\ResponseInterface|null |
238
|
|
|
*/ |
239
|
|
|
public function scanPoliciesNew(\Montross50\NetsparkerCloud\SDK\Model\NewScanPolicySettingModel $model, string $fetch = self::FETCH_OBJECT) |
240
|
|
|
{ |
241
|
|
|
return $this->executePsr7Endpoint(new \Montross50\NetsparkerCloud\SDK\Endpoint\ScanPoliciesNew($model), $fetch); |
242
|
|
|
} |
243
|
|
|
|
244
|
|
|
/** |
245
|
|
|
* @param \Montross50\NetsparkerCloud\SDK\Model\UpdateScanPolicySettingModel $model the model |
246
|
|
|
* @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) |
247
|
|
|
* |
248
|
|
|
* @return \Montross50\NetsparkerCloud\SDK\Model\ScanPolicySettingApiModel|\Psr\Http\Message\ResponseInterface|null |
249
|
|
|
*/ |
250
|
|
|
public function scanPoliciesUpdate(\Montross50\NetsparkerCloud\SDK\Model\UpdateScanPolicySettingModel $model, string $fetch = self::FETCH_OBJECT) |
251
|
|
|
{ |
252
|
|
|
return $this->executePsr7Endpoint(new \Montross50\NetsparkerCloud\SDK\Endpoint\ScanPoliciesUpdate($model), $fetch); |
253
|
|
|
} |
254
|
|
|
|
255
|
|
|
/** |
256
|
|
|
* @param mixed $profileId the scan profile's ID |
257
|
|
|
* @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) |
258
|
|
|
* |
259
|
|
|
* @return \Psr\Http\Message\ResponseInterface|null |
260
|
|
|
*/ |
261
|
|
|
public function scanProfilesDelete(string $profileId, string $fetch = self::FETCH_OBJECT) |
262
|
|
|
{ |
263
|
|
|
return $this->executePsr7Endpoint(new \Montross50\NetsparkerCloud\SDK\Endpoint\ScanProfilesDelete($profileId), $fetch); |
264
|
|
|
} |
265
|
|
|
|
266
|
|
|
/** |
267
|
|
|
* @param string $id the identifier of scan profiles |
268
|
|
|
* @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) |
269
|
|
|
* |
270
|
|
|
* @return \Montross50\NetsparkerCloud\SDK\Model\SaveScanProfileApiModel|\Psr\Http\Message\ResponseInterface|null |
271
|
|
|
*/ |
272
|
|
|
public function scanProfilesGet(string $id, string $fetch = self::FETCH_OBJECT) |
273
|
|
|
{ |
274
|
|
|
return $this->executePsr7Endpoint(new \Montross50\NetsparkerCloud\SDK\Endpoint\ScanProfilesGet($id), $fetch); |
275
|
|
|
} |
276
|
|
|
|
277
|
|
|
/** |
278
|
|
|
* @param array $queryParameters { |
279
|
|
|
* |
280
|
|
|
* @var int $page the page index |
281
|
|
|
* @var int $pageSize The page size. Page size can be any value between 1 and 200. |
282
|
|
|
* } |
283
|
|
|
* |
284
|
|
|
* @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) |
285
|
|
|
* |
286
|
|
|
* @return \Montross50\NetsparkerCloud\SDK\Model\SaveScanProfileApiModel|\Psr\Http\Message\ResponseInterface|null |
287
|
|
|
*/ |
288
|
|
|
public function scanProfilesList(array $queryParameters = [], string $fetch = self::FETCH_OBJECT) |
289
|
|
|
{ |
290
|
|
|
return $this->executePsr7Endpoint(new \Montross50\NetsparkerCloud\SDK\Endpoint\ScanProfilesList($queryParameters), $fetch); |
291
|
|
|
} |
292
|
|
|
|
293
|
|
|
/** |
294
|
|
|
* @param \Montross50\NetsparkerCloud\SDK\Model\SaveScanProfileApiModel $model the ScanProfileSettingApiModel model |
295
|
|
|
* @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) |
296
|
|
|
* |
297
|
|
|
* @return \Montross50\NetsparkerCloud\SDK\Model\SaveScanProfileApiModel|\Psr\Http\Message\ResponseInterface|null |
298
|
|
|
*/ |
299
|
|
|
public function scanProfilesNew(\Montross50\NetsparkerCloud\SDK\Model\SaveScanProfileApiModel $model, string $fetch = self::FETCH_OBJECT) |
300
|
|
|
{ |
301
|
|
|
return $this->executePsr7Endpoint(new \Montross50\NetsparkerCloud\SDK\Endpoint\ScanProfilesNew($model), $fetch); |
302
|
|
|
} |
303
|
|
|
|
304
|
|
|
/** |
305
|
|
|
* @param \Montross50\NetsparkerCloud\SDK\Model\SaveScanProfileApiModel $model the model |
306
|
|
|
* @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) |
307
|
|
|
* |
308
|
|
|
* @return \Montross50\NetsparkerCloud\SDK\Model\SaveScanProfileApiModel|\Psr\Http\Message\ResponseInterface|null |
309
|
|
|
*/ |
310
|
|
|
public function scanProfilesUpdate(\Montross50\NetsparkerCloud\SDK\Model\SaveScanProfileApiModel $model, string $fetch = self::FETCH_OBJECT) |
311
|
|
|
{ |
312
|
|
|
return $this->executePsr7Endpoint(new \Montross50\NetsparkerCloud\SDK\Endpoint\ScanProfilesUpdate($model), $fetch); |
313
|
|
|
} |
314
|
|
|
|
315
|
|
|
/** |
316
|
|
|
* @param mixed $id the identifier of scan |
317
|
|
|
* @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) |
318
|
|
|
* |
319
|
|
|
* @return \Psr\Http\Message\ResponseInterface|null |
320
|
|
|
*/ |
321
|
|
|
public function scansCancel(string $id, string $fetch = self::FETCH_OBJECT) |
322
|
|
|
{ |
323
|
|
|
return $this->executePsr7Endpoint(new \Montross50\NetsparkerCloud\SDK\Endpoint\ScansCancel($id), $fetch); |
324
|
|
|
} |
325
|
|
|
|
326
|
|
|
/** |
327
|
|
|
* @param array $queryParameters { |
328
|
|
|
* |
329
|
|
|
* @var bool $excludeIgnoreds If set to true, HTTP response data will be excluded from the vulnerability detail. This parameter can only be |
330
|
|
|
* @var string $id gets or sets the scan identifier |
331
|
|
|
* @var string $reportName Gets or sets report name. Report name also keeps report type in it. |
332
|
|
|
* @var string $type Gets or sets the report type. |
333
|
|
|
* } |
334
|
|
|
* |
335
|
|
|
* @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) |
336
|
|
|
* |
337
|
|
|
* @throws \Montross50\NetsparkerCloud\SDK\Exception\ScansCustomReportBadRequestException |
338
|
|
|
* @throws \Montross50\NetsparkerCloud\SDK\Exception\ScansCustomReportNotFoundException |
339
|
|
|
* |
340
|
|
|
* @return \Psr\Http\Message\ResponseInterface|null |
341
|
|
|
*/ |
342
|
|
|
public function scansCustomReport(array $queryParameters = [], string $fetch = self::FETCH_OBJECT) |
343
|
|
|
{ |
344
|
|
|
return $this->executePsr7Endpoint(new \Montross50\NetsparkerCloud\SDK\Endpoint\ScansCustomReport($queryParameters), $fetch); |
345
|
|
|
} |
346
|
|
|
|
347
|
|
|
/** |
348
|
|
|
* @param array $ids the identifiers of scans |
349
|
|
|
* @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) |
350
|
|
|
* |
351
|
|
|
* @return \Psr\Http\Message\ResponseInterface|null |
352
|
|
|
*/ |
353
|
|
|
public function scansDelete(array $ids, string $fetch = self::FETCH_OBJECT) |
354
|
|
|
{ |
355
|
|
|
return $this->executePsr7Endpoint(new \Montross50\NetsparkerCloud\SDK\Endpoint\ScansDelete($ids), $fetch); |
356
|
|
|
} |
357
|
|
|
|
358
|
|
|
/** |
359
|
|
|
* @param string $id the identifier of scan |
360
|
|
|
* @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) |
361
|
|
|
* |
362
|
|
|
* @return \Montross50\NetsparkerCloud\SDK\Model\ScanTaskModel|\Psr\Http\Message\ResponseInterface|null |
363
|
|
|
*/ |
364
|
|
|
public function scansDetail(string $id, string $fetch = self::FETCH_OBJECT) |
365
|
|
|
{ |
366
|
|
|
return $this->executePsr7Endpoint(new \Montross50\NetsparkerCloud\SDK\Endpoint\ScansDetail($id), $fetch); |
367
|
|
|
} |
368
|
|
|
|
369
|
|
|
/** |
370
|
|
|
* @param array $queryParameters { |
371
|
|
|
* |
372
|
|
|
* @var string $scanId The scan id |
373
|
|
|
* } |
374
|
|
|
* |
375
|
|
|
* @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) |
376
|
|
|
* |
377
|
|
|
* @return \Psr\Http\Message\ResponseInterface|null |
378
|
|
|
*/ |
379
|
|
|
public function scansDownloadScanFile(array $queryParameters = [], string $fetch = self::FETCH_OBJECT) |
380
|
|
|
{ |
381
|
|
|
return $this->executePsr7Endpoint(new \Montross50\NetsparkerCloud\SDK\Endpoint\ScansDownloadScanFile($queryParameters), $fetch); |
382
|
|
|
} |
383
|
|
|
|
384
|
|
|
/** |
385
|
|
|
* @param \Montross50\NetsparkerCloud\SDK\Model\IncrementalApiModel $model Contains data that is required to create an incremental scan. Base scan should be in completed |
386
|
|
|
* @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) |
387
|
|
|
* |
388
|
|
|
* @return \Montross50\NetsparkerCloud\SDK\Model\ScanTaskModel|\Psr\Http\Message\ResponseInterface|null |
389
|
|
|
*/ |
390
|
|
|
public function scansIncremental(\Montross50\NetsparkerCloud\SDK\Model\IncrementalApiModel $model, string $fetch = self::FETCH_OBJECT) |
391
|
|
|
{ |
392
|
|
|
return $this->executePsr7Endpoint(new \Montross50\NetsparkerCloud\SDK\Endpoint\ScansIncremental($model), $fetch); |
393
|
|
|
} |
394
|
|
|
|
395
|
|
|
/** |
396
|
|
|
* @param array $queryParameters { |
397
|
|
|
* |
398
|
|
|
* @var int $page the page index |
399
|
|
|
* @var int $pageSize The page size. Page size can be any value between 1 and 200. |
400
|
|
|
* } |
401
|
|
|
* |
402
|
|
|
* @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) |
403
|
|
|
* |
404
|
|
|
* @return \Montross50\NetsparkerCloud\SDK\Model\ScanTaskListApiResult|\Psr\Http\Message\ResponseInterface|null |
405
|
|
|
*/ |
406
|
|
|
public function scansList(array $queryParameters = [], string $fetch = self::FETCH_OBJECT) |
407
|
|
|
{ |
408
|
|
|
return $this->executePsr7Endpoint(new \Montross50\NetsparkerCloud\SDK\Endpoint\ScansList($queryParameters), $fetch); |
409
|
|
|
} |
410
|
|
|
|
411
|
|
|
/** |
412
|
|
|
* @param array $queryParameters { |
413
|
|
|
* |
414
|
|
|
* @var string $scanTaskState The state of ScanTask {Netsparker.Cloud.Core.Models.ScanTaskState}> |
415
|
|
|
* @var int $page the page index |
416
|
|
|
* @var int $pageSize The page size. Page size can be any value between 1 and 200. |
417
|
|
|
* } |
418
|
|
|
* |
419
|
|
|
* @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) |
420
|
|
|
* |
421
|
|
|
* @return \Montross50\NetsparkerCloud\SDK\Model\ScanTaskListApiResult|\Psr\Http\Message\ResponseInterface|null |
422
|
|
|
*/ |
423
|
|
|
public function scansListByState(array $queryParameters = [], string $fetch = self::FETCH_OBJECT) |
424
|
|
|
{ |
425
|
|
|
return $this->executePsr7Endpoint(new \Montross50\NetsparkerCloud\SDK\Endpoint\ScansListByState($queryParameters), $fetch); |
426
|
|
|
} |
427
|
|
|
|
428
|
|
|
/** |
429
|
|
|
* @param array $queryParameters { |
430
|
|
|
* |
431
|
|
|
* @var string $websiteUrl the website URL |
432
|
|
|
* @var int $page the page index |
433
|
|
|
* @var int $pageSize The page size. Page size can be any value between 1 and 200. |
434
|
|
|
* } |
435
|
|
|
* |
436
|
|
|
* @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) |
437
|
|
|
* |
438
|
|
|
* @return \Montross50\NetsparkerCloud\SDK\Model\ScanTaskListApiResult|\Psr\Http\Message\ResponseInterface|null |
439
|
|
|
*/ |
440
|
|
|
public function scansListByWebsite(array $queryParameters = [], string $fetch = self::FETCH_OBJECT) |
441
|
|
|
{ |
442
|
|
|
return $this->executePsr7Endpoint(new \Montross50\NetsparkerCloud\SDK\Endpoint\ScansListByWebsite($queryParameters), $fetch); |
443
|
|
|
} |
444
|
|
|
|
445
|
|
|
/** |
446
|
|
|
* @param array $queryParameters { |
447
|
|
|
* |
448
|
|
|
* @var int $page the page index |
449
|
|
|
* @var int $pageSize The page size. Page size can be any value between 1 and 200. |
450
|
|
|
* } |
451
|
|
|
* |
452
|
|
|
* @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) |
453
|
|
|
* |
454
|
|
|
* @return \Montross50\NetsparkerCloud\SDK\Model\ScheduledScanListApiResult|\Psr\Http\Message\ResponseInterface|null |
455
|
|
|
*/ |
456
|
|
|
public function scansListScheduled(array $queryParameters = [], string $fetch = self::FETCH_OBJECT) |
457
|
|
|
{ |
458
|
|
|
return $this->executePsr7Endpoint(new \Montross50\NetsparkerCloud\SDK\Endpoint\ScansListScheduled($queryParameters), $fetch); |
459
|
|
|
} |
460
|
|
|
|
461
|
|
|
/** |
462
|
|
|
* @param \Montross50\NetsparkerCloud\SDK\Model\NewScanTaskApiModel $model contains data that is required to create a new scan |
463
|
|
|
* @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) |
464
|
|
|
* |
465
|
|
|
* @return \Montross50\NetsparkerCloud\SDK\Model\ScanTaskModel[]|\Psr\Http\Message\ResponseInterface|null |
466
|
|
|
*/ |
467
|
|
|
public function scansNew(\Montross50\NetsparkerCloud\SDK\Model\NewScanTaskApiModel $model, string $fetch = self::FETCH_OBJECT) |
468
|
|
|
{ |
469
|
|
|
return $this->executePsr7Endpoint(new \Montross50\NetsparkerCloud\SDK\Endpoint\ScansNew($model), $fetch); |
470
|
|
|
} |
471
|
|
|
|
472
|
|
|
/** |
473
|
|
|
* @param mixed $id the identifier of scan |
474
|
|
|
* @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) |
475
|
|
|
* |
476
|
|
|
* @return \Montross50\NetsparkerCloud\SDK\Model\ScanTaskModel|\Psr\Http\Message\ResponseInterface|null |
477
|
|
|
*/ |
478
|
|
|
public function scansNewFromScan(string $id, string $fetch = self::FETCH_OBJECT) |
479
|
|
|
{ |
480
|
|
|
return $this->executePsr7Endpoint(new \Montross50\NetsparkerCloud\SDK\Endpoint\ScansNewFromScan($id), $fetch); |
481
|
|
|
} |
482
|
|
|
|
483
|
|
|
/** |
484
|
|
|
* @param \Montross50\NetsparkerCloud\SDK\Model\NewGroupScanApiModel $model contains data that is required to create a new group scan |
485
|
|
|
* @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) |
486
|
|
|
* |
487
|
|
|
* @return \Montross50\NetsparkerCloud\SDK\Model\ScanTaskModel[]|\Psr\Http\Message\ResponseInterface|null |
488
|
|
|
*/ |
489
|
|
|
public function scansNewGroupScan(\Montross50\NetsparkerCloud\SDK\Model\NewGroupScanApiModel $model, string $fetch = self::FETCH_OBJECT) |
490
|
|
|
{ |
491
|
|
|
return $this->executePsr7Endpoint(new \Montross50\NetsparkerCloud\SDK\Endpoint\ScansNewGroupScan($model), $fetch); |
492
|
|
|
} |
493
|
|
|
|
494
|
|
|
/** |
495
|
|
|
* @param \Montross50\NetsparkerCloud\SDK\Model\NewScanTaskWithProfileApiModel $model contains data that is required to create a new scan |
496
|
|
|
* @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) |
497
|
|
|
* |
498
|
|
|
* @return \Montross50\NetsparkerCloud\SDK\Model\ScanTaskModel|\Psr\Http\Message\ResponseInterface|null |
499
|
|
|
*/ |
500
|
|
|
public function scansNewWithProfile(\Montross50\NetsparkerCloud\SDK\Model\NewScanTaskWithProfileApiModel $model, string $fetch = self::FETCH_OBJECT) |
501
|
|
|
{ |
502
|
|
|
return $this->executePsr7Endpoint(new \Montross50\NetsparkerCloud\SDK\Endpoint\ScansNewWithProfile($model), $fetch); |
503
|
|
|
} |
504
|
|
|
|
505
|
|
|
/** |
506
|
|
|
* @param mixed $id the identifier of scan |
507
|
|
|
* @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) |
508
|
|
|
* |
509
|
|
|
* @return \Psr\Http\Message\ResponseInterface|null |
510
|
|
|
*/ |
511
|
|
|
public function scansPause(string $id, string $fetch = self::FETCH_OBJECT) |
512
|
|
|
{ |
513
|
|
|
return $this->executePsr7Endpoint(new \Montross50\NetsparkerCloud\SDK\Endpoint\ScansPause($id), $fetch); |
514
|
|
|
} |
515
|
|
|
|
516
|
|
|
/** |
517
|
|
|
* @param array $queryParameters { |
518
|
|
|
* |
519
|
|
|
* @var string $contentFormat Gets or sets the content format. This parameter can only be used for vulnerabilities XML and JSON report. |
520
|
|
|
* @var bool $excludeResponseData If set to true, HTTP response data will be excluded from the vulnerability detail. This parameter can only be |
521
|
|
|
* @var string $format Gets or sets the report format. |
522
|
|
|
* @var string $id gets or sets the scan identifier |
523
|
|
|
* @var string $type Gets or sets the report type. |
524
|
|
|
* } |
525
|
|
|
* @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) |
526
|
|
|
* |
527
|
|
|
* @throws \Montross50\NetsparkerCloud\SDK\Exception\ScansReportBadRequestException |
528
|
|
|
* @throws \Montross50\NetsparkerCloud\SDK\Exception\ScansReportNotFoundException |
529
|
|
|
* |
530
|
|
|
* @return \Psr\Http\Message\ResponseInterface|null |
531
|
|
|
*/ |
532
|
|
|
public function scansReport(array $queryParameters = [], string $fetch = self::FETCH_OBJECT) |
533
|
|
|
{ |
534
|
|
|
return $this->executePsr7Endpoint(new \Montross50\NetsparkerCloud\SDK\Endpoint\ScansReport($queryParameters), $fetch); |
535
|
|
|
} |
536
|
|
|
|
537
|
|
|
/** |
538
|
|
|
* @param string $id the identifier of scan |
539
|
|
|
* @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) |
540
|
|
|
* |
541
|
|
|
* @return \Montross50\NetsparkerCloud\SDK\Model\VulnerabilityModel[]|\Psr\Http\Message\ResponseInterface|null |
542
|
|
|
*/ |
543
|
|
|
public function scansResult(string $id, string $fetch = self::FETCH_OBJECT) |
544
|
|
|
{ |
545
|
|
|
return $this->executePsr7Endpoint(new \Montross50\NetsparkerCloud\SDK\Endpoint\ScansResult($id), $fetch); |
546
|
|
|
} |
547
|
|
|
|
548
|
|
|
/** |
549
|
|
|
* @param mixed $id the identifier of scan |
550
|
|
|
* @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) |
551
|
|
|
* |
552
|
|
|
* @return \Psr\Http\Message\ResponseInterface|null |
553
|
|
|
*/ |
554
|
|
|
public function scansResume(string $id, string $fetch = self::FETCH_OBJECT) |
555
|
|
|
{ |
556
|
|
|
return $this->executePsr7Endpoint(new \Montross50\NetsparkerCloud\SDK\Endpoint\ScansResume($id), $fetch); |
557
|
|
|
} |
558
|
|
|
|
559
|
|
|
/** |
560
|
|
|
* @param \Montross50\NetsparkerCloud\SDK\Model\BaseScanApiModel $model Contains data that is required to create a retest scan. Base scan should be in completed state. |
561
|
|
|
* @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) |
562
|
|
|
* |
563
|
|
|
* @return \Montross50\NetsparkerCloud\SDK\Model\ScanTaskModel|\Psr\Http\Message\ResponseInterface|null |
564
|
|
|
*/ |
565
|
|
|
public function scansRetest(\Montross50\NetsparkerCloud\SDK\Model\BaseScanApiModel $model, string $fetch = self::FETCH_OBJECT) |
566
|
|
|
{ |
567
|
|
|
return $this->executePsr7Endpoint(new \Montross50\NetsparkerCloud\SDK\Endpoint\ScansRetest($model), $fetch); |
568
|
|
|
} |
569
|
|
|
|
570
|
|
|
/** |
571
|
|
|
* @param \Montross50\NetsparkerCloud\SDK\Model\NewScheduledScanApiModel $model contains data that required to create a scheduled scan |
572
|
|
|
* @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) |
573
|
|
|
* |
574
|
|
|
* @return \Montross50\NetsparkerCloud\SDK\Model\UpdateScheduledScanModel|\Psr\Http\Message\ResponseInterface|null |
575
|
|
|
*/ |
576
|
|
|
public function scansSchedule(\Montross50\NetsparkerCloud\SDK\Model\NewScheduledScanApiModel $model, string $fetch = self::FETCH_OBJECT) |
577
|
|
|
{ |
578
|
|
|
return $this->executePsr7Endpoint(new \Montross50\NetsparkerCloud\SDK\Endpoint\ScansSchedule($model), $fetch); |
579
|
|
|
} |
580
|
|
|
|
581
|
|
|
/** |
582
|
|
|
* @param \Montross50\NetsparkerCloud\SDK\Model\NewScheduledIncrementalScanApiModel $model contains data that required to create a scheduled scan |
583
|
|
|
* @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) |
584
|
|
|
* |
585
|
|
|
* @return \Montross50\NetsparkerCloud\SDK\Model\UpdateScheduledScanModel|\Psr\Http\Message\ResponseInterface|null |
586
|
|
|
*/ |
587
|
|
|
public function scansScheduleIncremental(\Montross50\NetsparkerCloud\SDK\Model\NewScheduledIncrementalScanApiModel $model, string $fetch = self::FETCH_OBJECT) |
588
|
|
|
{ |
589
|
|
|
return $this->executePsr7Endpoint(new \Montross50\NetsparkerCloud\SDK\Endpoint\ScansScheduleIncremental($model), $fetch); |
590
|
|
|
} |
591
|
|
|
|
592
|
|
|
/** |
593
|
|
|
* @param string $id the identifier of scan |
594
|
|
|
* @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) |
595
|
|
|
* |
596
|
|
|
* @return \Montross50\NetsparkerCloud\SDK\Model\ApiScanStatusModel|\Psr\Http\Message\ResponseInterface|null |
597
|
|
|
*/ |
598
|
|
|
public function scansStatus(string $id, string $fetch = self::FETCH_OBJECT) |
599
|
|
|
{ |
600
|
|
|
return $this->executePsr7Endpoint(new \Montross50\NetsparkerCloud\SDK\Endpoint\ScansStatus($id), $fetch); |
601
|
|
|
} |
602
|
|
|
|
603
|
|
|
/** |
604
|
|
|
* @param mixed $id the identifier of scan |
605
|
|
|
* @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) |
606
|
|
|
* |
607
|
|
|
* @throws \Montross50\NetsparkerCloud\SDK\Exception\ScansUnscheduleNotFoundException |
608
|
|
|
* |
609
|
|
|
* @return \Psr\Http\Message\ResponseInterface|null |
610
|
|
|
*/ |
611
|
|
|
public function scansUnschedule(string $id, string $fetch = self::FETCH_OBJECT) |
612
|
|
|
{ |
613
|
|
|
return $this->executePsr7Endpoint(new \Montross50\NetsparkerCloud\SDK\Endpoint\ScansUnschedule($id), $fetch); |
614
|
|
|
} |
615
|
|
|
|
616
|
|
|
/** |
617
|
|
|
* @param \Montross50\NetsparkerCloud\SDK\Model\UpdateScheduledScanApiModel $model contains data that is required to update a scheduled scan |
618
|
|
|
* @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) |
619
|
|
|
* |
620
|
|
|
* @return \Montross50\NetsparkerCloud\SDK\Model\UpdateScheduledScanApiModel|\Psr\Http\Message\ResponseInterface|null |
621
|
|
|
*/ |
622
|
|
|
public function scansUpdateScheduled(\Montross50\NetsparkerCloud\SDK\Model\UpdateScheduledScanApiModel $model, string $fetch = self::FETCH_OBJECT) |
623
|
|
|
{ |
624
|
|
|
return $this->executePsr7Endpoint(new \Montross50\NetsparkerCloud\SDK\Endpoint\ScansUpdateScheduled($model), $fetch); |
625
|
|
|
} |
626
|
|
|
|
627
|
|
|
/** |
628
|
|
|
* @param \Montross50\NetsparkerCloud\SDK\Model\UpdateScheduledIncrementalScanApiModel $model contains data that is required to update a scheduled scan |
629
|
|
|
* @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) |
630
|
|
|
* |
631
|
|
|
* @return \Montross50\NetsparkerCloud\SDK\Model\UpdateScheduledScanApiModel|\Psr\Http\Message\ResponseInterface|null |
632
|
|
|
*/ |
633
|
|
|
public function scansUpdateScheduledIncremental(\Montross50\NetsparkerCloud\SDK\Model\UpdateScheduledIncrementalScanApiModel $model, string $fetch = self::FETCH_OBJECT) |
634
|
|
|
{ |
635
|
|
|
return $this->executePsr7Endpoint(new \Montross50\NetsparkerCloud\SDK\Endpoint\ScansUpdateScheduledIncremental($model), $fetch); |
636
|
|
|
} |
637
|
|
|
|
638
|
|
|
/** |
639
|
|
|
* @param \Montross50\NetsparkerCloud\SDK\Model\FormAuthenticationVerificationApiModel $model contains form authentication settings |
640
|
|
|
* @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) |
641
|
|
|
* |
642
|
|
|
* @return \Montross50\NetsparkerCloud\SDK\Model\AuthVerificationApiResult|\Psr\Http\Message\ResponseInterface|null |
643
|
|
|
*/ |
644
|
|
|
public function scansVerifyFormAuth(\Montross50\NetsparkerCloud\SDK\Model\FormAuthenticationVerificationApiModel $model, string $fetch = self::FETCH_OBJECT) |
645
|
|
|
{ |
646
|
|
|
return $this->executePsr7Endpoint(new \Montross50\NetsparkerCloud\SDK\Endpoint\ScansVerifyFormAuth($model), $fetch); |
647
|
|
|
} |
648
|
|
|
|
649
|
|
|
/** |
650
|
|
|
* @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) |
651
|
|
|
* |
652
|
|
|
* @return \Montross50\NetsparkerCloud\SDK\Model\VulnerabilityTemplate[]|\Psr\Http\Message\ResponseInterface|null |
653
|
|
|
*/ |
654
|
|
|
public function vulnerabilityList(string $fetch = self::FETCH_OBJECT) |
655
|
|
|
{ |
656
|
|
|
return $this->executePsr7Endpoint(new \Montross50\NetsparkerCloud\SDK\Endpoint\VulnerabilityList(), $fetch); |
657
|
|
|
} |
658
|
|
|
|
659
|
|
|
/** |
660
|
|
|
* @param \Montross50\NetsparkerCloud\SDK\Model\DeleteWebsiteGroupApiModel $model the model |
661
|
|
|
* @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) |
662
|
|
|
* |
663
|
|
|
* @return \Psr\Http\Message\ResponseInterface|null |
664
|
|
|
*/ |
665
|
|
|
public function websiteGroupsDelete(\Montross50\NetsparkerCloud\SDK\Model\DeleteWebsiteGroupApiModel $model, string $fetch = self::FETCH_OBJECT) |
666
|
|
|
{ |
667
|
|
|
return $this->executePsr7Endpoint(new \Montross50\NetsparkerCloud\SDK\Endpoint\WebsiteGroupsDelete($model), $fetch); |
668
|
|
|
} |
669
|
|
|
|
670
|
|
|
/** |
671
|
|
|
* @param string $id id |
672
|
|
|
* @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) |
673
|
|
|
* |
674
|
|
|
* @return \Montross50\NetsparkerCloud\SDK\Model\WebsiteApiModel|\Psr\Http\Message\ResponseInterface|null |
675
|
|
|
*/ |
676
|
|
|
public function websiteGroupsGet(string $id, string $fetch = self::FETCH_OBJECT) |
677
|
|
|
{ |
678
|
|
|
return $this->executePsr7Endpoint(new \Montross50\NetsparkerCloud\SDK\Endpoint\WebsiteGroupsGet($id), $fetch); |
679
|
|
|
} |
680
|
|
|
|
681
|
|
|
/** |
682
|
|
|
* @param array $queryParameters { |
683
|
|
|
* |
684
|
|
|
* @var int $page the page size |
685
|
|
|
* @var int $pageSize The page size. Page size can be any value between 1 and 200. |
686
|
|
|
* } |
687
|
|
|
* |
688
|
|
|
* @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) |
689
|
|
|
* |
690
|
|
|
* @return \Montross50\NetsparkerCloud\SDK\Model\WebsiteGroupListApiResult|\Psr\Http\Message\ResponseInterface|null |
691
|
|
|
*/ |
692
|
|
|
public function websiteGroupsList(array $queryParameters = [], string $fetch = self::FETCH_OBJECT) |
693
|
|
|
{ |
694
|
|
|
return $this->executePsr7Endpoint(new \Montross50\NetsparkerCloud\SDK\Endpoint\WebsiteGroupsList($queryParameters), $fetch); |
695
|
|
|
} |
696
|
|
|
|
697
|
|
|
/** |
698
|
|
|
* @param \Montross50\NetsparkerCloud\SDK\Model\NewWebsiteGroupApiModel $model the model |
699
|
|
|
* @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) |
700
|
|
|
* |
701
|
|
|
* @return \Montross50\NetsparkerCloud\SDK\Model\WebsiteGroupApiModel|\Psr\Http\Message\ResponseInterface|null |
702
|
|
|
*/ |
703
|
|
|
public function websiteGroupsNew(\Montross50\NetsparkerCloud\SDK\Model\NewWebsiteGroupApiModel $model, string $fetch = self::FETCH_OBJECT) |
704
|
|
|
{ |
705
|
|
|
return $this->executePsr7Endpoint(new \Montross50\NetsparkerCloud\SDK\Endpoint\WebsiteGroupsNew($model), $fetch); |
706
|
|
|
} |
707
|
|
|
|
708
|
|
|
/** |
709
|
|
|
* @param \Montross50\NetsparkerCloud\SDK\Model\UpdateWebsiteGroupApiModel $model the model |
710
|
|
|
* @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) |
711
|
|
|
* |
712
|
|
|
* @return \Montross50\NetsparkerCloud\SDK\Model\WebsiteGroupApiModel|\Psr\Http\Message\ResponseInterface|null |
713
|
|
|
*/ |
714
|
|
|
public function websiteGroupsUpdate(\Montross50\NetsparkerCloud\SDK\Model\UpdateWebsiteGroupApiModel $model, string $fetch = self::FETCH_OBJECT) |
715
|
|
|
{ |
716
|
|
|
return $this->executePsr7Endpoint(new \Montross50\NetsparkerCloud\SDK\Endpoint\WebsiteGroupsUpdate($model), $fetch); |
717
|
|
|
} |
718
|
|
|
|
719
|
|
|
/** |
720
|
|
|
* @param \Montross50\NetsparkerCloud\SDK\Model\DeleteWebsiteApiModel $model the model |
721
|
|
|
* @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) |
722
|
|
|
* |
723
|
|
|
* @return \Psr\Http\Message\ResponseInterface|null |
724
|
|
|
*/ |
725
|
|
|
public function websitesDelete(\Montross50\NetsparkerCloud\SDK\Model\DeleteWebsiteApiModel $model, string $fetch = self::FETCH_OBJECT) |
726
|
|
|
{ |
727
|
|
|
return $this->executePsr7Endpoint(new \Montross50\NetsparkerCloud\SDK\Endpoint\WebsitesDelete($model), $fetch); |
728
|
|
|
} |
729
|
|
|
|
730
|
|
|
/** |
731
|
|
|
* @param string $id the website id |
732
|
|
|
* @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) |
733
|
|
|
* |
734
|
|
|
* @return \Montross50\NetsparkerCloud\SDK\Model\WebsiteApiModel|\Psr\Http\Message\ResponseInterface|null |
735
|
|
|
*/ |
736
|
|
|
public function websitesGet(string $id, string $fetch = self::FETCH_OBJECT) |
737
|
|
|
{ |
738
|
|
|
return $this->executePsr7Endpoint(new \Montross50\NetsparkerCloud\SDK\Endpoint\WebsitesGet($id), $fetch); |
739
|
|
|
} |
740
|
|
|
|
741
|
|
|
/** |
742
|
|
|
* @param array $queryParameters { |
743
|
|
|
* |
744
|
|
|
* @var int $page the page index |
745
|
|
|
* @var int $pageSize The page size. Page size can be any value between 1 and 200. |
746
|
|
|
* } |
747
|
|
|
* |
748
|
|
|
* @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) |
749
|
|
|
* |
750
|
|
|
* @return \Montross50\NetsparkerCloud\SDK\Model\WebsiteListApiResult|\Psr\Http\Message\ResponseInterface|null |
751
|
|
|
*/ |
752
|
|
|
public function websitesList(array $queryParameters = [], string $fetch = self::FETCH_OBJECT) |
753
|
|
|
{ |
754
|
|
|
return $this->executePsr7Endpoint(new \Montross50\NetsparkerCloud\SDK\Endpoint\WebsitesList($queryParameters), $fetch); |
755
|
|
|
} |
756
|
|
|
|
757
|
|
|
/** |
758
|
|
|
* @param \Montross50\NetsparkerCloud\SDK\Model\NewWebsiteApiModel $model the model |
759
|
|
|
* @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) |
760
|
|
|
* |
761
|
|
|
* @return \Montross50\NetsparkerCloud\SDK\Model\WebsiteApiModel|\Psr\Http\Message\ResponseInterface|null |
762
|
|
|
*/ |
763
|
|
|
public function websitesNew(\Montross50\NetsparkerCloud\SDK\Model\NewWebsiteApiModel $model, string $fetch = self::FETCH_OBJECT) |
764
|
|
|
{ |
765
|
|
|
return $this->executePsr7Endpoint(new \Montross50\NetsparkerCloud\SDK\Endpoint\WebsitesNew($model), $fetch); |
766
|
|
|
} |
767
|
|
|
|
768
|
|
|
/** |
769
|
|
|
* @param string $websiteUrl the website URL |
770
|
|
|
* @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) |
771
|
|
|
* |
772
|
|
|
* @return \Montross50\NetsparkerCloud\SDK\Model\SendVerificationEmailModel|\Psr\Http\Message\ResponseInterface|null |
773
|
|
|
*/ |
774
|
|
|
public function websitesSendVerificationEmail(string $websiteUrl, string $fetch = self::FETCH_OBJECT) |
775
|
|
|
{ |
776
|
|
|
return $this->executePsr7Endpoint(new \Montross50\NetsparkerCloud\SDK\Endpoint\WebsitesSendVerificationEmail($websiteUrl), $fetch); |
777
|
|
|
} |
778
|
|
|
|
779
|
|
|
/** |
780
|
|
|
* @param \Montross50\NetsparkerCloud\SDK\Model\StartVerificationApiModel $model the model |
781
|
|
|
* @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) |
782
|
|
|
* |
783
|
|
|
* @return \Montross50\NetsparkerCloud\SDK\Model\StartVerificationResult|\Psr\Http\Message\ResponseInterface|null |
784
|
|
|
*/ |
785
|
|
|
public function websitesStartVerification(\Montross50\NetsparkerCloud\SDK\Model\StartVerificationApiModel $model, string $fetch = self::FETCH_OBJECT) |
786
|
|
|
{ |
787
|
|
|
return $this->executePsr7Endpoint(new \Montross50\NetsparkerCloud\SDK\Endpoint\WebsitesStartVerification($model), $fetch); |
788
|
|
|
} |
789
|
|
|
|
790
|
|
|
/** |
791
|
|
|
* @param \Montross50\NetsparkerCloud\SDK\Model\UpdateWebsiteApiModel $model the model |
792
|
|
|
* @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) |
793
|
|
|
* |
794
|
|
|
* @return \Montross50\NetsparkerCloud\SDK\Model\WebsiteApiModel|\Psr\Http\Message\ResponseInterface|null |
795
|
|
|
*/ |
796
|
|
|
public function websitesUpdate(\Montross50\NetsparkerCloud\SDK\Model\UpdateWebsiteApiModel $model, string $fetch = self::FETCH_OBJECT) |
797
|
|
|
{ |
798
|
|
|
return $this->executePsr7Endpoint(new \Montross50\NetsparkerCloud\SDK\Endpoint\WebsitesUpdate($model), $fetch); |
799
|
|
|
} |
800
|
|
|
|
801
|
|
|
/** |
802
|
|
|
* @param array $queryParameters { |
803
|
|
|
* |
804
|
|
|
* @var string $websiteUrl The website URL. |
805
|
|
|
* } |
806
|
|
|
* |
807
|
|
|
* @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) |
808
|
|
|
* |
809
|
|
|
* @throws \Montross50\NetsparkerCloud\SDK\Exception\WebsitesVerificationFileNotFoundException |
810
|
|
|
* |
811
|
|
|
* @return \Psr\Http\Message\ResponseInterface|null |
812
|
|
|
*/ |
813
|
|
|
public function websitesVerificationFile(array $queryParameters = [], string $fetch = self::FETCH_OBJECT) |
814
|
|
|
{ |
815
|
|
|
return $this->executePsr7Endpoint(new \Montross50\NetsparkerCloud\SDK\Endpoint\WebsitesVerificationFile($queryParameters), $fetch); |
816
|
|
|
} |
817
|
|
|
|
818
|
|
|
/** |
819
|
|
|
* @param \Montross50\NetsparkerCloud\SDK\Model\VerifyApiModel $model the model |
820
|
|
|
* @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) |
821
|
|
|
* |
822
|
|
|
* @return \Psr\Http\Message\ResponseInterface|null |
823
|
|
|
*/ |
824
|
|
|
public function websitesVerify(\Montross50\NetsparkerCloud\SDK\Model\VerifyApiModel $model, string $fetch = self::FETCH_OBJECT) |
825
|
|
|
{ |
826
|
|
|
return $this->executePsr7Endpoint(new \Montross50\NetsparkerCloud\SDK\Endpoint\WebsitesVerify($model), $fetch); |
827
|
|
|
} |
828
|
|
|
|
829
|
|
|
public static function create($httpClient = null) |
830
|
|
|
{ |
831
|
|
|
if (null === $httpClient) { |
832
|
|
|
$httpClient = \Http\Discovery\HttpClientDiscovery::find(); |
833
|
|
|
$plugins = []; |
834
|
|
|
$uri = \Http\Discovery\UriFactoryDiscovery::find()->createUri('https://www.netsparkercloud.com'); |
835
|
|
|
$plugins[] = new \Http\Client\Common\Plugin\AddHostPlugin($uri); |
836
|
|
|
$httpClient = new \Http\Client\Common\PluginClient($httpClient, $plugins); |
837
|
|
|
} |
838
|
|
|
$messageFactory = \Http\Discovery\MessageFactoryDiscovery::find(); |
839
|
|
|
$streamFactory = \Http\Discovery\StreamFactoryDiscovery::find(); |
840
|
|
|
$serializer = new \Symfony\Component\Serializer\Serializer(\Montross50\NetsparkerCloud\SDK\Normalizer\NormalizerFactory::create(), [new \Symfony\Component\Serializer\Encoder\JsonEncoder(new \Symfony\Component\Serializer\Encoder\JsonEncode(), new \Symfony\Component\Serializer\Encoder\JsonDecode())]); |
841
|
|
|
|
842
|
|
|
return new static($httpClient, $messageFactory, $serializer, $streamFactory); |
843
|
|
|
} |
844
|
|
|
} |
845
|
|
|
|