-
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
1 parent
bb4031b
commit 20bb537
Showing
7 changed files
with
591 additions
and
1 deletion.
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
77 changes: 77 additions & 0 deletions
77
src/TencentCloud/Cynosdb/V20190107/Models/AuditInstanceFilters.php
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,77 @@ | ||
<?php | ||
/* | ||
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
namespace TencentCloud\Cynosdb\V20190107\Models; | ||
use TencentCloud\Common\AbstractModel; | ||
|
||
/** | ||
* 查询审计实例的过滤条件 | ||
* | ||
* @method string getName() 获取过滤条件值。支持InstanceId-实例ID,InstanceName-实例名称,ProjectId-项目ID,TagKey-标签键,Tag-标签(以竖线分割,例:Tagkey|Tagvalue)。 | ||
* @method void setName(string $Name) 设置过滤条件值。支持InstanceId-实例ID,InstanceName-实例名称,ProjectId-项目ID,TagKey-标签键,Tag-标签(以竖线分割,例:Tagkey|Tagvalue)。 | ||
* @method boolean getExactMatch() 获取true表示精确查找,false表示模糊匹配。 | ||
* @method void setExactMatch(boolean $ExactMatch) 设置true表示精确查找,false表示模糊匹配。 | ||
* @method array getValues() 获取筛选值 | ||
* @method void setValues(array $Values) 设置筛选值 | ||
*/ | ||
class AuditInstanceFilters extends AbstractModel | ||
{ | ||
/** | ||
* @var string 过滤条件值。支持InstanceId-实例ID,InstanceName-实例名称,ProjectId-项目ID,TagKey-标签键,Tag-标签(以竖线分割,例:Tagkey|Tagvalue)。 | ||
*/ | ||
public $Name; | ||
|
||
/** | ||
* @var boolean true表示精确查找,false表示模糊匹配。 | ||
*/ | ||
public $ExactMatch; | ||
|
||
/** | ||
* @var array 筛选值 | ||
*/ | ||
public $Values; | ||
|
||
/** | ||
* @param string $Name 过滤条件值。支持InstanceId-实例ID,InstanceName-实例名称,ProjectId-项目ID,TagKey-标签键,Tag-标签(以竖线分割,例:Tagkey|Tagvalue)。 | ||
* @param boolean $ExactMatch true表示精确查找,false表示模糊匹配。 | ||
* @param array $Values 筛选值 | ||
*/ | ||
function __construct() | ||
{ | ||
|
||
} | ||
|
||
/** | ||
* For internal only. DO NOT USE IT. | ||
*/ | ||
public function deserialize($param) | ||
{ | ||
if ($param === null) { | ||
return; | ||
} | ||
if (array_key_exists("Name",$param) and $param["Name"] !== null) { | ||
$this->Name = $param["Name"]; | ||
} | ||
|
||
if (array_key_exists("ExactMatch",$param) and $param["ExactMatch"] !== null) { | ||
$this->ExactMatch = $param["ExactMatch"]; | ||
} | ||
|
||
if (array_key_exists("Values",$param) and $param["Values"] !== null) { | ||
$this->Values = $param["Values"]; | ||
} | ||
} | ||
} |
78 changes: 78 additions & 0 deletions
78
src/TencentCloud/Cynosdb/V20190107/Models/AuditInstanceInfo.php
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,78 @@ | ||
<?php | ||
/* | ||
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
namespace TencentCloud\Cynosdb\V20190107\Models; | ||
use TencentCloud\Common\AbstractModel; | ||
|
||
/** | ||
* 审计实例详情 | ||
* | ||
* @method integer getProjectId() 获取项目ID | ||
注意:此字段可能返回 null,表示取不到有效值。 | ||
* @method void setProjectId(integer $ProjectId) 设置项目ID | ||
注意:此字段可能返回 null,表示取不到有效值。 | ||
* @method array getTagList() 获取标签信息 | ||
注意:此字段可能返回 null,表示取不到有效值。 | ||
* @method void setTagList(array $TagList) 设置标签信息 | ||
注意:此字段可能返回 null,表示取不到有效值。 | ||
*/ | ||
class AuditInstanceInfo extends AbstractModel | ||
{ | ||
/** | ||
* @var integer 项目ID | ||
注意:此字段可能返回 null,表示取不到有效值。 | ||
*/ | ||
public $ProjectId; | ||
|
||
/** | ||
* @var array 标签信息 | ||
注意:此字段可能返回 null,表示取不到有效值。 | ||
*/ | ||
public $TagList; | ||
|
||
/** | ||
* @param integer $ProjectId 项目ID | ||
注意:此字段可能返回 null,表示取不到有效值。 | ||
* @param array $TagList 标签信息 | ||
注意:此字段可能返回 null,表示取不到有效值。 | ||
*/ | ||
function __construct() | ||
{ | ||
|
||
} | ||
|
||
/** | ||
* For internal only. DO NOT USE IT. | ||
*/ | ||
public function deserialize($param) | ||
{ | ||
if ($param === null) { | ||
return; | ||
} | ||
if (array_key_exists("ProjectId",$param) and $param["ProjectId"] !== null) { | ||
$this->ProjectId = $param["ProjectId"]; | ||
} | ||
|
||
if (array_key_exists("TagList",$param) and $param["TagList"] !== null) { | ||
$this->TagList = []; | ||
foreach ($param["TagList"] as $key => $value){ | ||
$obj = new Tag(); | ||
$obj->deserialize($value); | ||
array_push($this->TagList, $obj); | ||
} | ||
} | ||
} | ||
} |
106 changes: 106 additions & 0 deletions
106
src/TencentCloud/Cynosdb/V20190107/Models/DescribeAuditInstanceListRequest.php
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,106 @@ | ||
<?php | ||
/* | ||
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
namespace TencentCloud\Cynosdb\V20190107\Models; | ||
use TencentCloud\Common\AbstractModel; | ||
|
||
/** | ||
* DescribeAuditInstanceList请求参数结构体 | ||
* | ||
* @method integer getAuditSwitch() 获取实例审计开启的状态。1-已开启审计;0-未开启审计。 | ||
* @method void setAuditSwitch(integer $AuditSwitch) 设置实例审计开启的状态。1-已开启审计;0-未开启审计。 | ||
* @method array getFilters() 获取查询实例列表的过滤条件。 | ||
* @method void setFilters(array $Filters) 设置查询实例列表的过滤条件。 | ||
* @method integer getAuditMode() 获取实例的审计规则模式。1-规则审计;0-全审计。 | ||
* @method void setAuditMode(integer $AuditMode) 设置实例的审计规则模式。1-规则审计;0-全审计。 | ||
* @method integer getLimit() 获取单次请求返回的数量。默认值为30,最大值为 20000。 | ||
* @method void setLimit(integer $Limit) 设置单次请求返回的数量。默认值为30,最大值为 20000。 | ||
* @method integer getOffset() 获取偏移量,默认值为 0。 | ||
* @method void setOffset(integer $Offset) 设置偏移量,默认值为 0。 | ||
*/ | ||
class DescribeAuditInstanceListRequest extends AbstractModel | ||
{ | ||
/** | ||
* @var integer 实例审计开启的状态。1-已开启审计;0-未开启审计。 | ||
*/ | ||
public $AuditSwitch; | ||
|
||
/** | ||
* @var array 查询实例列表的过滤条件。 | ||
*/ | ||
public $Filters; | ||
|
||
/** | ||
* @var integer 实例的审计规则模式。1-规则审计;0-全审计。 | ||
*/ | ||
public $AuditMode; | ||
|
||
/** | ||
* @var integer 单次请求返回的数量。默认值为30,最大值为 20000。 | ||
*/ | ||
public $Limit; | ||
|
||
/** | ||
* @var integer 偏移量,默认值为 0。 | ||
*/ | ||
public $Offset; | ||
|
||
/** | ||
* @param integer $AuditSwitch 实例审计开启的状态。1-已开启审计;0-未开启审计。 | ||
* @param array $Filters 查询实例列表的过滤条件。 | ||
* @param integer $AuditMode 实例的审计规则模式。1-规则审计;0-全审计。 | ||
* @param integer $Limit 单次请求返回的数量。默认值为30,最大值为 20000。 | ||
* @param integer $Offset 偏移量,默认值为 0。 | ||
*/ | ||
function __construct() | ||
{ | ||
|
||
} | ||
|
||
/** | ||
* For internal only. DO NOT USE IT. | ||
*/ | ||
public function deserialize($param) | ||
{ | ||
if ($param === null) { | ||
return; | ||
} | ||
if (array_key_exists("AuditSwitch",$param) and $param["AuditSwitch"] !== null) { | ||
$this->AuditSwitch = $param["AuditSwitch"]; | ||
} | ||
|
||
if (array_key_exists("Filters",$param) and $param["Filters"] !== null) { | ||
$this->Filters = []; | ||
foreach ($param["Filters"] as $key => $value){ | ||
$obj = new AuditInstanceFilters(); | ||
$obj->deserialize($value); | ||
array_push($this->Filters, $obj); | ||
} | ||
} | ||
|
||
if (array_key_exists("AuditMode",$param) and $param["AuditMode"] !== null) { | ||
$this->AuditMode = $param["AuditMode"]; | ||
} | ||
|
||
if (array_key_exists("Limit",$param) and $param["Limit"] !== null) { | ||
$this->Limit = $param["Limit"]; | ||
} | ||
|
||
if (array_key_exists("Offset",$param) and $param["Offset"] !== null) { | ||
$this->Offset = $param["Offset"]; | ||
} | ||
} | ||
} |
86 changes: 86 additions & 0 deletions
86
src/TencentCloud/Cynosdb/V20190107/Models/DescribeAuditInstanceListResponse.php
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,86 @@ | ||
<?php | ||
/* | ||
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
namespace TencentCloud\Cynosdb\V20190107\Models; | ||
use TencentCloud\Common\AbstractModel; | ||
|
||
/** | ||
* DescribeAuditInstanceList返回参数结构体 | ||
* | ||
* @method integer getTotalCount() 获取符合查询条件的实例总数。 | ||
* @method void setTotalCount(integer $TotalCount) 设置符合查询条件的实例总数。 | ||
* @method array getItems() 获取审计实例详细信息列表。 | ||
注意:此字段可能返回 null,表示取不到有效值。 | ||
* @method void setItems(array $Items) 设置审计实例详细信息列表。 | ||
注意:此字段可能返回 null,表示取不到有效值。 | ||
* @method string getRequestId() 获取唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 | ||
* @method void setRequestId(string $RequestId) 设置唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 | ||
*/ | ||
class DescribeAuditInstanceListResponse extends AbstractModel | ||
{ | ||
/** | ||
* @var integer 符合查询条件的实例总数。 | ||
*/ | ||
public $TotalCount; | ||
|
||
/** | ||
* @var array 审计实例详细信息列表。 | ||
注意:此字段可能返回 null,表示取不到有效值。 | ||
*/ | ||
public $Items; | ||
|
||
/** | ||
* @var string 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 | ||
*/ | ||
public $RequestId; | ||
|
||
/** | ||
* @param integer $TotalCount 符合查询条件的实例总数。 | ||
* @param array $Items 审计实例详细信息列表。 | ||
注意:此字段可能返回 null,表示取不到有效值。 | ||
* @param string $RequestId 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 | ||
*/ | ||
function __construct() | ||
{ | ||
|
||
} | ||
|
||
/** | ||
* For internal only. DO NOT USE IT. | ||
*/ | ||
public function deserialize($param) | ||
{ | ||
if ($param === null) { | ||
return; | ||
} | ||
if (array_key_exists("TotalCount",$param) and $param["TotalCount"] !== null) { | ||
$this->TotalCount = $param["TotalCount"]; | ||
} | ||
|
||
if (array_key_exists("Items",$param) and $param["Items"] !== null) { | ||
$this->Items = []; | ||
foreach ($param["Items"] as $key => $value){ | ||
$obj = new InstanceAuditStatus(); | ||
$obj->deserialize($value); | ||
array_push($this->Items, $obj); | ||
} | ||
} | ||
|
||
if (array_key_exists("RequestId",$param) and $param["RequestId"] !== null) { | ||
$this->RequestId = $param["RequestId"]; | ||
} | ||
} | ||
} |
Oops, something went wrong.