OpenSearch-Client

 view release on metacpan or  search on metacpan

lib/OpenSearch/Client/Core/3_0/Role/API.pm  view on Meta::CPAN

    
    'bulk_helper.action_data_types' => { params => {
        _index          => 'string', 
        _id             => 'string',
        _require_alias  => 'boolean',
        routing         => 'string',
        version         => 'number',
        version_type    => 'string',
        if_seq_no       => 'number',
        if_primary_term => 'number',
        pipeline        => 'string',
     }},
             
     'bulk_helper.update_data_types' => { params => {
        doc             => 'REF',
        doc_as_upsert   => 'boolean',
        upsert          => 'REF',
        script          => 'REF',
        params          => 'REF',
        scripted_upsert => 'boolean',
     }},
     
## AUTO GENERATED API START


    '_core.bulk' => {
        body    => { required => 1 },
        doc     => 'https://opensearch.org/docs/latest/api-reference/document-apis/bulk/',
        method  => 'POST',
        parts   => { index => {}},
        paths   => [
            [ { index => 0 }, "{index}", "_bulk" ],
            [ {}, "_bulk" ]
        ],
        qs      => {
             # Endpoint specific query parameters
            '_source'                 => 'list',
            '_source_excludes'        => 'list',
            '_source_includes'        => 'list',
            'index'                   => 'string',
            'pipeline'                => 'string',
            'refresh'                 => 'boolean|string',
            'require_alias'           => 'boolean',
            'routing'                 => 'string',
            'timeout'                 => 'string',
            'type'                    => 'string',
            'wait_for_active_shards'  => 'string',
             # Common API query parameters
            'error_trace'             => 'boolean',
            'filter_path'             => 'list',
            'human'                   => 'boolean',
            'pretty'                  => 'boolean',
            'source'                  => 'string',
        },
        serialize => 'bulk',
        os_version =>  1.000000,
    },

    '_core.bulk_stream' => {
        body    => { required => 1 },
        doc     => 'https://opensearch.org/docs/latest/api-reference/document-apis/bulk-streaming/',
        method  => 'POST',
        parts   => { index => {}},
        paths   => [
            [ { index => 0 }, "{index}", "_bulk", "stream" ],
            [ {}, "_bulk", "stream" ]
        ],
        qs      => {
             # Endpoint specific query parameters
            '_source'                 => 'list',
            '_source_excludes'        => 'list',
            '_source_includes'        => 'list',
            'batch_interval'          => 'string',
            'batch_size'              => 'number',
            'pipeline'                => 'string',
            'refresh'                 => 'boolean|string',
            'require_alias'           => 'boolean',
            'routing'                 => 'list',
            'timeout'                 => 'string',
            'type'                    => 'string',
            'wait_for_active_shards'  => 'string',
             # Common API query parameters
            'error_trace'             => 'boolean',
            'filter_path'             => 'list',
            'human'                   => 'boolean',
            'pretty'                  => 'boolean',
            'source'                  => 'string',
        },
        serialize => 'bulk',
        os_version =>  2.017000,
    },

    '_core.clear_scroll' => {
        body    => {},
        doc     => 'https://opensearch.org/docs/latest/api-reference/scroll/',
        method  => 'DELETE',
        parts   => { scroll_id => {  multi => 1 }},
        paths   => [
            [ { scroll_id => 2 }, "_search", "scroll", "{scroll_id}" ],
            [ {}, "_search", "scroll" ]
        ],
        qs      => {
             # Common API query parameters
            'error_trace'  => 'boolean',
            'filter_path'  => 'list',
            'human'        => 'boolean',
            'pretty'       => 'boolean',
            'source'       => 'string',
        },
        os_version =>  1.000000,
    },

    '_core.count' => {
        body    => {},
        doc     => 'https://opensearch.org/docs/latest/api-reference/count/',
        ## ENDPOINT HAS ALTERNATE METHOD
        method  => 'detect',
        detect  => { method => 'GET', alternate => 'POST', check => { body => 1, paths => 0 } },
        parts   => { index => {  multi => 1 }},
        paths   => [
            [ { index => 0 }, "{index}", "_count" ],



( run in 0.439 second using v1.01-cache-2.11-cpan-995e09ba956 )