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 Jan 15, 2024
1 parent 9a165a9 commit f28c3f0
Show file tree
Hide file tree
Showing 76 changed files with 8,073 additions and 106 deletions.
3 changes: 3 additions & 0 deletions ChangeLog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
2024-01-15 Version: 1.1.0
- Generated php 2021-09-01 for appstream-center.

2023-08-22 Version: 1.0.8
- Generated php 2021-09-01 for appstream-center.

Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"require": {
"php": ">5.5",
"alibabacloud/tea-utils": "^0.2.19",
"alibabacloud/darabonba-openapi": "^0.2.8",
"alibabacloud/darabonba-openapi": "^0.2.10",
"alibabacloud/openapi-util": "^0.1.10|^0.2.1",
"alibabacloud/endpoint-util": "^0.1.0"
},
Expand Down
1,206 changes: 1,139 additions & 67 deletions src/Appstreamcenter.php

Large diffs are not rendered by default.

49 changes: 49 additions & 0 deletions src/Models/AccessPageGetAclRequest.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\Appstreamcenter\V20210901\Models;

use AlibabaCloud\Tea\Model;

class AccessPageGetAclRequest extends Model
{
/**
* @example a-075nu7bcqim2wvxli
*
* @var string
*/
public $accessPageId;
protected $_name = [
'accessPageId' => 'AccessPageId',
];

public function validate()
{
}

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

return $res;
}

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

return $model;
}
}
74 changes: 74 additions & 0 deletions src/Models/AccessPageGetAclResponse.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
<?php

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

namespace AlibabaCloud\SDK\Appstreamcenter\V20210901\Models;

use AlibabaCloud\Tea\Model;

class AccessPageGetAclResponse extends Model
{
/**
* @var string[]
*/
public $headers;

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

/**
* @var AccessPageGetAclResponseBody
*/
public $body;
protected $_name = [
'headers' => 'headers',
'statusCode' => 'statusCode',
'body' => 'body',
];

public function validate()
{
Model::validateRequired('headers', $this->headers, true);
Model::validateRequired('statusCode', $this->statusCode, true);
Model::validateRequired('body', $this->body, true);
}

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 AccessPageGetAclResponse
*/
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 = AccessPageGetAclResponseBody::fromMap($map['body']);
}

return $model;
}
}
118 changes: 118 additions & 0 deletions src/Models/AccessPageGetAclResponseBody.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\Appstreamcenter\V20210901\Models;

use AlibabaCloud\SDK\Appstreamcenter\V20210901\Models\AccessPageGetAclResponseBody\data;
use AlibabaCloud\Tea\Model;

class AccessPageGetAclResponseBody extends Model
{
/**
* @example 200
*
* @var string
*/
public $code;

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

/**
* @example The parameter ProductType is invalid.
*
* @var string
*/
public $message;

/**
* @description Id of the request
*
* @example 1CBAFFAB-B697-4049-A9B1-67E1FC5F****
*
* @var string
*/
public $requestId;

/**
* @example true
*
* @var string
*/
public $success;
protected $_name = [
'code' => 'Code',
'data' => 'Data',
'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'] = [];
if (null !== $this->data && \is_array($this->data)) {
$n = 0;
foreach ($this->data as $item) {
$res['Data'][$n++] = null !== $item ? $item->toMap() : $item;
}
}
}
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 AccessPageGetAclResponseBody
*/
public static function fromMap($map = [])
{
$model = new self();
if (isset($map['Code'])) {
$model->code = $map['Code'];
}
if (isset($map['Data'])) {
if (!empty($map['Data'])) {
$model->data = [];
$n = 0;
foreach ($map['Data'] as $item) {
$model->data[$n++] = null !== $item ? data::fromMap($item) : $item;
}
}
}
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;
}
}
105 changes: 105 additions & 0 deletions src/Models/AccessPageGetAclResponseBody/data.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,105 @@
<?php

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

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

use AlibabaCloud\Tea\Model;

class data extends Model
{
/**
* @example FREE_ACCESS
*
* @var string
*/
public $accessMode;

/**
* @example https://wuying.aliyun.com/native-solution/cloud-flow/view?id=a-075nu7bcqim2wvxli&token=8141B1A674D48ACB8E5D2D6CE53FDB2F3CF8710A5F8F78578D5254BC6F******
*
* @var string
*/
public $accessUrl;

/**
* @example 2023-02-08T03:52Z
*
* @var int
*/
public $effectTime;

/**
* @example hour
*
* @var string
*/
public $unit;

/**
* @example 2023-12-05 14:28:20
*
* @var string
*/
public $urlExpireTime;
protected $_name = [
'accessMode' => 'AccessMode',
'accessUrl' => 'AccessUrl',
'effectTime' => 'EffectTime',
'unit' => 'Unit',
'urlExpireTime' => 'UrlExpireTime',
];

public function validate()
{
}

public function toMap()
{
$res = [];
if (null !== $this->accessMode) {
$res['AccessMode'] = $this->accessMode;
}
if (null !== $this->accessUrl) {
$res['AccessUrl'] = $this->accessUrl;
}
if (null !== $this->effectTime) {
$res['EffectTime'] = $this->effectTime;
}
if (null !== $this->unit) {
$res['Unit'] = $this->unit;
}
if (null !== $this->urlExpireTime) {
$res['UrlExpireTime'] = $this->urlExpireTime;
}

return $res;
}

/**
* @param array $map
*
* @return data
*/
public static function fromMap($map = [])
{
$model = new self();
if (isset($map['AccessMode'])) {
$model->accessMode = $map['AccessMode'];
}
if (isset($map['AccessUrl'])) {
$model->accessUrl = $map['AccessUrl'];
}
if (isset($map['EffectTime'])) {
$model->effectTime = $map['EffectTime'];
}
if (isset($map['Unit'])) {
$model->unit = $map['Unit'];
}
if (isset($map['UrlExpireTime'])) {
$model->urlExpireTime = $map['UrlExpireTime'];
}

return $model;
}
}
Loading

0 comments on commit f28c3f0

Please sign in to comment.