Skip to content

Commit b2eca57

Browse files
author
wb-hx510875
committed
imagesearch 20200212 php sdk add models
1 parent b285d38 commit b2eca57

20 files changed

+2176
-10
lines changed

src/ImageSearch.php

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,16 @@
55
namespace AlibabaCloud\SDK\ImageSearch\V20200212;
66

77
use AlibabaCloud\Endpoint\Endpoint;
8-
use AlibabaCloud\SDK\ImageSearch\V20200212\Models\AddImageAdvanceRequest;
9-
use AlibabaCloud\SDK\ImageSearch\V20200212\Models\AddImageRequest;
10-
use AlibabaCloud\SDK\ImageSearch\V20200212\Models\AddImageResponse;
11-
use AlibabaCloud\SDK\ImageSearch\V20200212\Models\DeleteImageRequest;
12-
use AlibabaCloud\SDK\ImageSearch\V20200212\Models\DeleteImageResponse;
13-
use AlibabaCloud\SDK\ImageSearch\V20200212\Models\SearchImageByNameRequest;
14-
use AlibabaCloud\SDK\ImageSearch\V20200212\Models\SearchImageByNameResponse;
15-
use AlibabaCloud\SDK\ImageSearch\V20200212\Models\SearchImageByPicAdvanceRequest;
16-
use AlibabaCloud\SDK\ImageSearch\V20200212\Models\SearchImageByPicRequest;
17-
use AlibabaCloud\SDK\ImageSearch\V20200212\Models\SearchImageByPicResponse;
8+
use AlibabaCloud\SDK\ImageSearch\V20200212\ImageSearch\AddImageAdvanceRequest;
9+
use AlibabaCloud\SDK\ImageSearch\V20200212\ImageSearch\AddImageRequest;
10+
use AlibabaCloud\SDK\ImageSearch\V20200212\ImageSearch\AddImageResponse;
11+
use AlibabaCloud\SDK\ImageSearch\V20200212\ImageSearch\DeleteImageRequest;
12+
use AlibabaCloud\SDK\ImageSearch\V20200212\ImageSearch\DeleteImageResponse;
13+
use AlibabaCloud\SDK\ImageSearch\V20200212\ImageSearch\SearchImageByNameRequest;
14+
use AlibabaCloud\SDK\ImageSearch\V20200212\ImageSearch\SearchImageByNameResponse;
15+
use AlibabaCloud\SDK\ImageSearch\V20200212\ImageSearch\SearchImageByPicAdvanceRequest;
16+
use AlibabaCloud\SDK\ImageSearch\V20200212\ImageSearch\SearchImageByPicRequest;
17+
use AlibabaCloud\SDK\ImageSearch\V20200212\ImageSearch\SearchImageByPicResponse;
1818
use AlibabaCloud\SDK\OpenPlatform\V20191219\Models\AuthorizeFileUploadRequest;
1919
use AlibabaCloud\SDK\OpenPlatform\V20191219\OpenPlatform;
2020
use AlibabaCloud\SDK\OSS\OSS;
Lines changed: 179 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,179 @@
1+
<?php
2+
3+
// This file is auto-generated, don't edit it. Thanks.
4+
5+
namespace AlibabaCloud\SDK\ImageSearch\V20200212\ImageSearch;
6+
7+
use AlibabaCloud\Tea\Model;
8+
9+
class AddImageAdvanceRequest extends Model
10+
{
11+
/**
12+
* @description PicContentObject
13+
*
14+
* @var Stream
15+
*/
16+
public $picContentObject;
17+
18+
/**
19+
* @description instanceName
20+
*
21+
* @var string
22+
*/
23+
public $instanceName;
24+
25+
/**
26+
* @description categoryId
27+
*
28+
* @var int
29+
*/
30+
public $categoryId;
31+
32+
/**
33+
* @description productId
34+
*
35+
* @var string
36+
*/
37+
public $productId;
38+
39+
/**
40+
* @description picName
41+
*
42+
* @var string
43+
*/
44+
public $picName;
45+
46+
/**
47+
* @description crop
48+
*
49+
* @var bool
50+
*/
51+
public $crop;
52+
53+
/**
54+
* @description region
55+
*
56+
* @var string
57+
*/
58+
public $region;
59+
60+
/**
61+
* @description customContent
62+
*
63+
* @var string
64+
*/
65+
public $customContent;
66+
67+
/**
68+
* @description intAttr
69+
*
70+
* @var int
71+
*/
72+
public $intAttr;
73+
74+
/**
75+
* @description strAttr
76+
*
77+
* @var string
78+
*/
79+
public $strAttr;
80+
protected $_name = [
81+
'picContentObject' => 'PicContentObject',
82+
'instanceName' => 'InstanceName',
83+
'categoryId' => 'CategoryId',
84+
'productId' => 'ProductId',
85+
'picName' => 'PicName',
86+
'crop' => 'Crop',
87+
'region' => 'Region',
88+
'customContent' => 'CustomContent',
89+
'intAttr' => 'IntAttr',
90+
'strAttr' => 'StrAttr',
91+
];
92+
93+
public function validate()
94+
{
95+
Model::validateRequired('picContentObject', $this->picContentObject, true);
96+
Model::validateRequired('instanceName', $this->instanceName, true);
97+
Model::validateRequired('productId', $this->productId, true);
98+
Model::validateRequired('picName', $this->picName, true);
99+
}
100+
101+
public function toMap()
102+
{
103+
$res = [];
104+
if (null !== $this->picContentObject) {
105+
$res['PicContentObject'] = $this->picContentObject;
106+
}
107+
if (null !== $this->instanceName) {
108+
$res['InstanceName'] = $this->instanceName;
109+
}
110+
if (null !== $this->categoryId) {
111+
$res['CategoryId'] = $this->categoryId;
112+
}
113+
if (null !== $this->productId) {
114+
$res['ProductId'] = $this->productId;
115+
}
116+
if (null !== $this->picName) {
117+
$res['PicName'] = $this->picName;
118+
}
119+
if (null !== $this->crop) {
120+
$res['Crop'] = $this->crop;
121+
}
122+
if (null !== $this->region) {
123+
$res['Region'] = $this->region;
124+
}
125+
if (null !== $this->customContent) {
126+
$res['CustomContent'] = $this->customContent;
127+
}
128+
if (null !== $this->intAttr) {
129+
$res['IntAttr'] = $this->intAttr;
130+
}
131+
if (null !== $this->strAttr) {
132+
$res['StrAttr'] = $this->strAttr;
133+
}
134+
135+
return $res;
136+
}
137+
138+
/**
139+
* @param array $map
140+
*
141+
* @return AddImageAdvanceRequest
142+
*/
143+
public static function fromMap($map = [])
144+
{
145+
$model = new self();
146+
if (isset($map['PicContentObject'])) {
147+
$model->picContentObject = $map['PicContentObject'];
148+
}
149+
if (isset($map['InstanceName'])) {
150+
$model->instanceName = $map['InstanceName'];
151+
}
152+
if (isset($map['CategoryId'])) {
153+
$model->categoryId = $map['CategoryId'];
154+
}
155+
if (isset($map['ProductId'])) {
156+
$model->productId = $map['ProductId'];
157+
}
158+
if (isset($map['PicName'])) {
159+
$model->picName = $map['PicName'];
160+
}
161+
if (isset($map['Crop'])) {
162+
$model->crop = $map['Crop'];
163+
}
164+
if (isset($map['Region'])) {
165+
$model->region = $map['Region'];
166+
}
167+
if (isset($map['CustomContent'])) {
168+
$model->customContent = $map['CustomContent'];
169+
}
170+
if (isset($map['IntAttr'])) {
171+
$model->intAttr = $map['IntAttr'];
172+
}
173+
if (isset($map['StrAttr'])) {
174+
$model->strAttr = $map['StrAttr'];
175+
}
176+
177+
return $model;
178+
}
179+
}
Lines changed: 179 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,179 @@
1+
<?php
2+
3+
// This file is auto-generated, don't edit it. Thanks.
4+
5+
namespace AlibabaCloud\SDK\ImageSearch\V20200212\ImageSearch;
6+
7+
use AlibabaCloud\Tea\Model;
8+
9+
class AddImageRequest extends Model
10+
{
11+
/**
12+
* @description instanceName
13+
*
14+
* @var string
15+
*/
16+
public $instanceName;
17+
18+
/**
19+
* @description categoryId
20+
*
21+
* @var int
22+
*/
23+
public $categoryId;
24+
25+
/**
26+
* @description productId
27+
*
28+
* @var string
29+
*/
30+
public $productId;
31+
32+
/**
33+
* @description picName
34+
*
35+
* @var string
36+
*/
37+
public $picName;
38+
39+
/**
40+
* @description picContent
41+
*
42+
* @var string
43+
*/
44+
public $picContent;
45+
46+
/**
47+
* @description crop
48+
*
49+
* @var bool
50+
*/
51+
public $crop;
52+
53+
/**
54+
* @description region
55+
*
56+
* @var string
57+
*/
58+
public $region;
59+
60+
/**
61+
* @description customContent
62+
*
63+
* @var string
64+
*/
65+
public $customContent;
66+
67+
/**
68+
* @description intAttr
69+
*
70+
* @var int
71+
*/
72+
public $intAttr;
73+
74+
/**
75+
* @description strAttr
76+
*
77+
* @var string
78+
*/
79+
public $strAttr;
80+
protected $_name = [
81+
'instanceName' => 'InstanceName',
82+
'categoryId' => 'CategoryId',
83+
'productId' => 'ProductId',
84+
'picName' => 'PicName',
85+
'picContent' => 'PicContent',
86+
'crop' => 'Crop',
87+
'region' => 'Region',
88+
'customContent' => 'CustomContent',
89+
'intAttr' => 'IntAttr',
90+
'strAttr' => 'StrAttr',
91+
];
92+
93+
public function validate()
94+
{
95+
Model::validateRequired('instanceName', $this->instanceName, true);
96+
Model::validateRequired('productId', $this->productId, true);
97+
Model::validateRequired('picName', $this->picName, true);
98+
Model::validateRequired('picContent', $this->picContent, true);
99+
}
100+
101+
public function toMap()
102+
{
103+
$res = [];
104+
if (null !== $this->instanceName) {
105+
$res['InstanceName'] = $this->instanceName;
106+
}
107+
if (null !== $this->categoryId) {
108+
$res['CategoryId'] = $this->categoryId;
109+
}
110+
if (null !== $this->productId) {
111+
$res['ProductId'] = $this->productId;
112+
}
113+
if (null !== $this->picName) {
114+
$res['PicName'] = $this->picName;
115+
}
116+
if (null !== $this->picContent) {
117+
$res['PicContent'] = $this->picContent;
118+
}
119+
if (null !== $this->crop) {
120+
$res['Crop'] = $this->crop;
121+
}
122+
if (null !== $this->region) {
123+
$res['Region'] = $this->region;
124+
}
125+
if (null !== $this->customContent) {
126+
$res['CustomContent'] = $this->customContent;
127+
}
128+
if (null !== $this->intAttr) {
129+
$res['IntAttr'] = $this->intAttr;
130+
}
131+
if (null !== $this->strAttr) {
132+
$res['StrAttr'] = $this->strAttr;
133+
}
134+
135+
return $res;
136+
}
137+
138+
/**
139+
* @param array $map
140+
*
141+
* @return AddImageRequest
142+
*/
143+
public static function fromMap($map = [])
144+
{
145+
$model = new self();
146+
if (isset($map['InstanceName'])) {
147+
$model->instanceName = $map['InstanceName'];
148+
}
149+
if (isset($map['CategoryId'])) {
150+
$model->categoryId = $map['CategoryId'];
151+
}
152+
if (isset($map['ProductId'])) {
153+
$model->productId = $map['ProductId'];
154+
}
155+
if (isset($map['PicName'])) {
156+
$model->picName = $map['PicName'];
157+
}
158+
if (isset($map['PicContent'])) {
159+
$model->picContent = $map['PicContent'];
160+
}
161+
if (isset($map['Crop'])) {
162+
$model->crop = $map['Crop'];
163+
}
164+
if (isset($map['Region'])) {
165+
$model->region = $map['Region'];
166+
}
167+
if (isset($map['CustomContent'])) {
168+
$model->customContent = $map['CustomContent'];
169+
}
170+
if (isset($map['IntAttr'])) {
171+
$model->intAttr = $map['IntAttr'];
172+
}
173+
if (isset($map['StrAttr'])) {
174+
$model->strAttr = $map['StrAttr'];
175+
}
176+
177+
return $model;
178+
}
179+
}

0 commit comments

Comments
 (0)