Skip to content

Commit f1a9d0f

Browse files
committed
Add new api.
1 parent 1858de5 commit f1a9d0f

File tree

4 files changed

+55
-1
lines changed

4 files changed

+55
-1
lines changed

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# CHANGELOG
22

3+
## 1.8.28 - 2019-12-29
4+
- Add new api.
5+
6+
37
## 1.8.27 - 2019-12-29
48
- Add new api.
59

src/Objectdet/V20191230/ObjectdetApiResolver.php

+49
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66

77
/**
88
* @method DetectMainBody detectMainBody(array $options = [])
9+
* @method DetectVehicle detectVehicle(array $options = [])
910
*/
1011
class ObjectdetApiResolver extends ApiResolver
1112
{
@@ -33,3 +34,51 @@ class Rpc extends \AlibabaCloud\Client\Resolver\Rpc
3334
class DetectMainBody extends Rpc
3435
{
3536
}
37+
38+
/**
39+
* @method string getImageType()
40+
* @method string getImageURL()
41+
* @method string getImageContent()
42+
*/
43+
class DetectVehicle extends Rpc
44+
{
45+
46+
/**
47+
* @param string $value
48+
*
49+
* @return $this
50+
*/
51+
public function withImageType($value)
52+
{
53+
$this->data['ImageType'] = $value;
54+
$this->options['form_params']['ImageType'] = $value;
55+
56+
return $this;
57+
}
58+
59+
/**
60+
* @param string $value
61+
*
62+
* @return $this
63+
*/
64+
public function withImageURL($value)
65+
{
66+
$this->data['ImageURL'] = $value;
67+
$this->options['form_params']['ImageURL'] = $value;
68+
69+
return $this;
70+
}
71+
72+
/**
73+
* @param string $value
74+
*
75+
* @return $this
76+
*/
77+
public function withImageContent($value)
78+
{
79+
$this->data['ImageContent'] = $value;
80+
$this->options['form_params']['ImageContent'] = $value;
81+
82+
return $this;
83+
}
84+
}

src/Objectdet/endpoints.json

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"endpoint_map":{},"endpoint_regional":"regional","standard":{"cn-shanghai":"objectdet.cn-shanghai.aliyuncs.com"},"regions":["cn-shanghai"],"endpoint_health":[]}

src/Release.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class Release
1616
/**
1717
* Version of the SDK
1818
*/
19-
const VERSION = '1.8.27';
19+
const VERSION = '1.8.28';
2020

2121
/**
2222
* @param Event $event

0 commit comments

Comments
 (0)