Skip to content

Commit 3adbb39

Browse files
committed
New methods for Net::SecurityCenter::API::ScanResult and Net::SecurityCenter::API::Policy
- Added "Net::SecurityCenter::API::ScanResult->delete" method - Added new methods for Net::SecurityCenter::API::Policy (edit, create, delete, copy) - New tests
1 parent b9812d1 commit 3adbb39

35 files changed

+589
-63
lines changed

Changes

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
Revision history for Net::SecurityCenter
22

3+
0.311 2023-05-17
4+
- Added "Net::SecurityCenter::API::ScanResult->delete" method
5+
- Added new methods for Net::SecurityCenter::API::Policy (edit, create, delete, copy)
6+
37
0.310 2021-03-01
48
- Added "Net::SecurityCenter::API::Ticket" class
59
- Fixed "ssl_opts" param in "Net::SecurityCenter::REST"

MANIFEST

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,9 @@ t/mock/rest-pluginFamily-1000030-get.json
4848
t/mock/rest-pluginFamily-2-plugins-get.json
4949
t/mock/rest-pluginFamily-get.json
5050
t/mock/rest-policy-1-get.json
51+
t/mock/rest-policy-delete.json
5152
t/mock/rest-policy-get.json
53+
t/mock/rest-policy-post.json
5254
t/mock/rest-report-1-get.json
5355
t/mock/rest-report-get.json
5456
t/mock/rest-repository-37-get.json
@@ -60,6 +62,7 @@ t/mock/rest-scanner-5-get.json
6062
t/mock/rest-scanner-5-health-get.json
6163
t/mock/rest-scanner-get.json
6264
t/mock/rest-scanResult-11-get.json
65+
t/mock/rest-scanResult-86-delete.json
6366
t/mock/rest-scanResult-86-pause-post.json
6467
t/mock/rest-scanResult-86-resume-post.json
6568
t/mock/rest-scanResult-86-stop-post.json

bin/sc-api

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ L<Giuseppe Di Terlizzi|https://metacpan.org/author/gdt>
201201

202202
=head1 COPYRIGHT AND LICENSE
203203

204-
Copyright © 2018-2021 L<Giuseppe Di Terlizzi|https://metacpan.org/author/gdt>
204+
Copyright © 2018-2023 L<Giuseppe Di Terlizzi|https://metacpan.org/author/gdt>
205205

206206
You may use and distribute this module according to the same terms
207207
that Perl is distributed under.

lib/App/TenableSC.pm

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ use App::TenableSC::Logger;
1414

1515
use Net::SecurityCenter;
1616

17-
our $VERSION = '0.310';
17+
our $VERSION = '0.311';
1818

1919
my @global_options = (
2020
'help|h',
@@ -307,7 +307,7 @@ L<https://github.com/giterlizzi/perl-Net-SecurityCenter>
307307
308308
=head1 LICENSE AND COPYRIGHT
309309
310-
This software is copyright (c) 2018-2021 by Giuseppe Di Terlizzi.
310+
This software is copyright (c) 2018-2023 by Giuseppe Di Terlizzi.
311311
312312
This is free software; you can redistribute it and/or modify it under
313313
the same terms as the Perl 5 programming language system itself.

lib/App/TenableSC/API.pm

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ use parent 'App::TenableSC';
1010

1111
use App::TenableSC::Utils qw(:all);
1212

13-
our $VERSION = '0.310';
13+
our $VERSION = '0.311';
1414

1515
@App::TenableSC::command_options = (
1616
'output|format|f=s',
@@ -304,7 +304,7 @@ L<https://github.com/giterlizzi/perl-Net-SecurityCenter>
304304
305305
=head1 LICENSE AND COPYRIGHT
306306
307-
This software is copyright (c) 2018-2021 by Giuseppe Di Terlizzi.
307+
This software is copyright (c) 2018-2023 by Giuseppe Di Terlizzi.
308308
309309
This is free software; you can redistribute it and/or modify it under
310310
the same terms as the Perl 5 programming language system itself.

lib/App/TenableSC/Logger.pm

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ use warnings;
55

66
use Time::Piece;
77

8-
our $VERSION = '0.310';
8+
our $VERSION = '0.311';
99

1010
#-------------------------------------------------------------------------------
1111
# CONSTRUCTOR
@@ -115,7 +115,7 @@ L<https://github.com/giterlizzi/perl-Net-SecurityCenter>
115115
116116
=head1 LICENSE AND COPYRIGHT
117117
118-
This software is copyright (c) 2018-2021 by Giuseppe Di Terlizzi.
118+
This software is copyright (c) 2018-2023 by Giuseppe Di Terlizzi.
119119
120120
This is free software; you can redistribute it and/or modify it under
121121
the same terms as the Perl 5 programming language system itself.

lib/App/TenableSC/Utils.pm

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ use Term::ReadKey;
99

1010
use Exporter qw(import);
1111

12-
our $VERSION = '0.310';
12+
our $VERSION = '0.311';
1313

1414
our @EXPORT_OK = qw(
1515
@@ -236,7 +236,7 @@ L<https://github.com/giterlizzi/perl-Net-SecurityCenter>
236236
237237
=head1 LICENSE AND COPYRIGHT
238238
239-
This software is copyright (c) 2018-2021 by Giuseppe Di Terlizzi.
239+
This software is copyright (c) 2018-2023 by Giuseppe Di Terlizzi.
240240
241241
This is free software; you can redistribute it and/or modify it under
242242
the same terms as the Perl 5 programming language system itself.

lib/Net/SecurityCenter.pm

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ use parent 'Net::SecurityCenter::Base';
77

88
use Net::SecurityCenter::REST;
99

10-
our $VERSION = '0.310';
10+
our $VERSION = '0.311';
1111

1212
my @api = qw(
1313
analysis
@@ -278,7 +278,7 @@ L<https://github.com/giterlizzi/perl-Net-SecurityCenter>
278278
279279
=head1 LICENSE AND COPYRIGHT
280280
281-
This software is copyright (c) 2018-2021 by Giuseppe Di Terlizzi.
281+
This software is copyright (c) 2018-2023 by Giuseppe Di Terlizzi.
282282
283283
This is free software; you can redistribute it and/or modify it under
284284
the same terms as the Perl 5 programming language system itself.

lib/Net/SecurityCenter/API/Analysis.pm

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ use parent 'Net::SecurityCenter::Base';
99

1010
use Net::SecurityCenter::Utils qw(:all);
1111

12-
our $VERSION = '0.310';
12+
our $VERSION = '0.311';
1313

1414
my $common_template = {
1515
tool => {
@@ -892,7 +892,7 @@ L<https://github.com/giterlizzi/perl-Net-SecurityCenter>
892892
893893
=head1 LICENSE AND COPYRIGHT
894894
895-
This software is copyright (c) 2018-2021 by Giuseppe Di Terlizzi.
895+
This software is copyright (c) 2018-2023 by Giuseppe Di Terlizzi.
896896
897897
This is free software; you can redistribute it and/or modify it under
898898
the same terms as the Perl 5 programming language system itself.

lib/Net/SecurityCenter/API/Credential.pm

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ use parent 'Net::SecurityCenter::Base';
99

1010
use Net::SecurityCenter::Utils qw(:all);
1111

12-
our $VERSION = '0.310';
12+
our $VERSION = '0.311';
1313

1414
my $common_template = {
1515

@@ -181,7 +181,7 @@ L<https://github.com/giterlizzi/perl-Net-SecurityCenter>
181181
182182
=head1 LICENSE AND COPYRIGHT
183183
184-
This software is copyright (c) 2018-2021 by Giuseppe Di Terlizzi.
184+
This software is copyright (c) 2018-2023 by Giuseppe Di Terlizzi.
185185
186186
This is free software; you can redistribute it and/or modify it under
187187
the same terms as the Perl 5 programming language system itself.

0 commit comments

Comments
 (0)