Skip to content

Commit

Permalink
Update to support new apis.
Browse files Browse the repository at this point in the history
  • Loading branch information
sdk-team committed Apr 29, 2024
1 parent 4dcedcb commit 60216a0
Show file tree
Hide file tree
Showing 4 changed files with 130 additions and 51 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
@@ -1,5 +1,9 @@
# CHANGELOG

## 1.8.2107 - 2024-4-29
- Update to support new apis.


## 1.8.2106 - 2024-4-26
- Add SupportedBootModes for DescribeInstanceTypes.

Expand Down
173 changes: 124 additions & 49 deletions src/Live/V20161101/LiveApiResolver.php
Expand Up @@ -182,6 +182,7 @@
* @method DescribeLiveGrtnDuration describeLiveGrtnDuration(array $options = [])
* @method DescribeLiveGrtnTrafficUsage describeLiveGrtnTrafficUsage(array $options = [])
* @method DescribeLiveHttpsDomainList describeLiveHttpsDomainList(array $options = [])
* @method DescribeLiveInteractionMetricData describeLiveInteractionMetricData(array $options = [])
* @method DescribeLiveIpInfo describeLiveIpInfo(array $options = [])
* @method DescribeLiveLazyPullStreamConfig describeLiveLazyPullStreamConfig(array $options = [])
* @method DescribeLiveMessageApp describeLiveMessageApp(array $options = [])
Expand All @@ -206,6 +207,7 @@
* @method DescribeLiveStreamBitRateData describeLiveStreamBitRateData(array $options = [])
* @method DescribeLiveStreamCount describeLiveStreamCount(array $options = [])
* @method DescribeLiveStreamDelayConfig describeLiveStreamDelayConfig(array $options = [])
* @method DescribeLiveStreamDetailFrameRateAndBitRateData describeLiveStreamDetailFrameRateAndBitRateData(array $options = [])
* @method DescribeLiveStreamHistoryUserNum describeLiveStreamHistoryUserNum(array $options = [])
* @method DescribeLiveStreamMetricDetailData describeLiveStreamMetricDetailData(array $options = [])
* @method DescribeLiveStreamMonitorList describeLiveStreamMonitorList(array $options = [])
Expand Down Expand Up @@ -273,6 +275,7 @@
* @method GetMessageToken getMessageToken(array $options = [])
* @method GetMultiRateConfig getMultiRateConfig(array $options = [])
* @method GetMultiRateConfigList getMultiRateConfigList(array $options = [])
* @method GetTranscodeTaskStatus getTranscodeTaskStatus(array $options = [])
* @method HotLiveRtcStream hotLiveRtcStream(array $options = [])
* @method InitializeAutoShowListTask initializeAutoShowListTask(array $options = [])
* @method JoinMessageGroup joinMessageGroup(array $options = [])
Expand Down Expand Up @@ -327,6 +330,7 @@
* @method RemoveShowFromShowList removeShowFromShowList(array $options = [])
* @method RemoveTerminals removeTerminals(array $options = [])
* @method RestartCaster restartCaster(array $options = [])
* @method RestartTranscodeTask restartTranscodeTask(array $options = [])
* @method ResumeLiveStream resumeLiveStream(array $options = [])
* @method RollbackLiveStagingConfig rollbackLiveStagingConfig(array $options = [])
* @method SendLike sendLike(array $options = [])
Expand Down Expand Up @@ -572,15 +576,15 @@ public function withAudioLayer(array $audioLayer)
{
$this->data['AudioLayer'] = $audioLayer;
foreach ($audioLayer as $depth1 => $depth1Value) {
if(isset($depth1Value['VolumeRate'])){
$this->options['query']['AudioLayer.' . ($depth1 + 1) . '.VolumeRate'] = $depth1Value['VolumeRate'];
}
if(isset($depth1Value['FixedDelayDuration'])){
$this->options['query']['AudioLayer.' . ($depth1 + 1) . '.FixedDelayDuration'] = $depth1Value['FixedDelayDuration'];
}
if(isset($depth1Value['ValidChannel'])){
$this->options['query']['AudioLayer.' . ($depth1 + 1) . '.ValidChannel'] = $depth1Value['ValidChannel'];
}
if(isset($depth1Value['VolumeRate'])){
$this->options['query']['AudioLayer.' . ($depth1 + 1) . '.VolumeRate'] = $depth1Value['VolumeRate'];
}
}

return $this;
Expand All @@ -595,21 +599,21 @@ public function withVideoLayer(array $videoLayer)
{
$this->data['VideoLayer'] = $videoLayer;
foreach ($videoLayer as $depth1 => $depth1Value) {
if(isset($depth1Value['FixedDelayDuration'])){
$this->options['query']['VideoLayer.' . ($depth1 + 1) . '.FixedDelayDuration'] = $depth1Value['FixedDelayDuration'];
}
if(isset($depth1Value['FillMode'])){
$this->options['query']['VideoLayer.' . ($depth1 + 1) . '.FillMode'] = $depth1Value['FillMode'];
}
if(isset($depth1Value['FixedDelayDuration'])){
$this->options['query']['VideoLayer.' . ($depth1 + 1) . '.FixedDelayDuration'] = $depth1Value['FixedDelayDuration'];
}
if(isset($depth1Value['HeightNormalized'])){
$this->options['query']['VideoLayer.' . ($depth1 + 1) . '.HeightNormalized'] = $depth1Value['HeightNormalized'];
}
if(isset($depth1Value['PositionRefer'])){
$this->options['query']['VideoLayer.' . ($depth1 + 1) . '.PositionRefer'] = $depth1Value['PositionRefer'];
}
foreach ($depth1Value['PositionNormalized'] as $i => $iValue) {
$this->options['query']['VideoLayer.' . ($depth1 + 1) . '.PositionNormalized.' . ($i + 1)] = $iValue;
}
if(isset($depth1Value['PositionRefer'])){
$this->options['query']['VideoLayer.' . ($depth1 + 1) . '.PositionRefer'] = $depth1Value['PositionRefer'];
}
if(isset($depth1Value['WidthNormalized'])){
$this->options['query']['VideoLayer.' . ($depth1 + 1) . '.WidthNormalized'] = $depth1Value['WidthNormalized'];
}
Expand Down Expand Up @@ -653,12 +657,12 @@ public function withEpisode(array $episode)
{
$this->data['Episode'] = $episode;
foreach ($episode as $depth1 => $depth1Value) {
foreach ($depth1Value['ComponentId'] as $i => $iValue) {
$this->options['query']['Episode.' . ($depth1 + 1) . '.ComponentId.' . ($i + 1)] = $iValue;
}
if(isset($depth1Value['EndTime'])){
$this->options['query']['Episode.' . ($depth1 + 1) . '.EndTime'] = $depth1Value['EndTime'];
}
if(isset($depth1Value['StartTime'])){
$this->options['query']['Episode.' . ($depth1 + 1) . '.StartTime'] = $depth1Value['StartTime'];
}
if(isset($depth1Value['EpisodeName'])){
$this->options['query']['Episode.' . ($depth1 + 1) . '.EpisodeName'] = $depth1Value['EpisodeName'];
}
Expand All @@ -668,8 +672,8 @@ public function withEpisode(array $episode)
if(isset($depth1Value['ResourceId'])){
$this->options['query']['Episode.' . ($depth1 + 1) . '.ResourceId'] = $depth1Value['ResourceId'];
}
foreach ($depth1Value['ComponentId'] as $i => $iValue) {
$this->options['query']['Episode.' . ($depth1 + 1) . '.ComponentId.' . ($i + 1)] = $iValue;
if(isset($depth1Value['StartTime'])){
$this->options['query']['Episode.' . ($depth1 + 1) . '.StartTime'] = $depth1Value['StartTime'];
}
if(isset($depth1Value['SwitchType'])){
$this->options['query']['Episode.' . ($depth1 + 1) . '.SwitchType'] = $depth1Value['SwitchType'];
Expand Down Expand Up @@ -1396,26 +1400,26 @@ public function withShowList(array $showList)
{
$this->data['ShowList'] = $showList;
foreach ($showList as $depth1 => $depth1Value) {
if(isset($depth1Value['ShowName'])){
$this->options['query']['showList.' . ($depth1 + 1) . '.showName'] = $depth1Value['ShowName'];
if(isset($depth1Value['Duration'])){
$this->options['query']['showList.' . ($depth1 + 1) . '.duration'] = $depth1Value['Duration'];
}
if(isset($depth1Value['LiveInputType'])){
$this->options['query']['showList.' . ($depth1 + 1) . '.liveInputType'] = $depth1Value['LiveInputType'];
}
if(isset($depth1Value['RepeatTimes'])){
$this->options['query']['showList.' . ($depth1 + 1) . '.repeatTimes'] = $depth1Value['RepeatTimes'];
}
if(isset($depth1Value['ResourceId'])){
$this->options['query']['showList.' . ($depth1 + 1) . '.resourceId'] = $depth1Value['ResourceId'];
}
if(isset($depth1Value['ResourceType'])){
$this->options['query']['showList.' . ($depth1 + 1) . '.resourceType'] = $depth1Value['ResourceType'];
}
if(isset($depth1Value['ResourceUrl'])){
$this->options['query']['showList.' . ($depth1 + 1) . '.resourceUrl'] = $depth1Value['ResourceUrl'];
}
if(isset($depth1Value['LiveInputType'])){
$this->options['query']['showList.' . ($depth1 + 1) . '.liveInputType'] = $depth1Value['LiveInputType'];
}
if(isset($depth1Value['Duration'])){
$this->options['query']['showList.' . ($depth1 + 1) . '.duration'] = $depth1Value['Duration'];
}
if(isset($depth1Value['ResourceId'])){
$this->options['query']['showList.' . ($depth1 + 1) . '.resourceId'] = $depth1Value['ResourceId'];
if(isset($depth1Value['ShowName'])){
$this->options['query']['showList.' . ($depth1 + 1) . '.showName'] = $depth1Value['ShowName'];
}
}

Expand Down Expand Up @@ -4082,6 +4086,24 @@ class DescribeLiveHttpsDomainList extends Rpc
{
}

/**
* @method string getMetricType()
* @method $this withMetricType($value)
* @method string getEndTs()
* @method $this withEndTs($value)
* @method string getOs()
* @method $this withOs($value)
* @method string getBeginTs()
* @method $this withBeginTs($value)
* @method string getAppId()
* @method $this withAppId($value)
* @method string getTerminalType()
* @method $this withTerminalType($value)
*/
class DescribeLiveInteractionMetricData extends Rpc
{
}

/**
* @method string getMethod()
* @method $this withMethod($value)
Expand Down Expand Up @@ -4483,6 +4505,27 @@ class DescribeLiveStreamDelayConfig extends Rpc
{
}

/**
* @method string getStartTime()
* @method $this withStartTime($value)
* @method string getAppName()
* @method $this withAppName($value)
* @method string getStreamName()
* @method $this withStreamName($value)
* @method string getDomainName()
* @method $this withDomainName($value)
* @method string getEndTime()
* @method $this withEndTime($value)
* @method string getOwnerId()
* @method $this withOwnerId($value)
*/
class DescribeLiveStreamDetailFrameRateAndBitRateData extends Rpc
{

/** @var string */
public $scheme = 'https';
}

/**
* @method string getStartTime()
* @method $this withStartTime($value)
Expand Down Expand Up @@ -5717,6 +5760,22 @@ class GetMultiRateConfigList extends Rpc
{
}

/**
* @method string getTranscodingTemplate()
* @method $this withTranscodingTemplate($value)
* @method string getSecurityToken()
* @method $this withSecurityToken($value)
* @method string getPushDomain()
* @method $this withPushDomain($value)
* @method string getStreamName()
* @method $this withStreamName($value)
* @method string getApp()
* @method $this withApp($value)
*/
class GetTranscodeTaskStatus extends Rpc
{
}

/**
* @method string getVideoMsid()
* @method $this withVideoMsid($value)
Expand Down Expand Up @@ -6716,15 +6775,15 @@ public function withAudioLayer(array $audioLayer)
{
$this->data['AudioLayer'] = $audioLayer;
foreach ($audioLayer as $depth1 => $depth1Value) {
if(isset($depth1Value['VolumeRate'])){
$this->options['query']['AudioLayer.' . ($depth1 + 1) . '.VolumeRate'] = $depth1Value['VolumeRate'];
}
if(isset($depth1Value['FixedDelayDuration'])){
$this->options['query']['AudioLayer.' . ($depth1 + 1) . '.FixedDelayDuration'] = $depth1Value['FixedDelayDuration'];
}
if(isset($depth1Value['ValidChannel'])){
$this->options['query']['AudioLayer.' . ($depth1 + 1) . '.ValidChannel'] = $depth1Value['ValidChannel'];
}
if(isset($depth1Value['VolumeRate'])){
$this->options['query']['AudioLayer.' . ($depth1 + 1) . '.VolumeRate'] = $depth1Value['VolumeRate'];
}
}

return $this;
Expand All @@ -6739,21 +6798,21 @@ public function withVideoLayer(array $videoLayer)
{
$this->data['VideoLayer'] = $videoLayer;
foreach ($videoLayer as $depth1 => $depth1Value) {
if(isset($depth1Value['FixedDelayDuration'])){
$this->options['query']['VideoLayer.' . ($depth1 + 1) . '.FixedDelayDuration'] = $depth1Value['FixedDelayDuration'];
}
if(isset($depth1Value['FillMode'])){
$this->options['query']['VideoLayer.' . ($depth1 + 1) . '.FillMode'] = $depth1Value['FillMode'];
}
if(isset($depth1Value['FixedDelayDuration'])){
$this->options['query']['VideoLayer.' . ($depth1 + 1) . '.FixedDelayDuration'] = $depth1Value['FixedDelayDuration'];
}
if(isset($depth1Value['HeightNormalized'])){
$this->options['query']['VideoLayer.' . ($depth1 + 1) . '.HeightNormalized'] = $depth1Value['HeightNormalized'];
}
if(isset($depth1Value['PositionRefer'])){
$this->options['query']['VideoLayer.' . ($depth1 + 1) . '.PositionRefer'] = $depth1Value['PositionRefer'];
}
foreach ($depth1Value['PositionNormalized'] as $i => $iValue) {
$this->options['query']['VideoLayer.' . ($depth1 + 1) . '.PositionNormalized.' . ($i + 1)] = $iValue;
}
if(isset($depth1Value['PositionRefer'])){
$this->options['query']['VideoLayer.' . ($depth1 + 1) . '.PositionRefer'] = $depth1Value['PositionRefer'];
}
if(isset($depth1Value['WidthNormalized'])){
$this->options['query']['VideoLayer.' . ($depth1 + 1) . '.WidthNormalized'] = $depth1Value['WidthNormalized'];
}
Expand Down Expand Up @@ -6797,26 +6856,26 @@ public function withEpisode(array $episode)
{
$this->data['Episode'] = $episode;
foreach ($episode as $depth1 => $depth1Value) {
foreach ($depth1Value['ComponentId'] as $i => $iValue) {
$this->options['query']['Episode.' . ($depth1 + 1) . '.ComponentId.' . ($i + 1)] = $iValue;
}
if(isset($depth1Value['EndTime'])){
$this->options['query']['Episode.' . ($depth1 + 1) . '.EndTime'] = $depth1Value['EndTime'];
}
if(isset($depth1Value['StartTime'])){
$this->options['query']['Episode.' . ($depth1 + 1) . '.StartTime'] = $depth1Value['StartTime'];
if(isset($depth1Value['EpisodeId'])){
$this->options['query']['Episode.' . ($depth1 + 1) . '.EpisodeId'] = $depth1Value['EpisodeId'];
}
if(isset($depth1Value['EpisodeName'])){
$this->options['query']['Episode.' . ($depth1 + 1) . '.EpisodeName'] = $depth1Value['EpisodeName'];
}
if(isset($depth1Value['EpisodeType'])){
$this->options['query']['Episode.' . ($depth1 + 1) . '.EpisodeType'] = $depth1Value['EpisodeType'];
}
if(isset($depth1Value['EpisodeId'])){
$this->options['query']['Episode.' . ($depth1 + 1) . '.EpisodeId'] = $depth1Value['EpisodeId'];
}
if(isset($depth1Value['ResourceId'])){
$this->options['query']['Episode.' . ($depth1 + 1) . '.ResourceId'] = $depth1Value['ResourceId'];
}
foreach ($depth1Value['ComponentId'] as $i => $iValue) {
$this->options['query']['Episode.' . ($depth1 + 1) . '.ComponentId.' . ($i + 1)] = $iValue;
if(isset($depth1Value['StartTime'])){
$this->options['query']['Episode.' . ($depth1 + 1) . '.StartTime'] = $depth1Value['StartTime'];
}
if(isset($depth1Value['SwitchType'])){
$this->options['query']['Episode.' . ($depth1 + 1) . '.SwitchType'] = $depth1Value['SwitchType'];
Expand Down Expand Up @@ -7446,6 +7505,22 @@ class RestartCaster extends Rpc
{
}

/**
* @method string getTranscodingTemplate()
* @method $this withTranscodingTemplate($value)
* @method string getSecurityToken()
* @method $this withSecurityToken($value)
* @method string getPushDomain()
* @method $this withPushDomain($value)
* @method string getStreamName()
* @method $this withStreamName($value)
* @method string getApp()
* @method $this withApp($value)
*/
class RestartTranscodeTask extends Rpc
{
}

/**
* @method string getAppName()
* @method $this withAppName($value)
Expand Down Expand Up @@ -7940,17 +8015,17 @@ public function withSyncGroup(array $syncGroup)
if(isset($depth1Value['HostResourceId'])){
$this->options['query']['SyncGroup.' . ($depth1 + 1) . '.HostResourceId'] = $depth1Value['HostResourceId'];
}
if(isset($depth1Value['Mode'])){
$this->options['query']['SyncGroup.' . ($depth1 + 1) . '.Mode'] = $depth1Value['Mode'];
}
foreach ($depth1Value['ResourceIds'] as $i => $iValue) {
$this->options['query']['SyncGroup.' . ($depth1 + 1) . '.ResourceIds.' . ($i + 1)] = $iValue;
}
foreach ($depth1Value['SyncOffsets'] as $i => $iValue) {
$this->options['query']['SyncGroup.' . ($depth1 + 1) . '.SyncOffsets.' . ($i + 1)] = $iValue;
}
if(isset($depth1Value['SyncDelayThreshold'])){
$this->options['query']['SyncGroup.' . ($depth1 + 1) . '.SyncDelayThreshold'] = $depth1Value['SyncDelayThreshold'];
}
if(isset($depth1Value['Mode'])){
$this->options['query']['SyncGroup.' . ($depth1 + 1) . '.Mode'] = $depth1Value['Mode'];
foreach ($depth1Value['SyncOffsets'] as $i => $iValue) {
$this->options['query']['SyncGroup.' . ($depth1 + 1) . '.SyncOffsets.' . ($i + 1)] = $iValue;
}
}

Expand Down Expand Up @@ -8469,17 +8544,17 @@ public function withAudioLayer(array $audioLayer)
{
$this->data['AudioLayer'] = $audioLayer;
foreach ($audioLayer as $depth1 => $depth1Value) {
if(isset($depth1Value['VolumeRate'])){
$this->options['query']['AudioLayer.' . ($depth1 + 1) . '.VolumeRate'] = $depth1Value['VolumeRate'];
if(isset($depth1Value['Filter'])){
$this->options['query']['AudioLayer.' . ($depth1 + 1) . '.Filter'] = $depth1Value['Filter'];
}
if(isset($depth1Value['FixedDelayDuration'])){
$this->options['query']['AudioLayer.' . ($depth1 + 1) . '.FixedDelayDuration'] = $depth1Value['FixedDelayDuration'];
}
if(isset($depth1Value['ValidChannel'])){
$this->options['query']['AudioLayer.' . ($depth1 + 1) . '.ValidChannel'] = $depth1Value['ValidChannel'];
}
if(isset($depth1Value['Filter'])){
$this->options['query']['AudioLayer.' . ($depth1 + 1) . '.Filter'] = $depth1Value['Filter'];
if(isset($depth1Value['VolumeRate'])){
$this->options['query']['AudioLayer.' . ($depth1 + 1) . '.VolumeRate'] = $depth1Value['VolumeRate'];
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/Release.php
Expand Up @@ -16,7 +16,7 @@ class Release
/**
* Version of the SDK
*/
const VERSION = '1.8.2106';
const VERSION = '1.8.2107';

/**
* @param Event $event
Expand Down

0 comments on commit 60216a0

Please sign in to comment.