ERSION = '0.1.9';
use strict;
use warnings;
use 5.010;
use parent qw(Device::Firewall::PaloAlto::JSON);
use Device::Firewall::PaloAlto::Op::ARPEntry;
# VERSION
# PODNAME
# ABSTRACT: Palo Alto firew
ION
# PODNAME
# ABSTRACT: Palo Alto firewall interface
use parent qw(Device::Firewall::PaloAlto::JSON);
sub _new {
my $class = shift;
my ($api_return) = @_;
return $api_return unless $
ERSION = '0.1.9';
use strict;
use warnings;
use 5.010;
use parent qw(Device::Firewall::PaloAlto::JSON);
use Device::Firewall::PaloAlto::Errors qw(ERROR);
# VERSION
# PODNAME
# ABSTRACT: NTP synchro
NAME
# ABSTRACT: Palo Alto firewall system information
use parent qw(Device::Firewall::PaloAlto::JSON);
sub _new {
my $class = shift;
my ($api_return) = @_;
my %system_info = %{$api_ret
ERSION = '0.1.9';
use strict;
use warnings;
use 5.010;
use parent qw(Device::Firewall::PaloAlto::JSON);
# VERSION
# PODNAME
# ABSTRACT: Palo Alto firewall global system counter
sub _new {
my $
ERSION = '0.1.9';
use strict;
use warnings;
use 5.010;
use parent qw(Device::Firewall::PaloAlto::JSON);
# VERSION
# PODNAME
# ABSTRACT: Palo Alto high availability information.
sub _new {
my
ERSION = '0.1.9';
use strict;
use warnings;
use 5.010;
use parent qw(Device::Firewall::PaloAlto::JSON);
use Device::Firewall::PaloAlto::Errors qw(ERROR);
use Regexp::Common qw(time);
use DateTime;
my $ret = eval {
require JSON::PP;
JSON::PP->import();
1;
};
if (!$ret and $@) {
push(@missingDependencies, "JSON::PP");
}
my $ret = eval {
E
# ABSTRACT: Palo Alto firewall interface statistics.
use parent qw(Device::Firewall::PaloAlto::JSON);
sub _new {
my $class = shift;
my ($api_return) = @_;
# Return the Class::Error o
'decode', 'getopt';
use Mojo::URL;
use Mojo::File 'tempfile', 'path';
use Mojo::JSON 'encode_json', 'decode_json';
use App::termpub::Hyphen;
use App::termpub::Epub;
use App::termpub::Pager::Text;
rnings;
use utf8;
use Carp qw(croak);
use LWP::UserAgent;
use HTTP::Request::Common qw(POST);
use JSON::XS;
use File::Basename;
use constant APIVERSION => 1;
use constant BASEURL => 'https://api-audi
uthorization => 'OAuth ' . $self->{token});
$ua->default_header('Content-Type' => 'application/json');
$self->{ua} = $ua;
bless $self, $class;
return $self;
}
=head2 getListOfSegments()
Re
ntent;
my $json;
eval {
$json = JSON::XS->new->utf8->decode( $response->content );
};
return undef if $@;
if (exists $json->{segments}) {
for my $Segment (@{$json->{segments}}) {
package Web::NewsAPI;
our $VERSION = '0.002';
use v5.10;
use Moose;
use Readonly;
use LWP;
use JSON;
use Carp;
use DateTime::Format::ISO8601::Format;
use Scalar::Util qw(blessed);
use Web::NewsAPI
response = $self->ua->get( $uri );
if ($response->is_success) {
my $data_ref = decode_json( $response->content );
return ($data_ref->{$container}, $data_ref->{totalResults});
}
ss->_setup(@_) if @_;
no strict 'refs';
*{"$caller\::c"} = \&c;
*{"$caller\::j"} = \&Mojo::JSON::j;
}
sub _setup {
my ($class, $model, @connect) = @_;
eval "use $model; 1" or die "use $mod
Or
$mandel->collection("collection_name")->create(\%create_args)->save;
=head2 j
See L<Mojo::JSON/j>.
=head1 METHODS
=head2 import
See L</SYNOPSIS>.
=head1 AUTHOR
Jan Henning Thorsen - C<jht
$data = read_file($swagger_file);
my $schema = Swagger::Schema::V3->MooseX::DataModel::new_from_json($data);
# use the object model
say "This API consists of:";
foreach my $path (sort keys %{
package Mandel::Document;
use Mojo::Base 'Mojo::Base';
use Mojo::JSON::Pointer;
use Mojo::Util 'monkey_patch';
use Mandel::Model;
use Mango::BSON ':bson';
use Scalar::Util 'looks_like_number';
use Car
tant DEBUG => $ENV{MANDEL_CURSOR_DEBUG} ? eval 'require Data::Dumper;1' : 0;
my $POINTER = Mojo::JSON::Pointer->new;
sub id {
my $self = shift;
my $raw = $self->data;
if (@_) {
$self->di
r, model => sub {$model};
@_ = ($class, $base_class);
goto &Mojo::Base::import;
}
sub TO_JSON { shift->data }
sub validate_fields {
my $self = shift;
if (ref $self->{data} eq 'HASH') {
ge App::termpub::Epub;
use Mojo::Base -base;
use Mojo::DOM;
use Mojo::URL;
use Mojo::JSON qw(decode_json encode_json);
use Mojo::Util qw(decode encode html_unescape);
use Archive::Zip qw(:ERROR_CODES)
$content =
$self->archive->contents('META-INF/com.domgoergen.termpub.json')
|| '{}';
my $data = decode_json($content);
if ( $data->{version} == 1 ) {
$data->{position} = {
->removeMember('META-INF/com.domgoergen.termpub.json');
$self->archive->addString( encode_json($data),,
'META-INF/com.domgoergen.termpub.json' );
if ( $self->archive->writeToFileNamed
>new('/foo/bar/baz/data.json');
$base = Mojo::Path->new('/foo/bar');
# 1
$path->is_subpath_of($base);
# "baz/data.json"
$path->to_subpath_of($base);
# "baz/data.json"
$path->to_rel($base
se 5.010;
use Device::Firewall::PaloAlto::Op::Tunnel;
use parent qw(Device::Firewall::PaloAlto::JSON);
# VERSION
# PODNAME
# ABSTRACT: Palo Alto IPSEC security associations
sub _new {
my $cla
;
use warnings;
use utf8;
use Carp;
use Getopt::Long qw(GetOptionsFromArray);
use DBI;
use JSON::Parse 'json_file_to_perl';
use Data::Dumper;
use SqlBatch::AbstractConfiguration;
sub new {
my ($
croak "Configuration file '$path' not found"
unless -e $path;
}
$self->{loaded} = json_file_to_perl($path);
}
sub requirement_assertion {
my $self = shift;
my $id = shift;
ted to make
# it easier to use, and to_json() automatically prints to STDOUT.
bash% perl -MDevice::Firewall::PaloAlto -E 'fw()->op->arp_table->to_json'
=head1 DESCRIPTION
This module provide
vefify_hostname => 0)->auth->op->system_info->to_json'
# Shorter way
% perl -MDevice::Firewall::PaloAlto -E 'fw()->op->system_info->to_json'
The sub takes C<($user, $pass, $verify)> argu
hell line. An example:
bash% perl -MDevice::Firewall::PaloAlto -E 'fw()->op->system_info->to_json'
HTTP Error: 500 Can't connect to pa.localdomain:443 (certificate verify failed) - 5