-
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
18 changed files
with
1,270 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
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; | ||
|
||
use AlibabaCloud\Tea\Model; | ||
|
||
class RunScriptChatRequest extends Model | ||
{ | ||
/** | ||
* @description This parameter is required. | ||
* | ||
* @var string | ||
*/ | ||
public $prompt; | ||
|
||
/** | ||
* @example a3d1c2ac-f086-4a21-9069-f5631542f5a2 | ||
* | ||
* @var string | ||
*/ | ||
public $taskId; | ||
protected $_name = [ | ||
'prompt' => 'prompt', | ||
'taskId' => 'taskId', | ||
]; | ||
|
||
public function validate() | ||
{ | ||
} | ||
|
||
public function toMap() | ||
{ | ||
$res = []; | ||
if (null !== $this->prompt) { | ||
$res['prompt'] = $this->prompt; | ||
} | ||
if (null !== $this->taskId) { | ||
$res['taskId'] = $this->taskId; | ||
} | ||
|
||
return $res; | ||
} | ||
|
||
/** | ||
* @param array $map | ||
* | ||
* @return RunScriptChatRequest | ||
*/ | ||
public static function fromMap($map = []) | ||
{ | ||
$model = new self(); | ||
if (isset($map['prompt'])) { | ||
$model->prompt = $map['prompt']; | ||
} | ||
if (isset($map['taskId'])) { | ||
$model->taskId = $map['taskId']; | ||
} | ||
|
||
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 RunScriptChatResponse extends Model | ||
{ | ||
/** | ||
* @var string[] | ||
*/ | ||
public $headers; | ||
|
||
/** | ||
* @var int | ||
*/ | ||
public $statusCode; | ||
|
||
/** | ||
* @var RunScriptChatResponseBody | ||
*/ | ||
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 RunScriptChatResponse | ||
*/ | ||
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 = RunScriptChatResponseBody::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,75 @@ | ||
<?php | ||
|
||
// This file is auto-generated, don't edit it. Thanks. | ||
|
||
namespace AlibabaCloud\SDK\QuanMiaoLightApp\V20240801\Models; | ||
|
||
use AlibabaCloud\SDK\QuanMiaoLightApp\V20240801\Models\RunScriptChatResponseBody\header; | ||
use AlibabaCloud\SDK\QuanMiaoLightApp\V20240801\Models\RunScriptChatResponseBody\payload; | ||
use AlibabaCloud\Tea\Model; | ||
|
||
class RunScriptChatResponseBody extends Model | ||
{ | ||
/** | ||
* @example true | ||
* | ||
* @var bool | ||
*/ | ||
public $end; | ||
|
||
/** | ||
* @var header | ||
*/ | ||
public $header; | ||
|
||
/** | ||
* @var payload | ||
*/ | ||
public $payload; | ||
protected $_name = [ | ||
'end' => 'end', | ||
'header' => 'header', | ||
'payload' => 'payload', | ||
]; | ||
|
||
public function validate() | ||
{ | ||
} | ||
|
||
public function toMap() | ||
{ | ||
$res = []; | ||
if (null !== $this->end) { | ||
$res['end'] = $this->end; | ||
} | ||
if (null !== $this->header) { | ||
$res['header'] = null !== $this->header ? $this->header->toMap() : null; | ||
} | ||
if (null !== $this->payload) { | ||
$res['payload'] = null !== $this->payload ? $this->payload->toMap() : null; | ||
} | ||
|
||
return $res; | ||
} | ||
|
||
/** | ||
* @param array $map | ||
* | ||
* @return RunScriptChatResponseBody | ||
*/ | ||
public static function fromMap($map = []) | ||
{ | ||
$model = new self(); | ||
if (isset($map['end'])) { | ||
$model->end = $map['end']; | ||
} | ||
if (isset($map['header'])) { | ||
$model->header = header::fromMap($map['header']); | ||
} | ||
if (isset($map['payload'])) { | ||
$model->payload = payload::fromMap($map['payload']); | ||
} | ||
|
||
return $model; | ||
} | ||
} |
Oops, something went wrong.