Skip to content

Commit

Permalink
Support API GenerateBroadcastNews.
Browse files Browse the repository at this point in the history
  • Loading branch information
sdk-team committed Sep 26, 2024
1 parent 33e0d26 commit 9e2c5f8
Show file tree
Hide file tree
Showing 18 changed files with 1,328 additions and 0 deletions.
7 changes: 7 additions & 0 deletions ChangeLog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
2024-09-26 Version: 1.4.0
- Support API GenerateBroadcastNews.
- Support API RunCommentGeneration.
- Update API RunVideoAnalysis: add param snapshotInterval.
- Update API RunVideoAnalysis: add param videoExtraInfo.


2024-09-14 Version: 1.3.0
- Support API ListHotTopicSummaries.
- Update API RunVideoAnalysis: update response param.
Expand Down
49 changes: 49 additions & 0 deletions src/Models/GenerateBroadcastNewsRequest.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
<?php

// This file is auto-generated, don't edit it. Thanks.

namespace AlibabaCloud\SDK\QuanMiaoLightApp\V20240801\Models;

use AlibabaCloud\Tea\Model;

class GenerateBroadcastNewsRequest extends Model
{
/**
* @description This parameter is required.
*
* @var string
*/
public $prompt;
protected $_name = [
'prompt' => 'prompt',
];

public function validate()
{
}

public function toMap()
{
$res = [];
if (null !== $this->prompt) {
$res['prompt'] = $this->prompt;
}

return $res;
}

/**
* @param array $map
*
* @return GenerateBroadcastNewsRequest
*/
public static function fromMap($map = [])
{
$model = new self();
if (isset($map['prompt'])) {
$model->prompt = $map['prompt'];
}

return $model;
}
}
71 changes: 71 additions & 0 deletions src/Models/GenerateBroadcastNewsResponse.php
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 GenerateBroadcastNewsResponse extends Model
{
/**
* @var string[]
*/
public $headers;

/**
* @var int
*/
public $statusCode;

/**
* @var GenerateBroadcastNewsResponseBody
*/
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 GenerateBroadcastNewsResponse
*/
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 = GenerateBroadcastNewsResponseBody::fromMap($map['body']);
}

return $model;
}
}
118 changes: 118 additions & 0 deletions src/Models/GenerateBroadcastNewsResponseBody.php
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\GenerateBroadcastNewsResponseBody\data;
use AlibabaCloud\Tea\Model;

class GenerateBroadcastNewsResponseBody extends Model
{
/**
* @example xx
*
* @var string
*/
public $code;

/**
* @var data
*/
public $data;

/**
* @example 200
*
* @var int
*/
public $httpStatusCode;

/**
* @example success
*
* @var string
*/
public $message;

/**
* @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 GenerateBroadcastNewsResponseBody
*/
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;
}
}
113 changes: 113 additions & 0 deletions src/Models/GenerateBroadcastNewsResponseBody/data.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,113 @@
<?php

// This file is auto-generated, don't edit it. Thanks.

namespace AlibabaCloud\SDK\QuanMiaoLightApp\V20240801\Models\GenerateBroadcastNewsResponseBody;

use AlibabaCloud\SDK\QuanMiaoLightApp\V20240801\Models\GenerateBroadcastNewsResponseBody\data\hotTopicSummaries;
use AlibabaCloud\SDK\QuanMiaoLightApp\V20240801\Models\GenerateBroadcastNewsResponseBody\data\usage;
use AlibabaCloud\Tea\Model;

class data extends Model
{
/**
* @var hotTopicSummaries[]
*/
public $hotTopicSummaries;

/**
* @example 2bb0ea82dafd48a8817fadc4c90e2b52
*
* @var string
*/
public $sessionId;

/**
* @example 3feb69ed02d9b1a17d0f1a942675d300
*
* @var string
*/
public $taskId;

/**
* @var string
*/
public $text;

/**
* @var usage
*/
public $usage;
protected $_name = [
'hotTopicSummaries' => 'hotTopicSummaries',
'sessionId' => 'sessionId',
'taskId' => 'taskId',
'text' => 'text',
'usage' => 'usage',
];

public function validate()
{
}

public function toMap()
{
$res = [];
if (null !== $this->hotTopicSummaries) {
$res['hotTopicSummaries'] = [];
if (null !== $this->hotTopicSummaries && \is_array($this->hotTopicSummaries)) {
$n = 0;
foreach ($this->hotTopicSummaries as $item) {
$res['hotTopicSummaries'][$n++] = null !== $item ? $item->toMap() : $item;
}
}
}
if (null !== $this->sessionId) {
$res['sessionId'] = $this->sessionId;
}
if (null !== $this->taskId) {
$res['taskId'] = $this->taskId;
}
if (null !== $this->text) {
$res['text'] = $this->text;
}
if (null !== $this->usage) {
$res['usage'] = null !== $this->usage ? $this->usage->toMap() : null;
}

return $res;
}

/**
* @param array $map
*
* @return data
*/
public static function fromMap($map = [])
{
$model = new self();
if (isset($map['hotTopicSummaries'])) {
if (!empty($map['hotTopicSummaries'])) {
$model->hotTopicSummaries = [];
$n = 0;
foreach ($map['hotTopicSummaries'] as $item) {
$model->hotTopicSummaries[$n++] = null !== $item ? hotTopicSummaries::fromMap($item) : $item;
}
}
}
if (isset($map['sessionId'])) {
$model->sessionId = $map['sessionId'];
}
if (isset($map['taskId'])) {
$model->taskId = $map['taskId'];
}
if (isset($map['text'])) {
$model->text = $map['text'];
}
if (isset($map['usage'])) {
$model->usage = usage::fromMap($map['usage']);
}

return $model;
}
}
Loading

0 comments on commit 9e2c5f8

Please sign in to comment.