Skip to content

Commit dcb80a4

Browse files
add updates
1 parent 84e5b05 commit dcb80a4

4 files changed

Lines changed: 139 additions & 0 deletions

File tree

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
<?php
2+
/**
3+
* Aisearchdata
4+
*
5+
* @category Jdcloud
6+
* @package Jdcloud\Aisearchdata
7+
* @author Jdcloud <jdcloud-api@jd.com>
8+
* @license Apache-2.0 http://www.apache.org/licenses/LICENSE-2.0
9+
* @link https://www.jdcloud.com/help/faq
10+
*/
11+
12+
namespace Jdcloud\Aisearchdata;
13+
14+
use Jdcloud\JdCloudClient;
15+
use Jdcloud\Api\Service;
16+
use Jdcloud\Api\DocModel;
17+
use Jdcloud\Api\ApiProvider;
18+
use Jdcloud\PresignUrlMiddleware;
19+
20+
/**
21+
* Client used to interact with aisearchdata.
22+
*
23+
* @method \Jdcloud\Result fetchData(array $args = [])
24+
* @method \GuzzleHttp\Promise\Promise fetchDataAsync(array $args = [])
25+
* @method \Jdcloud\Result pushData(array $args = [])
26+
* @method \GuzzleHttp\Promise\Promise pushDataAsync(array $args = [])
27+
*/
28+
class AisearchdataClient extends JdCloudClient
29+
{
30+
public function __construct(array $args)
31+
{
32+
$args['with_resolved'] = function (array $args) {
33+
$this->getHandlerList()->appendInit(
34+
PresignUrlMiddleware::wrap(
35+
$this,
36+
$args['endpoint_provider'],
37+
[
38+
'operations' => [
39+
],
40+
'service' => 'aisearchdata',
41+
'presign_param' => 'PresignedUrl',
42+
]
43+
),
44+
'aisearchdata'
45+
);
46+
};
47+
48+
parent::__construct($args);
49+
}
50+
}

src/Aisearchdata/ChangeLog.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
2025-08- version: 0.0.1
2+
1. 初始版本
Lines changed: 83 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,83 @@
1+
<?php
2+
// This file was auto-generated
3+
return [
4+
// 'version' => '',
5+
'metadata' =>
6+
[
7+
// 'apiVersion' => '',
8+
// 'endpointPrefix' => 'aisearchdata',
9+
'protocol' => 'json',
10+
// 'serviceFullName' => 'aisearchdata',
11+
// 'serviceId' => 'aisearchdata',
12+
],
13+
'operations' => [
14+
'FetchData' => [
15+
'name' => 'FetchData',
16+
'http' => [
17+
'method' => 'GET',
18+
'requestUri' => '/v1/fetchData',
19+
],
20+
'input' => [ 'shape' => 'FetchDataRequestShape', ],
21+
'output' => [ 'shape' => 'FetchDataResponseShape', ],
22+
],
23+
'PushData' => [
24+
'name' => 'PushData',
25+
'http' => [
26+
'method' => 'POST',
27+
'requestUri' => '/v1/pushData',
28+
],
29+
'input' => [ 'shape' => 'PushDataRequestShape', ],
30+
'output' => [ 'shape' => 'PushDataResponseShape', ],
31+
],
32+
],
33+
'shapes' => [
34+
'FetchDataResponseShape' => [
35+
'type' => 'structure',
36+
'members' => [
37+
'result' => [ 'shape' => 'FetchDataResultShape', ],
38+
'requestId' => [ 'type' => 'string', 'locationName' => 'requestId', ],
39+
],
40+
],
41+
'PushDataResultShape' => [
42+
'type' => 'structure',
43+
'members' => [
44+
'data' => [ 'type' => 'integer', 'locationName' => 'data', ],
45+
],
46+
],
47+
'FetchDataRequestShape' => [
48+
'type' => 'structure',
49+
'members' => [
50+
'crawlerId' => [ 'type' => 'string', 'locationName' => 'crawlerId', ],
51+
'count' => [ 'type' => 'integer', 'locationName' => 'count', ],
52+
],
53+
],
54+
'PushDataResponseShape' => [
55+
'type' => 'structure',
56+
'members' => [
57+
'result' => [ 'shape' => 'PushDataResultShape', ],
58+
'requestId' => [ 'type' => 'string', 'locationName' => 'requestId', ],
59+
],
60+
],
61+
'FetchDataResultShape' => [
62+
'type' => 'structure',
63+
'members' => [
64+
'data' => [ 'type' => 'list', 'member' => [ 'type' => 'string', ], ],
65+
],
66+
],
67+
'PushDataRequestShape' => [
68+
'type' => 'structure',
69+
'members' => [
70+
'crawlerId' => [ 'type' => 'string', 'locationName' => 'crawlerId', ],
71+
'taskId' => [ 'type' => 'string', 'locationName' => 'taskId', ],
72+
'title' => [ 'type' => 'string', 'locationName' => 'title', ],
73+
'url' => [ 'type' => 'string', 'locationName' => 'url', ],
74+
'content' => [ 'type' => 'string', 'locationName' => 'content', ],
75+
'publish_time' => [ 'type' => 'string', 'locationName' => 'publish_time', ],
76+
'category' => [ 'type' => 'string', 'locationName' => 'category', ],
77+
'language' => [ 'type' => 'string', 'locationName' => 'language', ],
78+
'author' => [ 'type' => 'string', 'locationName' => 'author', ],
79+
'location' => [ 'type' => 'string', 'locationName' => 'location', ],
80+
],
81+
],
82+
],
83+
];

src/data/manifest.json.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -349,6 +349,10 @@
349349
'namespace' => 'Httpdns',
350350
'versions' => [ 'latest' => 'v1', ],
351351
],
352+
'aisearchdata' => [
353+
'namespace' => 'Aisearchdata',
354+
'versions' => [ 'latest' => 'v1', ],
355+
],
352356
'disk' => [
353357
'namespace' => 'Disk',
354358
'versions' => [ 'latest' => 'v1', ],

0 commit comments

Comments
 (0)