-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
17 changed files
with
1,473 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,118 @@ | ||
<?php | ||
|
||
// This file is auto-generated, don't edit it. Thanks. | ||
|
||
namespace AlibabaCloud\SDK\QuanMiaoLightApp\V20240801\Models; | ||
|
||
use AlibabaCloud\SDK\QuanMiaoLightApp\V20240801\Models\GenerateOutputFormatRequest\tags; | ||
use AlibabaCloud\Tea\Model; | ||
|
||
class GenerateOutputFormatRequest extends Model | ||
{ | ||
/** | ||
* @example clueMining | ||
* | ||
* @var string | ||
*/ | ||
public $businessType; | ||
|
||
/** | ||
* @example 待分析文本 | ||
* | ||
* @var string | ||
*/ | ||
public $content; | ||
|
||
/** | ||
* @example 额外信息 | ||
* | ||
* @var string | ||
*/ | ||
public $extraInfo; | ||
|
||
/** | ||
* @description This parameter is required. | ||
* | ||
* @var tags[] | ||
*/ | ||
public $tags; | ||
|
||
/** | ||
* @example 给你一条待分析文本数据,请你按照标签体系来对数据进行打标。 | ||
* | ||
* @var string | ||
*/ | ||
public $taskDescription; | ||
protected $_name = [ | ||
'businessType' => 'businessType', | ||
'content' => 'content', | ||
'extraInfo' => 'extraInfo', | ||
'tags' => 'tags', | ||
'taskDescription' => 'taskDescription', | ||
]; | ||
|
||
public function validate() | ||
{ | ||
} | ||
|
||
public function toMap() | ||
{ | ||
$res = []; | ||
if (null !== $this->businessType) { | ||
$res['businessType'] = $this->businessType; | ||
} | ||
if (null !== $this->content) { | ||
$res['content'] = $this->content; | ||
} | ||
if (null !== $this->extraInfo) { | ||
$res['extraInfo'] = $this->extraInfo; | ||
} | ||
if (null !== $this->tags) { | ||
$res['tags'] = []; | ||
if (null !== $this->tags && \is_array($this->tags)) { | ||
$n = 0; | ||
foreach ($this->tags as $item) { | ||
$res['tags'][$n++] = null !== $item ? $item->toMap() : $item; | ||
} | ||
} | ||
} | ||
if (null !== $this->taskDescription) { | ||
$res['taskDescription'] = $this->taskDescription; | ||
} | ||
|
||
return $res; | ||
} | ||
|
||
/** | ||
* @param array $map | ||
* | ||
* @return GenerateOutputFormatRequest | ||
*/ | ||
public static function fromMap($map = []) | ||
{ | ||
$model = new self(); | ||
if (isset($map['businessType'])) { | ||
$model->businessType = $map['businessType']; | ||
} | ||
if (isset($map['content'])) { | ||
$model->content = $map['content']; | ||
} | ||
if (isset($map['extraInfo'])) { | ||
$model->extraInfo = $map['extraInfo']; | ||
} | ||
if (isset($map['tags'])) { | ||
if (!empty($map['tags'])) { | ||
$model->tags = []; | ||
$n = 0; | ||
foreach ($map['tags'] as $item) { | ||
$model->tags[$n++] = null !== $item ? tags::fromMap($item) : $item; | ||
} | ||
} | ||
} | ||
if (isset($map['taskDescription'])) { | ||
$model->taskDescription = $map['taskDescription']; | ||
} | ||
|
||
return $model; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
<?php | ||
|
||
// This file is auto-generated, don't edit it. Thanks. | ||
|
||
namespace AlibabaCloud\SDK\QuanMiaoLightApp\V20240801\Models\GenerateOutputFormatRequest; | ||
|
||
use AlibabaCloud\Tea\Model; | ||
|
||
class tags extends Model | ||
{ | ||
/** | ||
* @example xxxx | ||
* | ||
* @var string | ||
*/ | ||
public $tagDefinePrompt; | ||
|
||
/** | ||
* @example xxxx | ||
* | ||
* @var string | ||
*/ | ||
public $tagName; | ||
protected $_name = [ | ||
'tagDefinePrompt' => 'tagDefinePrompt', | ||
'tagName' => 'tagName', | ||
]; | ||
|
||
public function validate() | ||
{ | ||
} | ||
|
||
public function toMap() | ||
{ | ||
$res = []; | ||
if (null !== $this->tagDefinePrompt) { | ||
$res['tagDefinePrompt'] = $this->tagDefinePrompt; | ||
} | ||
if (null !== $this->tagName) { | ||
$res['tagName'] = $this->tagName; | ||
} | ||
|
||
return $res; | ||
} | ||
|
||
/** | ||
* @param array $map | ||
* | ||
* @return tags | ||
*/ | ||
public static function fromMap($map = []) | ||
{ | ||
$model = new self(); | ||
if (isset($map['tagDefinePrompt'])) { | ||
$model->tagDefinePrompt = $map['tagDefinePrompt']; | ||
} | ||
if (isset($map['tagName'])) { | ||
$model->tagName = $map['tagName']; | ||
} | ||
|
||
return $model; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
<?php | ||
|
||
// This file is auto-generated, don't edit it. Thanks. | ||
|
||
namespace AlibabaCloud\SDK\QuanMiaoLightApp\V20240801\Models; | ||
|
||
use AlibabaCloud\Tea\Model; | ||
|
||
class GenerateOutputFormatResponse extends Model | ||
{ | ||
/** | ||
* @var string[] | ||
*/ | ||
public $headers; | ||
|
||
/** | ||
* @var int | ||
*/ | ||
public $statusCode; | ||
|
||
/** | ||
* @var GenerateOutputFormatResponseBody | ||
*/ | ||
public $body; | ||
protected $_name = [ | ||
'headers' => 'headers', | ||
'statusCode' => 'statusCode', | ||
'body' => 'body', | ||
]; | ||
|
||
public function validate() | ||
{ | ||
} | ||
|
||
public function toMap() | ||
{ | ||
$res = []; | ||
if (null !== $this->headers) { | ||
$res['headers'] = $this->headers; | ||
} | ||
if (null !== $this->statusCode) { | ||
$res['statusCode'] = $this->statusCode; | ||
} | ||
if (null !== $this->body) { | ||
$res['body'] = null !== $this->body ? $this->body->toMap() : null; | ||
} | ||
|
||
return $res; | ||
} | ||
|
||
/** | ||
* @param array $map | ||
* | ||
* @return GenerateOutputFormatResponse | ||
*/ | ||
public static function fromMap($map = []) | ||
{ | ||
$model = new self(); | ||
if (isset($map['headers'])) { | ||
$model->headers = $map['headers']; | ||
} | ||
if (isset($map['statusCode'])) { | ||
$model->statusCode = $map['statusCode']; | ||
} | ||
if (isset($map['body'])) { | ||
$model->body = GenerateOutputFormatResponseBody::fromMap($map['body']); | ||
} | ||
|
||
return $model; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,120 @@ | ||
<?php | ||
|
||
// This file is auto-generated, don't edit it. Thanks. | ||
|
||
namespace AlibabaCloud\SDK\QuanMiaoLightApp\V20240801\Models; | ||
|
||
use AlibabaCloud\SDK\QuanMiaoLightApp\V20240801\Models\GenerateOutputFormatResponseBody\data; | ||
use AlibabaCloud\Tea\Model; | ||
|
||
class GenerateOutputFormatResponseBody extends Model | ||
{ | ||
/** | ||
* @example successful | ||
* | ||
* @var string | ||
*/ | ||
public $code; | ||
|
||
/** | ||
* @var data | ||
*/ | ||
public $data; | ||
|
||
/** | ||
* @example 200 | ||
* | ||
* @var int | ||
*/ | ||
public $httpStatusCode; | ||
|
||
/** | ||
* @example ok | ||
* | ||
* @var string | ||
*/ | ||
public $message; | ||
|
||
/** | ||
* @description Id of the request | ||
* | ||
* @example 117F5ABE-CF02-5502-9A3F-E56BC9081A64 | ||
* | ||
* @var string | ||
*/ | ||
public $requestId; | ||
|
||
/** | ||
* @example True | ||
* | ||
* @var bool | ||
*/ | ||
public $success; | ||
protected $_name = [ | ||
'code' => 'code', | ||
'data' => 'data', | ||
'httpStatusCode' => 'httpStatusCode', | ||
'message' => 'message', | ||
'requestId' => 'requestId', | ||
'success' => 'success', | ||
]; | ||
|
||
public function validate() | ||
{ | ||
} | ||
|
||
public function toMap() | ||
{ | ||
$res = []; | ||
if (null !== $this->code) { | ||
$res['code'] = $this->code; | ||
} | ||
if (null !== $this->data) { | ||
$res['data'] = null !== $this->data ? $this->data->toMap() : null; | ||
} | ||
if (null !== $this->httpStatusCode) { | ||
$res['httpStatusCode'] = $this->httpStatusCode; | ||
} | ||
if (null !== $this->message) { | ||
$res['message'] = $this->message; | ||
} | ||
if (null !== $this->requestId) { | ||
$res['requestId'] = $this->requestId; | ||
} | ||
if (null !== $this->success) { | ||
$res['success'] = $this->success; | ||
} | ||
|
||
return $res; | ||
} | ||
|
||
/** | ||
* @param array $map | ||
* | ||
* @return GenerateOutputFormatResponseBody | ||
*/ | ||
public static function fromMap($map = []) | ||
{ | ||
$model = new self(); | ||
if (isset($map['code'])) { | ||
$model->code = $map['code']; | ||
} | ||
if (isset($map['data'])) { | ||
$model->data = data::fromMap($map['data']); | ||
} | ||
if (isset($map['httpStatusCode'])) { | ||
$model->httpStatusCode = $map['httpStatusCode']; | ||
} | ||
if (isset($map['message'])) { | ||
$model->message = $map['message']; | ||
} | ||
if (isset($map['requestId'])) { | ||
$model->requestId = $map['requestId']; | ||
} | ||
if (isset($map['success'])) { | ||
$model->success = $map['success']; | ||
} | ||
|
||
return $model; | ||
} | ||
} |
Oops, something went wrong.