WebService-Fastly

 view release on metacpan or  search on metacpan

lib/WebService/Fastly/Object/RequestSettingsAdditional.pm  view on Meta::CPAN

    $log->debugf("deserializing %s with %s",Dumper($data), $type);

    if (!(defined $data) && $is_nullable) {
        return undef;
    }
    if ($type eq 'DateTime') {
        return DateTime->from_epoch(epoch => str2time($data));
    } elsif ( grep( /^$type$/, ('int', 'double', 'string', 'boolean'))) {
        return $data;
    } else { # hash(model)
        my $_instance = eval "WebService::Fastly::Object::$type->new()";
        return $_instance->from_hash($data);
    }
}


__PACKAGE__->class_documentation({description => '',
                                  class => 'RequestSettingsAdditional',
                                  required => [], # TODO
}                                 );

__PACKAGE__->method_documentation({
    'action' => {
        datatype => 'string',
        base_name => 'action',
        description => 'Allows you to terminate request handling and immediately perform an action.',
        format => '',
        read_only => 'false',
            },
    'default_host' => {
        datatype => 'string',
        base_name => 'default_host',
        description => 'Sets the host header.',
        format => '',
        read_only => 'false',
            },
    'hash_keys' => {
        datatype => 'string',
        base_name => 'hash_keys',
        description => 'Comma separated list of varnish request object fields that should be in the hash key.',
        format => '',
        read_only => 'false',
            },
    'name' => {
        datatype => 'string',
        base_name => 'name',
        description => 'Name for the request settings.',
        format => '',
        read_only => 'false',
            },
    'request_condition' => {
        datatype => 'string',
        base_name => 'request_condition',
        description => 'Condition which, if met, will select this configuration during a request. Optional.',
        format => '',
        read_only => 'false',
            },
    'xff' => {
        datatype => 'string',
        base_name => 'xff',
        description => 'Short for X-Forwarded-For.',
        format => '',
        read_only => 'false',
            },
});

__PACKAGE__->openapi_types( {
    'action' => 'string',
    'default_host' => 'string',
    'hash_keys' => 'string',
    'name' => 'string',
    'request_condition' => 'string',
    'xff' => 'string'
} );

__PACKAGE__->attribute_map( {
    'action' => 'action',
    'default_host' => 'default_host',
    'hash_keys' => 'hash_keys',
    'name' => 'name',
    'request_condition' => 'request_condition',
    'xff' => 'xff'
} );

__PACKAGE__->mk_accessors(keys %{__PACKAGE__->attribute_map});

__PACKAGE__->openapi_nullable( {
    'action' => 'true',
    'default_host' => 'true',
    'hash_keys' => 'true',
    'request_condition' => 'true',
    'xff' => 'true',
} );


1;



( run in 0.692 second using v1.01-cache-2.11-cpan-39bf76dae61 )