y => $args->{validateOnly}};
# Delete the unassigned fields in this object for a more concise JSON payload
remove_unassigned_fields($self, $args);
bless $self, $class;
return $self;
}
1;
=> $args->{results}};
# Delete the unassigned fields in this object for a more concise JSON payload
remove_unassigned_fields($self, $args);
bless $self, $class;
return $self;
}
1;
eMask => $args->{updateMask}};
# Delete the unassigned fields in this object for a more concise JSON payload
remove_unassigned_fields($self, $args);
bless $self, $class;
return $self;
}
1;
eMask => $args->{updateMask}};
# Delete the unassigned fields in this object for a more concise JSON payload
remove_unassigned_fields($self, $args);
bless $self, $class;
return $self;
}
1;
=> $args->{metrics}};
# Delete the unassigned fields in this object for a more concise JSON payload
remove_unassigned_fields($self, $args);
bless $self, $class;
return $self;
}
1;
Link => $args->{productLink}};
# Delete the unassigned fields in this object for a more concise JSON payload
remove_unassigned_fields($self, $args);
bless $self, $class;
return $self;
}
1;
nly => $args->{validateOnly}};
# Delete the unassigned fields in this object for a more concise JSON payload
remove_unassigned_fields($self, $args);
bless $self, $class;
return $self;
}
1;
Common::CrowdSec;
use strict;
use Date::Parse;
use Digest::SHA qw(sha256_hex);
use JSON qw(from_json to_json);
use Mouse::Role;
use POSIX qw(strftime);
use Lemonldap::NG::Common::UserAgent;
us
ario_version => $VERSION,
leakspeed => '1s',
remediation => JSON::true,
simulated => JSON::false,
capacity => 1,
};
has ua => (
is => 'rw',
laz
a->default_headers->header( 'Accept' => 'application/json' );
$ua->default_headers->header( 'Content-Type' => 'application/json' );
return $ua;
}
);
has token => ( is =>
use warnings;
use autodie qw(:all);
use File::Glob ':glob';
use File::Slurp;
use File::stat;
use JSON::MaybeXS;
use POSIX qw(strftime);
use Readonly;
Readonly my %config => (
github_user => 'nigelh
r_db => 'cover_db/cover.json',
output => 'cover_html/index.html'
);
# Read and decode coverage data
my $json_text = read_file($config{cover_db});
my $data = decode_json($json_text);
my $coverage_pc
ob("coverage_history/*.json");
# Cache historical data instead of reading for each file
my %historical_cache;
for my $hist_file (@history_files) {
my $json = eval { decode_json(read_file($hist_file)
use IO::Select;
use Lemonldap::NG::Common::FormEncode;
use Lemonldap::NG::Common::UserAgent;
use JSON;
use Protocol::WebSocket::Client;
our $VERSION = '2.22.0';
use constant DEFAULTWS => 'localhost
Not a hash msg' unless ref $msg eq 'HASH';
$msg->{channel} = $channel;
my $j = eval { JSON::to_json($msg) };
if ($@) {
$self->logger->error("$pr message error: $@");
return
if ( $buf =~ /^{.*}$/ ) {
eval {
my $data = JSON::decode_json($buf);
if ( $data->{channel}
&& defined $self-
ame => $args->{resourceName}};
# Delete the unassigned fields in this object for a more concise JSON payload
remove_unassigned_fields($self, $args);
bless $self, $class;
return $self;
}
1;
p::NG::Portal::Plugins::OidcOfflineTokens;
use strict;
use Mouse;
use Date::Parse;
use JSON qw(from_json to_json);
use Time::Local;
use Lemonldap::NG::Portal::Main::Constants qw(
PE_OK
PE_ERROR
$req,
"oidcOfflineTokens",
params => {
sessions => to_json($activeSessions),
js =>
"$self->{p}->{staticPrefix}/commo
session $id");
$session->remove( {
hashStore => 0
}
);
#TODO : Call BackChannelLogout if needed
return $self->p->sendJSONresponse( $req, { result => 1 } );
}
1;
sub beforeRetry {
my ($self) = @_;
require Lemonldap::NG::Common::UserAgent;
require JSON;
my $ua = Lemonldap::NG::Common::UserAgent->new($self);
$ua->timeout(3);
my $res = 0;
$resp = $ua->get($patroniUrl);
if ( $resp->is_success ) {
my $c = eval { JSON::from_json( $resp->decoded_content ) };
if ( $@ or !$c->{members} or ref( $c->{members} )
ommon::Session;
use Lemonldap::NG::Common::Safelib;
use Lemonldap::NG::Common::PSGI::Request;
use JSON;
use Mouse;
use Time::HiRes;
use POSIX qw(strftime);
use constant defaultLogger => 'Lemonldap::N
s logLevel => ( is => 'rw' );
has force => ( is => 'rw' );
has audit => ( is => 'rw' );
has json => ( is => 'rw' );
has conf => (
is => 'ro',
default => sub {
my $ca = L
)
);
}
my $log = "Session purge completed: ";
if ( $self->json ) {
$log .= to_json($return_stats);
}
else {
my @logentries;
for my $type ( "to
ame => $args->{resourceName}};
# Delete the unassigned fields in this object for a more concise JSON payload
remove_unassigned_fields($self, $args);
bless $self, $class;
return $self;
}
1;
=> $args->{resourceName}};
# Delete the unassigned fields in this object for a more concise JSON payload
remove_unassigned_fields($self, $args);
bless $self, $class;
return $self;
}
1;
Spec::Functions qw[catfile catdir rel2abs abs2rel splitdir curdir];
use JSON::PP 2 qw[encode_json decode_json];
use Config;
use Carp qw[croak];
use Env qw[@PATH];
use H
ckBin;
#
field $action : param //= 'build';
field $meta = CPAN::Meta->load_file('META.json');
field $version : param //= '3.2.2';
field $prebuilt : param //= 1;
field $archive
: param //= '';
field $cwd = cwd()->absolute;
#
#
ADJUST {
-e 'META.json' or die "No META information provided\n";
}
method write_file( $filename, $content ) { pa
eMask => $args->{updateMask}};
# Delete the unassigned fields in this object for a more concise JSON payload
remove_unassigned_fields($self, $args);
bless $self, $class;
return $self;
}
1;
query => $args->{query}};
# Delete the unassigned fields in this object for a more concise JSON payload
remove_unassigned_fields($self, $args);
bless $self, $class;
return $self;
}
1;
= {result => $args->{result}};
# Delete the unassigned fields in this object for a more concise JSON payload
remove_unassigned_fields($self, $args);
bless $self, $class;
return $self;
}
1;