Skip to content

Commit

Permalink
Generated php 2021-09-01 for appstream-center.
Browse files Browse the repository at this point in the history
  • Loading branch information
sdk-team committed Aug 22, 2023
1 parent 42d05c2 commit 9a165a9
Show file tree
Hide file tree
Showing 22 changed files with 1,025 additions and 45 deletions.
3 changes: 3 additions & 0 deletions ChangeLog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
2023-08-22 Version: 1.0.8
- Generated php 2021-09-01 for appstream-center.

2023-05-09 Version: 1.0.7
- Modify ListAppInstance.

Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
],
"require": {
"php": ">5.5",
"alibabacloud/tea-utils": "^0.2.18",
"alibabacloud/tea-utils": "^0.2.19",
"alibabacloud/darabonba-openapi": "^0.2.8",
"alibabacloud/openapi-util": "^0.1.10|^0.2.1",
"alibabacloud/endpoint-util": "^0.1.0"
Expand Down
15 changes: 15 additions & 0 deletions src/Appstreamcenter.php
Original file line number Diff line number Diff line change
Expand Up @@ -732,6 +732,9 @@ public function getResourcePriceWithOptions($request, $runtime)
if (!Utils::isUnset($request->amount)) {
$query['Amount'] = $request->amount;
}
if (!Utils::isUnset($request->appInstanceType)) {
$query['AppInstanceType'] = $request->appInstanceType;
}
if (!Utils::isUnset($request->bizRegionId)) {
$query['BizRegionId'] = $request->bizRegionId;
}
Expand Down Expand Up @@ -1200,6 +1203,9 @@ public function modifyAppInstanceGroupAttributeWithOptions($tmpReq, $runtime)
Utils::validateModel($tmpReq);
$request = new ModifyAppInstanceGroupAttributeShrinkRequest([]);
OpenApiUtilClient::convert($tmpReq, $request);
if (!Utils::isUnset($tmpReq->network)) {
$request->networkShrink = OpenApiUtilClient::arrayToStringWithSpecifiedStyle($tmpReq->network, 'Network', 'json');
}
if (!Utils::isUnset($tmpReq->nodePool)) {
$request->nodePoolShrink = OpenApiUtilClient::arrayToStringWithSpecifiedStyle($tmpReq->nodePool, 'NodePool', 'json');
}
Expand All @@ -1226,6 +1232,15 @@ public function modifyAppInstanceGroupAttributeWithOptions($tmpReq, $runtime)
$query['SessionTimeout'] = $request->sessionTimeout;
}
$body = [];
if (!Utils::isUnset($request->networkShrink)) {
$body['Network'] = $request->networkShrink;
}
if (!Utils::isUnset($request->preOpenAppId)) {
$body['PreOpenAppId'] = $request->preOpenAppId;
}
if (!Utils::isUnset($request->preOpenMode)) {
$body['PreOpenMode'] = $request->preOpenMode;
}
if (!Utils::isUnset($request->securityPolicyShrink)) {
$body['SecurityPolicy'] = $request->securityPolicyShrink;
}
Expand Down
25 changes: 25 additions & 0 deletions src/Models/CreateAppInstanceGroupRequest/network.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,17 @@

namespace AlibabaCloud\SDK\Appstreamcenter\V20210901\Models\CreateAppInstanceGroupRequest;

use AlibabaCloud\SDK\Appstreamcenter\V20210901\Models\CreateAppInstanceGroupRequest\network\domainRules;
use AlibabaCloud\SDK\Appstreamcenter\V20210901\Models\CreateAppInstanceGroupRequest\network\routes;
use AlibabaCloud\Tea\Model;

class network extends Model
{
/**
* @var domainRules[]
*/
public $domainRules;

/**
* @example 60
*
Expand All @@ -28,6 +34,7 @@ class network extends Model
*/
public $strategyType;
protected $_name = [
'domainRules' => 'DomainRules',
'ipExpireMinutes' => 'IpExpireMinutes',
'routes' => 'Routes',
'strategyType' => 'StrategyType',
Expand All @@ -40,6 +47,15 @@ public function validate()
public function toMap()
{
$res = [];
if (null !== $this->domainRules) {
$res['DomainRules'] = [];
if (null !== $this->domainRules && \is_array($this->domainRules)) {
$n = 0;
foreach ($this->domainRules as $item) {
$res['DomainRules'][$n++] = null !== $item ? $item->toMap() : $item;
}
}
}
if (null !== $this->ipExpireMinutes) {
$res['IpExpireMinutes'] = $this->ipExpireMinutes;
}
Expand Down Expand Up @@ -67,6 +83,15 @@ public function toMap()
public static function fromMap($map = [])
{
$model = new self();
if (isset($map['DomainRules'])) {
if (!empty($map['DomainRules'])) {
$model->domainRules = [];
$n = 0;
foreach ($map['DomainRules'] as $item) {
$model->domainRules[$n++] = null !== $item ? domainRules::fromMap($item) : $item;
}
}
}
if (isset($map['IpExpireMinutes'])) {
$model->ipExpireMinutes = $map['IpExpireMinutes'];
}
Expand Down
59 changes: 59 additions & 0 deletions src/Models/CreateAppInstanceGroupRequest/network/domainRules.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
<?php

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

namespace AlibabaCloud\SDK\Appstreamcenter\V20210901\Models\CreateAppInstanceGroupRequest\network;

use AlibabaCloud\Tea\Model;

class domainRules extends Model
{
/**
* @var string
*/
public $domain;

/**
* @var string
*/
public $policy;
protected $_name = [
'domain' => 'Domain',
'policy' => 'Policy',
];

public function validate()
{
}

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

return $res;
}

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

return $model;
}
}
2 changes: 2 additions & 0 deletions src/Models/CreateAppInstanceGroupRequest/securityPolicy.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ class securityPolicy extends Model
public $resetAfterUnbind;

/**
* @example false
*
* @var bool
*/
public $skipUserAuthCheck;
Expand Down
Loading

0 comments on commit 9a165a9

Please sign in to comment.