ses/MIT MIT License
# @link https://gluu.org/
# @since Version 3.1.0
# @filesource
#/
use JSON::PP;
package GetClientToken; # This is the "Class"
use vars qw($VERSION);
package OxdConfig;
use vars qw($VERSION);
$VERSION = '0.01';
use strict;
use warnings;
use JSON::PP;
sub new{
my $class = shift;
my $self = {
# @static
# @var stri
our $oxdHostPort;
$oxdHostPort = 'package';
bless $self, $class;
$self->json_read;
return $self;
}
sub setOpHost {
#my ( $self, $op_host,$oxd_host_port,$authori
}
sub json_read{
my ($self) = @_;
my $filename = 'oxd-settings.json';
#my $baseUrl = $self->{_base_url};
#print $baseUrl;
my $configOBJECT;
if (open (my $configJSON, $filename))
use lib './modules';
use Attribute::Handlers;
#use strict;
use warnings;
use 5.010;
use JSON::PP;
use Data::Dumper qw(Dumper);
use utf8;
use Encode;
use File::Basename;
use warn
> shift,
# @var string $base_url Base url for log file directory and oxd-rp-setting.json file.
_base_url => dirname(__FILE__)
};
bless $self, $class;
return $self;
my $json = JSON::PP->new;
my $jsonContent = $json->decode($data);
my $accessToken = '';
if ($jsonContent->{protection_access_token}) {
$accessToken = "Bearer ".$jsonCon
@see OxdClient
# @see OxdConfig
#######################################
use JSON::PP;
package GetAuthorizationUrl;
use OxdPackages::OxdClient;
use base qw(OxdClient Class
ses/MIT MIT License
# @link https://gluu.org/
# @since Version 3.1.0
# @filesource
#/
use JSON::PP;
package OxdRegister; # This is the "Class"
use vars qw($VERSION);
$VE
use HTTP::Request::Common qw(DELETE POST GET HEAD PUT);
use HTTP::Status;
use URI::Query;
use JSON;
use URI::Escape;
use Scalar::Util;
use Log::Any qw($log);
use Carp;
use Module::Runtime qw(
".$_url."\n";
}
# body data
$body_data = to_json($body_data->to_hash) if defined $body_data && $body_data->can('to_hash'); # model to json string
my $_body_data = keys %$post_params > 1
eturn $value->datetime();
}
else {
return $value;
}
}
# Deserialize a JSON string into an object
#
# @param string $class class name is passed as a string
# @param str
$header_params->{'Content-Type'} = $self->{api_client}->select_header_content_type('application/json');
# query params
if ( exists $args{'storage'}) {
$_resource_path =~ s/\
$header_params->{'Content-Type'} = $self->{api_client}->select_header_content_type('application/json');
# query params
if ( exists $args{'storage'}) {
$_resource_path =~ s/\
$header_params->{'Content-Type'} = $self->{api_client}->select_header_content_type('application/json');
# query params
if ( exists $args{'storage'}) {
$_resource_path =~ s/\
MIT License
# @link https://gluu.org/
# @since Version 3.1.0
# @filesource
#/
use JSON::PP;
package UpdateRegistration;
use vars qw($VERSION);
$VERSION = '0.01';
MIT License
# @link https://gluu.org/
# @since Version 3.1.0
# @filesource
#/
use JSON::PP;
package OxdSetupClient; # This is the "Class"
use vars qw($VERSION);
eturn !$self->success;
}
sub is_success {
my $self = shift;
return $self->success;
}
sub TO_JSON {
my $self = shift;
my %res = map { $_ => $self->{$_} } keys %$self;
return \%res;
}
1;
=
>content({text => 'Success', code => 0});
The contents of a successful HEC request (decoded from JSON)
=head2 is_error
my $is_error = $res->is_error;
Returns true if the response was an error.
r a hash reference with attribute values.
=head2 TO_JSON
my $hash = $res->TO_JSON;
Returns a JSON encoding friendly hashref for use with L<JSON::XS>
=head1 SEE ALSO
L<Splunk::HEC::Request>, L<S
Object::BarcodeBuildersList;
require 5.6.0;
use strict;
use warnings;
use utf8;
use JSON qw(decode_json);
use Data::Dumper;
use Module::Runtime qw(use_module);
use Log::Any qw($log);
use Da
:Object::ChecksumValidation;
require 5.6.0;
use strict;
use warnings;
use utf8;
use JSON qw(decode_json);
use Data::Dumper;
use Module::Runtime qw(use_module);
use Log::Any qw($log);
use Da
eCloud::Object::NumberStyle;
require 5.6.0;
use strict;
use warnings;
use utf8;
use JSON qw(decode_json);
use Data::Dumper;
use Module::Runtime qw(use_module);
use Log::Any qw($log);
use Da
Cloud::Object::SectionStart;
require 5.6.0;
use strict;
use warnings;
use utf8;
use JSON qw(decode_json);
use Data::Dumper;
use Module::Runtime qw(use_module);
use Log::Any qw($log);
use Da
ject::PageVerticalAlignment;
require 5.6.0;
use strict;
use warnings;
use utf8;
use JSON qw(decode_json);
use Data::Dumper;
use Module::Runtime qw(use_module);
use Log::Any qw($log);
use Da
oud::Object::BarcodeBuilder;
require 5.6.0;
use strict;
use warnings;
use utf8;
use JSON qw(decode_json);
use Data::Dumper;
use Module::Runtime qw(use_module);
use Log::Any qw($log);
use Da
if the token has the indexes parameter set.
# "fields" (Not applicable to raw data.) Specifies a JSON object that contains explicit custom fields to be defined at index time. Requests containing the
;
has sourcetype => '';
has index => '';
has fields => '';
has event => '';
sub TO_JSON {
my $self = shift;
Carp::croak('Splunk HEC requests must contain a valid event') unless $sel
sourcetype('custom-sourcetype');
The sourcetype value to assign to the event data.
e.g. Use _json for JSON-based events (not required)
=head2 index
my $index = $req->index;
$index = $req->index
package Splunk::HEC;
use Carp;
use JSON::XS;
use HTTP::Tiny;
use Splunk::Base -base;
use Splunk::HEC::Request;
use Splunk::HEC::Response;
use strict;
our $VERSION = '1.02';
has url => sub { return
meout => $args{timeout} || $self->timeout,
default_headers => {'Content-Type' => 'application/json'}
);
Carp::croak('A valid Splunk HEC token is required for authentication') unless $self->to
if the token has the indexes parameter set.
# "fields" (Not applicable to raw data.) Specifies a JSON object that contains explicit custom fields to be defined at index time. Requests containing the
e DBIx::Class 0.08100;
use DBIx::Class::Exception;
use Class::Accessor::Grouped;
use Config::Any::JSON;
use Data::Dump::Streamer;
use Data::Visitor::Callback;
use Hash::Merge qw( merge );
use Data::Du
config_dir => '/home/me/app/fixture_configs'
});
$fixtures->dump({
config => 'set_config.json',
schema => $source_dbic_schema,
directory => '/home/me/app/fixtures'
});
$fixtures->pop
XTURE SET
Fixture sets are currently defined in .json files which must reside in your
config_dir (e.g. /home/me/app/fixture_configs/a_fixture_set.json). They
describe which data to pull and dump from
ud::Object::ResponseMessage;
require 5.6.0;
use strict;
use warnings;
use utf8;
use JSON qw(decode_json);
use Data::Dumper;
use Module::Runtime qw(use_module);
use Log::Any qw($log);
use Da