diff --git a/CHANGELOG.md b/CHANGELOG.md index caf992d0f..3bdd65654 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,35 @@ +# 3.1.78 2024-02-20 + +### HuaweiCloud SDK IAMAccessAnalyzer + +- _Features_ + - Support `IAMAccessAnalyzer` +- _Bug Fix_ + - None +- _Change_ + - None + +### HuaweiCloud SDK DCS + +- _Features_ + - Support the APIs `ListClients`, `ScanClients`, `HangUpClients`, `HangUpKillAllClients` +- _Bug Fix_ + - None +- _Change_ + - None + +### HuaweiCloud SDK DLI + +- _Features_ + - None +- _Bug Fix_ + - None +- _Change_ + - **ListSqlJobs** + - changes of response param + - `* jobs.duration: int32 -> int64` + - `* jobs.result_count: int32 -> int64` + # 3.1.77 2024-02-07 ### HuaweiCloud SDK GEIP diff --git a/CHANGELOG_CN.md b/CHANGELOG_CN.md index 2f75e2c96..c33692ee5 100644 --- a/CHANGELOG_CN.md +++ b/CHANGELOG_CN.md @@ -1,3 +1,35 @@ +# 3.1.78 2024-02-20 + +### HuaweiCloud SDK IAMAccessAnalyzer + +- _新增特性_ + - 支持访问分析服务 +- _解决问题_ + - 无 +- _特性变更_ + - 无 + +### HuaweiCloud SDK DCS + +- _新增特性_ + - 支持接口`ListClients`、`ScanClients`、`HangUpClients`、`HangUpKillAllClients` +- _解决问题_ + - 无 +- _特性变更_ + - 无 + +### HuaweiCloud SDK DLI + +- _新增特性_ + - 无 +- _解决问题_ + - 无 +- _特性变更_ + - **ListSqlJobs** + - 响应参数变更 + - `* jobs.duration: int32 -> int64` + - `* jobs.result_count: int32 -> int64` + # 3.1.77 2024-02-07 ### HuaweiCloud SDK GEIP diff --git a/Core/composer.json b/Core/composer.json index 9fbc9996e..04c845277 100644 --- a/Core/composer.json +++ b/Core/composer.json @@ -8,7 +8,7 @@ "api", "core" ], - "version": "3.1.77", + "version": "3.1.78", "type": "library", "license": "Apache-2.0", "authors": [ diff --git a/Services/Aad/composer.json b/Services/Aad/composer.json index e72e81bc4..0f82f3483 100644 --- a/Services/Aad/composer.json +++ b/Services/Aad/composer.json @@ -8,7 +8,7 @@ "api", "aad" ], - "version": "3.1.77", + "version": "3.1.78", "type": "library", "license": "Apache-2.0", "authors": [ @@ -20,7 +20,7 @@ ], "minimum-stability": "dev", "require": { - "huaweicloud/huaweicloud-sdk-core": "3.1.77" + "huaweicloud/huaweicloud-sdk-core": "3.1.78" }, "autoload": { "psr-4": { diff --git a/Services/AntiDDoS/composer.json b/Services/AntiDDoS/composer.json index e828f22fb..4a22c50b4 100644 --- a/Services/AntiDDoS/composer.json +++ b/Services/AntiDDoS/composer.json @@ -8,7 +8,7 @@ "api", "antiddos" ], - "version": "3.1.77", + "version": "3.1.78", "type": "library", "license": "Apache-2.0", "authors": [ @@ -20,7 +20,7 @@ ], "minimum-stability": "dev", "require": { - "huaweicloud/huaweicloud-sdk-core": "3.1.77" + "huaweicloud/huaweicloud-sdk-core": "3.1.78" }, "autoload": { "psr-4": { diff --git a/Services/Aom/composer.json b/Services/Aom/composer.json index 09588c6b0..c3f1dd017 100644 --- a/Services/Aom/composer.json +++ b/Services/Aom/composer.json @@ -8,7 +8,7 @@ "api", "aom" ], - "version": "3.1.77", + "version": "3.1.78", "type": "library", "license": "Apache-2.0", "authors": [ @@ -20,7 +20,7 @@ ], "minimum-stability": "dev", "require": { - "huaweicloud/huaweicloud-sdk-core": "3.1.77" + "huaweicloud/huaweicloud-sdk-core": "3.1.78" }, "autoload": { "psr-4": { diff --git a/Services/Aos/composer.json b/Services/Aos/composer.json index f3d5f94b9..e845c9c26 100644 --- a/Services/Aos/composer.json +++ b/Services/Aos/composer.json @@ -8,7 +8,7 @@ "api", "aos" ], - "version": "3.1.77", + "version": "3.1.78", "type": "library", "license": "Apache-2.0", "authors": [ @@ -20,7 +20,7 @@ ], "minimum-stability": "dev", "require": { - "huaweicloud/huaweicloud-sdk-core": "3.1.77" + "huaweicloud/huaweicloud-sdk-core": "3.1.78" }, "autoload": { "psr-4": { diff --git a/Services/Apig/composer.json b/Services/Apig/composer.json index 5cd4726f1..853eef1e3 100644 --- a/Services/Apig/composer.json +++ b/Services/Apig/composer.json @@ -8,7 +8,7 @@ "api", "apig" ], - "version": "3.1.77", + "version": "3.1.78", "type": "library", "license": "Apache-2.0", "authors": [ @@ -20,7 +20,7 @@ ], "minimum-stability": "dev", "require": { - "huaweicloud/huaweicloud-sdk-core": "3.1.77" + "huaweicloud/huaweicloud-sdk-core": "3.1.78" }, "autoload": { "psr-4": { diff --git a/Services/As/composer.json b/Services/As/composer.json index a285fe4c3..12b4a2bac 100644 --- a/Services/As/composer.json +++ b/Services/As/composer.json @@ -8,7 +8,7 @@ "api", "as" ], - "version": "3.1.77", + "version": "3.1.78", "type": "library", "license": "Apache-2.0", "authors": [ @@ -20,7 +20,7 @@ ], "minimum-stability": "dev", "require": { - "huaweicloud/huaweicloud-sdk-core": "3.1.77" + "huaweicloud/huaweicloud-sdk-core": "3.1.78" }, "autoload": { "psr-4": { diff --git a/Services/Bms/composer.json b/Services/Bms/composer.json index 6adace566..a981ccd69 100644 --- a/Services/Bms/composer.json +++ b/Services/Bms/composer.json @@ -8,7 +8,7 @@ "api", "bms" ], - "version": "3.1.77", + "version": "3.1.78", "type": "library", "license": "Apache-2.0", "authors": [ @@ -20,7 +20,7 @@ ], "minimum-stability": "dev", "require": { - "huaweicloud/huaweicloud-sdk-core": "3.1.77" + "huaweicloud/huaweicloud-sdk-core": "3.1.78" }, "autoload": { "psr-4": { diff --git a/Services/Bss/composer.json b/Services/Bss/composer.json index 2ff9dc45d..6320a1c52 100644 --- a/Services/Bss/composer.json +++ b/Services/Bss/composer.json @@ -8,7 +8,7 @@ "api", "bss" ], - "version": "3.1.77", + "version": "3.1.78", "type": "library", "license": "Apache-2.0", "authors": [ @@ -20,7 +20,7 @@ ], "minimum-stability": "dev", "require": { - "huaweicloud/huaweicloud-sdk-core": "3.1.77" + "huaweicloud/huaweicloud-sdk-core": "3.1.78" }, "autoload": { "psr-4": { diff --git a/Services/Bssintl/composer.json b/Services/Bssintl/composer.json index b1ad8d79e..d379bff2f 100644 --- a/Services/Bssintl/composer.json +++ b/Services/Bssintl/composer.json @@ -8,7 +8,7 @@ "api", "bssintl" ], - "version": "3.1.77", + "version": "3.1.78", "type": "library", "license": "Apache-2.0", "authors": [ @@ -20,7 +20,7 @@ ], "minimum-stability": "dev", "require": { - "huaweicloud/huaweicloud-sdk-core": "3.1.77" + "huaweicloud/huaweicloud-sdk-core": "3.1.78" }, "autoload": { "psr-4": { diff --git a/Services/Cbh/composer.json b/Services/Cbh/composer.json index 5cdce8c70..1367982ea 100644 --- a/Services/Cbh/composer.json +++ b/Services/Cbh/composer.json @@ -8,7 +8,7 @@ "api", "cbh" ], - "version": "3.1.77", + "version": "3.1.78", "type": "library", "license": "Apache-2.0", "authors": [ @@ -20,7 +20,7 @@ ], "minimum-stability": "dev", "require": { - "huaweicloud/huaweicloud-sdk-core": "3.1.77" + "huaweicloud/huaweicloud-sdk-core": "3.1.78" }, "autoload": { "psr-4": { diff --git a/Services/Cbr/V1/Region/CbrRegion.php b/Services/Cbr/V1/Region/CbrRegion.php index fb7d397e2..9c4bf9efb 100644 --- a/Services/Cbr/V1/Region/CbrRegion.php +++ b/Services/Cbr/V1/Region/CbrRegion.php @@ -6,7 +6,7 @@ class CbrRegion { - public static $REGION = array("https://cbr.eu-west-101.myhuaweicloud.eu"=>"eu-west-101","https://cbr.cn-north-1.myhuaweicloud.com"=>"cn-north-1","https://cbr.cn-north-4.myhuaweicloud.com"=>"cn-north-4","https://cbr.cn-south-1.myhuaweicloud.com"=>"cn-south-1","https://cbr.cn-east-2.myhuaweicloud.com"=>"cn-east-2","https://cbr.cn-east-3.myhuaweicloud.com"=>"cn-east-3","https://cbr.cn-southwest-2.myhuaweicloud.com"=>"cn-southwest-2","https://cbr.ap-southeast-1.myhuaweicloud.com"=>"ap-southeast-1","https://cbr.ap-southeast-2.myhuaweicloud.com"=>"ap-southeast-2","https://cbr.ap-southeast-3.myhuaweicloud.com"=>"ap-southeast-3","https://cbr.af-south-1.myhuaweicloud.com"=>"af-south-1","https://cbr.sa-brazil-1.myhuaweicloud.com"=>"sa-brazil-1","https://cbr.la-north-2.myhuaweicloud.com"=>"la-north-2","https://cbr.cn-south-4.myhuaweicloud.com"=>"cn-south-4","https://cbr.na-mexico-1.myhuaweicloud.com"=>"na-mexico-1","https://cbr.la-south-2.myhuaweicloud.com"=>"la-south-2","https://cbr.cn-south-2.myhuaweicloud.com"=>"cn-south-2","https://cbr.cn-north-9.myhuaweicloud.com"=>"cn-north-9","https://cbr.cn-north-2.myhuaweicloud.com"=>"cn-north-2","https://cbr.ap-southeast-4.myhuaweicloud.com"=>"ap-southeast-4","https://cbr.tr-west-1.myhuaweicloud.com"=>"tr-west-1","https://cbr.me-east-1.myhuaweicloud.com"=>"me-east-1","https://cbr.ae-ad-1.myhuaweicloud.com"=>"ae-ad-1",); + public static $REGION = array("https://cbr.eu-west-101.myhuaweicloud.eu"=>"eu-west-101","https://cbr.cn-north-1.myhuaweicloud.com"=>"cn-north-1","https://cbr.cn-north-4.myhuaweicloud.com"=>"cn-north-4","https://cbr.cn-south-1.myhuaweicloud.com"=>"cn-south-1","https://cbr.cn-east-2.myhuaweicloud.com"=>"cn-east-2","https://cbr.cn-east-3.myhuaweicloud.com"=>"cn-east-3","https://cbr.cn-southwest-2.myhuaweicloud.com"=>"cn-southwest-2","https://cbr.ap-southeast-1.myhuaweicloud.com"=>"ap-southeast-1","https://cbr.ap-southeast-2.myhuaweicloud.com"=>"ap-southeast-2","https://cbr.ap-southeast-3.myhuaweicloud.com"=>"ap-southeast-3","https://cbr.af-south-1.myhuaweicloud.com"=>"af-south-1","https://cbr.sa-brazil-1.myhuaweicloud.com"=>"sa-brazil-1","https://cbr.la-north-2.myhuaweicloud.com"=>"la-north-2","https://cbr.cn-south-4.myhuaweicloud.com"=>"cn-south-4","https://cbr.na-mexico-1.myhuaweicloud.com"=>"na-mexico-1","https://cbr.la-south-2.myhuaweicloud.com"=>"la-south-2","https://cbr.cn-south-2.myhuaweicloud.com"=>"cn-south-2","https://cbr.cn-north-9.myhuaweicloud.com"=>"cn-north-9","https://cbr.cn-north-2.myhuaweicloud.com"=>"cn-north-2","https://cbr.ap-southeast-4.myhuaweicloud.com"=>"ap-southeast-4","https://cbr.tr-west-1.myhuaweicloud.com"=>"tr-west-1","https://cbr.me-east-1.myhuaweicloud.com"=>"me-east-1","https://cbr.ae-ad-1.myhuaweicloud.com"=>"ae-ad-1","https://cbr.eu-west-0.myhuaweicloud.com"=>"eu-west-0","https://cbr.my-kualalumpur-1.myhuaweicloud.com"=>"my-kualalumpur-1",); public static function valueOf($regionId) { diff --git a/Services/Cbr/composer.json b/Services/Cbr/composer.json index 4fe5cfbbe..b8959a4b1 100644 --- a/Services/Cbr/composer.json +++ b/Services/Cbr/composer.json @@ -8,7 +8,7 @@ "api", "cbr" ], - "version": "3.1.77", + "version": "3.1.78", "type": "library", "license": "Apache-2.0", "authors": [ @@ -20,7 +20,7 @@ ], "minimum-stability": "dev", "require": { - "huaweicloud/huaweicloud-sdk-core": "3.1.77" + "huaweicloud/huaweicloud-sdk-core": "3.1.78" }, "autoload": { "psr-4": { diff --git a/Services/Cc/composer.json b/Services/Cc/composer.json index 624a4b1c0..c34e15719 100644 --- a/Services/Cc/composer.json +++ b/Services/Cc/composer.json @@ -8,7 +8,7 @@ "api", "cc" ], - "version": "3.1.77", + "version": "3.1.78", "type": "library", "license": "Apache-2.0", "authors": [ @@ -20,7 +20,7 @@ ], "minimum-stability": "dev", "require": { - "huaweicloud/huaweicloud-sdk-core": "3.1.77" + "huaweicloud/huaweicloud-sdk-core": "3.1.78" }, "autoload": { "psr-4": { diff --git a/Services/Cce/composer.json b/Services/Cce/composer.json index b906b1d9f..a9580fc4d 100644 --- a/Services/Cce/composer.json +++ b/Services/Cce/composer.json @@ -8,7 +8,7 @@ "api", "cce" ], - "version": "3.1.77", + "version": "3.1.78", "type": "library", "license": "Apache-2.0", "authors": [ @@ -20,7 +20,7 @@ ], "minimum-stability": "dev", "require": { - "huaweicloud/huaweicloud-sdk-core": "3.1.77" + "huaweicloud/huaweicloud-sdk-core": "3.1.78" }, "autoload": { "psr-4": { diff --git a/Services/Cdm/composer.json b/Services/Cdm/composer.json index b67931139..54175d5b6 100644 --- a/Services/Cdm/composer.json +++ b/Services/Cdm/composer.json @@ -8,7 +8,7 @@ "api", "cdm" ], - "version": "3.1.77", + "version": "3.1.78", "type": "library", "license": "Apache-2.0", "authors": [ @@ -20,7 +20,7 @@ ], "minimum-stability": "dev", "require": { - "huaweicloud/huaweicloud-sdk-core": "3.1.77" + "huaweicloud/huaweicloud-sdk-core": "3.1.78" }, "autoload": { "psr-4": { diff --git a/Services/Cdn/composer.json b/Services/Cdn/composer.json index 2dfe0e47e..2fbac21cc 100644 --- a/Services/Cdn/composer.json +++ b/Services/Cdn/composer.json @@ -8,7 +8,7 @@ "api", "cdn" ], - "version": "3.1.77", + "version": "3.1.78", "type": "library", "license": "Apache-2.0", "authors": [ @@ -20,7 +20,7 @@ ], "minimum-stability": "dev", "require": { - "huaweicloud/huaweicloud-sdk-core": "3.1.77" + "huaweicloud/huaweicloud-sdk-core": "3.1.78" }, "autoload": { "psr-4": { diff --git a/Services/Ces/composer.json b/Services/Ces/composer.json index 35ab543af..91b25ca96 100644 --- a/Services/Ces/composer.json +++ b/Services/Ces/composer.json @@ -8,7 +8,7 @@ "api", "ces" ], - "version": "3.1.77", + "version": "3.1.78", "type": "library", "license": "Apache-2.0", "authors": [ @@ -20,7 +20,7 @@ ], "minimum-stability": "dev", "require": { - "huaweicloud/huaweicloud-sdk-core": "3.1.77" + "huaweicloud/huaweicloud-sdk-core": "3.1.78" }, "autoload": { "psr-4": { diff --git a/Services/Cfw/composer.json b/Services/Cfw/composer.json index 94e50c61f..3f4c8df23 100644 --- a/Services/Cfw/composer.json +++ b/Services/Cfw/composer.json @@ -8,7 +8,7 @@ "api", "cfw" ], - "version": "3.1.77", + "version": "3.1.78", "type": "library", "license": "Apache-2.0", "authors": [ @@ -20,7 +20,7 @@ ], "minimum-stability": "dev", "require": { - "huaweicloud/huaweicloud-sdk-core": "3.1.77" + "huaweicloud/huaweicloud-sdk-core": "3.1.78" }, "autoload": { "psr-4": { diff --git a/Services/CloudRtc/composer.json b/Services/CloudRtc/composer.json index cf1e2489b..cf76d88a2 100644 --- a/Services/CloudRtc/composer.json +++ b/Services/CloudRtc/composer.json @@ -8,7 +8,7 @@ "api", "cloudrtc" ], - "version": "3.1.77", + "version": "3.1.78", "type": "library", "license": "Apache-2.0", "authors": [ @@ -20,7 +20,7 @@ ], "minimum-stability": "dev", "require": { - "huaweicloud/huaweicloud-sdk-core": "3.1.77" + "huaweicloud/huaweicloud-sdk-core": "3.1.78" }, "autoload": { "psr-4": { diff --git a/Services/Cloudtable/composer.json b/Services/Cloudtable/composer.json index 8f3e422b2..7ff99c5cb 100644 --- a/Services/Cloudtable/composer.json +++ b/Services/Cloudtable/composer.json @@ -8,7 +8,7 @@ "api", "cloudtable" ], - "version": "3.1.77", + "version": "3.1.78", "type": "library", "license": "Apache-2.0", "authors": [ @@ -20,7 +20,7 @@ ], "minimum-stability": "dev", "require": { - "huaweicloud/huaweicloud-sdk-core": "3.1.77" + "huaweicloud/huaweicloud-sdk-core": "3.1.78" }, "autoload": { "psr-4": { diff --git a/Services/CodeArtsArtifact/composer.json b/Services/CodeArtsArtifact/composer.json index a4e3ba27f..855550c10 100644 --- a/Services/CodeArtsArtifact/composer.json +++ b/Services/CodeArtsArtifact/composer.json @@ -8,7 +8,7 @@ "api", "codeartsartifact" ], - "version": "3.1.77", + "version": "3.1.78", "type": "library", "license": "Apache-2.0", "authors": [ @@ -20,7 +20,7 @@ ], "minimum-stability": "dev", "require": { - "huaweicloud/huaweicloud-sdk-core": "3.1.77" + "huaweicloud/huaweicloud-sdk-core": "3.1.78" }, "autoload": { "psr-4": { diff --git a/Services/CodeArtsBuild/composer.json b/Services/CodeArtsBuild/composer.json index dc21fa25e..d7b1d3c3e 100644 --- a/Services/CodeArtsBuild/composer.json +++ b/Services/CodeArtsBuild/composer.json @@ -8,7 +8,7 @@ "api", "codeartsbuild" ], - "version": "3.1.77", + "version": "3.1.78", "type": "library", "license": "Apache-2.0", "authors": [ @@ -20,7 +20,7 @@ ], "minimum-stability": "dev", "require": { - "huaweicloud/huaweicloud-sdk-core": "3.1.77" + "huaweicloud/huaweicloud-sdk-core": "3.1.78" }, "autoload": { "psr-4": { diff --git a/Services/CodeArtsDeploy/composer.json b/Services/CodeArtsDeploy/composer.json index 148961e2e..2c4526b54 100644 --- a/Services/CodeArtsDeploy/composer.json +++ b/Services/CodeArtsDeploy/composer.json @@ -8,7 +8,7 @@ "api", "codeartsdeploy" ], - "version": "3.1.77", + "version": "3.1.78", "type": "library", "license": "Apache-2.0", "authors": [ @@ -20,7 +20,7 @@ ], "minimum-stability": "dev", "require": { - "huaweicloud/huaweicloud-sdk-core": "3.1.77" + "huaweicloud/huaweicloud-sdk-core": "3.1.78" }, "autoload": { "psr-4": { diff --git a/Services/CodeArtsPipeline/composer.json b/Services/CodeArtsPipeline/composer.json index d8b5b73d0..009a90ad0 100644 --- a/Services/CodeArtsPipeline/composer.json +++ b/Services/CodeArtsPipeline/composer.json @@ -8,7 +8,7 @@ "api", "codeartspipeline" ], - "version": "3.1.77", + "version": "3.1.78", "type": "library", "license": "Apache-2.0", "authors": [ @@ -20,7 +20,7 @@ ], "minimum-stability": "dev", "require": { - "huaweicloud/huaweicloud-sdk-core": "3.1.77" + "huaweicloud/huaweicloud-sdk-core": "3.1.78" }, "autoload": { "psr-4": { diff --git a/Services/Config/composer.json b/Services/Config/composer.json index b7555e680..5aed004c7 100644 --- a/Services/Config/composer.json +++ b/Services/Config/composer.json @@ -8,7 +8,7 @@ "api", "config" ], - "version": "3.1.77", + "version": "3.1.78", "type": "library", "license": "Apache-2.0", "authors": [ @@ -20,7 +20,7 @@ ], "minimum-stability": "dev", "require": { - "huaweicloud/huaweicloud-sdk-core": "3.1.77" + "huaweicloud/huaweicloud-sdk-core": "3.1.78" }, "autoload": { "psr-4": { diff --git a/Services/Cse/composer.json b/Services/Cse/composer.json index 901283280..56ecd40a6 100644 --- a/Services/Cse/composer.json +++ b/Services/Cse/composer.json @@ -8,7 +8,7 @@ "api", "cse" ], - "version": "3.1.77", + "version": "3.1.78", "type": "library", "license": "Apache-2.0", "authors": [ @@ -20,7 +20,7 @@ ], "minimum-stability": "dev", "require": { - "huaweicloud/huaweicloud-sdk-core": "3.1.77" + "huaweicloud/huaweicloud-sdk-core": "3.1.78" }, "autoload": { "psr-4": { diff --git a/Services/Csms/composer.json b/Services/Csms/composer.json index 82644a19f..2470c5f83 100644 --- a/Services/Csms/composer.json +++ b/Services/Csms/composer.json @@ -8,7 +8,7 @@ "api", "csms" ], - "version": "3.1.77", + "version": "3.1.78", "type": "library", "license": "Apache-2.0", "authors": [ @@ -20,7 +20,7 @@ ], "minimum-stability": "dev", "require": { - "huaweicloud/huaweicloud-sdk-core": "3.1.77" + "huaweicloud/huaweicloud-sdk-core": "3.1.78" }, "autoload": { "psr-4": { diff --git a/Services/Css/composer.json b/Services/Css/composer.json index 4c9c4d647..d9fb6fe30 100644 --- a/Services/Css/composer.json +++ b/Services/Css/composer.json @@ -8,7 +8,7 @@ "api", "css" ], - "version": "3.1.77", + "version": "3.1.78", "type": "library", "license": "Apache-2.0", "authors": [ @@ -20,7 +20,7 @@ ], "minimum-stability": "dev", "require": { - "huaweicloud/huaweicloud-sdk-core": "3.1.77" + "huaweicloud/huaweicloud-sdk-core": "3.1.78" }, "autoload": { "psr-4": { diff --git a/Services/DataArtsStudio/composer.json b/Services/DataArtsStudio/composer.json index 28c3731be..abbab9f35 100644 --- a/Services/DataArtsStudio/composer.json +++ b/Services/DataArtsStudio/composer.json @@ -8,7 +8,7 @@ "api", "dataartsstudio" ], - "version": "3.1.77", + "version": "3.1.78", "type": "library", "license": "Apache-2.0", "authors": [ @@ -20,7 +20,7 @@ ], "minimum-stability": "dev", "require": { - "huaweicloud/huaweicloud-sdk-core": "3.1.77" + "huaweicloud/huaweicloud-sdk-core": "3.1.78" }, "autoload": { "psr-4": { diff --git a/Services/Dbss/composer.json b/Services/Dbss/composer.json index d09d2d110..4ac3f2ce0 100644 --- a/Services/Dbss/composer.json +++ b/Services/Dbss/composer.json @@ -8,7 +8,7 @@ "api", "dbss" ], - "version": "3.1.77", + "version": "3.1.78", "type": "library", "license": "Apache-2.0", "authors": [ @@ -20,7 +20,7 @@ ], "minimum-stability": "dev", "require": { - "huaweicloud/huaweicloud-sdk-core": "3.1.77" + "huaweicloud/huaweicloud-sdk-core": "3.1.78" }, "autoload": { "psr-4": { diff --git a/Services/Dc/composer.json b/Services/Dc/composer.json index 9ef3026bb..6efcaaa09 100644 --- a/Services/Dc/composer.json +++ b/Services/Dc/composer.json @@ -8,7 +8,7 @@ "api", "dc" ], - "version": "3.1.77", + "version": "3.1.78", "type": "library", "license": "Apache-2.0", "authors": [ @@ -20,7 +20,7 @@ ], "minimum-stability": "dev", "require": { - "huaweicloud/huaweicloud-sdk-core": "3.1.77" + "huaweicloud/huaweicloud-sdk-core": "3.1.78" }, "autoload": { "psr-4": { diff --git a/Services/Dcs/V2/DcsAsyncClient.php b/Services/Dcs/V2/DcsAsyncClient.php index 064d89ed3..2b91c1c36 100644 --- a/Services/Dcs/V2/DcsAsyncClient.php +++ b/Services/Dcs/V2/DcsAsyncClient.php @@ -2447,6 +2447,142 @@ public function exportInstancesTaskAsyncWithHttpInfo($request){ $asyncRequest = true); } + /** + * kill指定的会话 + * + * kill指定的会话 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param $request 请求对象 + * @return response + */ + public function hangUpClientsAsync($request) + { + return $this->hangUpClientsAsyncWithHttpInfo($request); + } + + public function hangUpClientsAsyncWithHttpInfo($request){ + $collection_formats = []; + $resourcePath = '/v2/{project_id}/instances/{instance_id}/clients/kill'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $pathParams = []; + $httpBody = null; + $multipart = false; + $localVarParams = []; + $arr = $request::attributeMap(); + foreach ($arr as $k => $v) { + $getter = $request::getters()[$k]; + $value = $request->$getter(); + $localVarParams[$k] = $value; + } + if ($localVarParams['instanceId'] !== null) { + $pathParams['instance_id'] = $localVarParams['instanceId']; + } + if ($localVarParams['body'] !== null) { + $httpBody= $localVarParams['body']; + } + + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + [] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + [], + ['application/json;charset=UTF-8'] + ); + } + $headers = array_merge( + $headerParams, + $headers + ); + + return $this->callApi( + $method='POST', + $resourcePath, + $pathParams, + $queryParams, + $headerParams=$headers, + $body=$httpBody, + $multipart = $multipart, + $postParams=$formParams, + $responseType='\HuaweiCloud\SDK\Dcs\V2\Model\HangUpClientsResponse', + $collectionFormats=$collection_formats, + $requestType='\HuaweiCloud\SDK\Dcs\V2\Model\HangUpClientsRequest', + $asyncRequest = true); + } + + /** + * 下发kill指定节点或实例的全部会话任务 + * + * 下发kill指定节点或实例的全部会话任务 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param $request 请求对象 + * @return response + */ + public function hangUpKillAllClientsAsync($request) + { + return $this->hangUpKillAllClientsAsyncWithHttpInfo($request); + } + + public function hangUpKillAllClientsAsyncWithHttpInfo($request){ + $collection_formats = []; + $resourcePath = '/v2/{project_id}/instances/{instance_id}/clients/kill-all'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $pathParams = []; + $httpBody = null; + $multipart = false; + $localVarParams = []; + $arr = $request::attributeMap(); + foreach ($arr as $k => $v) { + $getter = $request::getters()[$k]; + $value = $request->$getter(); + $localVarParams[$k] = $value; + } + if ($localVarParams['instanceId'] !== null) { + $pathParams['instance_id'] = $localVarParams['instanceId']; + } + if ($localVarParams['body'] !== null) { + $httpBody= $localVarParams['body']; + } + + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + ['application/json;charset=UTF-8', 'application/json'] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + ['application/json;charset=UTF-8', 'application/json'], + ['application/json;charset=UTF-8'] + ); + } + $headers = array_merge( + $headerParams, + $headers + ); + + return $this->callApi( + $method='POST', + $resourcePath, + $pathParams, + $queryParams, + $headerParams=$headers, + $body=$httpBody, + $multipart = $multipart, + $postParams=$formParams, + $responseType='\HuaweiCloud\SDK\Dcs\V2\Model\HangUpKillAllClientsResponse', + $collectionFormats=$collection_formats, + $requestType='\HuaweiCloud\SDK\Dcs\V2\Model\HangUpKillAllClientsRequest', + $asyncRequest = true); + } + /** * 查询ACL账户列表 * @@ -2947,6 +3083,89 @@ public function listCenterTaskAsyncWithHttpInfo($request){ $asyncRequest = true); } + /** + * 获取会话列表 + * + * 获取会话列表 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param $request 请求对象 + * @return response + */ + public function listClientsAsync($request) + { + return $this->listClientsAsyncWithHttpInfo($request); + } + + public function listClientsAsyncWithHttpInfo($request){ + $collection_formats = []; + $resourcePath = '/v2/{project_id}/instances/{instance_id}/clients'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $pathParams = []; + $httpBody = null; + $multipart = false; + $localVarParams = []; + $arr = $request::attributeMap(); + foreach ($arr as $k => $v) { + $getter = $request::getters()[$k]; + $value = $request->$getter(); + $localVarParams[$k] = $value; + } + if ($localVarParams['nodeId'] !== null) { + $queryParams['node_id'] = $localVarParams['nodeId']; + } + if ($localVarParams['offset'] !== null) { + $queryParams['offset'] = $localVarParams['offset']; + } + if ($localVarParams['limit'] !== null) { + $queryParams['limit'] = $localVarParams['limit']; + } + if ($localVarParams['addr'] !== null) { + $queryParams['addr'] = $localVarParams['addr']; + } + if ($localVarParams['sort'] !== null) { + $queryParams['sort'] = $localVarParams['sort']; + } + if ($localVarParams['order'] !== null) { + $queryParams['order'] = $localVarParams['order']; + } + if ($localVarParams['instanceId'] !== null) { + $pathParams['instance_id'] = $localVarParams['instanceId']; + } + + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + ['application/json;charset=UTF-8', 'application/json'] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + ['application/json;charset=UTF-8', 'application/json'], + [] + ); + } + $headers = array_merge( + $headerParams, + $headers + ); + + return $this->callApi( + $method='GET', + $resourcePath, + $pathParams, + $queryParams, + $headerParams=$headers, + $body=$httpBody, + $multipart = $multipart, + $postParams=$formParams, + $responseType='\HuaweiCloud\SDK\Dcs\V2\Model\ListClientsResponse', + $collectionFormats=$collection_formats, + $requestType='\HuaweiCloud\SDK\Dcs\V2\Model\ListClientsRequest', + $asyncRequest = true); + } + /** * 查询实例参数修改记录列表 * @@ -4875,6 +5094,74 @@ public function restoreInstanceAsyncWithHttpInfo($request){ $asyncRequest = true); } + /** + * 下发查询会话列表任务 + * + * 下发查询会话列表任务 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param $request 请求对象 + * @return response + */ + public function scanClientsAsync($request) + { + return $this->scanClientsAsyncWithHttpInfo($request); + } + + public function scanClientsAsyncWithHttpInfo($request){ + $collection_formats = []; + $resourcePath = '/v2/{project_id}/instances/{instance_id}/clients'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $pathParams = []; + $httpBody = null; + $multipart = false; + $localVarParams = []; + $arr = $request::attributeMap(); + foreach ($arr as $k => $v) { + $getter = $request::getters()[$k]; + $value = $request->$getter(); + $localVarParams[$k] = $value; + } + if ($localVarParams['instanceId'] !== null) { + $pathParams['instance_id'] = $localVarParams['instanceId']; + } + if ($localVarParams['body'] !== null) { + $httpBody= $localVarParams['body']; + } + + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + ['application/json;charset=UTF-8', 'application/json'] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + ['application/json;charset=UTF-8', 'application/json'], + ['application/json;charset=UTF-8'] + ); + } + $headers = array_merge( + $headerParams, + $headers + ); + + return $this->callApi( + $method='POST', + $resourcePath, + $pathParams, + $queryParams, + $headerParams=$headers, + $body=$httpBody, + $multipart = $multipart, + $postParams=$formParams, + $responseType='\HuaweiCloud\SDK\Dcs\V2\Model\ScanClientsResponse', + $collectionFormats=$collection_formats, + $requestType='\HuaweiCloud\SDK\Dcs\V2\Model\ScanClientsRequest', + $asyncRequest = true); + } + /** * 立刻扫描过期Key * diff --git a/Services/Dcs/V2/DcsClient.php b/Services/Dcs/V2/DcsClient.php index fe9c4d0eb..1cec2e5e0 100644 --- a/Services/Dcs/V2/DcsClient.php +++ b/Services/Dcs/V2/DcsClient.php @@ -2340,6 +2340,136 @@ public function exportInstancesTaskWithHttpInfo($request) $requestType='\HuaweiCloud\SDK\Dcs\V2\Model\ExportInstancesTaskRequest'); } + /** + * kill指定的会话 + * + * kill指定的会话 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param $request 请求对象 + * @return response + */ + public function hangUpClients($request) + { + return $this->hangUpClientsWithHttpInfo($request); + } + + public function hangUpClientsWithHttpInfo($request) + { + $resourcePath = '/v2/{project_id}/instances/{instance_id}/clients/kill'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $pathParams = []; + $httpBody = null; + $multipart = false; + $localVarParams = []; + $arr = $request::attributeMap(); + foreach ($arr as $k => $v) { + $getter = $request::getters()[$k]; + $value = $request->$getter(); + $localVarParams[$k] = $value; + } + if ($localVarParams['instanceId'] !== null) { + $pathParams['instance_id'] = $localVarParams['instanceId']; + } + if ($localVarParams['body'] !== null) { + $httpBody= $localVarParams['body']; + } + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + [] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + [], + ['application/json;charset=UTF-8'] + ); + } + $headers = array_merge( + $headerParams, + $headers + ); + + return $this->callApi( + $method='POST', + $resourcePath, + $pathParams, + $queryParams, + $headerParams=$headers, + $body=$httpBody, + $multipart = $multipart, + $postParams=$formParams, + $responseType='\HuaweiCloud\SDK\Dcs\V2\Model\HangUpClientsResponse', + $requestType='\HuaweiCloud\SDK\Dcs\V2\Model\HangUpClientsRequest'); + } + + /** + * 下发kill指定节点或实例的全部会话任务 + * + * 下发kill指定节点或实例的全部会话任务 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param $request 请求对象 + * @return response + */ + public function hangUpKillAllClients($request) + { + return $this->hangUpKillAllClientsWithHttpInfo($request); + } + + public function hangUpKillAllClientsWithHttpInfo($request) + { + $resourcePath = '/v2/{project_id}/instances/{instance_id}/clients/kill-all'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $pathParams = []; + $httpBody = null; + $multipart = false; + $localVarParams = []; + $arr = $request::attributeMap(); + foreach ($arr as $k => $v) { + $getter = $request::getters()[$k]; + $value = $request->$getter(); + $localVarParams[$k] = $value; + } + if ($localVarParams['instanceId'] !== null) { + $pathParams['instance_id'] = $localVarParams['instanceId']; + } + if ($localVarParams['body'] !== null) { + $httpBody= $localVarParams['body']; + } + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + ['application/json;charset=UTF-8', 'application/json'] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + ['application/json;charset=UTF-8', 'application/json'], + ['application/json;charset=UTF-8'] + ); + } + $headers = array_merge( + $headerParams, + $headers + ); + + return $this->callApi( + $method='POST', + $resourcePath, + $pathParams, + $queryParams, + $headerParams=$headers, + $body=$httpBody, + $multipart = $multipart, + $postParams=$formParams, + $responseType='\HuaweiCloud\SDK\Dcs\V2\Model\HangUpKillAllClientsResponse', + $requestType='\HuaweiCloud\SDK\Dcs\V2\Model\HangUpKillAllClientsRequest'); + } + /** * 查询ACL账户列表 * @@ -2819,6 +2949,86 @@ public function listCenterTaskWithHttpInfo($request) $requestType='\HuaweiCloud\SDK\Dcs\V2\Model\ListCenterTaskRequest'); } + /** + * 获取会话列表 + * + * 获取会话列表 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param $request 请求对象 + * @return response + */ + public function listClients($request) + { + return $this->listClientsWithHttpInfo($request); + } + + public function listClientsWithHttpInfo($request) + { + $resourcePath = '/v2/{project_id}/instances/{instance_id}/clients'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $pathParams = []; + $httpBody = null; + $multipart = false; + $localVarParams = []; + $arr = $request::attributeMap(); + foreach ($arr as $k => $v) { + $getter = $request::getters()[$k]; + $value = $request->$getter(); + $localVarParams[$k] = $value; + } + if ($localVarParams['nodeId'] !== null) { + $queryParams['node_id'] = $localVarParams['nodeId']; + } + if ($localVarParams['offset'] !== null) { + $queryParams['offset'] = $localVarParams['offset']; + } + if ($localVarParams['limit'] !== null) { + $queryParams['limit'] = $localVarParams['limit']; + } + if ($localVarParams['addr'] !== null) { + $queryParams['addr'] = $localVarParams['addr']; + } + if ($localVarParams['sort'] !== null) { + $queryParams['sort'] = $localVarParams['sort']; + } + if ($localVarParams['order'] !== null) { + $queryParams['order'] = $localVarParams['order']; + } + if ($localVarParams['instanceId'] !== null) { + $pathParams['instance_id'] = $localVarParams['instanceId']; + } + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + ['application/json;charset=UTF-8', 'application/json'] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + ['application/json;charset=UTF-8', 'application/json'], + [] + ); + } + $headers = array_merge( + $headerParams, + $headers + ); + + return $this->callApi( + $method='GET', + $resourcePath, + $pathParams, + $queryParams, + $headerParams=$headers, + $body=$httpBody, + $multipart = $multipart, + $postParams=$formParams, + $responseType='\HuaweiCloud\SDK\Dcs\V2\Model\ListClientsResponse', + $requestType='\HuaweiCloud\SDK\Dcs\V2\Model\ListClientsRequest'); + } + /** * 查询实例参数修改记录列表 * @@ -4666,6 +4876,71 @@ public function restoreInstanceWithHttpInfo($request) $requestType='\HuaweiCloud\SDK\Dcs\V2\Model\RestoreInstanceRequest'); } + /** + * 下发查询会话列表任务 + * + * 下发查询会话列表任务 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param $request 请求对象 + * @return response + */ + public function scanClients($request) + { + return $this->scanClientsWithHttpInfo($request); + } + + public function scanClientsWithHttpInfo($request) + { + $resourcePath = '/v2/{project_id}/instances/{instance_id}/clients'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $pathParams = []; + $httpBody = null; + $multipart = false; + $localVarParams = []; + $arr = $request::attributeMap(); + foreach ($arr as $k => $v) { + $getter = $request::getters()[$k]; + $value = $request->$getter(); + $localVarParams[$k] = $value; + } + if ($localVarParams['instanceId'] !== null) { + $pathParams['instance_id'] = $localVarParams['instanceId']; + } + if ($localVarParams['body'] !== null) { + $httpBody= $localVarParams['body']; + } + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + ['application/json;charset=UTF-8', 'application/json'] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + ['application/json;charset=UTF-8', 'application/json'], + ['application/json;charset=UTF-8'] + ); + } + $headers = array_merge( + $headerParams, + $headers + ); + + return $this->callApi( + $method='POST', + $resourcePath, + $pathParams, + $queryParams, + $headerParams=$headers, + $body=$httpBody, + $multipart = $multipart, + $postParams=$formParams, + $responseType='\HuaweiCloud\SDK\Dcs\V2\Model\ScanClientsResponse', + $requestType='\HuaweiCloud\SDK\Dcs\V2\Model\ScanClientsRequest'); + } + /** * 立刻扫描过期Key * diff --git a/Services/Dcs/V2/Model/ClientInfo.php b/Services/Dcs/V2/Model/ClientInfo.php new file mode 100644 index 000000000..e33df790d --- /dev/null +++ b/Services/Dcs/V2/Model/ClientInfo.php @@ -0,0 +1,848 @@ + 'string', + 'addr' => 'string', + 'name' => 'string', + 'cmd' => 'string', + 'age' => 'int', + 'idle' => 'string', + 'db' => 'string', + 'flags' => 'string', + 'sub' => 'int', + 'psub' => 'int', + 'multi' => 'int', + 'qbuf' => 'int', + 'qbufFree' => 'int', + 'obl' => 'int', + 'oll' => 'int', + 'omem' => 'int', + 'events' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * id 客户端ID + * addr 客户端的地址和端口 + * name 客户端的名称 + * cmd 最近一次执行的命令 + * age 已连接时长(单位:秒) + * idle 空闲时长(单位:秒) + * db 该客户端正在使用的数据库 ID + * flags 客户端标志 + * sub 已订阅频道的数量 + * psub 已订阅模式的数量 + * multi 在事务中被执行的命令数量 + * qbuf 查询缓冲区的长度(单位为字节, 0 表示没有分配查询缓冲区) + * qbufFree 查询缓冲区剩余空间的长度(单位为字节, 0 表示没有剩余空间) + * obl 输出缓冲区的长度(单位为字节, 0 表示没有分配输出缓冲区) + * oll 输出列表包含的对象数量(当输出缓冲区没有剩余空间时,命令回复会以字符串对象的形式被入队到这个队列里) + * omem 输出缓冲区和输出列表占用的内存总量 + * events 文件描述符事件 + * + * @var string[] + */ + protected static $openAPIFormats = [ + 'id' => null, + 'addr' => null, + 'name' => null, + 'cmd' => null, + 'age' => 'int32', + 'idle' => null, + 'db' => null, + 'flags' => null, + 'sub' => 'int32', + 'psub' => 'int32', + 'multi' => 'int32', + 'qbuf' => 'int32', + 'qbufFree' => 'int32', + 'obl' => 'int32', + 'oll' => 'int32', + 'omem' => 'int32', + 'events' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * id 客户端ID + * addr 客户端的地址和端口 + * name 客户端的名称 + * cmd 最近一次执行的命令 + * age 已连接时长(单位:秒) + * idle 空闲时长(单位:秒) + * db 该客户端正在使用的数据库 ID + * flags 客户端标志 + * sub 已订阅频道的数量 + * psub 已订阅模式的数量 + * multi 在事务中被执行的命令数量 + * qbuf 查询缓冲区的长度(单位为字节, 0 表示没有分配查询缓冲区) + * qbufFree 查询缓冲区剩余空间的长度(单位为字节, 0 表示没有剩余空间) + * obl 输出缓冲区的长度(单位为字节, 0 表示没有分配输出缓冲区) + * oll 输出列表包含的对象数量(当输出缓冲区没有剩余空间时,命令回复会以字符串对象的形式被入队到这个队列里) + * omem 输出缓冲区和输出列表占用的内存总量 + * events 文件描述符事件 + * + * @var string[] + */ + protected static $attributeMap = [ + 'id' => 'id', + 'addr' => 'addr', + 'name' => 'name', + 'cmd' => 'cmd', + 'age' => 'age', + 'idle' => 'idle', + 'db' => 'db', + 'flags' => 'flags', + 'sub' => 'sub', + 'psub' => 'psub', + 'multi' => 'multi', + 'qbuf' => 'qbuf', + 'qbufFree' => 'qbuf_free', + 'obl' => 'obl', + 'oll' => 'oll', + 'omem' => 'omem', + 'events' => 'events' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * id 客户端ID + * addr 客户端的地址和端口 + * name 客户端的名称 + * cmd 最近一次执行的命令 + * age 已连接时长(单位:秒) + * idle 空闲时长(单位:秒) + * db 该客户端正在使用的数据库 ID + * flags 客户端标志 + * sub 已订阅频道的数量 + * psub 已订阅模式的数量 + * multi 在事务中被执行的命令数量 + * qbuf 查询缓冲区的长度(单位为字节, 0 表示没有分配查询缓冲区) + * qbufFree 查询缓冲区剩余空间的长度(单位为字节, 0 表示没有剩余空间) + * obl 输出缓冲区的长度(单位为字节, 0 表示没有分配输出缓冲区) + * oll 输出列表包含的对象数量(当输出缓冲区没有剩余空间时,命令回复会以字符串对象的形式被入队到这个队列里) + * omem 输出缓冲区和输出列表占用的内存总量 + * events 文件描述符事件 + * + * @var string[] + */ + protected static $setters = [ + 'id' => 'setId', + 'addr' => 'setAddr', + 'name' => 'setName', + 'cmd' => 'setCmd', + 'age' => 'setAge', + 'idle' => 'setIdle', + 'db' => 'setDb', + 'flags' => 'setFlags', + 'sub' => 'setSub', + 'psub' => 'setPsub', + 'multi' => 'setMulti', + 'qbuf' => 'setQbuf', + 'qbufFree' => 'setQbufFree', + 'obl' => 'setObl', + 'oll' => 'setOll', + 'omem' => 'setOmem', + 'events' => 'setEvents' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * id 客户端ID + * addr 客户端的地址和端口 + * name 客户端的名称 + * cmd 最近一次执行的命令 + * age 已连接时长(单位:秒) + * idle 空闲时长(单位:秒) + * db 该客户端正在使用的数据库 ID + * flags 客户端标志 + * sub 已订阅频道的数量 + * psub 已订阅模式的数量 + * multi 在事务中被执行的命令数量 + * qbuf 查询缓冲区的长度(单位为字节, 0 表示没有分配查询缓冲区) + * qbufFree 查询缓冲区剩余空间的长度(单位为字节, 0 表示没有剩余空间) + * obl 输出缓冲区的长度(单位为字节, 0 表示没有分配输出缓冲区) + * oll 输出列表包含的对象数量(当输出缓冲区没有剩余空间时,命令回复会以字符串对象的形式被入队到这个队列里) + * omem 输出缓冲区和输出列表占用的内存总量 + * events 文件描述符事件 + * + * @var string[] + */ + protected static $getters = [ + 'id' => 'getId', + 'addr' => 'getAddr', + 'name' => 'getName', + 'cmd' => 'getCmd', + 'age' => 'getAge', + 'idle' => 'getIdle', + 'db' => 'getDb', + 'flags' => 'getFlags', + 'sub' => 'getSub', + 'psub' => 'getPsub', + 'multi' => 'getMulti', + 'qbuf' => 'getQbuf', + 'qbufFree' => 'getQbufFree', + 'obl' => 'getObl', + 'oll' => 'getOll', + 'omem' => 'getOmem', + 'events' => 'getEvents' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$openAPIModelName; + } + const EVENTS_R = 'r'; + const EVENTS_W = 'w'; + + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getEventsAllowableValues() + { + return [ + self::EVENTS_R, + self::EVENTS_W, + ]; + } + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['id'] = isset($data['id']) ? $data['id'] : null; + $this->container['addr'] = isset($data['addr']) ? $data['addr'] : null; + $this->container['name'] = isset($data['name']) ? $data['name'] : null; + $this->container['cmd'] = isset($data['cmd']) ? $data['cmd'] : null; + $this->container['age'] = isset($data['age']) ? $data['age'] : null; + $this->container['idle'] = isset($data['idle']) ? $data['idle'] : null; + $this->container['db'] = isset($data['db']) ? $data['db'] : null; + $this->container['flags'] = isset($data['flags']) ? $data['flags'] : null; + $this->container['sub'] = isset($data['sub']) ? $data['sub'] : null; + $this->container['psub'] = isset($data['psub']) ? $data['psub'] : null; + $this->container['multi'] = isset($data['multi']) ? $data['multi'] : null; + $this->container['qbuf'] = isset($data['qbuf']) ? $data['qbuf'] : null; + $this->container['qbufFree'] = isset($data['qbufFree']) ? $data['qbufFree'] : null; + $this->container['obl'] = isset($data['obl']) ? $data['obl'] : null; + $this->container['oll'] = isset($data['oll']) ? $data['oll'] : null; + $this->container['omem'] = isset($data['omem']) ? $data['omem'] : null; + $this->container['events'] = isset($data['events']) ? $data['events'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + $allowedValues = $this->getEventsAllowableValues(); + if (!is_null($this->container['events']) && !in_array($this->container['events'], $allowedValues, true)) { + $invalidProperties[] = sprintf( + "invalid value for 'events', must be one of '%s'", + implode("', '", $allowedValues) + ); + } + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + /** + * Gets id + * 客户端ID + * + * @return string|null + */ + public function getId() + { + return $this->container['id']; + } + + /** + * Sets id + * + * @param string|null $id 客户端ID + * + * @return $this + */ + public function setId($id) + { + $this->container['id'] = $id; + return $this; + } + + /** + * Gets addr + * 客户端的地址和端口 + * + * @return string|null + */ + public function getAddr() + { + return $this->container['addr']; + } + + /** + * Sets addr + * + * @param string|null $addr 客户端的地址和端口 + * + * @return $this + */ + public function setAddr($addr) + { + $this->container['addr'] = $addr; + return $this; + } + + /** + * Gets name + * 客户端的名称 + * + * @return string|null + */ + public function getName() + { + return $this->container['name']; + } + + /** + * Sets name + * + * @param string|null $name 客户端的名称 + * + * @return $this + */ + public function setName($name) + { + $this->container['name'] = $name; + return $this; + } + + /** + * Gets cmd + * 最近一次执行的命令 + * + * @return string|null + */ + public function getCmd() + { + return $this->container['cmd']; + } + + /** + * Sets cmd + * + * @param string|null $cmd 最近一次执行的命令 + * + * @return $this + */ + public function setCmd($cmd) + { + $this->container['cmd'] = $cmd; + return $this; + } + + /** + * Gets age + * 已连接时长(单位:秒) + * + * @return int|null + */ + public function getAge() + { + return $this->container['age']; + } + + /** + * Sets age + * + * @param int|null $age 已连接时长(单位:秒) + * + * @return $this + */ + public function setAge($age) + { + $this->container['age'] = $age; + return $this; + } + + /** + * Gets idle + * 空闲时长(单位:秒) + * + * @return string|null + */ + public function getIdle() + { + return $this->container['idle']; + } + + /** + * Sets idle + * + * @param string|null $idle 空闲时长(单位:秒) + * + * @return $this + */ + public function setIdle($idle) + { + $this->container['idle'] = $idle; + return $this; + } + + /** + * Gets db + * 该客户端正在使用的数据库 ID + * + * @return string|null + */ + public function getDb() + { + return $this->container['db']; + } + + /** + * Sets db + * + * @param string|null $db 该客户端正在使用的数据库 ID + * + * @return $this + */ + public function setDb($db) + { + $this->container['db'] = $db; + return $this; + } + + /** + * Gets flags + * 客户端标志 + * + * @return string|null + */ + public function getFlags() + { + return $this->container['flags']; + } + + /** + * Sets flags + * + * @param string|null $flags 客户端标志 + * + * @return $this + */ + public function setFlags($flags) + { + $this->container['flags'] = $flags; + return $this; + } + + /** + * Gets sub + * 已订阅频道的数量 + * + * @return int|null + */ + public function getSub() + { + return $this->container['sub']; + } + + /** + * Sets sub + * + * @param int|null $sub 已订阅频道的数量 + * + * @return $this + */ + public function setSub($sub) + { + $this->container['sub'] = $sub; + return $this; + } + + /** + * Gets psub + * 已订阅模式的数量 + * + * @return int|null + */ + public function getPsub() + { + return $this->container['psub']; + } + + /** + * Sets psub + * + * @param int|null $psub 已订阅模式的数量 + * + * @return $this + */ + public function setPsub($psub) + { + $this->container['psub'] = $psub; + return $this; + } + + /** + * Gets multi + * 在事务中被执行的命令数量 + * + * @return int|null + */ + public function getMulti() + { + return $this->container['multi']; + } + + /** + * Sets multi + * + * @param int|null $multi 在事务中被执行的命令数量 + * + * @return $this + */ + public function setMulti($multi) + { + $this->container['multi'] = $multi; + return $this; + } + + /** + * Gets qbuf + * 查询缓冲区的长度(单位为字节, 0 表示没有分配查询缓冲区) + * + * @return int|null + */ + public function getQbuf() + { + return $this->container['qbuf']; + } + + /** + * Sets qbuf + * + * @param int|null $qbuf 查询缓冲区的长度(单位为字节, 0 表示没有分配查询缓冲区) + * + * @return $this + */ + public function setQbuf($qbuf) + { + $this->container['qbuf'] = $qbuf; + return $this; + } + + /** + * Gets qbufFree + * 查询缓冲区剩余空间的长度(单位为字节, 0 表示没有剩余空间) + * + * @return int|null + */ + public function getQbufFree() + { + return $this->container['qbufFree']; + } + + /** + * Sets qbufFree + * + * @param int|null $qbufFree 查询缓冲区剩余空间的长度(单位为字节, 0 表示没有剩余空间) + * + * @return $this + */ + public function setQbufFree($qbufFree) + { + $this->container['qbufFree'] = $qbufFree; + return $this; + } + + /** + * Gets obl + * 输出缓冲区的长度(单位为字节, 0 表示没有分配输出缓冲区) + * + * @return int|null + */ + public function getObl() + { + return $this->container['obl']; + } + + /** + * Sets obl + * + * @param int|null $obl 输出缓冲区的长度(单位为字节, 0 表示没有分配输出缓冲区) + * + * @return $this + */ + public function setObl($obl) + { + $this->container['obl'] = $obl; + return $this; + } + + /** + * Gets oll + * 输出列表包含的对象数量(当输出缓冲区没有剩余空间时,命令回复会以字符串对象的形式被入队到这个队列里) + * + * @return int|null + */ + public function getOll() + { + return $this->container['oll']; + } + + /** + * Sets oll + * + * @param int|null $oll 输出列表包含的对象数量(当输出缓冲区没有剩余空间时,命令回复会以字符串对象的形式被入队到这个队列里) + * + * @return $this + */ + public function setOll($oll) + { + $this->container['oll'] = $oll; + return $this; + } + + /** + * Gets omem + * 输出缓冲区和输出列表占用的内存总量 + * + * @return int|null + */ + public function getOmem() + { + return $this->container['omem']; + } + + /** + * Sets omem + * + * @param int|null $omem 输出缓冲区和输出列表占用的内存总量 + * + * @return $this + */ + public function setOmem($omem) + { + $this->container['omem'] = $omem; + return $this; + } + + /** + * Gets events + * 文件描述符事件 + * + * @return string|null + */ + public function getEvents() + { + return $this->container['events']; + } + + /** + * Sets events + * + * @param string|null $events 文件描述符事件 + * + * @return $this + */ + public function setEvents($events) + { + $this->container['events'] = $events; + return $this; + } + + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } +} + diff --git a/Services/Dcs/V2/Model/HangUpClientsRequest.php b/Services/Dcs/V2/Model/HangUpClientsRequest.php new file mode 100644 index 000000000..9162757d4 --- /dev/null +++ b/Services/Dcs/V2/Model/HangUpClientsRequest.php @@ -0,0 +1,303 @@ + 'string', + 'body' => '\HuaweiCloud\SDK\Dcs\V2\Model\HangUpClientsRequestBody' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * instanceId 实例ID。 + * body body + * + * @var string[] + */ + protected static $openAPIFormats = [ + 'instanceId' => null, + 'body' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * instanceId 实例ID。 + * body body + * + * @var string[] + */ + protected static $attributeMap = [ + 'instanceId' => 'instance_id', + 'body' => 'body' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * instanceId 实例ID。 + * body body + * + * @var string[] + */ + protected static $setters = [ + 'instanceId' => 'setInstanceId', + 'body' => 'setBody' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * instanceId 实例ID。 + * body body + * + * @var string[] + */ + protected static $getters = [ + 'instanceId' => 'getInstanceId', + 'body' => 'getBody' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$openAPIModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['instanceId'] = isset($data['instanceId']) ? $data['instanceId'] : null; + $this->container['body'] = isset($data['body']) ? $data['body'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + if ($this->container['instanceId'] === null) { + $invalidProperties[] = "'instanceId' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + /** + * Gets instanceId + * 实例ID。 + * + * @return string + */ + public function getInstanceId() + { + return $this->container['instanceId']; + } + + /** + * Sets instanceId + * + * @param string $instanceId 实例ID。 + * + * @return $this + */ + public function setInstanceId($instanceId) + { + $this->container['instanceId'] = $instanceId; + return $this; + } + + /** + * Gets body + * body + * + * @return \HuaweiCloud\SDK\Dcs\V2\Model\HangUpClientsRequestBody|null + */ + public function getBody() + { + return $this->container['body']; + } + + /** + * Sets body + * + * @param \HuaweiCloud\SDK\Dcs\V2\Model\HangUpClientsRequestBody|null $body body + * + * @return $this + */ + public function setBody($body) + { + $this->container['body'] = $body; + return $this; + } + + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } +} + diff --git a/Services/Dcs/V2/Model/HangUpClientsRequestBody.php b/Services/Dcs/V2/Model/HangUpClientsRequestBody.php new file mode 100644 index 000000000..39faaf547 --- /dev/null +++ b/Services/Dcs/V2/Model/HangUpClientsRequestBody.php @@ -0,0 +1,306 @@ + 'string', + 'clientAddrs' => 'string[]' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * nodeId 节点id + * clientAddrs 要kill的会话addr列表 + * + * @var string[] + */ + protected static $openAPIFormats = [ + 'nodeId' => null, + 'clientAddrs' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * nodeId 节点id + * clientAddrs 要kill的会话addr列表 + * + * @var string[] + */ + protected static $attributeMap = [ + 'nodeId' => 'node_id', + 'clientAddrs' => 'client_addrs' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * nodeId 节点id + * clientAddrs 要kill的会话addr列表 + * + * @var string[] + */ + protected static $setters = [ + 'nodeId' => 'setNodeId', + 'clientAddrs' => 'setClientAddrs' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * nodeId 节点id + * clientAddrs 要kill的会话addr列表 + * + * @var string[] + */ + protected static $getters = [ + 'nodeId' => 'getNodeId', + 'clientAddrs' => 'getClientAddrs' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$openAPIModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['nodeId'] = isset($data['nodeId']) ? $data['nodeId'] : null; + $this->container['clientAddrs'] = isset($data['clientAddrs']) ? $data['clientAddrs'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + if ($this->container['nodeId'] === null) { + $invalidProperties[] = "'nodeId' can't be null"; + } + if ($this->container['clientAddrs'] === null) { + $invalidProperties[] = "'clientAddrs' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + /** + * Gets nodeId + * 节点id + * + * @return string + */ + public function getNodeId() + { + return $this->container['nodeId']; + } + + /** + * Sets nodeId + * + * @param string $nodeId 节点id + * + * @return $this + */ + public function setNodeId($nodeId) + { + $this->container['nodeId'] = $nodeId; + return $this; + } + + /** + * Gets clientAddrs + * 要kill的会话addr列表 + * + * @return string[] + */ + public function getClientAddrs() + { + return $this->container['clientAddrs']; + } + + /** + * Sets clientAddrs + * + * @param string[] $clientAddrs 要kill的会话addr列表 + * + * @return $this + */ + public function setClientAddrs($clientAddrs) + { + $this->container['clientAddrs'] = $clientAddrs; + return $this; + } + + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } +} + diff --git a/Services/Dcs/V2/Model/HangUpClientsResponse.php b/Services/Dcs/V2/Model/HangUpClientsResponse.php new file mode 100644 index 000000000..5ccdd404a --- /dev/null +++ b/Services/Dcs/V2/Model/HangUpClientsResponse.php @@ -0,0 +1,236 @@ +listInvalidProperties()) === 0; + } + + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } +} + diff --git a/Services/Dcs/V2/Model/HangUpKillAllClientsRequest.php b/Services/Dcs/V2/Model/HangUpKillAllClientsRequest.php new file mode 100644 index 000000000..05fcd927e --- /dev/null +++ b/Services/Dcs/V2/Model/HangUpKillAllClientsRequest.php @@ -0,0 +1,303 @@ + 'string', + 'body' => '\HuaweiCloud\SDK\Dcs\V2\Model\HangUpKillAllClientsRequestBody' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * instanceId 实例ID。 + * body body + * + * @var string[] + */ + protected static $openAPIFormats = [ + 'instanceId' => null, + 'body' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * instanceId 实例ID。 + * body body + * + * @var string[] + */ + protected static $attributeMap = [ + 'instanceId' => 'instance_id', + 'body' => 'body' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * instanceId 实例ID。 + * body body + * + * @var string[] + */ + protected static $setters = [ + 'instanceId' => 'setInstanceId', + 'body' => 'setBody' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * instanceId 实例ID。 + * body body + * + * @var string[] + */ + protected static $getters = [ + 'instanceId' => 'getInstanceId', + 'body' => 'getBody' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$openAPIModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['instanceId'] = isset($data['instanceId']) ? $data['instanceId'] : null; + $this->container['body'] = isset($data['body']) ? $data['body'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + if ($this->container['instanceId'] === null) { + $invalidProperties[] = "'instanceId' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + /** + * Gets instanceId + * 实例ID。 + * + * @return string + */ + public function getInstanceId() + { + return $this->container['instanceId']; + } + + /** + * Sets instanceId + * + * @param string $instanceId 实例ID。 + * + * @return $this + */ + public function setInstanceId($instanceId) + { + $this->container['instanceId'] = $instanceId; + return $this; + } + + /** + * Gets body + * body + * + * @return \HuaweiCloud\SDK\Dcs\V2\Model\HangUpKillAllClientsRequestBody|null + */ + public function getBody() + { + return $this->container['body']; + } + + /** + * Sets body + * + * @param \HuaweiCloud\SDK\Dcs\V2\Model\HangUpKillAllClientsRequestBody|null $body body + * + * @return $this + */ + public function setBody($body) + { + $this->container['body'] = $body; + return $this; + } + + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } +} + diff --git a/Services/Dcs/V2/Model/HangUpKillAllClientsRequestBody.php b/Services/Dcs/V2/Model/HangUpKillAllClientsRequestBody.php new file mode 100644 index 000000000..560f07710 --- /dev/null +++ b/Services/Dcs/V2/Model/HangUpKillAllClientsRequestBody.php @@ -0,0 +1,300 @@ + 'string', + 'killAllNodes' => 'bool' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * nodeId 指定要kill全部会话的节点ID,kill_all_nodes为false时必填 + * killAllNodes true:Kill实例全部节点的会话 false: kill指定节点的全部会话 + * + * @var string[] + */ + protected static $openAPIFormats = [ + 'nodeId' => null, + 'killAllNodes' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * nodeId 指定要kill全部会话的节点ID,kill_all_nodes为false时必填 + * killAllNodes true:Kill实例全部节点的会话 false: kill指定节点的全部会话 + * + * @var string[] + */ + protected static $attributeMap = [ + 'nodeId' => 'node_id', + 'killAllNodes' => 'kill_all_nodes' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * nodeId 指定要kill全部会话的节点ID,kill_all_nodes为false时必填 + * killAllNodes true:Kill实例全部节点的会话 false: kill指定节点的全部会话 + * + * @var string[] + */ + protected static $setters = [ + 'nodeId' => 'setNodeId', + 'killAllNodes' => 'setKillAllNodes' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * nodeId 指定要kill全部会话的节点ID,kill_all_nodes为false时必填 + * killAllNodes true:Kill实例全部节点的会话 false: kill指定节点的全部会话 + * + * @var string[] + */ + protected static $getters = [ + 'nodeId' => 'getNodeId', + 'killAllNodes' => 'getKillAllNodes' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$openAPIModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['nodeId'] = isset($data['nodeId']) ? $data['nodeId'] : null; + $this->container['killAllNodes'] = isset($data['killAllNodes']) ? $data['killAllNodes'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + /** + * Gets nodeId + * 指定要kill全部会话的节点ID,kill_all_nodes为false时必填 + * + * @return string|null + */ + public function getNodeId() + { + return $this->container['nodeId']; + } + + /** + * Sets nodeId + * + * @param string|null $nodeId 指定要kill全部会话的节点ID,kill_all_nodes为false时必填 + * + * @return $this + */ + public function setNodeId($nodeId) + { + $this->container['nodeId'] = $nodeId; + return $this; + } + + /** + * Gets killAllNodes + * true:Kill实例全部节点的会话 false: kill指定节点的全部会话 + * + * @return bool|null + */ + public function getKillAllNodes() + { + return $this->container['killAllNodes']; + } + + /** + * Sets killAllNodes + * + * @param bool|null $killAllNodes true:Kill实例全部节点的会话 false: kill指定节点的全部会话 + * + * @return $this + */ + public function setKillAllNodes($killAllNodes) + { + $this->container['killAllNodes'] = $killAllNodes; + return $this; + } + + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } +} + diff --git a/Services/Dcs/V2/Model/HangUpKillAllClientsResponse.php b/Services/Dcs/V2/Model/HangUpKillAllClientsResponse.php new file mode 100644 index 000000000..7d048acc9 --- /dev/null +++ b/Services/Dcs/V2/Model/HangUpKillAllClientsResponse.php @@ -0,0 +1,266 @@ + 'object' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * body body + * + * @var string[] + */ + protected static $openAPIFormats = [ + 'body' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * body body + * + * @var string[] + */ + protected static $attributeMap = [ + 'body' => 'body' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * body body + * + * @var string[] + */ + protected static $setters = [ + 'body' => 'setBody' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * body body + * + * @var string[] + */ + protected static $getters = [ + 'body' => 'getBody' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$openAPIModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['body'] = isset($data['body']) ? $data['body'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + /** + * Gets body + * body + * + * @return object|null + */ + public function getBody() + { + return $this->container['body']; + } + + /** + * Sets body + * + * @param object|null $body body + * + * @return $this + */ + public function setBody($body) + { + $this->container['body'] = $body; + return $this; + } + + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } +} + diff --git a/Services/Dcs/V2/Model/ListClientsRequest.php b/Services/Dcs/V2/Model/ListClientsRequest.php new file mode 100644 index 000000000..439dab2dc --- /dev/null +++ b/Services/Dcs/V2/Model/ListClientsRequest.php @@ -0,0 +1,513 @@ + 'string', + 'nodeId' => 'string', + 'offset' => 'int', + 'limit' => 'int', + 'addr' => 'string', + 'sort' => 'string', + 'order' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * instanceId 实例ID。 + * nodeId 节点ID。 + * offset 偏移量,表示从此偏移量开始查询, 偏移量大于等于0。 + * limit 每页显示条数,最小值为1,最大值为1000,若不设置该参数,则为10. + * addr 按客户端连接地址过滤。 + * sort 排序字段。 + * order 排序方式 + * + * @var string[] + */ + protected static $openAPIFormats = [ + 'instanceId' => null, + 'nodeId' => null, + 'offset' => 'int32', + 'limit' => 'int32', + 'addr' => null, + 'sort' => null, + 'order' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * instanceId 实例ID。 + * nodeId 节点ID。 + * offset 偏移量,表示从此偏移量开始查询, 偏移量大于等于0。 + * limit 每页显示条数,最小值为1,最大值为1000,若不设置该参数,则为10. + * addr 按客户端连接地址过滤。 + * sort 排序字段。 + * order 排序方式 + * + * @var string[] + */ + protected static $attributeMap = [ + 'instanceId' => 'instance_id', + 'nodeId' => 'node_id', + 'offset' => 'offset', + 'limit' => 'limit', + 'addr' => 'addr', + 'sort' => 'sort', + 'order' => 'order' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * instanceId 实例ID。 + * nodeId 节点ID。 + * offset 偏移量,表示从此偏移量开始查询, 偏移量大于等于0。 + * limit 每页显示条数,最小值为1,最大值为1000,若不设置该参数,则为10. + * addr 按客户端连接地址过滤。 + * sort 排序字段。 + * order 排序方式 + * + * @var string[] + */ + protected static $setters = [ + 'instanceId' => 'setInstanceId', + 'nodeId' => 'setNodeId', + 'offset' => 'setOffset', + 'limit' => 'setLimit', + 'addr' => 'setAddr', + 'sort' => 'setSort', + 'order' => 'setOrder' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * instanceId 实例ID。 + * nodeId 节点ID。 + * offset 偏移量,表示从此偏移量开始查询, 偏移量大于等于0。 + * limit 每页显示条数,最小值为1,最大值为1000,若不设置该参数,则为10. + * addr 按客户端连接地址过滤。 + * sort 排序字段。 + * order 排序方式 + * + * @var string[] + */ + protected static $getters = [ + 'instanceId' => 'getInstanceId', + 'nodeId' => 'getNodeId', + 'offset' => 'getOffset', + 'limit' => 'getLimit', + 'addr' => 'getAddr', + 'sort' => 'getSort', + 'order' => 'getOrder' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$openAPIModelName; + } + const ORDER_ASC = 'asc'; + const ORDER_DESC = 'desc'; + + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getOrderAllowableValues() + { + return [ + self::ORDER_ASC, + self::ORDER_DESC, + ]; + } + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['instanceId'] = isset($data['instanceId']) ? $data['instanceId'] : null; + $this->container['nodeId'] = isset($data['nodeId']) ? $data['nodeId'] : null; + $this->container['offset'] = isset($data['offset']) ? $data['offset'] : null; + $this->container['limit'] = isset($data['limit']) ? $data['limit'] : null; + $this->container['addr'] = isset($data['addr']) ? $data['addr'] : null; + $this->container['sort'] = isset($data['sort']) ? $data['sort'] : null; + $this->container['order'] = isset($data['order']) ? $data['order'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + if ($this->container['instanceId'] === null) { + $invalidProperties[] = "'instanceId' can't be null"; + } + if ($this->container['nodeId'] === null) { + $invalidProperties[] = "'nodeId' can't be null"; + } + if (!is_null($this->container['offset']) && ($this->container['offset'] < 1)) { + $invalidProperties[] = "invalid value for 'offset', must be bigger than or equal to 1."; + } + if (!is_null($this->container['limit']) && ($this->container['limit'] > 1000)) { + $invalidProperties[] = "invalid value for 'limit', must be smaller than or equal to 1000."; + } + if (!is_null($this->container['limit']) && ($this->container['limit'] < 1)) { + $invalidProperties[] = "invalid value for 'limit', must be bigger than or equal to 1."; + } + $allowedValues = $this->getOrderAllowableValues(); + if (!is_null($this->container['order']) && !in_array($this->container['order'], $allowedValues, true)) { + $invalidProperties[] = sprintf( + "invalid value for 'order', must be one of '%s'", + implode("', '", $allowedValues) + ); + } + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + /** + * Gets instanceId + * 实例ID。 + * + * @return string + */ + public function getInstanceId() + { + return $this->container['instanceId']; + } + + /** + * Sets instanceId + * + * @param string $instanceId 实例ID。 + * + * @return $this + */ + public function setInstanceId($instanceId) + { + $this->container['instanceId'] = $instanceId; + return $this; + } + + /** + * Gets nodeId + * 节点ID。 + * + * @return string + */ + public function getNodeId() + { + return $this->container['nodeId']; + } + + /** + * Sets nodeId + * + * @param string $nodeId 节点ID。 + * + * @return $this + */ + public function setNodeId($nodeId) + { + $this->container['nodeId'] = $nodeId; + return $this; + } + + /** + * Gets offset + * 偏移量,表示从此偏移量开始查询, 偏移量大于等于0。 + * + * @return int|null + */ + public function getOffset() + { + return $this->container['offset']; + } + + /** + * Sets offset + * + * @param int|null $offset 偏移量,表示从此偏移量开始查询, 偏移量大于等于0。 + * + * @return $this + */ + public function setOffset($offset) + { + $this->container['offset'] = $offset; + return $this; + } + + /** + * Gets limit + * 每页显示条数,最小值为1,最大值为1000,若不设置该参数,则为10. + * + * @return int|null + */ + public function getLimit() + { + return $this->container['limit']; + } + + /** + * Sets limit + * + * @param int|null $limit 每页显示条数,最小值为1,最大值为1000,若不设置该参数,则为10. + * + * @return $this + */ + public function setLimit($limit) + { + $this->container['limit'] = $limit; + return $this; + } + + /** + * Gets addr + * 按客户端连接地址过滤。 + * + * @return string|null + */ + public function getAddr() + { + return $this->container['addr']; + } + + /** + * Sets addr + * + * @param string|null $addr 按客户端连接地址过滤。 + * + * @return $this + */ + public function setAddr($addr) + { + $this->container['addr'] = $addr; + return $this; + } + + /** + * Gets sort + * 排序字段。 + * + * @return string|null + */ + public function getSort() + { + return $this->container['sort']; + } + + /** + * Sets sort + * + * @param string|null $sort 排序字段。 + * + * @return $this + */ + public function setSort($sort) + { + $this->container['sort'] = $sort; + return $this; + } + + /** + * Gets order + * 排序方式 + * + * @return string|null + */ + public function getOrder() + { + return $this->container['order']; + } + + /** + * Sets order + * + * @param string|null $order 排序方式 + * + * @return $this + */ + public function setOrder($order) + { + $this->container['order'] = $order; + return $this; + } + + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } +} + diff --git a/Services/Dcs/V2/Model/ListClientsResponse.php b/Services/Dcs/V2/Model/ListClientsResponse.php new file mode 100644 index 000000000..6b4918150 --- /dev/null +++ b/Services/Dcs/V2/Model/ListClientsResponse.php @@ -0,0 +1,336 @@ + 'string', + 'clients' => '\HuaweiCloud\SDK\Dcs\V2\Model\ClientInfo[]', + 'count' => 'int' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * time 数据更新时间 + * clients 会话列表 + * count 会话总数 + * + * @var string[] + */ + protected static $openAPIFormats = [ + 'time' => null, + 'clients' => null, + 'count' => 'int32' + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * time 数据更新时间 + * clients 会话列表 + * count 会话总数 + * + * @var string[] + */ + protected static $attributeMap = [ + 'time' => 'time', + 'clients' => 'clients', + 'count' => 'count' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * time 数据更新时间 + * clients 会话列表 + * count 会话总数 + * + * @var string[] + */ + protected static $setters = [ + 'time' => 'setTime', + 'clients' => 'setClients', + 'count' => 'setCount' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * time 数据更新时间 + * clients 会话列表 + * count 会话总数 + * + * @var string[] + */ + protected static $getters = [ + 'time' => 'getTime', + 'clients' => 'getClients', + 'count' => 'getCount' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$openAPIModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['time'] = isset($data['time']) ? $data['time'] : null; + $this->container['clients'] = isset($data['clients']) ? $data['clients'] : null; + $this->container['count'] = isset($data['count']) ? $data['count'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + /** + * Gets time + * 数据更新时间 + * + * @return string|null + */ + public function getTime() + { + return $this->container['time']; + } + + /** + * Sets time + * + * @param string|null $time 数据更新时间 + * + * @return $this + */ + public function setTime($time) + { + $this->container['time'] = $time; + return $this; + } + + /** + * Gets clients + * 会话列表 + * + * @return \HuaweiCloud\SDK\Dcs\V2\Model\ClientInfo[]|null + */ + public function getClients() + { + return $this->container['clients']; + } + + /** + * Sets clients + * + * @param \HuaweiCloud\SDK\Dcs\V2\Model\ClientInfo[]|null $clients 会话列表 + * + * @return $this + */ + public function setClients($clients) + { + $this->container['clients'] = $clients; + return $this; + } + + /** + * Gets count + * 会话总数 + * + * @return int|null + */ + public function getCount() + { + return $this->container['count']; + } + + /** + * Sets count + * + * @param int|null $count 会话总数 + * + * @return $this + */ + public function setCount($count) + { + $this->container['count'] = $count; + return $this; + } + + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } +} + diff --git a/Services/Dcs/V2/Model/ScanClientsRequest.php b/Services/Dcs/V2/Model/ScanClientsRequest.php new file mode 100644 index 000000000..fb4adc1c0 --- /dev/null +++ b/Services/Dcs/V2/Model/ScanClientsRequest.php @@ -0,0 +1,303 @@ + 'string', + 'body' => '\HuaweiCloud\SDK\Dcs\V2\Model\ScanClientsRequestBody' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * instanceId 实例ID。 + * body body + * + * @var string[] + */ + protected static $openAPIFormats = [ + 'instanceId' => null, + 'body' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * instanceId 实例ID。 + * body body + * + * @var string[] + */ + protected static $attributeMap = [ + 'instanceId' => 'instance_id', + 'body' => 'body' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * instanceId 实例ID。 + * body body + * + * @var string[] + */ + protected static $setters = [ + 'instanceId' => 'setInstanceId', + 'body' => 'setBody' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * instanceId 实例ID。 + * body body + * + * @var string[] + */ + protected static $getters = [ + 'instanceId' => 'getInstanceId', + 'body' => 'getBody' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$openAPIModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['instanceId'] = isset($data['instanceId']) ? $data['instanceId'] : null; + $this->container['body'] = isset($data['body']) ? $data['body'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + if ($this->container['instanceId'] === null) { + $invalidProperties[] = "'instanceId' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + /** + * Gets instanceId + * 实例ID。 + * + * @return string + */ + public function getInstanceId() + { + return $this->container['instanceId']; + } + + /** + * Sets instanceId + * + * @param string $instanceId 实例ID。 + * + * @return $this + */ + public function setInstanceId($instanceId) + { + $this->container['instanceId'] = $instanceId; + return $this; + } + + /** + * Gets body + * body + * + * @return \HuaweiCloud\SDK\Dcs\V2\Model\ScanClientsRequestBody|null + */ + public function getBody() + { + return $this->container['body']; + } + + /** + * Sets body + * + * @param \HuaweiCloud\SDK\Dcs\V2\Model\ScanClientsRequestBody|null $body body + * + * @return $this + */ + public function setBody($body) + { + $this->container['body'] = $body; + return $this; + } + + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } +} + diff --git a/Services/Dcs/V2/Model/ScanClientsRequestBody.php b/Services/Dcs/V2/Model/ScanClientsRequestBody.php new file mode 100644 index 000000000..fc96e876e --- /dev/null +++ b/Services/Dcs/V2/Model/ScanClientsRequestBody.php @@ -0,0 +1,303 @@ + 'string', + 'cleanCache' => 'bool' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * nodeId 节点ID + * cleanCache 是否重新查询并保存会话列表 + * + * @var string[] + */ + protected static $openAPIFormats = [ + 'nodeId' => null, + 'cleanCache' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * nodeId 节点ID + * cleanCache 是否重新查询并保存会话列表 + * + * @var string[] + */ + protected static $attributeMap = [ + 'nodeId' => 'node_id', + 'cleanCache' => 'clean_cache' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * nodeId 节点ID + * cleanCache 是否重新查询并保存会话列表 + * + * @var string[] + */ + protected static $setters = [ + 'nodeId' => 'setNodeId', + 'cleanCache' => 'setCleanCache' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * nodeId 节点ID + * cleanCache 是否重新查询并保存会话列表 + * + * @var string[] + */ + protected static $getters = [ + 'nodeId' => 'getNodeId', + 'cleanCache' => 'getCleanCache' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$openAPIModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['nodeId'] = isset($data['nodeId']) ? $data['nodeId'] : null; + $this->container['cleanCache'] = isset($data['cleanCache']) ? $data['cleanCache'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + if ($this->container['nodeId'] === null) { + $invalidProperties[] = "'nodeId' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + /** + * Gets nodeId + * 节点ID + * + * @return string + */ + public function getNodeId() + { + return $this->container['nodeId']; + } + + /** + * Sets nodeId + * + * @param string $nodeId 节点ID + * + * @return $this + */ + public function setNodeId($nodeId) + { + $this->container['nodeId'] = $nodeId; + return $this; + } + + /** + * Gets cleanCache + * 是否重新查询并保存会话列表 + * + * @return bool|null + */ + public function getCleanCache() + { + return $this->container['cleanCache']; + } + + /** + * Sets cleanCache + * + * @param bool|null $cleanCache 是否重新查询并保存会话列表 + * + * @return $this + */ + public function setCleanCache($cleanCache) + { + $this->container['cleanCache'] = $cleanCache; + return $this; + } + + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } +} + diff --git a/Services/Dcs/V2/Model/ScanClientsResponse.php b/Services/Dcs/V2/Model/ScanClientsResponse.php new file mode 100644 index 000000000..1df160d0f --- /dev/null +++ b/Services/Dcs/V2/Model/ScanClientsResponse.php @@ -0,0 +1,266 @@ + 'object' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * body body + * + * @var string[] + */ + protected static $openAPIFormats = [ + 'body' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * body body + * + * @var string[] + */ + protected static $attributeMap = [ + 'body' => 'body' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * body body + * + * @var string[] + */ + protected static $setters = [ + 'body' => 'setBody' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * body body + * + * @var string[] + */ + protected static $getters = [ + 'body' => 'getBody' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$openAPIModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['body'] = isset($data['body']) ? $data['body'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + /** + * Gets body + * body + * + * @return object|null + */ + public function getBody() + { + return $this->container['body']; + } + + /** + * Sets body + * + * @param object|null $body body + * + * @return $this + */ + public function setBody($body) + { + $this->container['body'] = $body; + return $this; + } + + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } +} + diff --git a/Services/Dcs/composer.json b/Services/Dcs/composer.json index cfb6cf358..d3e188a5a 100644 --- a/Services/Dcs/composer.json +++ b/Services/Dcs/composer.json @@ -8,7 +8,7 @@ "api", "dcs" ], - "version": "3.1.77", + "version": "3.1.78", "type": "library", "license": "Apache-2.0", "authors": [ @@ -20,7 +20,7 @@ ], "minimum-stability": "dev", "require": { - "huaweicloud/huaweicloud-sdk-core": "3.1.77" + "huaweicloud/huaweicloud-sdk-core": "3.1.78" }, "autoload": { "psr-4": { diff --git a/Services/Dds/composer.json b/Services/Dds/composer.json index 1d85f42fa..7010df186 100644 --- a/Services/Dds/composer.json +++ b/Services/Dds/composer.json @@ -8,7 +8,7 @@ "api", "dds" ], - "version": "3.1.77", + "version": "3.1.78", "type": "library", "license": "Apache-2.0", "authors": [ @@ -20,7 +20,7 @@ ], "minimum-stability": "dev", "require": { - "huaweicloud/huaweicloud-sdk-core": "3.1.77" + "huaweicloud/huaweicloud-sdk-core": "3.1.78" }, "autoload": { "psr-4": { diff --git a/Services/Dli/V1/Model/ListJobsJobs.php b/Services/Dli/V1/Model/ListJobsJobs.php index d21cf31c1..5e132aea4 100644 --- a/Services/Dli/V1/Model/ListJobsJobs.php +++ b/Services/Dli/V1/Model/ListJobsJobs.php @@ -100,12 +100,12 @@ class ListJobsJobs implements ModelInterface, ArrayAccess 'queueName' => null, 'owner' => null, 'startTime' => 'int64', - 'duration' => 'int32', + 'duration' => 'int64', 'status' => null, 'inputRowCount' => 'int64', 'badRowCount' => 'int64', 'inputSize' => 'int64', - 'resultCount' => 'int32', + 'resultCount' => 'int64', 'databaseName' => null, 'tableName' => null, 'withColumnHeader' => null, diff --git a/Services/Dli/composer.json b/Services/Dli/composer.json index b840554fd..02b1ae86c 100644 --- a/Services/Dli/composer.json +++ b/Services/Dli/composer.json @@ -8,7 +8,7 @@ "api", "dli" ], - "version": "3.1.77", + "version": "3.1.78", "type": "library", "license": "Apache-2.0", "authors": [ @@ -20,7 +20,7 @@ ], "minimum-stability": "dev", "require": { - "huaweicloud/huaweicloud-sdk-core": "3.1.77" + "huaweicloud/huaweicloud-sdk-core": "3.1.78" }, "autoload": { "psr-4": { diff --git a/Services/Dns/composer.json b/Services/Dns/composer.json index 729798da4..ecac1b496 100644 --- a/Services/Dns/composer.json +++ b/Services/Dns/composer.json @@ -8,7 +8,7 @@ "api", "dns" ], - "version": "3.1.77", + "version": "3.1.78", "type": "library", "license": "Apache-2.0", "authors": [ @@ -20,7 +20,7 @@ ], "minimum-stability": "dev", "require": { - "huaweicloud/huaweicloud-sdk-core": "3.1.77" + "huaweicloud/huaweicloud-sdk-core": "3.1.78" }, "autoload": { "psr-4": { diff --git a/Services/Drs/composer.json b/Services/Drs/composer.json index 3f94e85fa..bc0baa1e2 100644 --- a/Services/Drs/composer.json +++ b/Services/Drs/composer.json @@ -8,7 +8,7 @@ "api", "drs" ], - "version": "3.1.77", + "version": "3.1.78", "type": "library", "license": "Apache-2.0", "authors": [ @@ -20,7 +20,7 @@ ], "minimum-stability": "dev", "require": { - "huaweicloud/huaweicloud-sdk-core": "3.1.77" + "huaweicloud/huaweicloud-sdk-core": "3.1.78" }, "autoload": { "psr-4": { diff --git a/Services/Dsc/composer.json b/Services/Dsc/composer.json index 0cd8b9f64..7573a32d7 100644 --- a/Services/Dsc/composer.json +++ b/Services/Dsc/composer.json @@ -8,7 +8,7 @@ "api", "dsc" ], - "version": "3.1.77", + "version": "3.1.78", "type": "library", "license": "Apache-2.0", "authors": [ @@ -20,7 +20,7 @@ ], "minimum-stability": "dev", "require": { - "huaweicloud/huaweicloud-sdk-core": "3.1.77" + "huaweicloud/huaweicloud-sdk-core": "3.1.78" }, "autoload": { "psr-4": { diff --git a/Services/Dws/composer.json b/Services/Dws/composer.json index ef4667981..260ed8360 100644 --- a/Services/Dws/composer.json +++ b/Services/Dws/composer.json @@ -8,7 +8,7 @@ "api", "dws" ], - "version": "3.1.77", + "version": "3.1.78", "type": "library", "license": "Apache-2.0", "authors": [ @@ -20,7 +20,7 @@ ], "minimum-stability": "dev", "require": { - "huaweicloud/huaweicloud-sdk-core": "3.1.77" + "huaweicloud/huaweicloud-sdk-core": "3.1.78" }, "autoload": { "psr-4": { diff --git a/Services/Ecs/composer.json b/Services/Ecs/composer.json index 277166965..7da4cc0b4 100644 --- a/Services/Ecs/composer.json +++ b/Services/Ecs/composer.json @@ -8,7 +8,7 @@ "api", "ecs" ], - "version": "3.1.77", + "version": "3.1.78", "type": "library", "license": "Apache-2.0", "authors": [ @@ -20,7 +20,7 @@ ], "minimum-stability": "dev", "require": { - "huaweicloud/huaweicloud-sdk-core": "3.1.77" + "huaweicloud/huaweicloud-sdk-core": "3.1.78" }, "autoload": { "psr-4": { diff --git a/Services/Eip/composer.json b/Services/Eip/composer.json index d4e242dc0..5edfc5a75 100644 --- a/Services/Eip/composer.json +++ b/Services/Eip/composer.json @@ -8,7 +8,7 @@ "api", "eip" ], - "version": "3.1.77", + "version": "3.1.78", "type": "library", "license": "Apache-2.0", "authors": [ @@ -20,7 +20,7 @@ ], "minimum-stability": "dev", "require": { - "huaweicloud/huaweicloud-sdk-core": "3.1.77" + "huaweicloud/huaweicloud-sdk-core": "3.1.78" }, "autoload": { "psr-4": { diff --git a/Services/Elb/V2/Region/ElbRegion.php b/Services/Elb/V2/Region/ElbRegion.php index 53e4cdd0e..dcec6a29a 100644 --- a/Services/Elb/V2/Region/ElbRegion.php +++ b/Services/Elb/V2/Region/ElbRegion.php @@ -6,7 +6,7 @@ class ElbRegion { - public static $REGION = array("https://elb.eu-west-101.myhuaweicloud.eu"=>"eu-west-101","https://elb.af-south-1.myhuaweicloud.com"=>"af-south-1","https://elb.cn-north-4.myhuaweicloud.com"=>"cn-north-4","https://elb.cn-north-1.myhuaweicloud.com"=>"cn-north-1","https://elb.cn-north-2.myhuaweicloud.com"=>"cn-north-2","https://elb.cn-east-2.myhuaweicloud.com"=>"cn-east-2","https://elb.cn-east-3.myhuaweicloud.com"=>"cn-east-3","https://elb.cn-south-1.myhuaweicloud.com"=>"cn-south-1","https://elb.cn-south-2.myhuaweicloud.com"=>"cn-south-2","https://elb.cn-southwest-2.myhuaweicloud.com"=>"cn-southwest-2","https://elb.ap-southeast-2.myhuaweicloud.com"=>"ap-southeast-2","https://elb.ap-southeast-1.myhuaweicloud.com"=>"ap-southeast-1","https://elb.ap-southeast-3.myhuaweicloud.com"=>"ap-southeast-3","https://elb.cn-north-9.myhuaweicloud.com"=>"cn-north-9","https://elb.la-south-2.myhuaweicloud.com"=>"la-south-2","https://elb.sa-brazil-1.myhuaweicloud.com"=>"sa-brazil-1","https://elb.na-mexico-1.myhuaweicloud.com"=>"na-mexico-1","https://elb.la-north-2.myhuaweicloud.com"=>"la-north-2","https://elb.ap-southeast-4.myhuaweicloud.com"=>"ap-southeast-4","https://elb.tr-west-1.myhuaweicloud.com"=>"tr-west-1","https://elb.ae-ad-1.myhuaweicloud.com"=>"ae-ad-1","https://elb.eu-west-0.myhuaweicloud.com"=>"eu-west-0",); + public static $REGION = array("https://elb.eu-west-101.myhuaweicloud.eu"=>"eu-west-101","https://elb.af-south-1.myhuaweicloud.com"=>"af-south-1","https://elb.cn-north-4.myhuaweicloud.com"=>"cn-north-4","https://elb.cn-north-1.myhuaweicloud.com"=>"cn-north-1","https://elb.cn-north-2.myhuaweicloud.com"=>"cn-north-2","https://elb.cn-east-2.myhuaweicloud.com"=>"cn-east-2","https://elb.cn-east-3.myhuaweicloud.com"=>"cn-east-3","https://elb.cn-south-1.myhuaweicloud.com"=>"cn-south-1","https://elb.cn-south-2.myhuaweicloud.com"=>"cn-south-2","https://elb.cn-southwest-2.myhuaweicloud.com"=>"cn-southwest-2","https://elb.ap-southeast-2.myhuaweicloud.com"=>"ap-southeast-2","https://elb.ap-southeast-1.myhuaweicloud.com"=>"ap-southeast-1","https://elb.ap-southeast-3.myhuaweicloud.com"=>"ap-southeast-3","https://elb.cn-north-9.myhuaweicloud.com"=>"cn-north-9","https://elb.la-south-2.myhuaweicloud.com"=>"la-south-2","https://elb.sa-brazil-1.myhuaweicloud.com"=>"sa-brazil-1","https://elb.na-mexico-1.myhuaweicloud.com"=>"na-mexico-1","https://elb.la-north-2.myhuaweicloud.com"=>"la-north-2","https://elb.ap-southeast-4.myhuaweicloud.com"=>"ap-southeast-4","https://elb.tr-west-1.myhuaweicloud.com"=>"tr-west-1","https://elb.ae-ad-1.myhuaweicloud.com"=>"ae-ad-1","https://elb.eu-west-0.myhuaweicloud.com"=>"eu-west-0","https://elb.me-east-1.myhuaweicloud.com"=>"me-east-1",); public static function valueOf($regionId) { diff --git a/Services/Elb/V3/Region/ElbRegion.php b/Services/Elb/V3/Region/ElbRegion.php index f7c1664f1..d764a935d 100644 --- a/Services/Elb/V3/Region/ElbRegion.php +++ b/Services/Elb/V3/Region/ElbRegion.php @@ -6,7 +6,7 @@ class ElbRegion { - public static $REGION = array("https://elb.eu-west-101.myhuaweicloud.eu"=>"eu-west-101","https://elb.af-south-1.myhuaweicloud.com"=>"af-south-1","https://elb.cn-north-4.myhuaweicloud.com"=>"cn-north-4","https://elb.cn-north-1.myhuaweicloud.com"=>"cn-north-1","https://elb.cn-north-2.myhuaweicloud.com"=>"cn-north-2","https://elb.cn-east-2.myhuaweicloud.com"=>"cn-east-2","https://elb.cn-east-3.myhuaweicloud.com"=>"cn-east-3","https://elb.cn-south-1.myhuaweicloud.com"=>"cn-south-1","https://elb.cn-south-2.myhuaweicloud.com"=>"cn-south-2","https://elb.cn-southwest-2.myhuaweicloud.com"=>"cn-southwest-2","https://elb.ap-southeast-2.myhuaweicloud.com"=>"ap-southeast-2","https://elb.ap-southeast-1.myhuaweicloud.com"=>"ap-southeast-1","https://elb.ap-southeast-3.myhuaweicloud.com"=>"ap-southeast-3","https://elb.cn-north-9.myhuaweicloud.com"=>"cn-north-9","https://elb.la-south-2.myhuaweicloud.com"=>"la-south-2","https://elb.sa-brazil-1.myhuaweicloud.com"=>"sa-brazil-1","https://elb.na-mexico-1.myhuaweicloud.com"=>"na-mexico-1","https://elb.la-north-2.myhuaweicloud.com"=>"la-north-2","https://elb.ap-southeast-4.myhuaweicloud.com"=>"ap-southeast-4","https://elb.tr-west-1.myhuaweicloud.com"=>"tr-west-1","https://elb.ae-ad-1.myhuaweicloud.com"=>"ae-ad-1","https://elb.eu-west-0.myhuaweicloud.com"=>"eu-west-0",); + public static $REGION = array("https://elb.eu-west-101.myhuaweicloud.eu"=>"eu-west-101","https://elb.af-south-1.myhuaweicloud.com"=>"af-south-1","https://elb.cn-north-4.myhuaweicloud.com"=>"cn-north-4","https://elb.cn-north-1.myhuaweicloud.com"=>"cn-north-1","https://elb.cn-north-2.myhuaweicloud.com"=>"cn-north-2","https://elb.cn-east-2.myhuaweicloud.com"=>"cn-east-2","https://elb.cn-east-3.myhuaweicloud.com"=>"cn-east-3","https://elb.cn-south-1.myhuaweicloud.com"=>"cn-south-1","https://elb.cn-south-2.myhuaweicloud.com"=>"cn-south-2","https://elb.cn-southwest-2.myhuaweicloud.com"=>"cn-southwest-2","https://elb.ap-southeast-2.myhuaweicloud.com"=>"ap-southeast-2","https://elb.ap-southeast-1.myhuaweicloud.com"=>"ap-southeast-1","https://elb.ap-southeast-3.myhuaweicloud.com"=>"ap-southeast-3","https://elb.cn-north-9.myhuaweicloud.com"=>"cn-north-9","https://elb.la-south-2.myhuaweicloud.com"=>"la-south-2","https://elb.sa-brazil-1.myhuaweicloud.com"=>"sa-brazil-1","https://elb.na-mexico-1.myhuaweicloud.com"=>"na-mexico-1","https://elb.la-north-2.myhuaweicloud.com"=>"la-north-2","https://elb.ap-southeast-4.myhuaweicloud.com"=>"ap-southeast-4","https://elb.tr-west-1.myhuaweicloud.com"=>"tr-west-1","https://elb.ae-ad-1.myhuaweicloud.com"=>"ae-ad-1","https://elb.eu-west-0.myhuaweicloud.com"=>"eu-west-0","https://elb.me-east-1.myhuaweicloud.com"=>"me-east-1",); public static function valueOf($regionId) { diff --git a/Services/Elb/composer.json b/Services/Elb/composer.json index 28e99ab19..17ea48adc 100644 --- a/Services/Elb/composer.json +++ b/Services/Elb/composer.json @@ -8,7 +8,7 @@ "api", "elb" ], - "version": "3.1.77", + "version": "3.1.78", "type": "library", "license": "Apache-2.0", "authors": [ @@ -20,7 +20,7 @@ ], "minimum-stability": "dev", "require": { - "huaweicloud/huaweicloud-sdk-core": "3.1.77" + "huaweicloud/huaweicloud-sdk-core": "3.1.78" }, "autoload": { "psr-4": { diff --git a/Services/Eps/composer.json b/Services/Eps/composer.json index 24a54af3b..451d3475e 100644 --- a/Services/Eps/composer.json +++ b/Services/Eps/composer.json @@ -8,7 +8,7 @@ "api", "eps" ], - "version": "3.1.77", + "version": "3.1.78", "type": "library", "license": "Apache-2.0", "authors": [ @@ -20,7 +20,7 @@ ], "minimum-stability": "dev", "require": { - "huaweicloud/huaweicloud-sdk-core": "3.1.77" + "huaweicloud/huaweicloud-sdk-core": "3.1.78" }, "autoload": { "psr-4": { diff --git a/Services/Er/composer.json b/Services/Er/composer.json index 6099f64c1..0f88d5704 100644 --- a/Services/Er/composer.json +++ b/Services/Er/composer.json @@ -8,7 +8,7 @@ "api", "er" ], - "version": "3.1.77", + "version": "3.1.78", "type": "library", "license": "Apache-2.0", "authors": [ @@ -20,7 +20,7 @@ ], "minimum-stability": "dev", "require": { - "huaweicloud/huaweicloud-sdk-core": "3.1.77" + "huaweicloud/huaweicloud-sdk-core": "3.1.78" }, "autoload": { "psr-4": { diff --git a/Services/Evs/composer.json b/Services/Evs/composer.json index 457120129..ff5ef52b5 100644 --- a/Services/Evs/composer.json +++ b/Services/Evs/composer.json @@ -8,7 +8,7 @@ "api", "evs" ], - "version": "3.1.77", + "version": "3.1.78", "type": "library", "license": "Apache-2.0", "authors": [ @@ -20,7 +20,7 @@ ], "minimum-stability": "dev", "require": { - "huaweicloud/huaweicloud-sdk-core": "3.1.77" + "huaweicloud/huaweicloud-sdk-core": "3.1.78" }, "autoload": { "psr-4": { diff --git a/Services/Frs/composer.json b/Services/Frs/composer.json index 39bc3ef46..a9ff67cbb 100644 --- a/Services/Frs/composer.json +++ b/Services/Frs/composer.json @@ -8,7 +8,7 @@ "api", "frs" ], - "version": "3.1.77", + "version": "3.1.78", "type": "library", "license": "Apache-2.0", "authors": [ @@ -20,7 +20,7 @@ ], "minimum-stability": "dev", "require": { - "huaweicloud/huaweicloud-sdk-core": "3.1.77" + "huaweicloud/huaweicloud-sdk-core": "3.1.78" }, "autoload": { "psr-4": { diff --git a/Services/FunctionGraph/composer.json b/Services/FunctionGraph/composer.json index 3bbac2270..b1a7b7f6d 100644 --- a/Services/FunctionGraph/composer.json +++ b/Services/FunctionGraph/composer.json @@ -8,7 +8,7 @@ "api", "functiongraph" ], - "version": "3.1.77", + "version": "3.1.78", "type": "library", "license": "Apache-2.0", "authors": [ @@ -20,7 +20,7 @@ ], "minimum-stability": "dev", "require": { - "huaweicloud/huaweicloud-sdk-core": "3.1.77" + "huaweicloud/huaweicloud-sdk-core": "3.1.78" }, "autoload": { "psr-4": { diff --git a/Services/Ga/composer.json b/Services/Ga/composer.json index 468bfcacd..8923ba6f1 100644 --- a/Services/Ga/composer.json +++ b/Services/Ga/composer.json @@ -8,7 +8,7 @@ "api", "ga" ], - "version": "3.1.77", + "version": "3.1.78", "type": "library", "license": "Apache-2.0", "authors": [ @@ -20,7 +20,7 @@ ], "minimum-stability": "dev", "require": { - "huaweicloud/huaweicloud-sdk-core": "3.1.77" + "huaweicloud/huaweicloud-sdk-core": "3.1.78" }, "autoload": { "psr-4": { diff --git a/Services/GaussDB/composer.json b/Services/GaussDB/composer.json index 93413dcd7..4f311c98d 100644 --- a/Services/GaussDB/composer.json +++ b/Services/GaussDB/composer.json @@ -8,7 +8,7 @@ "api", "gaussdb" ], - "version": "3.1.77", + "version": "3.1.78", "type": "library", "license": "Apache-2.0", "authors": [ @@ -20,7 +20,7 @@ ], "minimum-stability": "dev", "require": { - "huaweicloud/huaweicloud-sdk-core": "3.1.77" + "huaweicloud/huaweicloud-sdk-core": "3.1.78" }, "autoload": { "psr-4": { diff --git a/Services/GaussDBforopenGauss/composer.json b/Services/GaussDBforopenGauss/composer.json index 992adf6da..6fc020b5b 100644 --- a/Services/GaussDBforopenGauss/composer.json +++ b/Services/GaussDBforopenGauss/composer.json @@ -8,7 +8,7 @@ "api", "gaussdbforopengauss" ], - "version": "3.1.77", + "version": "3.1.78", "type": "library", "license": "Apache-2.0", "authors": [ @@ -20,7 +20,7 @@ ], "minimum-stability": "dev", "require": { - "huaweicloud/huaweicloud-sdk-core": "3.1.77" + "huaweicloud/huaweicloud-sdk-core": "3.1.78" }, "autoload": { "psr-4": { diff --git a/Services/Geip/composer.json b/Services/Geip/composer.json index cb44007e5..d6aca61b9 100644 --- a/Services/Geip/composer.json +++ b/Services/Geip/composer.json @@ -8,7 +8,7 @@ "api", "geip" ], - "version": "3.1.77", + "version": "3.1.78", "type": "library", "license": "Apache-2.0", "authors": [ @@ -20,7 +20,7 @@ ], "minimum-stability": "dev", "require": { - "huaweicloud/huaweicloud-sdk-core": "3.1.77" + "huaweicloud/huaweicloud-sdk-core": "3.1.78" }, "autoload": { "psr-4": { diff --git a/Services/Ges/composer.json b/Services/Ges/composer.json index f51605033..e86b89946 100644 --- a/Services/Ges/composer.json +++ b/Services/Ges/composer.json @@ -8,7 +8,7 @@ "api", "ges" ], - "version": "3.1.77", + "version": "3.1.78", "type": "library", "license": "Apache-2.0", "authors": [ @@ -20,7 +20,7 @@ ], "minimum-stability": "dev", "require": { - "huaweicloud/huaweicloud-sdk-core": "3.1.77" + "huaweicloud/huaweicloud-sdk-core": "3.1.78" }, "autoload": { "psr-4": { diff --git a/Services/Hss/V5/Region/HssRegion.php b/Services/Hss/V5/Region/HssRegion.php index d8b57733e..d09410422 100644 --- a/Services/Hss/V5/Region/HssRegion.php +++ b/Services/Hss/V5/Region/HssRegion.php @@ -6,7 +6,7 @@ class HssRegion { - public static $REGION = array("https://hss.cn-north-9.myhuaweicloud.com"=>"cn-north-9","https://hss.cn-north-1.myhuaweicloud.com"=>"cn-north-1","https://hss.cn-north-4.myhuaweicloud.com"=>"cn-north-4","https://hss.cn-southwest-2.myhuaweicloud.com"=>"cn-southwest-2","https://hss.cn-east-2.myhuaweicloud.com"=>"cn-east-2","https://hss.cn-east-3.myhuaweicloud.com"=>"cn-east-3","https://hss.cn-south-1.myhuaweicloud.com"=>"cn-south-1","https://hss.cn-south-2.myhuaweicloud.com"=>"cn-south-2","https://hss.ap-southeast-1.myhuaweicloud.com"=>"ap-southeast-1","https://hss.ap-southeast-2.myhuaweicloud.com"=>"ap-southeast-2","https://hss.ap-southeast-3.myhuaweicloud.com"=>"ap-southeast-3","https://hss.na-mexico-1.myhuaweicloud.com"=>"na-mexico-1","https://hss.af-south-1.myhuaweicloud.com"=>"af-south-1","https://hss.sa-brazil-1.myhuaweicloud.com"=>"sa-brazil-1","https://hss.la-south-2.myhuaweicloud.com"=>"la-south-2","https://hss.cn-south-4.myhuaweicloud.com"=>"cn-south-4","https://hss.la-north-2.myhuaweicloud.com"=>"la-north-2","https://hss.tr-west-1.myhuaweicloud.com"=>"tr-west-1","https://hss.cn-north-2.myhuaweicloud.com"=>"cn-north-2","https://hss.ap-southeast-4.myhuaweicloud.com"=>"ap-southeast-4","https://hss.ae-ad-1.myhuaweicloud.com"=>"ae-ad-1","https://hss.me-east-1.myhuaweicloud.com"=>"me-east-1",); + public static $REGION = array("https://hss.cn-north-9.myhuaweicloud.com"=>"cn-north-9","https://hss.cn-north-1.myhuaweicloud.com"=>"cn-north-1","https://hss.cn-north-4.myhuaweicloud.com"=>"cn-north-4","https://hss.cn-southwest-2.myhuaweicloud.com"=>"cn-southwest-2","https://hss.cn-east-2.myhuaweicloud.com"=>"cn-east-2","https://hss.cn-east-3.myhuaweicloud.com"=>"cn-east-3","https://hss.cn-south-1.myhuaweicloud.com"=>"cn-south-1","https://hss.cn-south-2.myhuaweicloud.com"=>"cn-south-2","https://hss.ap-southeast-1.myhuaweicloud.com"=>"ap-southeast-1","https://hss.ap-southeast-2.myhuaweicloud.com"=>"ap-southeast-2","https://hss.ap-southeast-3.myhuaweicloud.com"=>"ap-southeast-3","https://hss.na-mexico-1.myhuaweicloud.com"=>"na-mexico-1","https://hss.af-south-1.myhuaweicloud.com"=>"af-south-1","https://hss.sa-brazil-1.myhuaweicloud.com"=>"sa-brazil-1","https://hss.la-south-2.myhuaweicloud.com"=>"la-south-2","https://hss.cn-south-4.myhuaweicloud.com"=>"cn-south-4","https://hss.la-north-2.myhuaweicloud.com"=>"la-north-2","https://hss.tr-west-1.myhuaweicloud.com"=>"tr-west-1","https://hss.cn-north-2.myhuaweicloud.com"=>"cn-north-2","https://hss.ap-southeast-4.myhuaweicloud.com"=>"ap-southeast-4","https://hss.ae-ad-1.myhuaweicloud.com"=>"ae-ad-1","https://hss.me-east-1.myhuaweicloud.com"=>"me-east-1","https://hss.cn-east-5.myhuaweicloud.com"=>"cn-east-5",); public static function valueOf($regionId) { diff --git a/Services/Hss/composer.json b/Services/Hss/composer.json index d6a59bfde..70e121b9c 100644 --- a/Services/Hss/composer.json +++ b/Services/Hss/composer.json @@ -8,7 +8,7 @@ "api", "hss" ], - "version": "3.1.77", + "version": "3.1.78", "type": "library", "license": "Apache-2.0", "authors": [ @@ -20,7 +20,7 @@ ], "minimum-stability": "dev", "require": { - "huaweicloud/huaweicloud-sdk-core": "3.1.77" + "huaweicloud/huaweicloud-sdk-core": "3.1.78" }, "autoload": { "psr-4": { diff --git a/Services/IAMAccessAnalyzer/V1/IAMAccessAnalyzerAsyncClient.php b/Services/IAMAccessAnalyzer/V1/IAMAccessAnalyzerAsyncClient.php new file mode 100644 index 000000000..ce4841349 --- /dev/null +++ b/Services/IAMAccessAnalyzer/V1/IAMAccessAnalyzerAsyncClient.php @@ -0,0 +1,1501 @@ +modelPackage = ModelInterface::class; + $this->headerSelector = $selector ?: new HeaderSelector(); + } + + public static function newBuilder() + { + return new ClientBuilder(new IAMAccessAnalyzerAsyncClient(), "GlobalCredentials"); + } + + /** + * 创建分析器 + * + * 为您的帐号或者组织创建分析器。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param $request 请求对象 + * @return response + */ + public function createAnalyzerAsync($request) + { + return $this->createAnalyzerAsyncWithHttpInfo($request); + } + + public function createAnalyzerAsyncWithHttpInfo($request){ + $collection_formats = []; + $resourcePath = '/v5/analyzers'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $pathParams = []; + $httpBody = null; + $multipart = false; + $localVarParams = []; + $arr = $request::attributeMap(); + foreach ($arr as $k => $v) { + $getter = $request::getters()[$k]; + $value = $request->$getter(); + $localVarParams[$k] = $value; + } + if ($localVarParams['body'] !== null) { + $httpBody= $localVarParams['body']; + } + + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + ['application/json'] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + ['application/json'] + ); + } + $headers = array_merge( + $headerParams, + $headers + ); + + return $this->callApi( + $method='POST', + $resourcePath, + $pathParams, + $queryParams, + $headerParams=$headers, + $body=$httpBody, + $multipart = $multipart, + $postParams=$formParams, + $responseType='\HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\CreateAnalyzerResponse', + $collectionFormats=$collection_formats, + $requestType='\HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\CreateAnalyzerRequest', + $asyncRequest = true); + } + + /** + * 删除指定的分析器 + * + * 删除指定的分析器。分析器生成的所有检查结果都将被删除。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param $request 请求对象 + * @return response + */ + public function deleteAnalyzerAsync($request) + { + return $this->deleteAnalyzerAsyncWithHttpInfo($request); + } + + public function deleteAnalyzerAsyncWithHttpInfo($request){ + $collection_formats = []; + $resourcePath = '/v5/analyzers/{analyzer_id}'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $pathParams = []; + $httpBody = null; + $multipart = false; + $localVarParams = []; + $arr = $request::attributeMap(); + foreach ($arr as $k => $v) { + $getter = $request::getters()[$k]; + $value = $request->$getter(); + $localVarParams[$k] = $value; + } + if ($localVarParams['analyzerId'] !== null) { + $pathParams['analyzer_id'] = $localVarParams['analyzerId']; + } + + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + [] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + [], + [] + ); + } + $headers = array_merge( + $headerParams, + $headers + ); + + return $this->callApi( + $method='DELETE', + $resourcePath, + $pathParams, + $queryParams, + $headerParams=$headers, + $body=$httpBody, + $multipart = $multipart, + $postParams=$formParams, + $responseType='\HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\DeleteAnalyzerResponse', + $collectionFormats=$collection_formats, + $requestType='\HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\DeleteAnalyzerRequest', + $asyncRequest = true); + } + + /** + * 检索分析器的列表 + * + * 检索分析器的列表。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param $request 请求对象 + * @return response + */ + public function listAnalyzersAsync($request) + { + return $this->listAnalyzersAsyncWithHttpInfo($request); + } + + public function listAnalyzersAsyncWithHttpInfo($request){ + $collection_formats = []; + $resourcePath = '/v5/analyzers'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $pathParams = []; + $httpBody = null; + $multipart = false; + $localVarParams = []; + $arr = $request::attributeMap(); + foreach ($arr as $k => $v) { + $getter = $request::getters()[$k]; + $value = $request->$getter(); + $localVarParams[$k] = $value; + } + if ($localVarParams['limit'] !== null) { + $queryParams['limit'] = $localVarParams['limit']; + } + if ($localVarParams['marker'] !== null) { + $queryParams['marker'] = $localVarParams['marker']; + } + if ($localVarParams['type'] !== null) { + $queryParams['type'] = $localVarParams['type']; + } + + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + ['application/json'] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + [] + ); + } + $headers = array_merge( + $headerParams, + $headers + ); + + return $this->callApi( + $method='GET', + $resourcePath, + $pathParams, + $queryParams, + $headerParams=$headers, + $body=$httpBody, + $multipart = $multipart, + $postParams=$formParams, + $responseType='\HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\ListAnalyzersResponse', + $collectionFormats=$collection_formats, + $requestType='\HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\ListAnalyzersRequest', + $asyncRequest = true); + } + + /** + * 显示指定的分析器 + * + * 检索有关指定分析器的信息。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param $request 请求对象 + * @return response + */ + public function showAnalyzerAsync($request) + { + return $this->showAnalyzerAsyncWithHttpInfo($request); + } + + public function showAnalyzerAsyncWithHttpInfo($request){ + $collection_formats = []; + $resourcePath = '/v5/analyzers/{analyzer_id}'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $pathParams = []; + $httpBody = null; + $multipart = false; + $localVarParams = []; + $arr = $request::attributeMap(); + foreach ($arr as $k => $v) { + $getter = $request::getters()[$k]; + $value = $request->$getter(); + $localVarParams[$k] = $value; + } + if ($localVarParams['analyzerId'] !== null) { + $pathParams['analyzer_id'] = $localVarParams['analyzerId']; + } + + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + ['application/json'] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + [] + ); + } + $headers = array_merge( + $headerParams, + $headers + ); + + return $this->callApi( + $method='GET', + $resourcePath, + $pathParams, + $queryParams, + $headerParams=$headers, + $body=$httpBody, + $multipart = $multipart, + $postParams=$formParams, + $responseType='\HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\ShowAnalyzerResponse', + $collectionFormats=$collection_formats, + $requestType='\HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\ShowAnalyzerRequest', + $asyncRequest = true); + } + + /** + * 立即开始扫描应用于指定资源的策略 + * + * 立即开始扫描应用于指定资源的策略。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param $request 请求对象 + * @return response + */ + public function startResourceScanAsync($request) + { + return $this->startResourceScanAsyncWithHttpInfo($request); + } + + public function startResourceScanAsyncWithHttpInfo($request){ + $collection_formats = []; + $resourcePath = '/v5/analyzers/{analyzer_id}/scan'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $pathParams = []; + $httpBody = null; + $multipart = false; + $localVarParams = []; + $arr = $request::attributeMap(); + foreach ($arr as $k => $v) { + $getter = $request::getters()[$k]; + $value = $request->$getter(); + $localVarParams[$k] = $value; + } + if ($localVarParams['analyzerId'] !== null) { + $pathParams['analyzer_id'] = $localVarParams['analyzerId']; + } + if ($localVarParams['body'] !== null) { + $httpBody= $localVarParams['body']; + } + + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + [] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + [], + ['application/json'] + ); + } + $headers = array_merge( + $headerParams, + $headers + ); + + return $this->callApi( + $method='POST', + $resourcePath, + $pathParams, + $queryParams, + $headerParams=$headers, + $body=$httpBody, + $multipart = $multipart, + $postParams=$formParams, + $responseType='\HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\StartResourceScanResponse', + $collectionFormats=$collection_formats, + $requestType='\HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\StartResourceScanRequest', + $asyncRequest = true); + } + + /** + * 应用存档规则 + * + * 以追溯方式将存档规则应用于符合存档规则条件的现有结果。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param $request 请求对象 + * @return response + */ + public function applyArchiveRuleAsync($request) + { + return $this->applyArchiveRuleAsyncWithHttpInfo($request); + } + + public function applyArchiveRuleAsyncWithHttpInfo($request){ + $collection_formats = []; + $resourcePath = '/v5/analyzers/{analyzer_id}/archive-rules/{archive_rule_id}/apply'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $pathParams = []; + $httpBody = null; + $multipart = false; + $localVarParams = []; + $arr = $request::attributeMap(); + foreach ($arr as $k => $v) { + $getter = $request::getters()[$k]; + $value = $request->$getter(); + $localVarParams[$k] = $value; + } + if ($localVarParams['analyzerId'] !== null) { + $pathParams['analyzer_id'] = $localVarParams['analyzerId']; + } + if ($localVarParams['archiveRuleId'] !== null) { + $pathParams['archive_rule_id'] = $localVarParams['archiveRuleId']; + } + + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + [] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + [], + [] + ); + } + $headers = array_merge( + $headerParams, + $headers + ); + + return $this->callApi( + $method='POST', + $resourcePath, + $pathParams, + $queryParams, + $headerParams=$headers, + $body=$httpBody, + $multipart = $multipart, + $postParams=$formParams, + $responseType='\HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\ApplyArchiveRuleResponse', + $collectionFormats=$collection_formats, + $requestType='\HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\ApplyArchiveRuleRequest', + $asyncRequest = true); + } + + /** + * 为指定的分析器创建存档规则 + * + * 为指定的分析器创建存档规则。存档规则会自动存档符合您在创建规则时所定义条件的新结果。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param $request 请求对象 + * @return response + */ + public function createArchiveRuleAsync($request) + { + return $this->createArchiveRuleAsyncWithHttpInfo($request); + } + + public function createArchiveRuleAsyncWithHttpInfo($request){ + $collection_formats = []; + $resourcePath = '/v5/analyzers/{analyzer_id}/archive-rules'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $pathParams = []; + $httpBody = null; + $multipart = false; + $localVarParams = []; + $arr = $request::attributeMap(); + foreach ($arr as $k => $v) { + $getter = $request::getters()[$k]; + $value = $request->$getter(); + $localVarParams[$k] = $value; + } + if ($localVarParams['analyzerId'] !== null) { + $pathParams['analyzer_id'] = $localVarParams['analyzerId']; + } + if ($localVarParams['body'] !== null) { + $httpBody= $localVarParams['body']; + } + + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + ['application/json'] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + ['application/json'] + ); + } + $headers = array_merge( + $headerParams, + $headers + ); + + return $this->callApi( + $method='POST', + $resourcePath, + $pathParams, + $queryParams, + $headerParams=$headers, + $body=$httpBody, + $multipart = $multipart, + $postParams=$formParams, + $responseType='\HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\CreateArchiveRuleResponse', + $collectionFormats=$collection_formats, + $requestType='\HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\CreateArchiveRuleRequest', + $asyncRequest = true); + } + + /** + * 删除指定的存档规则 + * + * 删除指定的存档规则。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param $request 请求对象 + * @return response + */ + public function deleteArchiveRuleAsync($request) + { + return $this->deleteArchiveRuleAsyncWithHttpInfo($request); + } + + public function deleteArchiveRuleAsyncWithHttpInfo($request){ + $collection_formats = []; + $resourcePath = '/v5/analyzers/{analyzer_id}/archive-rules/{archive_rule_id}'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $pathParams = []; + $httpBody = null; + $multipart = false; + $localVarParams = []; + $arr = $request::attributeMap(); + foreach ($arr as $k => $v) { + $getter = $request::getters()[$k]; + $value = $request->$getter(); + $localVarParams[$k] = $value; + } + if ($localVarParams['analyzerId'] !== null) { + $pathParams['analyzer_id'] = $localVarParams['analyzerId']; + } + if ($localVarParams['archiveRuleId'] !== null) { + $pathParams['archive_rule_id'] = $localVarParams['archiveRuleId']; + } + + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + [] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + [], + [] + ); + } + $headers = array_merge( + $headerParams, + $headers + ); + + return $this->callApi( + $method='DELETE', + $resourcePath, + $pathParams, + $queryParams, + $headerParams=$headers, + $body=$httpBody, + $multipart = $multipart, + $postParams=$formParams, + $responseType='\HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\DeleteArchiveRuleResponse', + $collectionFormats=$collection_formats, + $requestType='\HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\DeleteArchiveRuleRequest', + $asyncRequest = true); + } + + /** + * 检索为指定分析器创建的存档规则的列表 + * + * 检索为指定分析器创建的存档规则列表。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param $request 请求对象 + * @return response + */ + public function listArchiveRulesAsync($request) + { + return $this->listArchiveRulesAsyncWithHttpInfo($request); + } + + public function listArchiveRulesAsyncWithHttpInfo($request){ + $collection_formats = []; + $resourcePath = '/v5/analyzers/{analyzer_id}/archive-rules'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $pathParams = []; + $httpBody = null; + $multipart = false; + $localVarParams = []; + $arr = $request::attributeMap(); + foreach ($arr as $k => $v) { + $getter = $request::getters()[$k]; + $value = $request->$getter(); + $localVarParams[$k] = $value; + } + if ($localVarParams['limit'] !== null) { + $queryParams['limit'] = $localVarParams['limit']; + } + if ($localVarParams['marker'] !== null) { + $queryParams['marker'] = $localVarParams['marker']; + } + if ($localVarParams['analyzerId'] !== null) { + $pathParams['analyzer_id'] = $localVarParams['analyzerId']; + } + + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + ['application/json'] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + [] + ); + } + $headers = array_merge( + $headerParams, + $headers + ); + + return $this->callApi( + $method='GET', + $resourcePath, + $pathParams, + $queryParams, + $headerParams=$headers, + $body=$httpBody, + $multipart = $multipart, + $postParams=$formParams, + $responseType='\HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\ListArchiveRulesResponse', + $collectionFormats=$collection_formats, + $requestType='\HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\ListArchiveRulesRequest', + $asyncRequest = true); + } + + /** + * 检索有关存档规则的信息 + * + * 检索有关存档规则的信息。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param $request 请求对象 + * @return response + */ + public function showArchiveRuleAsync($request) + { + return $this->showArchiveRuleAsyncWithHttpInfo($request); + } + + public function showArchiveRuleAsyncWithHttpInfo($request){ + $collection_formats = []; + $resourcePath = '/v5/analyzers/{analyzer_id}/archive-rules/{archive_rule_id}'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $pathParams = []; + $httpBody = null; + $multipart = false; + $localVarParams = []; + $arr = $request::attributeMap(); + foreach ($arr as $k => $v) { + $getter = $request::getters()[$k]; + $value = $request->$getter(); + $localVarParams[$k] = $value; + } + if ($localVarParams['analyzerId'] !== null) { + $pathParams['analyzer_id'] = $localVarParams['analyzerId']; + } + if ($localVarParams['archiveRuleId'] !== null) { + $pathParams['archive_rule_id'] = $localVarParams['archiveRuleId']; + } + + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + ['application/json'] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + [] + ); + } + $headers = array_merge( + $headerParams, + $headers + ); + + return $this->callApi( + $method='GET', + $resourcePath, + $pathParams, + $queryParams, + $headerParams=$headers, + $body=$httpBody, + $multipart = $multipart, + $postParams=$formParams, + $responseType='\HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\ShowArchiveRuleResponse', + $collectionFormats=$collection_formats, + $requestType='\HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\ShowArchiveRuleRequest', + $asyncRequest = true); + } + + /** + * 更新指定存档规则的条件和值 + * + * 更新指定存档规则的条件和值。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param $request 请求对象 + * @return response + */ + public function updateArchiveRuleAsync($request) + { + return $this->updateArchiveRuleAsyncWithHttpInfo($request); + } + + public function updateArchiveRuleAsyncWithHttpInfo($request){ + $collection_formats = []; + $resourcePath = '/v5/analyzers/{analyzer_id}/archive-rules/{archive_rule_id}'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $pathParams = []; + $httpBody = null; + $multipart = false; + $localVarParams = []; + $arr = $request::attributeMap(); + foreach ($arr as $k => $v) { + $getter = $request::getters()[$k]; + $value = $request->$getter(); + $localVarParams[$k] = $value; + } + if ($localVarParams['analyzerId'] !== null) { + $pathParams['analyzer_id'] = $localVarParams['analyzerId']; + } + if ($localVarParams['archiveRuleId'] !== null) { + $pathParams['archive_rule_id'] = $localVarParams['archiveRuleId']; + } + if ($localVarParams['body'] !== null) { + $httpBody= $localVarParams['body']; + } + + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + [] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + [], + ['application/json'] + ); + } + $headers = array_merge( + $headerParams, + $headers + ); + + return $this->callApi( + $method='PUT', + $resourcePath, + $pathParams, + $queryParams, + $headerParams=$headers, + $body=$httpBody, + $multipart = $multipart, + $postParams=$formParams, + $responseType='\HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\UpdateArchiveRuleResponse', + $collectionFormats=$collection_formats, + $requestType='\HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\UpdateArchiveRuleRequest', + $asyncRequest = true); + } + + /** + * 检索指定分析器生成的结果列表 + * + * 检索指定分析器生成的查找结果列表。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param $request 请求对象 + * @return response + */ + public function listFindingsAsync($request) + { + return $this->listFindingsAsyncWithHttpInfo($request); + } + + public function listFindingsAsyncWithHttpInfo($request){ + $collection_formats = []; + $resourcePath = '/v5/analyzers/{analyzer_id}/findings'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $pathParams = []; + $httpBody = null; + $multipart = false; + $localVarParams = []; + $arr = $request::attributeMap(); + foreach ($arr as $k => $v) { + $getter = $request::getters()[$k]; + $value = $request->$getter(); + $localVarParams[$k] = $value; + } + if ($localVarParams['analyzerId'] !== null) { + $pathParams['analyzer_id'] = $localVarParams['analyzerId']; + } + if ($localVarParams['body'] !== null) { + $httpBody= $localVarParams['body']; + } + + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + ['application/json'] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + ['application/json'] + ); + } + $headers = array_merge( + $headerParams, + $headers + ); + + return $this->callApi( + $method='POST', + $resourcePath, + $pathParams, + $queryParams, + $headerParams=$headers, + $body=$httpBody, + $multipart = $multipart, + $postParams=$formParams, + $responseType='\HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\ListFindingsResponse', + $collectionFormats=$collection_formats, + $requestType='\HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\ListFindingsRequest', + $asyncRequest = true); + } + + /** + * 检索有关指定结果的信息 + * + * 检索有关指定结果的信息。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param $request 请求对象 + * @return response + */ + public function showFindingAsync($request) + { + return $this->showFindingAsyncWithHttpInfo($request); + } + + public function showFindingAsyncWithHttpInfo($request){ + $collection_formats = []; + $resourcePath = '/v5/analyzers/{analyzer_id}/findings/{finding_id}'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $pathParams = []; + $httpBody = null; + $multipart = false; + $localVarParams = []; + $arr = $request::attributeMap(); + foreach ($arr as $k => $v) { + $getter = $request::getters()[$k]; + $value = $request->$getter(); + $localVarParams[$k] = $value; + } + if ($localVarParams['analyzerId'] !== null) { + $pathParams['analyzer_id'] = $localVarParams['analyzerId']; + } + if ($localVarParams['findingId'] !== null) { + $pathParams['finding_id'] = $localVarParams['findingId']; + } + + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + ['application/json'] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + [] + ); + } + $headers = array_merge( + $headerParams, + $headers + ); + + return $this->callApi( + $method='GET', + $resourcePath, + $pathParams, + $queryParams, + $headerParams=$headers, + $body=$httpBody, + $multipart = $multipart, + $postParams=$formParams, + $responseType='\HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\ShowFindingResponse', + $collectionFormats=$collection_formats, + $requestType='\HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\ShowFindingRequest', + $asyncRequest = true); + } + + /** + * 更新指定结果的状态 + * + * 更新指定调查结果的状态。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param $request 请求对象 + * @return response + */ + public function updateFindingsAsync($request) + { + return $this->updateFindingsAsyncWithHttpInfo($request); + } + + public function updateFindingsAsyncWithHttpInfo($request){ + $collection_formats = []; + $resourcePath = '/v5/analyzers/{analyzer_id}/findings'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $pathParams = []; + $httpBody = null; + $multipart = false; + $localVarParams = []; + $arr = $request::attributeMap(); + foreach ($arr as $k => $v) { + $getter = $request::getters()[$k]; + $value = $request->$getter(); + $localVarParams[$k] = $value; + } + if ($localVarParams['analyzerId'] !== null) { + $pathParams['analyzer_id'] = $localVarParams['analyzerId']; + } + if ($localVarParams['body'] !== null) { + $httpBody= $localVarParams['body']; + } + + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + [] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + [], + ['application/json'] + ); + } + $headers = array_merge( + $headerParams, + $headers + ); + + return $this->callApi( + $method='PUT', + $resourcePath, + $pathParams, + $queryParams, + $headerParams=$headers, + $body=$httpBody, + $multipart = $multipart, + $postParams=$formParams, + $responseType='\HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\UpdateFindingsResponse', + $collectionFormats=$collection_formats, + $requestType='\HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\UpdateFindingsRequest', + $asyncRequest = true); + } + + /** + * 创建访问预览 + * + * 创建访问预览 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param $request 请求对象 + * @return response + */ + public function createAccessPreviewAsync($request) + { + return $this->createAccessPreviewAsyncWithHttpInfo($request); + } + + public function createAccessPreviewAsyncWithHttpInfo($request){ + $collection_formats = []; + $resourcePath = '/v5/analyzers/{analyzer_id}/access-previews'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $pathParams = []; + $httpBody = null; + $multipart = false; + $localVarParams = []; + $arr = $request::attributeMap(); + foreach ($arr as $k => $v) { + $getter = $request::getters()[$k]; + $value = $request->$getter(); + $localVarParams[$k] = $value; + } + if ($localVarParams['analyzerId'] !== null) { + $pathParams['analyzer_id'] = $localVarParams['analyzerId']; + } + if ($localVarParams['body'] !== null) { + $httpBody= $localVarParams['body']; + } + + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + ['application/json'] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + ['application/json'] + ); + } + $headers = array_merge( + $headerParams, + $headers + ); + + return $this->callApi( + $method='POST', + $resourcePath, + $pathParams, + $queryParams, + $headerParams=$headers, + $body=$httpBody, + $multipart = $multipart, + $postParams=$formParams, + $responseType='\HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\CreateAccessPreviewResponse', + $collectionFormats=$collection_formats, + $requestType='\HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\CreateAccessPreviewRequest', + $asyncRequest = true); + } + + /** + * 获取相关访问预览的信息 + * + * 获取相关访问预览的信息。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param $request 请求对象 + * @return response + */ + public function getAccessPreviewAsync($request) + { + return $this->getAccessPreviewAsyncWithHttpInfo($request); + } + + public function getAccessPreviewAsyncWithHttpInfo($request){ + $collection_formats = []; + $resourcePath = '/v5/analyzers/{analyzer_id}/access-previews/{access_preview_id}'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $pathParams = []; + $httpBody = null; + $multipart = false; + $localVarParams = []; + $arr = $request::attributeMap(); + foreach ($arr as $k => $v) { + $getter = $request::getters()[$k]; + $value = $request->$getter(); + $localVarParams[$k] = $value; + } + if ($localVarParams['analyzerId'] !== null) { + $pathParams['analyzer_id'] = $localVarParams['analyzerId']; + } + if ($localVarParams['accessPreviewId'] !== null) { + $pathParams['access_preview_id'] = $localVarParams['accessPreviewId']; + } + + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + ['application/json'] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + [] + ); + } + $headers = array_merge( + $headerParams, + $headers + ); + + return $this->callApi( + $method='GET', + $resourcePath, + $pathParams, + $queryParams, + $headerParams=$headers, + $body=$httpBody, + $multipart = $multipart, + $postParams=$formParams, + $responseType='\HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\GetAccessPreviewResponse', + $collectionFormats=$collection_formats, + $requestType='\HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\GetAccessPreviewRequest', + $asyncRequest = true); + } + + /** + * 获取所有访问预览 + * + * 获取所有访问预览 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param $request 请求对象 + * @return response + */ + public function listAccessPreviewsAsync($request) + { + return $this->listAccessPreviewsAsyncWithHttpInfo($request); + } + + public function listAccessPreviewsAsyncWithHttpInfo($request){ + $collection_formats = []; + $resourcePath = '/v5/analyzers/{analyzer_id}/access-previews'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $pathParams = []; + $httpBody = null; + $multipart = false; + $localVarParams = []; + $arr = $request::attributeMap(); + foreach ($arr as $k => $v) { + $getter = $request::getters()[$k]; + $value = $request->$getter(); + $localVarParams[$k] = $value; + } + if ($localVarParams['limit'] !== null) { + $queryParams['limit'] = $localVarParams['limit']; + } + if ($localVarParams['marker'] !== null) { + $queryParams['marker'] = $localVarParams['marker']; + } + if ($localVarParams['analyzerId'] !== null) { + $pathParams['analyzer_id'] = $localVarParams['analyzerId']; + } + + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + ['application/json'] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + [] + ); + } + $headers = array_merge( + $headerParams, + $headers + ); + + return $this->callApi( + $method='GET', + $resourcePath, + $pathParams, + $queryParams, + $headerParams=$headers, + $body=$httpBody, + $multipart = $multipart, + $postParams=$formParams, + $responseType='\HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\ListAccessPreviewsResponse', + $collectionFormats=$collection_formats, + $requestType='\HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\ListAccessPreviewsRequest', + $asyncRequest = true); + } + + /** + * 获取相关预览生成的findings + * + * 获取指定预览生成的findings + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param $request 请求对象 + * @return response + */ + public function listPreviewFindingsAsync($request) + { + return $this->listPreviewFindingsAsyncWithHttpInfo($request); + } + + public function listPreviewFindingsAsyncWithHttpInfo($request){ + $collection_formats = []; + $resourcePath = '/v5/analyzers/{analyzer_id}/access-previews/{access_preview_id}/findings'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $pathParams = []; + $httpBody = null; + $multipart = false; + $localVarParams = []; + $arr = $request::attributeMap(); + foreach ($arr as $k => $v) { + $getter = $request::getters()[$k]; + $value = $request->$getter(); + $localVarParams[$k] = $value; + } + if ($localVarParams['analyzerId'] !== null) { + $pathParams['analyzer_id'] = $localVarParams['analyzerId']; + } + if ($localVarParams['accessPreviewId'] !== null) { + $pathParams['access_preview_id'] = $localVarParams['accessPreviewId']; + } + if ($localVarParams['body'] !== null) { + $httpBody= $localVarParams['body']; + } + + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + ['application/json'] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + ['application/json'] + ); + } + $headers = array_merge( + $headerParams, + $headers + ); + + return $this->callApi( + $method='POST', + $resourcePath, + $pathParams, + $queryParams, + $headerParams=$headers, + $body=$httpBody, + $multipart = $multipart, + $postParams=$formParams, + $responseType='\HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\ListPreviewFindingsResponse', + $collectionFormats=$collection_formats, + $requestType='\HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\ListPreviewFindingsRequest', + $asyncRequest = true); + } + + /** + * 向指定资源添加标签 + * + * 向指定资源添加标签。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param $request 请求对象 + * @return response + */ + public function tagResourceAsync($request) + { + return $this->tagResourceAsyncWithHttpInfo($request); + } + + public function tagResourceAsyncWithHttpInfo($request){ + $collection_formats = []; + $resourcePath = '/v5/{resource_type}/{resource_id}/tags/create'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $pathParams = []; + $httpBody = null; + $multipart = false; + $localVarParams = []; + $arr = $request::attributeMap(); + foreach ($arr as $k => $v) { + $getter = $request::getters()[$k]; + $value = $request->$getter(); + $localVarParams[$k] = $value; + } + if ($localVarParams['resourceType'] !== null) { + $pathParams['resource_type'] = $localVarParams['resourceType']; + } + if ($localVarParams['resourceId'] !== null) { + $pathParams['resource_id'] = $localVarParams['resourceId']; + } + if ($localVarParams['body'] !== null) { + $httpBody= $localVarParams['body']; + } + + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + [] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + [], + ['application/json'] + ); + } + $headers = array_merge( + $headerParams, + $headers + ); + + return $this->callApi( + $method='POST', + $resourcePath, + $pathParams, + $queryParams, + $headerParams=$headers, + $body=$httpBody, + $multipart = $multipart, + $postParams=$formParams, + $responseType='\HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\TagResourceResponse', + $collectionFormats=$collection_formats, + $requestType='\HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\TagResourceRequest', + $asyncRequest = true); + } + + /** + * 从指定资源中删除标签 + * + * 从指定资源中删除标签。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param $request 请求对象 + * @return response + */ + public function untagResourceAsync($request) + { + return $this->untagResourceAsyncWithHttpInfo($request); + } + + public function untagResourceAsyncWithHttpInfo($request){ + $collection_formats = []; + $resourcePath = '/v5/{resource_type}/{resource_id}/tags/delete'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $pathParams = []; + $httpBody = null; + $multipart = false; + $localVarParams = []; + $arr = $request::attributeMap(); + foreach ($arr as $k => $v) { + $getter = $request::getters()[$k]; + $value = $request->$getter(); + $localVarParams[$k] = $value; + } + if ($localVarParams['resourceType'] !== null) { + $pathParams['resource_type'] = $localVarParams['resourceType']; + } + if ($localVarParams['resourceId'] !== null) { + $pathParams['resource_id'] = $localVarParams['resourceId']; + } + if ($localVarParams['body'] !== null) { + $httpBody= $localVarParams['body']; + } + + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + [] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + [], + ['application/json'] + ); + } + $headers = array_merge( + $headerParams, + $headers + ); + + return $this->callApi( + $method='POST', + $resourcePath, + $pathParams, + $queryParams, + $headerParams=$headers, + $body=$httpBody, + $multipart = $multipart, + $postParams=$formParams, + $responseType='\HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\UntagResourceResponse', + $collectionFormats=$collection_formats, + $requestType='\HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\UntagResourceRequest', + $asyncRequest = true); + } + + /** + * 校验策略 + * + * 校验策略并返回结果列表。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param $request 请求对象 + * @return response + */ + public function validatePolicyAsync($request) + { + return $this->validatePolicyAsyncWithHttpInfo($request); + } + + public function validatePolicyAsyncWithHttpInfo($request){ + $collection_formats = []; + $resourcePath = '/v5/policies/validate'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $pathParams = []; + $httpBody = null; + $multipart = false; + $localVarParams = []; + $arr = $request::attributeMap(); + foreach ($arr as $k => $v) { + $getter = $request::getters()[$k]; + $value = $request->$getter(); + $localVarParams[$k] = $value; + } + if ($localVarParams['limit'] !== null) { + $queryParams['limit'] = $localVarParams['limit']; + } + if ($localVarParams['marker'] !== null) { + $queryParams['marker'] = $localVarParams['marker']; + } + if ($localVarParams['xLanguage'] !== null) { + $headerParams['x_language'] = $localVarParams['xLanguage']; + } + if ($localVarParams['body'] !== null) { + $httpBody= $localVarParams['body']; + } + + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + ['application/json'] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + ['application/json'] + ); + } + $headers = array_merge( + $headerParams, + $headers + ); + + return $this->callApi( + $method='POST', + $resourcePath, + $pathParams, + $queryParams, + $headerParams=$headers, + $body=$httpBody, + $multipart = $multipart, + $postParams=$formParams, + $responseType='\HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\ValidatePolicyResponse', + $collectionFormats=$collection_formats, + $requestType='\HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\ValidatePolicyRequest', + $asyncRequest = true); + } + + protected function callApi( + $method, + $resourcePath, + $pathParams=null, + $queryParams=null, + $headerParams=null, + $body=null, + $multipart=null, + $postParams=null, + $responseType=null, + $collectionFormats=null, + $requestType=null, + $asyncRequest = null) + { + return $this->doHttpRequest( + $method, + $resourcePath, + $pathParams, + $queryParams, + $headerParams, + $body, + $multipart, + $postParams, + $responseType, + $collectionFormats, + $requestType, + $asyncRequest); + } +} \ No newline at end of file diff --git a/Services/IAMAccessAnalyzer/V1/IAMAccessAnalyzerClient.php b/Services/IAMAccessAnalyzer/V1/IAMAccessAnalyzerClient.php new file mode 100644 index 000000000..532a1f1b0 --- /dev/null +++ b/Services/IAMAccessAnalyzer/V1/IAMAccessAnalyzerClient.php @@ -0,0 +1,1435 @@ +modelPackage = ModelInterface::class; + $this->headerSelector = $selector ?: new HeaderSelector(); + } + + public static function newBuilder() + { + return new ClientBuilder(new IAMAccessAnalyzerClient(), "GlobalCredentials"); + } + + + /** + * 创建分析器 + * + * 为您的帐号或者组织创建分析器。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param $request 请求对象 + * @return response + */ + public function createAnalyzer($request) + { + return $this->createAnalyzerWithHttpInfo($request); + } + + public function createAnalyzerWithHttpInfo($request) + { + $resourcePath = '/v5/analyzers'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $pathParams = []; + $httpBody = null; + $multipart = false; + $localVarParams = []; + $arr = $request::attributeMap(); + foreach ($arr as $k => $v) { + $getter = $request::getters()[$k]; + $value = $request->$getter(); + $localVarParams[$k] = $value; + } + if ($localVarParams['body'] !== null) { + $httpBody= $localVarParams['body']; + } + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + ['application/json'] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + ['application/json'] + ); + } + $headers = array_merge( + $headerParams, + $headers + ); + + return $this->callApi( + $method='POST', + $resourcePath, + $pathParams, + $queryParams, + $headerParams=$headers, + $body=$httpBody, + $multipart = $multipart, + $postParams=$formParams, + $responseType='\HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\CreateAnalyzerResponse', + $requestType='\HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\CreateAnalyzerRequest'); + } + + /** + * 删除指定的分析器 + * + * 删除指定的分析器。分析器生成的所有检查结果都将被删除。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param $request 请求对象 + * @return response + */ + public function deleteAnalyzer($request) + { + return $this->deleteAnalyzerWithHttpInfo($request); + } + + public function deleteAnalyzerWithHttpInfo($request) + { + $resourcePath = '/v5/analyzers/{analyzer_id}'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $pathParams = []; + $httpBody = null; + $multipart = false; + $localVarParams = []; + $arr = $request::attributeMap(); + foreach ($arr as $k => $v) { + $getter = $request::getters()[$k]; + $value = $request->$getter(); + $localVarParams[$k] = $value; + } + if ($localVarParams['analyzerId'] !== null) { + $pathParams['analyzer_id'] = $localVarParams['analyzerId']; + } + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + [] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + [], + [] + ); + } + $headers = array_merge( + $headerParams, + $headers + ); + + return $this->callApi( + $method='DELETE', + $resourcePath, + $pathParams, + $queryParams, + $headerParams=$headers, + $body=$httpBody, + $multipart = $multipart, + $postParams=$formParams, + $responseType='\HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\DeleteAnalyzerResponse', + $requestType='\HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\DeleteAnalyzerRequest'); + } + + /** + * 检索分析器的列表 + * + * 检索分析器的列表。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param $request 请求对象 + * @return response + */ + public function listAnalyzers($request) + { + return $this->listAnalyzersWithHttpInfo($request); + } + + public function listAnalyzersWithHttpInfo($request) + { + $resourcePath = '/v5/analyzers'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $pathParams = []; + $httpBody = null; + $multipart = false; + $localVarParams = []; + $arr = $request::attributeMap(); + foreach ($arr as $k => $v) { + $getter = $request::getters()[$k]; + $value = $request->$getter(); + $localVarParams[$k] = $value; + } + if ($localVarParams['limit'] !== null) { + $queryParams['limit'] = $localVarParams['limit']; + } + if ($localVarParams['marker'] !== null) { + $queryParams['marker'] = $localVarParams['marker']; + } + if ($localVarParams['type'] !== null) { + $queryParams['type'] = $localVarParams['type']; + } + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + ['application/json'] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + [] + ); + } + $headers = array_merge( + $headerParams, + $headers + ); + + return $this->callApi( + $method='GET', + $resourcePath, + $pathParams, + $queryParams, + $headerParams=$headers, + $body=$httpBody, + $multipart = $multipart, + $postParams=$formParams, + $responseType='\HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\ListAnalyzersResponse', + $requestType='\HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\ListAnalyzersRequest'); + } + + /** + * 显示指定的分析器 + * + * 检索有关指定分析器的信息。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param $request 请求对象 + * @return response + */ + public function showAnalyzer($request) + { + return $this->showAnalyzerWithHttpInfo($request); + } + + public function showAnalyzerWithHttpInfo($request) + { + $resourcePath = '/v5/analyzers/{analyzer_id}'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $pathParams = []; + $httpBody = null; + $multipart = false; + $localVarParams = []; + $arr = $request::attributeMap(); + foreach ($arr as $k => $v) { + $getter = $request::getters()[$k]; + $value = $request->$getter(); + $localVarParams[$k] = $value; + } + if ($localVarParams['analyzerId'] !== null) { + $pathParams['analyzer_id'] = $localVarParams['analyzerId']; + } + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + ['application/json'] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + [] + ); + } + $headers = array_merge( + $headerParams, + $headers + ); + + return $this->callApi( + $method='GET', + $resourcePath, + $pathParams, + $queryParams, + $headerParams=$headers, + $body=$httpBody, + $multipart = $multipart, + $postParams=$formParams, + $responseType='\HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\ShowAnalyzerResponse', + $requestType='\HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\ShowAnalyzerRequest'); + } + + /** + * 立即开始扫描应用于指定资源的策略 + * + * 立即开始扫描应用于指定资源的策略。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param $request 请求对象 + * @return response + */ + public function startResourceScan($request) + { + return $this->startResourceScanWithHttpInfo($request); + } + + public function startResourceScanWithHttpInfo($request) + { + $resourcePath = '/v5/analyzers/{analyzer_id}/scan'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $pathParams = []; + $httpBody = null; + $multipart = false; + $localVarParams = []; + $arr = $request::attributeMap(); + foreach ($arr as $k => $v) { + $getter = $request::getters()[$k]; + $value = $request->$getter(); + $localVarParams[$k] = $value; + } + if ($localVarParams['analyzerId'] !== null) { + $pathParams['analyzer_id'] = $localVarParams['analyzerId']; + } + if ($localVarParams['body'] !== null) { + $httpBody= $localVarParams['body']; + } + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + [] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + [], + ['application/json'] + ); + } + $headers = array_merge( + $headerParams, + $headers + ); + + return $this->callApi( + $method='POST', + $resourcePath, + $pathParams, + $queryParams, + $headerParams=$headers, + $body=$httpBody, + $multipart = $multipart, + $postParams=$formParams, + $responseType='\HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\StartResourceScanResponse', + $requestType='\HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\StartResourceScanRequest'); + } + + /** + * 应用存档规则 + * + * 以追溯方式将存档规则应用于符合存档规则条件的现有结果。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param $request 请求对象 + * @return response + */ + public function applyArchiveRule($request) + { + return $this->applyArchiveRuleWithHttpInfo($request); + } + + public function applyArchiveRuleWithHttpInfo($request) + { + $resourcePath = '/v5/analyzers/{analyzer_id}/archive-rules/{archive_rule_id}/apply'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $pathParams = []; + $httpBody = null; + $multipart = false; + $localVarParams = []; + $arr = $request::attributeMap(); + foreach ($arr as $k => $v) { + $getter = $request::getters()[$k]; + $value = $request->$getter(); + $localVarParams[$k] = $value; + } + if ($localVarParams['analyzerId'] !== null) { + $pathParams['analyzer_id'] = $localVarParams['analyzerId']; + } + if ($localVarParams['archiveRuleId'] !== null) { + $pathParams['archive_rule_id'] = $localVarParams['archiveRuleId']; + } + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + [] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + [], + [] + ); + } + $headers = array_merge( + $headerParams, + $headers + ); + + return $this->callApi( + $method='POST', + $resourcePath, + $pathParams, + $queryParams, + $headerParams=$headers, + $body=$httpBody, + $multipart = $multipart, + $postParams=$formParams, + $responseType='\HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\ApplyArchiveRuleResponse', + $requestType='\HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\ApplyArchiveRuleRequest'); + } + + /** + * 为指定的分析器创建存档规则 + * + * 为指定的分析器创建存档规则。存档规则会自动存档符合您在创建规则时所定义条件的新结果。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param $request 请求对象 + * @return response + */ + public function createArchiveRule($request) + { + return $this->createArchiveRuleWithHttpInfo($request); + } + + public function createArchiveRuleWithHttpInfo($request) + { + $resourcePath = '/v5/analyzers/{analyzer_id}/archive-rules'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $pathParams = []; + $httpBody = null; + $multipart = false; + $localVarParams = []; + $arr = $request::attributeMap(); + foreach ($arr as $k => $v) { + $getter = $request::getters()[$k]; + $value = $request->$getter(); + $localVarParams[$k] = $value; + } + if ($localVarParams['analyzerId'] !== null) { + $pathParams['analyzer_id'] = $localVarParams['analyzerId']; + } + if ($localVarParams['body'] !== null) { + $httpBody= $localVarParams['body']; + } + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + ['application/json'] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + ['application/json'] + ); + } + $headers = array_merge( + $headerParams, + $headers + ); + + return $this->callApi( + $method='POST', + $resourcePath, + $pathParams, + $queryParams, + $headerParams=$headers, + $body=$httpBody, + $multipart = $multipart, + $postParams=$formParams, + $responseType='\HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\CreateArchiveRuleResponse', + $requestType='\HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\CreateArchiveRuleRequest'); + } + + /** + * 删除指定的存档规则 + * + * 删除指定的存档规则。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param $request 请求对象 + * @return response + */ + public function deleteArchiveRule($request) + { + return $this->deleteArchiveRuleWithHttpInfo($request); + } + + public function deleteArchiveRuleWithHttpInfo($request) + { + $resourcePath = '/v5/analyzers/{analyzer_id}/archive-rules/{archive_rule_id}'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $pathParams = []; + $httpBody = null; + $multipart = false; + $localVarParams = []; + $arr = $request::attributeMap(); + foreach ($arr as $k => $v) { + $getter = $request::getters()[$k]; + $value = $request->$getter(); + $localVarParams[$k] = $value; + } + if ($localVarParams['analyzerId'] !== null) { + $pathParams['analyzer_id'] = $localVarParams['analyzerId']; + } + if ($localVarParams['archiveRuleId'] !== null) { + $pathParams['archive_rule_id'] = $localVarParams['archiveRuleId']; + } + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + [] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + [], + [] + ); + } + $headers = array_merge( + $headerParams, + $headers + ); + + return $this->callApi( + $method='DELETE', + $resourcePath, + $pathParams, + $queryParams, + $headerParams=$headers, + $body=$httpBody, + $multipart = $multipart, + $postParams=$formParams, + $responseType='\HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\DeleteArchiveRuleResponse', + $requestType='\HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\DeleteArchiveRuleRequest'); + } + + /** + * 检索为指定分析器创建的存档规则的列表 + * + * 检索为指定分析器创建的存档规则列表。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param $request 请求对象 + * @return response + */ + public function listArchiveRules($request) + { + return $this->listArchiveRulesWithHttpInfo($request); + } + + public function listArchiveRulesWithHttpInfo($request) + { + $resourcePath = '/v5/analyzers/{analyzer_id}/archive-rules'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $pathParams = []; + $httpBody = null; + $multipart = false; + $localVarParams = []; + $arr = $request::attributeMap(); + foreach ($arr as $k => $v) { + $getter = $request::getters()[$k]; + $value = $request->$getter(); + $localVarParams[$k] = $value; + } + if ($localVarParams['limit'] !== null) { + $queryParams['limit'] = $localVarParams['limit']; + } + if ($localVarParams['marker'] !== null) { + $queryParams['marker'] = $localVarParams['marker']; + } + if ($localVarParams['analyzerId'] !== null) { + $pathParams['analyzer_id'] = $localVarParams['analyzerId']; + } + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + ['application/json'] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + [] + ); + } + $headers = array_merge( + $headerParams, + $headers + ); + + return $this->callApi( + $method='GET', + $resourcePath, + $pathParams, + $queryParams, + $headerParams=$headers, + $body=$httpBody, + $multipart = $multipart, + $postParams=$formParams, + $responseType='\HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\ListArchiveRulesResponse', + $requestType='\HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\ListArchiveRulesRequest'); + } + + /** + * 检索有关存档规则的信息 + * + * 检索有关存档规则的信息。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param $request 请求对象 + * @return response + */ + public function showArchiveRule($request) + { + return $this->showArchiveRuleWithHttpInfo($request); + } + + public function showArchiveRuleWithHttpInfo($request) + { + $resourcePath = '/v5/analyzers/{analyzer_id}/archive-rules/{archive_rule_id}'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $pathParams = []; + $httpBody = null; + $multipart = false; + $localVarParams = []; + $arr = $request::attributeMap(); + foreach ($arr as $k => $v) { + $getter = $request::getters()[$k]; + $value = $request->$getter(); + $localVarParams[$k] = $value; + } + if ($localVarParams['analyzerId'] !== null) { + $pathParams['analyzer_id'] = $localVarParams['analyzerId']; + } + if ($localVarParams['archiveRuleId'] !== null) { + $pathParams['archive_rule_id'] = $localVarParams['archiveRuleId']; + } + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + ['application/json'] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + [] + ); + } + $headers = array_merge( + $headerParams, + $headers + ); + + return $this->callApi( + $method='GET', + $resourcePath, + $pathParams, + $queryParams, + $headerParams=$headers, + $body=$httpBody, + $multipart = $multipart, + $postParams=$formParams, + $responseType='\HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\ShowArchiveRuleResponse', + $requestType='\HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\ShowArchiveRuleRequest'); + } + + /** + * 更新指定存档规则的条件和值 + * + * 更新指定存档规则的条件和值。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param $request 请求对象 + * @return response + */ + public function updateArchiveRule($request) + { + return $this->updateArchiveRuleWithHttpInfo($request); + } + + public function updateArchiveRuleWithHttpInfo($request) + { + $resourcePath = '/v5/analyzers/{analyzer_id}/archive-rules/{archive_rule_id}'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $pathParams = []; + $httpBody = null; + $multipart = false; + $localVarParams = []; + $arr = $request::attributeMap(); + foreach ($arr as $k => $v) { + $getter = $request::getters()[$k]; + $value = $request->$getter(); + $localVarParams[$k] = $value; + } + if ($localVarParams['analyzerId'] !== null) { + $pathParams['analyzer_id'] = $localVarParams['analyzerId']; + } + if ($localVarParams['archiveRuleId'] !== null) { + $pathParams['archive_rule_id'] = $localVarParams['archiveRuleId']; + } + if ($localVarParams['body'] !== null) { + $httpBody= $localVarParams['body']; + } + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + [] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + [], + ['application/json'] + ); + } + $headers = array_merge( + $headerParams, + $headers + ); + + return $this->callApi( + $method='PUT', + $resourcePath, + $pathParams, + $queryParams, + $headerParams=$headers, + $body=$httpBody, + $multipart = $multipart, + $postParams=$formParams, + $responseType='\HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\UpdateArchiveRuleResponse', + $requestType='\HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\UpdateArchiveRuleRequest'); + } + + /** + * 检索指定分析器生成的结果列表 + * + * 检索指定分析器生成的查找结果列表。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param $request 请求对象 + * @return response + */ + public function listFindings($request) + { + return $this->listFindingsWithHttpInfo($request); + } + + public function listFindingsWithHttpInfo($request) + { + $resourcePath = '/v5/analyzers/{analyzer_id}/findings'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $pathParams = []; + $httpBody = null; + $multipart = false; + $localVarParams = []; + $arr = $request::attributeMap(); + foreach ($arr as $k => $v) { + $getter = $request::getters()[$k]; + $value = $request->$getter(); + $localVarParams[$k] = $value; + } + if ($localVarParams['analyzerId'] !== null) { + $pathParams['analyzer_id'] = $localVarParams['analyzerId']; + } + if ($localVarParams['body'] !== null) { + $httpBody= $localVarParams['body']; + } + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + ['application/json'] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + ['application/json'] + ); + } + $headers = array_merge( + $headerParams, + $headers + ); + + return $this->callApi( + $method='POST', + $resourcePath, + $pathParams, + $queryParams, + $headerParams=$headers, + $body=$httpBody, + $multipart = $multipart, + $postParams=$formParams, + $responseType='\HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\ListFindingsResponse', + $requestType='\HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\ListFindingsRequest'); + } + + /** + * 检索有关指定结果的信息 + * + * 检索有关指定结果的信息。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param $request 请求对象 + * @return response + */ + public function showFinding($request) + { + return $this->showFindingWithHttpInfo($request); + } + + public function showFindingWithHttpInfo($request) + { + $resourcePath = '/v5/analyzers/{analyzer_id}/findings/{finding_id}'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $pathParams = []; + $httpBody = null; + $multipart = false; + $localVarParams = []; + $arr = $request::attributeMap(); + foreach ($arr as $k => $v) { + $getter = $request::getters()[$k]; + $value = $request->$getter(); + $localVarParams[$k] = $value; + } + if ($localVarParams['analyzerId'] !== null) { + $pathParams['analyzer_id'] = $localVarParams['analyzerId']; + } + if ($localVarParams['findingId'] !== null) { + $pathParams['finding_id'] = $localVarParams['findingId']; + } + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + ['application/json'] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + [] + ); + } + $headers = array_merge( + $headerParams, + $headers + ); + + return $this->callApi( + $method='GET', + $resourcePath, + $pathParams, + $queryParams, + $headerParams=$headers, + $body=$httpBody, + $multipart = $multipart, + $postParams=$formParams, + $responseType='\HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\ShowFindingResponse', + $requestType='\HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\ShowFindingRequest'); + } + + /** + * 更新指定结果的状态 + * + * 更新指定调查结果的状态。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param $request 请求对象 + * @return response + */ + public function updateFindings($request) + { + return $this->updateFindingsWithHttpInfo($request); + } + + public function updateFindingsWithHttpInfo($request) + { + $resourcePath = '/v5/analyzers/{analyzer_id}/findings'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $pathParams = []; + $httpBody = null; + $multipart = false; + $localVarParams = []; + $arr = $request::attributeMap(); + foreach ($arr as $k => $v) { + $getter = $request::getters()[$k]; + $value = $request->$getter(); + $localVarParams[$k] = $value; + } + if ($localVarParams['analyzerId'] !== null) { + $pathParams['analyzer_id'] = $localVarParams['analyzerId']; + } + if ($localVarParams['body'] !== null) { + $httpBody= $localVarParams['body']; + } + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + [] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + [], + ['application/json'] + ); + } + $headers = array_merge( + $headerParams, + $headers + ); + + return $this->callApi( + $method='PUT', + $resourcePath, + $pathParams, + $queryParams, + $headerParams=$headers, + $body=$httpBody, + $multipart = $multipart, + $postParams=$formParams, + $responseType='\HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\UpdateFindingsResponse', + $requestType='\HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\UpdateFindingsRequest'); + } + + /** + * 创建访问预览 + * + * 创建访问预览 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param $request 请求对象 + * @return response + */ + public function createAccessPreview($request) + { + return $this->createAccessPreviewWithHttpInfo($request); + } + + public function createAccessPreviewWithHttpInfo($request) + { + $resourcePath = '/v5/analyzers/{analyzer_id}/access-previews'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $pathParams = []; + $httpBody = null; + $multipart = false; + $localVarParams = []; + $arr = $request::attributeMap(); + foreach ($arr as $k => $v) { + $getter = $request::getters()[$k]; + $value = $request->$getter(); + $localVarParams[$k] = $value; + } + if ($localVarParams['analyzerId'] !== null) { + $pathParams['analyzer_id'] = $localVarParams['analyzerId']; + } + if ($localVarParams['body'] !== null) { + $httpBody= $localVarParams['body']; + } + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + ['application/json'] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + ['application/json'] + ); + } + $headers = array_merge( + $headerParams, + $headers + ); + + return $this->callApi( + $method='POST', + $resourcePath, + $pathParams, + $queryParams, + $headerParams=$headers, + $body=$httpBody, + $multipart = $multipart, + $postParams=$formParams, + $responseType='\HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\CreateAccessPreviewResponse', + $requestType='\HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\CreateAccessPreviewRequest'); + } + + /** + * 获取相关访问预览的信息 + * + * 获取相关访问预览的信息。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param $request 请求对象 + * @return response + */ + public function getAccessPreview($request) + { + return $this->getAccessPreviewWithHttpInfo($request); + } + + public function getAccessPreviewWithHttpInfo($request) + { + $resourcePath = '/v5/analyzers/{analyzer_id}/access-previews/{access_preview_id}'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $pathParams = []; + $httpBody = null; + $multipart = false; + $localVarParams = []; + $arr = $request::attributeMap(); + foreach ($arr as $k => $v) { + $getter = $request::getters()[$k]; + $value = $request->$getter(); + $localVarParams[$k] = $value; + } + if ($localVarParams['analyzerId'] !== null) { + $pathParams['analyzer_id'] = $localVarParams['analyzerId']; + } + if ($localVarParams['accessPreviewId'] !== null) { + $pathParams['access_preview_id'] = $localVarParams['accessPreviewId']; + } + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + ['application/json'] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + [] + ); + } + $headers = array_merge( + $headerParams, + $headers + ); + + return $this->callApi( + $method='GET', + $resourcePath, + $pathParams, + $queryParams, + $headerParams=$headers, + $body=$httpBody, + $multipart = $multipart, + $postParams=$formParams, + $responseType='\HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\GetAccessPreviewResponse', + $requestType='\HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\GetAccessPreviewRequest'); + } + + /** + * 获取所有访问预览 + * + * 获取所有访问预览 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param $request 请求对象 + * @return response + */ + public function listAccessPreviews($request) + { + return $this->listAccessPreviewsWithHttpInfo($request); + } + + public function listAccessPreviewsWithHttpInfo($request) + { + $resourcePath = '/v5/analyzers/{analyzer_id}/access-previews'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $pathParams = []; + $httpBody = null; + $multipart = false; + $localVarParams = []; + $arr = $request::attributeMap(); + foreach ($arr as $k => $v) { + $getter = $request::getters()[$k]; + $value = $request->$getter(); + $localVarParams[$k] = $value; + } + if ($localVarParams['limit'] !== null) { + $queryParams['limit'] = $localVarParams['limit']; + } + if ($localVarParams['marker'] !== null) { + $queryParams['marker'] = $localVarParams['marker']; + } + if ($localVarParams['analyzerId'] !== null) { + $pathParams['analyzer_id'] = $localVarParams['analyzerId']; + } + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + ['application/json'] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + [] + ); + } + $headers = array_merge( + $headerParams, + $headers + ); + + return $this->callApi( + $method='GET', + $resourcePath, + $pathParams, + $queryParams, + $headerParams=$headers, + $body=$httpBody, + $multipart = $multipart, + $postParams=$formParams, + $responseType='\HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\ListAccessPreviewsResponse', + $requestType='\HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\ListAccessPreviewsRequest'); + } + + /** + * 获取相关预览生成的findings + * + * 获取指定预览生成的findings + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param $request 请求对象 + * @return response + */ + public function listPreviewFindings($request) + { + return $this->listPreviewFindingsWithHttpInfo($request); + } + + public function listPreviewFindingsWithHttpInfo($request) + { + $resourcePath = '/v5/analyzers/{analyzer_id}/access-previews/{access_preview_id}/findings'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $pathParams = []; + $httpBody = null; + $multipart = false; + $localVarParams = []; + $arr = $request::attributeMap(); + foreach ($arr as $k => $v) { + $getter = $request::getters()[$k]; + $value = $request->$getter(); + $localVarParams[$k] = $value; + } + if ($localVarParams['analyzerId'] !== null) { + $pathParams['analyzer_id'] = $localVarParams['analyzerId']; + } + if ($localVarParams['accessPreviewId'] !== null) { + $pathParams['access_preview_id'] = $localVarParams['accessPreviewId']; + } + if ($localVarParams['body'] !== null) { + $httpBody= $localVarParams['body']; + } + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + ['application/json'] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + ['application/json'] + ); + } + $headers = array_merge( + $headerParams, + $headers + ); + + return $this->callApi( + $method='POST', + $resourcePath, + $pathParams, + $queryParams, + $headerParams=$headers, + $body=$httpBody, + $multipart = $multipart, + $postParams=$formParams, + $responseType='\HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\ListPreviewFindingsResponse', + $requestType='\HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\ListPreviewFindingsRequest'); + } + + /** + * 向指定资源添加标签 + * + * 向指定资源添加标签。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param $request 请求对象 + * @return response + */ + public function tagResource($request) + { + return $this->tagResourceWithHttpInfo($request); + } + + public function tagResourceWithHttpInfo($request) + { + $resourcePath = '/v5/{resource_type}/{resource_id}/tags/create'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $pathParams = []; + $httpBody = null; + $multipart = false; + $localVarParams = []; + $arr = $request::attributeMap(); + foreach ($arr as $k => $v) { + $getter = $request::getters()[$k]; + $value = $request->$getter(); + $localVarParams[$k] = $value; + } + if ($localVarParams['resourceType'] !== null) { + $pathParams['resource_type'] = $localVarParams['resourceType']; + } + if ($localVarParams['resourceId'] !== null) { + $pathParams['resource_id'] = $localVarParams['resourceId']; + } + if ($localVarParams['body'] !== null) { + $httpBody= $localVarParams['body']; + } + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + [] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + [], + ['application/json'] + ); + } + $headers = array_merge( + $headerParams, + $headers + ); + + return $this->callApi( + $method='POST', + $resourcePath, + $pathParams, + $queryParams, + $headerParams=$headers, + $body=$httpBody, + $multipart = $multipart, + $postParams=$formParams, + $responseType='\HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\TagResourceResponse', + $requestType='\HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\TagResourceRequest'); + } + + /** + * 从指定资源中删除标签 + * + * 从指定资源中删除标签。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param $request 请求对象 + * @return response + */ + public function untagResource($request) + { + return $this->untagResourceWithHttpInfo($request); + } + + public function untagResourceWithHttpInfo($request) + { + $resourcePath = '/v5/{resource_type}/{resource_id}/tags/delete'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $pathParams = []; + $httpBody = null; + $multipart = false; + $localVarParams = []; + $arr = $request::attributeMap(); + foreach ($arr as $k => $v) { + $getter = $request::getters()[$k]; + $value = $request->$getter(); + $localVarParams[$k] = $value; + } + if ($localVarParams['resourceType'] !== null) { + $pathParams['resource_type'] = $localVarParams['resourceType']; + } + if ($localVarParams['resourceId'] !== null) { + $pathParams['resource_id'] = $localVarParams['resourceId']; + } + if ($localVarParams['body'] !== null) { + $httpBody= $localVarParams['body']; + } + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + [] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + [], + ['application/json'] + ); + } + $headers = array_merge( + $headerParams, + $headers + ); + + return $this->callApi( + $method='POST', + $resourcePath, + $pathParams, + $queryParams, + $headerParams=$headers, + $body=$httpBody, + $multipart = $multipart, + $postParams=$formParams, + $responseType='\HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\UntagResourceResponse', + $requestType='\HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\UntagResourceRequest'); + } + + /** + * 校验策略 + * + * 校验策略并返回结果列表。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param $request 请求对象 + * @return response + */ + public function validatePolicy($request) + { + return $this->validatePolicyWithHttpInfo($request); + } + + public function validatePolicyWithHttpInfo($request) + { + $resourcePath = '/v5/policies/validate'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $pathParams = []; + $httpBody = null; + $multipart = false; + $localVarParams = []; + $arr = $request::attributeMap(); + foreach ($arr as $k => $v) { + $getter = $request::getters()[$k]; + $value = $request->$getter(); + $localVarParams[$k] = $value; + } + if ($localVarParams['limit'] !== null) { + $queryParams['limit'] = $localVarParams['limit']; + } + if ($localVarParams['marker'] !== null) { + $queryParams['marker'] = $localVarParams['marker']; + } + if ($localVarParams['xLanguage'] !== null) { + $headerParams[$arr['xLanguage']] = $localVarParams['xLanguage']; + } + if ($localVarParams['body'] !== null) { + $httpBody= $localVarParams['body']; + } + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + ['application/json'] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + ['application/json'] + ); + } + $headers = array_merge( + $headerParams, + $headers + ); + + return $this->callApi( + $method='POST', + $resourcePath, + $pathParams, + $queryParams, + $headerParams=$headers, + $body=$httpBody, + $multipart = $multipart, + $postParams=$formParams, + $responseType='\HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\ValidatePolicyResponse', + $requestType='\HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\ValidatePolicyRequest'); + } + + protected function callApi( + $method, + $resourcePath, + $pathParams = null, + $queryParams = null, + $headerParams = null, + $body = null, + $multipart = null, + $postParams = null, + $responseType = null, + $requestType = null) + { + return $this->doHttpRequest( + $method, + $resourcePath, + $pathParams, + $queryParams, + $headerParams, + $body, + $multipart, + $postParams, + $responseType, + $requestType); + } +} \ No newline at end of file diff --git a/Services/IAMAccessAnalyzer/V1/Model/AccessPreview.php b/Services/IAMAccessAnalyzer/V1/Model/AccessPreview.php new file mode 100644 index 000000000..4a2004394 --- /dev/null +++ b/Services/IAMAccessAnalyzer/V1/Model/AccessPreview.php @@ -0,0 +1,473 @@ + 'string', + 'analyzerId' => 'string', + 'configurations' => '\HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\Configuration', + 'createdAt' => '\DateTime', + 'status' => '\HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\AccessPreviewStatus', + 'statusReason' => '\HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\PreviewStatusReason' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * accessPreviewId 分析预览的唯一标识符。 + * analyzerId 分析器的唯一标识符。 + * configurations configurations + * createdAt createdAt + * status status + * statusReason statusReason + * + * @var string[] + */ + protected static $openAPIFormats = [ + 'accessPreviewId' => null, + 'analyzerId' => null, + 'configurations' => null, + 'createdAt' => 'date-time', + 'status' => null, + 'statusReason' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * accessPreviewId 分析预览的唯一标识符。 + * analyzerId 分析器的唯一标识符。 + * configurations configurations + * createdAt createdAt + * status status + * statusReason statusReason + * + * @var string[] + */ + protected static $attributeMap = [ + 'accessPreviewId' => 'access_preview_id', + 'analyzerId' => 'analyzer_id', + 'configurations' => 'configurations', + 'createdAt' => 'created_at', + 'status' => 'status', + 'statusReason' => 'status_reason' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * accessPreviewId 分析预览的唯一标识符。 + * analyzerId 分析器的唯一标识符。 + * configurations configurations + * createdAt createdAt + * status status + * statusReason statusReason + * + * @var string[] + */ + protected static $setters = [ + 'accessPreviewId' => 'setAccessPreviewId', + 'analyzerId' => 'setAnalyzerId', + 'configurations' => 'setConfigurations', + 'createdAt' => 'setCreatedAt', + 'status' => 'setStatus', + 'statusReason' => 'setStatusReason' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * accessPreviewId 分析预览的唯一标识符。 + * analyzerId 分析器的唯一标识符。 + * configurations configurations + * createdAt createdAt + * status status + * statusReason statusReason + * + * @var string[] + */ + protected static $getters = [ + 'accessPreviewId' => 'getAccessPreviewId', + 'analyzerId' => 'getAnalyzerId', + 'configurations' => 'getConfigurations', + 'createdAt' => 'getCreatedAt', + 'status' => 'getStatus', + 'statusReason' => 'getStatusReason' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$openAPIModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['accessPreviewId'] = isset($data['accessPreviewId']) ? $data['accessPreviewId'] : null; + $this->container['analyzerId'] = isset($data['analyzerId']) ? $data['analyzerId'] : null; + $this->container['configurations'] = isset($data['configurations']) ? $data['configurations'] : null; + $this->container['createdAt'] = isset($data['createdAt']) ? $data['createdAt'] : null; + $this->container['status'] = isset($data['status']) ? $data['status'] : null; + $this->container['statusReason'] = isset($data['statusReason']) ? $data['statusReason'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + if ($this->container['accessPreviewId'] === null) { + $invalidProperties[] = "'accessPreviewId' can't be null"; + } + if ((mb_strlen($this->container['accessPreviewId']) > 36)) { + $invalidProperties[] = "invalid value for 'accessPreviewId', the character length must be smaller than or equal to 36."; + } + if ((mb_strlen($this->container['accessPreviewId']) < 1)) { + $invalidProperties[] = "invalid value for 'accessPreviewId', the character length must be bigger than or equal to 1."; + } + if (!preg_match("/^[\\w-]+$/", $this->container['accessPreviewId'])) { + $invalidProperties[] = "invalid value for 'accessPreviewId', must be conform to the pattern /^[\\w-]+$/."; + } + if ($this->container['analyzerId'] === null) { + $invalidProperties[] = "'analyzerId' can't be null"; + } + if ((mb_strlen($this->container['analyzerId']) > 36)) { + $invalidProperties[] = "invalid value for 'analyzerId', the character length must be smaller than or equal to 36."; + } + if ((mb_strlen($this->container['analyzerId']) < 1)) { + $invalidProperties[] = "invalid value for 'analyzerId', the character length must be bigger than or equal to 1."; + } + if (!preg_match("/^[\\w-]+$/", $this->container['analyzerId'])) { + $invalidProperties[] = "invalid value for 'analyzerId', must be conform to the pattern /^[\\w-]+$/."; + } + if ($this->container['configurations'] === null) { + $invalidProperties[] = "'configurations' can't be null"; + } + if ($this->container['createdAt'] === null) { + $invalidProperties[] = "'createdAt' can't be null"; + } + if ($this->container['status'] === null) { + $invalidProperties[] = "'status' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + /** + * Gets accessPreviewId + * 分析预览的唯一标识符。 + * + * @return string + */ + public function getAccessPreviewId() + { + return $this->container['accessPreviewId']; + } + + /** + * Sets accessPreviewId + * + * @param string $accessPreviewId 分析预览的唯一标识符。 + * + * @return $this + */ + public function setAccessPreviewId($accessPreviewId) + { + $this->container['accessPreviewId'] = $accessPreviewId; + return $this; + } + + /** + * Gets analyzerId + * 分析器的唯一标识符。 + * + * @return string + */ + public function getAnalyzerId() + { + return $this->container['analyzerId']; + } + + /** + * Sets analyzerId + * + * @param string $analyzerId 分析器的唯一标识符。 + * + * @return $this + */ + public function setAnalyzerId($analyzerId) + { + $this->container['analyzerId'] = $analyzerId; + return $this; + } + + /** + * Gets configurations + * configurations + * + * @return \HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\Configuration + */ + public function getConfigurations() + { + return $this->container['configurations']; + } + + /** + * Sets configurations + * + * @param \HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\Configuration $configurations configurations + * + * @return $this + */ + public function setConfigurations($configurations) + { + $this->container['configurations'] = $configurations; + return $this; + } + + /** + * Gets createdAt + * createdAt + * + * @return \DateTime + */ + public function getCreatedAt() + { + return $this->container['createdAt']; + } + + /** + * Sets createdAt + * + * @param \DateTime $createdAt createdAt + * + * @return $this + */ + public function setCreatedAt($createdAt) + { + $this->container['createdAt'] = $createdAt; + return $this; + } + + /** + * Gets status + * status + * + * @return \HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\AccessPreviewStatus + */ + public function getStatus() + { + return $this->container['status']; + } + + /** + * Sets status + * + * @param \HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\AccessPreviewStatus $status status + * + * @return $this + */ + public function setStatus($status) + { + $this->container['status'] = $status; + return $this; + } + + /** + * Gets statusReason + * statusReason + * + * @return \HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\PreviewStatusReason|null + */ + public function getStatusReason() + { + return $this->container['statusReason']; + } + + /** + * Sets statusReason + * + * @param \HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\PreviewStatusReason|null $statusReason statusReason + * + * @return $this + */ + public function setStatusReason($statusReason) + { + $this->container['statusReason'] = $statusReason; + return $this; + } + + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } +} + diff --git a/Services/IAMAccessAnalyzer/V1/Model/AccessPreviewId.php b/Services/IAMAccessAnalyzer/V1/Model/AccessPreviewId.php new file mode 100644 index 000000000..cbc4480c5 --- /dev/null +++ b/Services/IAMAccessAnalyzer/V1/Model/AccessPreviewId.php @@ -0,0 +1,235 @@ +listInvalidProperties()) === 0; + } + + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } +} + diff --git a/Services/IAMAccessAnalyzer/V1/Model/AccessPreviewStatus.php b/Services/IAMAccessAnalyzer/V1/Model/AccessPreviewStatus.php new file mode 100644 index 000000000..46a4c13c0 --- /dev/null +++ b/Services/IAMAccessAnalyzer/V1/Model/AccessPreviewStatus.php @@ -0,0 +1,30 @@ + 'string', + 'analyzerId' => 'string', + 'createdAt' => '\DateTime', + 'status' => '\HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\AccessPreviewStatus', + 'statusReason' => '\HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\PreviewStatusReason' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * accessPreviewId 分析预览的唯一标识符。 + * analyzerId 分析器的唯一标识符。 + * createdAt createdAt + * status status + * statusReason statusReason + * + * @var string[] + */ + protected static $openAPIFormats = [ + 'accessPreviewId' => null, + 'analyzerId' => null, + 'createdAt' => 'date-time', + 'status' => null, + 'statusReason' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * accessPreviewId 分析预览的唯一标识符。 + * analyzerId 分析器的唯一标识符。 + * createdAt createdAt + * status status + * statusReason statusReason + * + * @var string[] + */ + protected static $attributeMap = [ + 'accessPreviewId' => 'access_preview_id', + 'analyzerId' => 'analyzer_id', + 'createdAt' => 'created_at', + 'status' => 'status', + 'statusReason' => 'status_reason' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * accessPreviewId 分析预览的唯一标识符。 + * analyzerId 分析器的唯一标识符。 + * createdAt createdAt + * status status + * statusReason statusReason + * + * @var string[] + */ + protected static $setters = [ + 'accessPreviewId' => 'setAccessPreviewId', + 'analyzerId' => 'setAnalyzerId', + 'createdAt' => 'setCreatedAt', + 'status' => 'setStatus', + 'statusReason' => 'setStatusReason' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * accessPreviewId 分析预览的唯一标识符。 + * analyzerId 分析器的唯一标识符。 + * createdAt createdAt + * status status + * statusReason statusReason + * + * @var string[] + */ + protected static $getters = [ + 'accessPreviewId' => 'getAccessPreviewId', + 'analyzerId' => 'getAnalyzerId', + 'createdAt' => 'getCreatedAt', + 'status' => 'getStatus', + 'statusReason' => 'getStatusReason' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$openAPIModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['accessPreviewId'] = isset($data['accessPreviewId']) ? $data['accessPreviewId'] : null; + $this->container['analyzerId'] = isset($data['analyzerId']) ? $data['analyzerId'] : null; + $this->container['createdAt'] = isset($data['createdAt']) ? $data['createdAt'] : null; + $this->container['status'] = isset($data['status']) ? $data['status'] : null; + $this->container['statusReason'] = isset($data['statusReason']) ? $data['statusReason'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + if ($this->container['accessPreviewId'] === null) { + $invalidProperties[] = "'accessPreviewId' can't be null"; + } + if ((mb_strlen($this->container['accessPreviewId']) > 36)) { + $invalidProperties[] = "invalid value for 'accessPreviewId', the character length must be smaller than or equal to 36."; + } + if ((mb_strlen($this->container['accessPreviewId']) < 1)) { + $invalidProperties[] = "invalid value for 'accessPreviewId', the character length must be bigger than or equal to 1."; + } + if (!preg_match("/^[\\w-]+$/", $this->container['accessPreviewId'])) { + $invalidProperties[] = "invalid value for 'accessPreviewId', must be conform to the pattern /^[\\w-]+$/."; + } + if ($this->container['analyzerId'] === null) { + $invalidProperties[] = "'analyzerId' can't be null"; + } + if ((mb_strlen($this->container['analyzerId']) > 36)) { + $invalidProperties[] = "invalid value for 'analyzerId', the character length must be smaller than or equal to 36."; + } + if ((mb_strlen($this->container['analyzerId']) < 1)) { + $invalidProperties[] = "invalid value for 'analyzerId', the character length must be bigger than or equal to 1."; + } + if (!preg_match("/^[\\w-]+$/", $this->container['analyzerId'])) { + $invalidProperties[] = "invalid value for 'analyzerId', must be conform to the pattern /^[\\w-]+$/."; + } + if ($this->container['createdAt'] === null) { + $invalidProperties[] = "'createdAt' can't be null"; + } + if ($this->container['status'] === null) { + $invalidProperties[] = "'status' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + /** + * Gets accessPreviewId + * 分析预览的唯一标识符。 + * + * @return string + */ + public function getAccessPreviewId() + { + return $this->container['accessPreviewId']; + } + + /** + * Sets accessPreviewId + * + * @param string $accessPreviewId 分析预览的唯一标识符。 + * + * @return $this + */ + public function setAccessPreviewId($accessPreviewId) + { + $this->container['accessPreviewId'] = $accessPreviewId; + return $this; + } + + /** + * Gets analyzerId + * 分析器的唯一标识符。 + * + * @return string + */ + public function getAnalyzerId() + { + return $this->container['analyzerId']; + } + + /** + * Sets analyzerId + * + * @param string $analyzerId 分析器的唯一标识符。 + * + * @return $this + */ + public function setAnalyzerId($analyzerId) + { + $this->container['analyzerId'] = $analyzerId; + return $this; + } + + /** + * Gets createdAt + * createdAt + * + * @return \DateTime + */ + public function getCreatedAt() + { + return $this->container['createdAt']; + } + + /** + * Sets createdAt + * + * @param \DateTime $createdAt createdAt + * + * @return $this + */ + public function setCreatedAt($createdAt) + { + $this->container['createdAt'] = $createdAt; + return $this; + } + + /** + * Gets status + * status + * + * @return \HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\AccessPreviewStatus + */ + public function getStatus() + { + return $this->container['status']; + } + + /** + * Sets status + * + * @param \HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\AccessPreviewStatus $status status + * + * @return $this + */ + public function setStatus($status) + { + $this->container['status'] = $status; + return $this; + } + + /** + * Gets statusReason + * statusReason + * + * @return \HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\PreviewStatusReason|null + */ + public function getStatusReason() + { + return $this->container['statusReason']; + } + + /** + * Sets statusReason + * + * @param \HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\PreviewStatusReason|null $statusReason statusReason + * + * @return $this + */ + public function setStatusReason($statusReason) + { + $this->container['statusReason'] = $statusReason; + return $this; + } + + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } +} + diff --git a/Services/IAMAccessAnalyzer/V1/Model/AnalyzerId.php b/Services/IAMAccessAnalyzer/V1/Model/AnalyzerId.php new file mode 100644 index 000000000..b049e243a --- /dev/null +++ b/Services/IAMAccessAnalyzer/V1/Model/AnalyzerId.php @@ -0,0 +1,235 @@ +listInvalidProperties()) === 0; + } + + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } +} + diff --git a/Services/IAMAccessAnalyzer/V1/Model/AnalyzerName.php b/Services/IAMAccessAnalyzer/V1/Model/AnalyzerName.php new file mode 100644 index 000000000..61a13372d --- /dev/null +++ b/Services/IAMAccessAnalyzer/V1/Model/AnalyzerName.php @@ -0,0 +1,235 @@ +listInvalidProperties()) === 0; + } + + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } +} + diff --git a/Services/IAMAccessAnalyzer/V1/Model/AnalyzerSummary.php b/Services/IAMAccessAnalyzer/V1/Model/AnalyzerSummary.php new file mode 100644 index 000000000..8cd2439e4 --- /dev/null +++ b/Services/IAMAccessAnalyzer/V1/Model/AnalyzerSummary.php @@ -0,0 +1,647 @@ + '\DateTime', + 'id' => 'string', + 'lastAnalyzedResource' => 'string', + 'lastResourceAnalyzedAt' => '\DateTime', + 'name' => 'string', + 'status' => 'string', + 'statusReason' => '\HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\StatusReason', + 'tags' => '\HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\Tag[]', + 'type' => '\HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\AnalyzerType', + 'urn' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * createdAt 分析器创建的时间。 + * id 分析器的唯一标识符。 + * lastAnalyzedResource 唯一的资源名称。 + * lastResourceAnalyzedAt 分析最近分析的资源的时间。 + * name 分析器的名称。 + * status 分析器的状态 + * statusReason statusReason + * tags tags + * type type + * urn 唯一的资源名称。 + * + * @var string[] + */ + protected static $openAPIFormats = [ + 'createdAt' => 'date-time', + 'id' => null, + 'lastAnalyzedResource' => null, + 'lastResourceAnalyzedAt' => 'date-time', + 'name' => null, + 'status' => null, + 'statusReason' => null, + 'tags' => null, + 'type' => null, + 'urn' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * createdAt 分析器创建的时间。 + * id 分析器的唯一标识符。 + * lastAnalyzedResource 唯一的资源名称。 + * lastResourceAnalyzedAt 分析最近分析的资源的时间。 + * name 分析器的名称。 + * status 分析器的状态 + * statusReason statusReason + * tags tags + * type type + * urn 唯一的资源名称。 + * + * @var string[] + */ + protected static $attributeMap = [ + 'createdAt' => 'created_at', + 'id' => 'id', + 'lastAnalyzedResource' => 'last_analyzed_resource', + 'lastResourceAnalyzedAt' => 'last_resource_analyzed_at', + 'name' => 'name', + 'status' => 'status', + 'statusReason' => 'status_reason', + 'tags' => 'tags', + 'type' => 'type', + 'urn' => 'urn' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * createdAt 分析器创建的时间。 + * id 分析器的唯一标识符。 + * lastAnalyzedResource 唯一的资源名称。 + * lastResourceAnalyzedAt 分析最近分析的资源的时间。 + * name 分析器的名称。 + * status 分析器的状态 + * statusReason statusReason + * tags tags + * type type + * urn 唯一的资源名称。 + * + * @var string[] + */ + protected static $setters = [ + 'createdAt' => 'setCreatedAt', + 'id' => 'setId', + 'lastAnalyzedResource' => 'setLastAnalyzedResource', + 'lastResourceAnalyzedAt' => 'setLastResourceAnalyzedAt', + 'name' => 'setName', + 'status' => 'setStatus', + 'statusReason' => 'setStatusReason', + 'tags' => 'setTags', + 'type' => 'setType', + 'urn' => 'setUrn' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * createdAt 分析器创建的时间。 + * id 分析器的唯一标识符。 + * lastAnalyzedResource 唯一的资源名称。 + * lastResourceAnalyzedAt 分析最近分析的资源的时间。 + * name 分析器的名称。 + * status 分析器的状态 + * statusReason statusReason + * tags tags + * type type + * urn 唯一的资源名称。 + * + * @var string[] + */ + protected static $getters = [ + 'createdAt' => 'getCreatedAt', + 'id' => 'getId', + 'lastAnalyzedResource' => 'getLastAnalyzedResource', + 'lastResourceAnalyzedAt' => 'getLastResourceAnalyzedAt', + 'name' => 'getName', + 'status' => 'getStatus', + 'statusReason' => 'getStatusReason', + 'tags' => 'getTags', + 'type' => 'getType', + 'urn' => 'getUrn' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$openAPIModelName; + } + const STATUS_ACTIVE = 'active'; + const STATUS_CREATING = 'creating'; + const STATUS_FAILED = 'failed'; + + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getStatusAllowableValues() + { + return [ + self::STATUS_ACTIVE, + self::STATUS_CREATING, + self::STATUS_FAILED, + ]; + } + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['createdAt'] = isset($data['createdAt']) ? $data['createdAt'] : null; + $this->container['id'] = isset($data['id']) ? $data['id'] : null; + $this->container['lastAnalyzedResource'] = isset($data['lastAnalyzedResource']) ? $data['lastAnalyzedResource'] : null; + $this->container['lastResourceAnalyzedAt'] = isset($data['lastResourceAnalyzedAt']) ? $data['lastResourceAnalyzedAt'] : null; + $this->container['name'] = isset($data['name']) ? $data['name'] : null; + $this->container['status'] = isset($data['status']) ? $data['status'] : null; + $this->container['statusReason'] = isset($data['statusReason']) ? $data['statusReason'] : null; + $this->container['tags'] = isset($data['tags']) ? $data['tags'] : null; + $this->container['type'] = isset($data['type']) ? $data['type'] : null; + $this->container['urn'] = isset($data['urn']) ? $data['urn'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + if ($this->container['createdAt'] === null) { + $invalidProperties[] = "'createdAt' can't be null"; + } + if ($this->container['id'] === null) { + $invalidProperties[] = "'id' can't be null"; + } + if ((mb_strlen($this->container['id']) > 36)) { + $invalidProperties[] = "invalid value for 'id', the character length must be smaller than or equal to 36."; + } + if ((mb_strlen($this->container['id']) < 1)) { + $invalidProperties[] = "invalid value for 'id', the character length must be bigger than or equal to 1."; + } + if (!preg_match("/^[\\w-]+$/", $this->container['id'])) { + $invalidProperties[] = "invalid value for 'id', must be conform to the pattern /^[\\w-]+$/."; + } + if (!is_null($this->container['lastAnalyzedResource']) && (mb_strlen($this->container['lastAnalyzedResource']) > 1500)) { + $invalidProperties[] = "invalid value for 'lastAnalyzedResource', the character length must be smaller than or equal to 1500."; + } + if ($this->container['name'] === null) { + $invalidProperties[] = "'name' can't be null"; + } + if ((mb_strlen($this->container['name']) > 255)) { + $invalidProperties[] = "invalid value for 'name', the character length must be smaller than or equal to 255."; + } + if ((mb_strlen($this->container['name']) < 1)) { + $invalidProperties[] = "invalid value for 'name', the character length must be bigger than or equal to 1."; + } + if (!preg_match("/^[A-Za-z][A-Za-z0-9_.-]*$/", $this->container['name'])) { + $invalidProperties[] = "invalid value for 'name', must be conform to the pattern /^[A-Za-z][A-Za-z0-9_.-]*$/."; + } + if ($this->container['status'] === null) { + $invalidProperties[] = "'status' can't be null"; + } + $allowedValues = $this->getStatusAllowableValues(); + if (!is_null($this->container['status']) && !in_array($this->container['status'], $allowedValues, true)) { + $invalidProperties[] = sprintf( + "invalid value for 'status', must be one of '%s'", + implode("', '", $allowedValues) + ); + } + + if ($this->container['type'] === null) { + $invalidProperties[] = "'type' can't be null"; + } + if ($this->container['urn'] === null) { + $invalidProperties[] = "'urn' can't be null"; + } + if ((mb_strlen($this->container['urn']) > 1500)) { + $invalidProperties[] = "invalid value for 'urn', the character length must be smaller than or equal to 1500."; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + /** + * Gets createdAt + * 分析器创建的时间。 + * + * @return \DateTime + */ + public function getCreatedAt() + { + return $this->container['createdAt']; + } + + /** + * Sets createdAt + * + * @param \DateTime $createdAt 分析器创建的时间。 + * + * @return $this + */ + public function setCreatedAt($createdAt) + { + $this->container['createdAt'] = $createdAt; + return $this; + } + + /** + * Gets id + * 分析器的唯一标识符。 + * + * @return string + */ + public function getId() + { + return $this->container['id']; + } + + /** + * Sets id + * + * @param string $id 分析器的唯一标识符。 + * + * @return $this + */ + public function setId($id) + { + $this->container['id'] = $id; + return $this; + } + + /** + * Gets lastAnalyzedResource + * 唯一的资源名称。 + * + * @return string|null + */ + public function getLastAnalyzedResource() + { + return $this->container['lastAnalyzedResource']; + } + + /** + * Sets lastAnalyzedResource + * + * @param string|null $lastAnalyzedResource 唯一的资源名称。 + * + * @return $this + */ + public function setLastAnalyzedResource($lastAnalyzedResource) + { + $this->container['lastAnalyzedResource'] = $lastAnalyzedResource; + return $this; + } + + /** + * Gets lastResourceAnalyzedAt + * 分析最近分析的资源的时间。 + * + * @return \DateTime|null + */ + public function getLastResourceAnalyzedAt() + { + return $this->container['lastResourceAnalyzedAt']; + } + + /** + * Sets lastResourceAnalyzedAt + * + * @param \DateTime|null $lastResourceAnalyzedAt 分析最近分析的资源的时间。 + * + * @return $this + */ + public function setLastResourceAnalyzedAt($lastResourceAnalyzedAt) + { + $this->container['lastResourceAnalyzedAt'] = $lastResourceAnalyzedAt; + return $this; + } + + /** + * Gets name + * 分析器的名称。 + * + * @return string + */ + public function getName() + { + return $this->container['name']; + } + + /** + * Sets name + * + * @param string $name 分析器的名称。 + * + * @return $this + */ + public function setName($name) + { + $this->container['name'] = $name; + return $this; + } + + /** + * Gets status + * 分析器的状态 + * + * @return string + */ + public function getStatus() + { + return $this->container['status']; + } + + /** + * Sets status + * + * @param string $status 分析器的状态 + * + * @return $this + */ + public function setStatus($status) + { + $this->container['status'] = $status; + return $this; + } + + /** + * Gets statusReason + * statusReason + * + * @return \HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\StatusReason|null + */ + public function getStatusReason() + { + return $this->container['statusReason']; + } + + /** + * Sets statusReason + * + * @param \HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\StatusReason|null $statusReason statusReason + * + * @return $this + */ + public function setStatusReason($statusReason) + { + $this->container['statusReason'] = $statusReason; + return $this; + } + + /** + * Gets tags + * tags + * + * @return \HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\Tag[]|null + */ + public function getTags() + { + return $this->container['tags']; + } + + /** + * Sets tags + * + * @param \HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\Tag[]|null $tags tags + * + * @return $this + */ + public function setTags($tags) + { + $this->container['tags'] = $tags; + return $this; + } + + /** + * Gets type + * type + * + * @return \HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\AnalyzerType + */ + public function getType() + { + return $this->container['type']; + } + + /** + * Sets type + * + * @param \HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\AnalyzerType $type type + * + * @return $this + */ + public function setType($type) + { + $this->container['type'] = $type; + return $this; + } + + /** + * Gets urn + * 唯一的资源名称。 + * + * @return string + */ + public function getUrn() + { + return $this->container['urn']; + } + + /** + * Sets urn + * + * @param string $urn 唯一的资源名称。 + * + * @return $this + */ + public function setUrn($urn) + { + $this->container['urn'] = $urn; + return $this; + } + + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } +} + diff --git a/Services/IAMAccessAnalyzer/V1/Model/AnalyzerType.php b/Services/IAMAccessAnalyzer/V1/Model/AnalyzerType.php new file mode 100644 index 000000000..4ccefdbee --- /dev/null +++ b/Services/IAMAccessAnalyzer/V1/Model/AnalyzerType.php @@ -0,0 +1,26 @@ + 'string', + 'archiveRuleId' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * analyzerId 分析器的唯一标识符。 + * archiveRuleId 存档规则的唯一标识符。 + * + * @var string[] + */ + protected static $openAPIFormats = [ + 'analyzerId' => null, + 'archiveRuleId' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * analyzerId 分析器的唯一标识符。 + * archiveRuleId 存档规则的唯一标识符。 + * + * @var string[] + */ + protected static $attributeMap = [ + 'analyzerId' => 'analyzer_id', + 'archiveRuleId' => 'archive_rule_id' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * analyzerId 分析器的唯一标识符。 + * archiveRuleId 存档规则的唯一标识符。 + * + * @var string[] + */ + protected static $setters = [ + 'analyzerId' => 'setAnalyzerId', + 'archiveRuleId' => 'setArchiveRuleId' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * analyzerId 分析器的唯一标识符。 + * archiveRuleId 存档规则的唯一标识符。 + * + * @var string[] + */ + protected static $getters = [ + 'analyzerId' => 'getAnalyzerId', + 'archiveRuleId' => 'getArchiveRuleId' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$openAPIModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['analyzerId'] = isset($data['analyzerId']) ? $data['analyzerId'] : null; + $this->container['archiveRuleId'] = isset($data['archiveRuleId']) ? $data['archiveRuleId'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + if ($this->container['analyzerId'] === null) { + $invalidProperties[] = "'analyzerId' can't be null"; + } + if ((mb_strlen($this->container['analyzerId']) > 36)) { + $invalidProperties[] = "invalid value for 'analyzerId', the character length must be smaller than or equal to 36."; + } + if ((mb_strlen($this->container['analyzerId']) < 1)) { + $invalidProperties[] = "invalid value for 'analyzerId', the character length must be bigger than or equal to 1."; + } + if (!preg_match("/^[\\w-]+$/", $this->container['analyzerId'])) { + $invalidProperties[] = "invalid value for 'analyzerId', must be conform to the pattern /^[\\w-]+$/."; + } + if ($this->container['archiveRuleId'] === null) { + $invalidProperties[] = "'archiveRuleId' can't be null"; + } + if ((mb_strlen($this->container['archiveRuleId']) > 36)) { + $invalidProperties[] = "invalid value for 'archiveRuleId', the character length must be smaller than or equal to 36."; + } + if ((mb_strlen($this->container['archiveRuleId']) < 1)) { + $invalidProperties[] = "invalid value for 'archiveRuleId', the character length must be bigger than or equal to 1."; + } + if (!preg_match("/^[\\w-]+$/", $this->container['archiveRuleId'])) { + $invalidProperties[] = "invalid value for 'archiveRuleId', must be conform to the pattern /^[\\w-]+$/."; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + /** + * Gets analyzerId + * 分析器的唯一标识符。 + * + * @return string + */ + public function getAnalyzerId() + { + return $this->container['analyzerId']; + } + + /** + * Sets analyzerId + * + * @param string $analyzerId 分析器的唯一标识符。 + * + * @return $this + */ + public function setAnalyzerId($analyzerId) + { + $this->container['analyzerId'] = $analyzerId; + return $this; + } + + /** + * Gets archiveRuleId + * 存档规则的唯一标识符。 + * + * @return string + */ + public function getArchiveRuleId() + { + return $this->container['archiveRuleId']; + } + + /** + * Sets archiveRuleId + * + * @param string $archiveRuleId 存档规则的唯一标识符。 + * + * @return $this + */ + public function setArchiveRuleId($archiveRuleId) + { + $this->container['archiveRuleId'] = $archiveRuleId; + return $this; + } + + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } +} + diff --git a/Services/IAMAccessAnalyzer/V1/Model/ApplyArchiveRuleResponse.php b/Services/IAMAccessAnalyzer/V1/Model/ApplyArchiveRuleResponse.php new file mode 100644 index 000000000..e682e54a0 --- /dev/null +++ b/Services/IAMAccessAnalyzer/V1/Model/ApplyArchiveRuleResponse.php @@ -0,0 +1,236 @@ +listInvalidProperties()) === 0; + } + + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } +} + diff --git a/Services/IAMAccessAnalyzer/V1/Model/ArchiveRuleId.php b/Services/IAMAccessAnalyzer/V1/Model/ArchiveRuleId.php new file mode 100644 index 000000000..747e5abcc --- /dev/null +++ b/Services/IAMAccessAnalyzer/V1/Model/ArchiveRuleId.php @@ -0,0 +1,235 @@ +listInvalidProperties()) === 0; + } + + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } +} + diff --git a/Services/IAMAccessAnalyzer/V1/Model/ArchiveRuleName.php b/Services/IAMAccessAnalyzer/V1/Model/ArchiveRuleName.php new file mode 100644 index 000000000..4847735fa --- /dev/null +++ b/Services/IAMAccessAnalyzer/V1/Model/ArchiveRuleName.php @@ -0,0 +1,235 @@ +listInvalidProperties()) === 0; + } + + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } +} + diff --git a/Services/IAMAccessAnalyzer/V1/Model/ArchiveRuleSummary.php b/Services/IAMAccessAnalyzer/V1/Model/ArchiveRuleSummary.php new file mode 100644 index 000000000..05c38cc0e --- /dev/null +++ b/Services/IAMAccessAnalyzer/V1/Model/ArchiveRuleSummary.php @@ -0,0 +1,479 @@ + '\DateTime', + 'filters' => '\HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\FindingFilter[]', + 'id' => 'string', + 'name' => 'string', + 'updatedAt' => '\DateTime', + 'urn' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * createdAt 创建归档规则的时间。 + * filters filters + * id 存档规则的唯一标识符。 + * name 创建归档规则的名称。 + * updatedAt 上次更新存档规则的时间。 + * urn 唯一的资源名称。 + * + * @var string[] + */ + protected static $openAPIFormats = [ + 'createdAt' => 'date-time', + 'filters' => null, + 'id' => null, + 'name' => null, + 'updatedAt' => 'date-time', + 'urn' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * createdAt 创建归档规则的时间。 + * filters filters + * id 存档规则的唯一标识符。 + * name 创建归档规则的名称。 + * updatedAt 上次更新存档规则的时间。 + * urn 唯一的资源名称。 + * + * @var string[] + */ + protected static $attributeMap = [ + 'createdAt' => 'created_at', + 'filters' => 'filters', + 'id' => 'id', + 'name' => 'name', + 'updatedAt' => 'updated_at', + 'urn' => 'urn' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * createdAt 创建归档规则的时间。 + * filters filters + * id 存档规则的唯一标识符。 + * name 创建归档规则的名称。 + * updatedAt 上次更新存档规则的时间。 + * urn 唯一的资源名称。 + * + * @var string[] + */ + protected static $setters = [ + 'createdAt' => 'setCreatedAt', + 'filters' => 'setFilters', + 'id' => 'setId', + 'name' => 'setName', + 'updatedAt' => 'setUpdatedAt', + 'urn' => 'setUrn' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * createdAt 创建归档规则的时间。 + * filters filters + * id 存档规则的唯一标识符。 + * name 创建归档规则的名称。 + * updatedAt 上次更新存档规则的时间。 + * urn 唯一的资源名称。 + * + * @var string[] + */ + protected static $getters = [ + 'createdAt' => 'getCreatedAt', + 'filters' => 'getFilters', + 'id' => 'getId', + 'name' => 'getName', + 'updatedAt' => 'getUpdatedAt', + 'urn' => 'getUrn' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$openAPIModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['createdAt'] = isset($data['createdAt']) ? $data['createdAt'] : null; + $this->container['filters'] = isset($data['filters']) ? $data['filters'] : null; + $this->container['id'] = isset($data['id']) ? $data['id'] : null; + $this->container['name'] = isset($data['name']) ? $data['name'] : null; + $this->container['updatedAt'] = isset($data['updatedAt']) ? $data['updatedAt'] : null; + $this->container['urn'] = isset($data['urn']) ? $data['urn'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + if ($this->container['createdAt'] === null) { + $invalidProperties[] = "'createdAt' can't be null"; + } + if ($this->container['filters'] === null) { + $invalidProperties[] = "'filters' can't be null"; + } + if ($this->container['id'] === null) { + $invalidProperties[] = "'id' can't be null"; + } + if ((mb_strlen($this->container['id']) > 36)) { + $invalidProperties[] = "invalid value for 'id', the character length must be smaller than or equal to 36."; + } + if ((mb_strlen($this->container['id']) < 1)) { + $invalidProperties[] = "invalid value for 'id', the character length must be bigger than or equal to 1."; + } + if (!preg_match("/^[\\w-]+$/", $this->container['id'])) { + $invalidProperties[] = "invalid value for 'id', must be conform to the pattern /^[\\w-]+$/."; + } + if ($this->container['name'] === null) { + $invalidProperties[] = "'name' can't be null"; + } + if ((mb_strlen($this->container['name']) > 255)) { + $invalidProperties[] = "invalid value for 'name', the character length must be smaller than or equal to 255."; + } + if ((mb_strlen($this->container['name']) < 1)) { + $invalidProperties[] = "invalid value for 'name', the character length must be bigger than or equal to 1."; + } + if (!preg_match("/^[A-Za-z][A-Za-z0-9_.-]*$/", $this->container['name'])) { + $invalidProperties[] = "invalid value for 'name', must be conform to the pattern /^[A-Za-z][A-Za-z0-9_.-]*$/."; + } + if ($this->container['updatedAt'] === null) { + $invalidProperties[] = "'updatedAt' can't be null"; + } + if ($this->container['urn'] === null) { + $invalidProperties[] = "'urn' can't be null"; + } + if ((mb_strlen($this->container['urn']) > 1500)) { + $invalidProperties[] = "invalid value for 'urn', the character length must be smaller than or equal to 1500."; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + /** + * Gets createdAt + * 创建归档规则的时间。 + * + * @return \DateTime + */ + public function getCreatedAt() + { + return $this->container['createdAt']; + } + + /** + * Sets createdAt + * + * @param \DateTime $createdAt 创建归档规则的时间。 + * + * @return $this + */ + public function setCreatedAt($createdAt) + { + $this->container['createdAt'] = $createdAt; + return $this; + } + + /** + * Gets filters + * filters + * + * @return \HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\FindingFilter[] + */ + public function getFilters() + { + return $this->container['filters']; + } + + /** + * Sets filters + * + * @param \HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\FindingFilter[] $filters filters + * + * @return $this + */ + public function setFilters($filters) + { + $this->container['filters'] = $filters; + return $this; + } + + /** + * Gets id + * 存档规则的唯一标识符。 + * + * @return string + */ + public function getId() + { + return $this->container['id']; + } + + /** + * Sets id + * + * @param string $id 存档规则的唯一标识符。 + * + * @return $this + */ + public function setId($id) + { + $this->container['id'] = $id; + return $this; + } + + /** + * Gets name + * 创建归档规则的名称。 + * + * @return string + */ + public function getName() + { + return $this->container['name']; + } + + /** + * Sets name + * + * @param string $name 创建归档规则的名称。 + * + * @return $this + */ + public function setName($name) + { + $this->container['name'] = $name; + return $this; + } + + /** + * Gets updatedAt + * 上次更新存档规则的时间。 + * + * @return \DateTime + */ + public function getUpdatedAt() + { + return $this->container['updatedAt']; + } + + /** + * Sets updatedAt + * + * @param \DateTime $updatedAt 上次更新存档规则的时间。 + * + * @return $this + */ + public function setUpdatedAt($updatedAt) + { + $this->container['updatedAt'] = $updatedAt; + return $this; + } + + /** + * Gets urn + * 唯一的资源名称。 + * + * @return string + */ + public function getUrn() + { + return $this->container['urn']; + } + + /** + * Sets urn + * + * @param string $urn 唯一的资源名称。 + * + * @return $this + */ + public function setUrn($urn) + { + $this->container['urn'] = $urn; + return $this; + } + + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } +} + diff --git a/Services/IAMAccessAnalyzer/V1/Model/Configuration.php b/Services/IAMAccessAnalyzer/V1/Model/Configuration.php new file mode 100644 index 000000000..63ddf8b2a --- /dev/null +++ b/Services/IAMAccessAnalyzer/V1/Model/Configuration.php @@ -0,0 +1,300 @@ + '\HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\IAMAgency', + 'obsBucket' => '\HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\OBSBucket' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * iamAgency iamAgency + * obsBucket obsBucket + * + * @var string[] + */ + protected static $openAPIFormats = [ + 'iamAgency' => null, + 'obsBucket' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * iamAgency iamAgency + * obsBucket obsBucket + * + * @var string[] + */ + protected static $attributeMap = [ + 'iamAgency' => 'iam_agency', + 'obsBucket' => 'obs_bucket' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * iamAgency iamAgency + * obsBucket obsBucket + * + * @var string[] + */ + protected static $setters = [ + 'iamAgency' => 'setIamAgency', + 'obsBucket' => 'setObsBucket' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * iamAgency iamAgency + * obsBucket obsBucket + * + * @var string[] + */ + protected static $getters = [ + 'iamAgency' => 'getIamAgency', + 'obsBucket' => 'getObsBucket' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$openAPIModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['iamAgency'] = isset($data['iamAgency']) ? $data['iamAgency'] : null; + $this->container['obsBucket'] = isset($data['obsBucket']) ? $data['obsBucket'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + /** + * Gets iamAgency + * iamAgency + * + * @return \HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\IAMAgency|null + */ + public function getIamAgency() + { + return $this->container['iamAgency']; + } + + /** + * Sets iamAgency + * + * @param \HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\IAMAgency|null $iamAgency iamAgency + * + * @return $this + */ + public function setIamAgency($iamAgency) + { + $this->container['iamAgency'] = $iamAgency; + return $this; + } + + /** + * Gets obsBucket + * obsBucket + * + * @return \HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\OBSBucket|null + */ + public function getObsBucket() + { + return $this->container['obsBucket']; + } + + /** + * Sets obsBucket + * + * @param \HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\OBSBucket|null $obsBucket obsBucket + * + * @return $this + */ + public function setObsBucket($obsBucket) + { + $this->container['obsBucket'] = $obsBucket; + return $this; + } + + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } +} + diff --git a/Services/IAMAccessAnalyzer/V1/Model/CreateAccessPreviewReqBody.php b/Services/IAMAccessAnalyzer/V1/Model/CreateAccessPreviewReqBody.php new file mode 100644 index 000000000..5ef5c660c --- /dev/null +++ b/Services/IAMAccessAnalyzer/V1/Model/CreateAccessPreviewReqBody.php @@ -0,0 +1,309 @@ + '\HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\Configuration', + 'resourceUrn' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * configurations configurations + * resourceUrn 唯一的资源名称。 + * + * @var string[] + */ + protected static $openAPIFormats = [ + 'configurations' => null, + 'resourceUrn' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * configurations configurations + * resourceUrn 唯一的资源名称。 + * + * @var string[] + */ + protected static $attributeMap = [ + 'configurations' => 'configurations', + 'resourceUrn' => 'resource_urn' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * configurations configurations + * resourceUrn 唯一的资源名称。 + * + * @var string[] + */ + protected static $setters = [ + 'configurations' => 'setConfigurations', + 'resourceUrn' => 'setResourceUrn' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * configurations configurations + * resourceUrn 唯一的资源名称。 + * + * @var string[] + */ + protected static $getters = [ + 'configurations' => 'getConfigurations', + 'resourceUrn' => 'getResourceUrn' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$openAPIModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['configurations'] = isset($data['configurations']) ? $data['configurations'] : null; + $this->container['resourceUrn'] = isset($data['resourceUrn']) ? $data['resourceUrn'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + if ($this->container['configurations'] === null) { + $invalidProperties[] = "'configurations' can't be null"; + } + if ($this->container['resourceUrn'] === null) { + $invalidProperties[] = "'resourceUrn' can't be null"; + } + if ((mb_strlen($this->container['resourceUrn']) > 1500)) { + $invalidProperties[] = "invalid value for 'resourceUrn', the character length must be smaller than or equal to 1500."; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + /** + * Gets configurations + * configurations + * + * @return \HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\Configuration + */ + public function getConfigurations() + { + return $this->container['configurations']; + } + + /** + * Sets configurations + * + * @param \HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\Configuration $configurations configurations + * + * @return $this + */ + public function setConfigurations($configurations) + { + $this->container['configurations'] = $configurations; + return $this; + } + + /** + * Gets resourceUrn + * 唯一的资源名称。 + * + * @return string + */ + public function getResourceUrn() + { + return $this->container['resourceUrn']; + } + + /** + * Sets resourceUrn + * + * @param string $resourceUrn 唯一的资源名称。 + * + * @return $this + */ + public function setResourceUrn($resourceUrn) + { + $this->container['resourceUrn'] = $resourceUrn; + return $this; + } + + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } +} + diff --git a/Services/IAMAccessAnalyzer/V1/Model/CreateAccessPreviewRequest.php b/Services/IAMAccessAnalyzer/V1/Model/CreateAccessPreviewRequest.php new file mode 100644 index 000000000..cdc68d71e --- /dev/null +++ b/Services/IAMAccessAnalyzer/V1/Model/CreateAccessPreviewRequest.php @@ -0,0 +1,312 @@ + 'string', + 'body' => '\HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\CreateAccessPreviewReqBody' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * analyzerId 分析器的唯一标识符。 + * body body + * + * @var string[] + */ + protected static $openAPIFormats = [ + 'analyzerId' => null, + 'body' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * analyzerId 分析器的唯一标识符。 + * body body + * + * @var string[] + */ + protected static $attributeMap = [ + 'analyzerId' => 'analyzer_id', + 'body' => 'body' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * analyzerId 分析器的唯一标识符。 + * body body + * + * @var string[] + */ + protected static $setters = [ + 'analyzerId' => 'setAnalyzerId', + 'body' => 'setBody' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * analyzerId 分析器的唯一标识符。 + * body body + * + * @var string[] + */ + protected static $getters = [ + 'analyzerId' => 'getAnalyzerId', + 'body' => 'getBody' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$openAPIModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['analyzerId'] = isset($data['analyzerId']) ? $data['analyzerId'] : null; + $this->container['body'] = isset($data['body']) ? $data['body'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + if ($this->container['analyzerId'] === null) { + $invalidProperties[] = "'analyzerId' can't be null"; + } + if ((mb_strlen($this->container['analyzerId']) > 36)) { + $invalidProperties[] = "invalid value for 'analyzerId', the character length must be smaller than or equal to 36."; + } + if ((mb_strlen($this->container['analyzerId']) < 1)) { + $invalidProperties[] = "invalid value for 'analyzerId', the character length must be bigger than or equal to 1."; + } + if (!preg_match("/^[\\w-]+$/", $this->container['analyzerId'])) { + $invalidProperties[] = "invalid value for 'analyzerId', must be conform to the pattern /^[\\w-]+$/."; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + /** + * Gets analyzerId + * 分析器的唯一标识符。 + * + * @return string + */ + public function getAnalyzerId() + { + return $this->container['analyzerId']; + } + + /** + * Sets analyzerId + * + * @param string $analyzerId 分析器的唯一标识符。 + * + * @return $this + */ + public function setAnalyzerId($analyzerId) + { + $this->container['analyzerId'] = $analyzerId; + return $this; + } + + /** + * Gets body + * body + * + * @return \HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\CreateAccessPreviewReqBody|null + */ + public function getBody() + { + return $this->container['body']; + } + + /** + * Sets body + * + * @param \HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\CreateAccessPreviewReqBody|null $body body + * + * @return $this + */ + public function setBody($body) + { + $this->container['body'] = $body; + return $this; + } + + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } +} + diff --git a/Services/IAMAccessAnalyzer/V1/Model/CreateAccessPreviewResponse.php b/Services/IAMAccessAnalyzer/V1/Model/CreateAccessPreviewResponse.php new file mode 100644 index 000000000..756a0abd4 --- /dev/null +++ b/Services/IAMAccessAnalyzer/V1/Model/CreateAccessPreviewResponse.php @@ -0,0 +1,275 @@ + 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * accessPreviewId 分析预览的唯一标识符。 + * + * @var string[] + */ + protected static $openAPIFormats = [ + 'accessPreviewId' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * accessPreviewId 分析预览的唯一标识符。 + * + * @var string[] + */ + protected static $attributeMap = [ + 'accessPreviewId' => 'access_preview_id' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * accessPreviewId 分析预览的唯一标识符。 + * + * @var string[] + */ + protected static $setters = [ + 'accessPreviewId' => 'setAccessPreviewId' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * accessPreviewId 分析预览的唯一标识符。 + * + * @var string[] + */ + protected static $getters = [ + 'accessPreviewId' => 'getAccessPreviewId' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$openAPIModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['accessPreviewId'] = isset($data['accessPreviewId']) ? $data['accessPreviewId'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + if (!is_null($this->container['accessPreviewId']) && (mb_strlen($this->container['accessPreviewId']) > 36)) { + $invalidProperties[] = "invalid value for 'accessPreviewId', the character length must be smaller than or equal to 36."; + } + if (!is_null($this->container['accessPreviewId']) && (mb_strlen($this->container['accessPreviewId']) < 1)) { + $invalidProperties[] = "invalid value for 'accessPreviewId', the character length must be bigger than or equal to 1."; + } + if (!is_null($this->container['accessPreviewId']) && !preg_match("/^[\\w-]+$/", $this->container['accessPreviewId'])) { + $invalidProperties[] = "invalid value for 'accessPreviewId', must be conform to the pattern /^[\\w-]+$/."; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + /** + * Gets accessPreviewId + * 分析预览的唯一标识符。 + * + * @return string|null + */ + public function getAccessPreviewId() + { + return $this->container['accessPreviewId']; + } + + /** + * Sets accessPreviewId + * + * @param string|null $accessPreviewId 分析预览的唯一标识符。 + * + * @return $this + */ + public function setAccessPreviewId($accessPreviewId) + { + $this->container['accessPreviewId'] = $accessPreviewId; + return $this; + } + + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } +} + diff --git a/Services/IAMAccessAnalyzer/V1/Model/CreateAnalyzerReqBody.php b/Services/IAMAccessAnalyzer/V1/Model/CreateAnalyzerReqBody.php new file mode 100644 index 000000000..823c3c8ae --- /dev/null +++ b/Services/IAMAccessAnalyzer/V1/Model/CreateAnalyzerReqBody.php @@ -0,0 +1,350 @@ + 'string', + 'tags' => '\HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\Tag[]', + 'type' => '\HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\AnalyzerType' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * name 分析器的名称。 + * tags tags + * type type + * + * @var string[] + */ + protected static $openAPIFormats = [ + 'name' => null, + 'tags' => null, + 'type' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * name 分析器的名称。 + * tags tags + * type type + * + * @var string[] + */ + protected static $attributeMap = [ + 'name' => 'name', + 'tags' => 'tags', + 'type' => 'type' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * name 分析器的名称。 + * tags tags + * type type + * + * @var string[] + */ + protected static $setters = [ + 'name' => 'setName', + 'tags' => 'setTags', + 'type' => 'setType' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * name 分析器的名称。 + * tags tags + * type type + * + * @var string[] + */ + protected static $getters = [ + 'name' => 'getName', + 'tags' => 'getTags', + 'type' => 'getType' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$openAPIModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['name'] = isset($data['name']) ? $data['name'] : null; + $this->container['tags'] = isset($data['tags']) ? $data['tags'] : null; + $this->container['type'] = isset($data['type']) ? $data['type'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + if ($this->container['name'] === null) { + $invalidProperties[] = "'name' can't be null"; + } + if ((mb_strlen($this->container['name']) > 255)) { + $invalidProperties[] = "invalid value for 'name', the character length must be smaller than or equal to 255."; + } + if ((mb_strlen($this->container['name']) < 1)) { + $invalidProperties[] = "invalid value for 'name', the character length must be bigger than or equal to 1."; + } + if (!preg_match("/^[A-Za-z][A-Za-z0-9_.-]*$/", $this->container['name'])) { + $invalidProperties[] = "invalid value for 'name', must be conform to the pattern /^[A-Za-z][A-Za-z0-9_.-]*$/."; + } + if ($this->container['type'] === null) { + $invalidProperties[] = "'type' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + /** + * Gets name + * 分析器的名称。 + * + * @return string + */ + public function getName() + { + return $this->container['name']; + } + + /** + * Sets name + * + * @param string $name 分析器的名称。 + * + * @return $this + */ + public function setName($name) + { + $this->container['name'] = $name; + return $this; + } + + /** + * Gets tags + * tags + * + * @return \HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\Tag[]|null + */ + public function getTags() + { + return $this->container['tags']; + } + + /** + * Sets tags + * + * @param \HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\Tag[]|null $tags tags + * + * @return $this + */ + public function setTags($tags) + { + $this->container['tags'] = $tags; + return $this; + } + + /** + * Gets type + * type + * + * @return \HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\AnalyzerType + */ + public function getType() + { + return $this->container['type']; + } + + /** + * Sets type + * + * @param \HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\AnalyzerType $type type + * + * @return $this + */ + public function setType($type) + { + $this->container['type'] = $type; + return $this; + } + + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } +} + diff --git a/Services/IAMAccessAnalyzer/V1/Model/CreateAnalyzerRequest.php b/Services/IAMAccessAnalyzer/V1/Model/CreateAnalyzerRequest.php new file mode 100644 index 000000000..908d72f1a --- /dev/null +++ b/Services/IAMAccessAnalyzer/V1/Model/CreateAnalyzerRequest.php @@ -0,0 +1,265 @@ + '\HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\CreateAnalyzerReqBody' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * body body + * + * @var string[] + */ + protected static $openAPIFormats = [ + 'body' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * body body + * + * @var string[] + */ + protected static $attributeMap = [ + 'body' => 'body' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * body body + * + * @var string[] + */ + protected static $setters = [ + 'body' => 'setBody' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * body body + * + * @var string[] + */ + protected static $getters = [ + 'body' => 'getBody' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$openAPIModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['body'] = isset($data['body']) ? $data['body'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + /** + * Gets body + * body + * + * @return \HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\CreateAnalyzerReqBody|null + */ + public function getBody() + { + return $this->container['body']; + } + + /** + * Sets body + * + * @param \HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\CreateAnalyzerReqBody|null $body body + * + * @return $this + */ + public function setBody($body) + { + $this->container['body'] = $body; + return $this; + } + + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } +} + diff --git a/Services/IAMAccessAnalyzer/V1/Model/CreateAnalyzerResponse.php b/Services/IAMAccessAnalyzer/V1/Model/CreateAnalyzerResponse.php new file mode 100644 index 000000000..228b30f2f --- /dev/null +++ b/Services/IAMAccessAnalyzer/V1/Model/CreateAnalyzerResponse.php @@ -0,0 +1,313 @@ + 'string', + 'urn' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * id 分析器的唯一标识符。 + * urn 唯一的资源名称。 + * + * @var string[] + */ + protected static $openAPIFormats = [ + 'id' => null, + 'urn' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * id 分析器的唯一标识符。 + * urn 唯一的资源名称。 + * + * @var string[] + */ + protected static $attributeMap = [ + 'id' => 'id', + 'urn' => 'urn' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * id 分析器的唯一标识符。 + * urn 唯一的资源名称。 + * + * @var string[] + */ + protected static $setters = [ + 'id' => 'setId', + 'urn' => 'setUrn' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * id 分析器的唯一标识符。 + * urn 唯一的资源名称。 + * + * @var string[] + */ + protected static $getters = [ + 'id' => 'getId', + 'urn' => 'getUrn' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$openAPIModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['id'] = isset($data['id']) ? $data['id'] : null; + $this->container['urn'] = isset($data['urn']) ? $data['urn'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + if (!is_null($this->container['id']) && (mb_strlen($this->container['id']) > 36)) { + $invalidProperties[] = "invalid value for 'id', the character length must be smaller than or equal to 36."; + } + if (!is_null($this->container['id']) && (mb_strlen($this->container['id']) < 1)) { + $invalidProperties[] = "invalid value for 'id', the character length must be bigger than or equal to 1."; + } + if (!is_null($this->container['id']) && !preg_match("/^[\\w-]+$/", $this->container['id'])) { + $invalidProperties[] = "invalid value for 'id', must be conform to the pattern /^[\\w-]+$/."; + } + if (!is_null($this->container['urn']) && (mb_strlen($this->container['urn']) > 1500)) { + $invalidProperties[] = "invalid value for 'urn', the character length must be smaller than or equal to 1500."; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + /** + * Gets id + * 分析器的唯一标识符。 + * + * @return string|null + */ + public function getId() + { + return $this->container['id']; + } + + /** + * Sets id + * + * @param string|null $id 分析器的唯一标识符。 + * + * @return $this + */ + public function setId($id) + { + $this->container['id'] = $id; + return $this; + } + + /** + * Gets urn + * 唯一的资源名称。 + * + * @return string|null + */ + public function getUrn() + { + return $this->container['urn']; + } + + /** + * Sets urn + * + * @param string|null $urn 唯一的资源名称。 + * + * @return $this + */ + public function setUrn($urn) + { + $this->container['urn'] = $urn; + return $this; + } + + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } +} + diff --git a/Services/IAMAccessAnalyzer/V1/Model/CreateArchiveRuleReqBody.php b/Services/IAMAccessAnalyzer/V1/Model/CreateArchiveRuleReqBody.php new file mode 100644 index 000000000..1d78058ff --- /dev/null +++ b/Services/IAMAccessAnalyzer/V1/Model/CreateArchiveRuleReqBody.php @@ -0,0 +1,315 @@ + '\HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\FindingFilter[]', + 'name' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * filters filters + * name 创建归档规则的名称。 + * + * @var string[] + */ + protected static $openAPIFormats = [ + 'filters' => null, + 'name' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * filters filters + * name 创建归档规则的名称。 + * + * @var string[] + */ + protected static $attributeMap = [ + 'filters' => 'filters', + 'name' => 'name' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * filters filters + * name 创建归档规则的名称。 + * + * @var string[] + */ + protected static $setters = [ + 'filters' => 'setFilters', + 'name' => 'setName' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * filters filters + * name 创建归档规则的名称。 + * + * @var string[] + */ + protected static $getters = [ + 'filters' => 'getFilters', + 'name' => 'getName' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$openAPIModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['filters'] = isset($data['filters']) ? $data['filters'] : null; + $this->container['name'] = isset($data['name']) ? $data['name'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + if ($this->container['filters'] === null) { + $invalidProperties[] = "'filters' can't be null"; + } + if ($this->container['name'] === null) { + $invalidProperties[] = "'name' can't be null"; + } + if ((mb_strlen($this->container['name']) > 255)) { + $invalidProperties[] = "invalid value for 'name', the character length must be smaller than or equal to 255."; + } + if ((mb_strlen($this->container['name']) < 1)) { + $invalidProperties[] = "invalid value for 'name', the character length must be bigger than or equal to 1."; + } + if (!preg_match("/^[A-Za-z][A-Za-z0-9_.-]*$/", $this->container['name'])) { + $invalidProperties[] = "invalid value for 'name', must be conform to the pattern /^[A-Za-z][A-Za-z0-9_.-]*$/."; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + /** + * Gets filters + * filters + * + * @return \HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\FindingFilter[] + */ + public function getFilters() + { + return $this->container['filters']; + } + + /** + * Sets filters + * + * @param \HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\FindingFilter[] $filters filters + * + * @return $this + */ + public function setFilters($filters) + { + $this->container['filters'] = $filters; + return $this; + } + + /** + * Gets name + * 创建归档规则的名称。 + * + * @return string + */ + public function getName() + { + return $this->container['name']; + } + + /** + * Sets name + * + * @param string $name 创建归档规则的名称。 + * + * @return $this + */ + public function setName($name) + { + $this->container['name'] = $name; + return $this; + } + + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } +} + diff --git a/Services/IAMAccessAnalyzer/V1/Model/CreateArchiveRuleRequest.php b/Services/IAMAccessAnalyzer/V1/Model/CreateArchiveRuleRequest.php new file mode 100644 index 000000000..49876ed50 --- /dev/null +++ b/Services/IAMAccessAnalyzer/V1/Model/CreateArchiveRuleRequest.php @@ -0,0 +1,312 @@ + 'string', + 'body' => '\HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\CreateArchiveRuleReqBody' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * analyzerId 分析器的唯一标识符。 + * body body + * + * @var string[] + */ + protected static $openAPIFormats = [ + 'analyzerId' => null, + 'body' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * analyzerId 分析器的唯一标识符。 + * body body + * + * @var string[] + */ + protected static $attributeMap = [ + 'analyzerId' => 'analyzer_id', + 'body' => 'body' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * analyzerId 分析器的唯一标识符。 + * body body + * + * @var string[] + */ + protected static $setters = [ + 'analyzerId' => 'setAnalyzerId', + 'body' => 'setBody' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * analyzerId 分析器的唯一标识符。 + * body body + * + * @var string[] + */ + protected static $getters = [ + 'analyzerId' => 'getAnalyzerId', + 'body' => 'getBody' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$openAPIModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['analyzerId'] = isset($data['analyzerId']) ? $data['analyzerId'] : null; + $this->container['body'] = isset($data['body']) ? $data['body'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + if ($this->container['analyzerId'] === null) { + $invalidProperties[] = "'analyzerId' can't be null"; + } + if ((mb_strlen($this->container['analyzerId']) > 36)) { + $invalidProperties[] = "invalid value for 'analyzerId', the character length must be smaller than or equal to 36."; + } + if ((mb_strlen($this->container['analyzerId']) < 1)) { + $invalidProperties[] = "invalid value for 'analyzerId', the character length must be bigger than or equal to 1."; + } + if (!preg_match("/^[\\w-]+$/", $this->container['analyzerId'])) { + $invalidProperties[] = "invalid value for 'analyzerId', must be conform to the pattern /^[\\w-]+$/."; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + /** + * Gets analyzerId + * 分析器的唯一标识符。 + * + * @return string + */ + public function getAnalyzerId() + { + return $this->container['analyzerId']; + } + + /** + * Sets analyzerId + * + * @param string $analyzerId 分析器的唯一标识符。 + * + * @return $this + */ + public function setAnalyzerId($analyzerId) + { + $this->container['analyzerId'] = $analyzerId; + return $this; + } + + /** + * Gets body + * body + * + * @return \HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\CreateArchiveRuleReqBody|null + */ + public function getBody() + { + return $this->container['body']; + } + + /** + * Sets body + * + * @param \HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\CreateArchiveRuleReqBody|null $body body + * + * @return $this + */ + public function setBody($body) + { + $this->container['body'] = $body; + return $this; + } + + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } +} + diff --git a/Services/IAMAccessAnalyzer/V1/Model/CreateArchiveRuleResponse.php b/Services/IAMAccessAnalyzer/V1/Model/CreateArchiveRuleResponse.php new file mode 100644 index 000000000..f137c5005 --- /dev/null +++ b/Services/IAMAccessAnalyzer/V1/Model/CreateArchiveRuleResponse.php @@ -0,0 +1,313 @@ + 'string', + 'urn' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * id 存档规则的唯一标识符。 + * urn 唯一的资源名称。 + * + * @var string[] + */ + protected static $openAPIFormats = [ + 'id' => null, + 'urn' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * id 存档规则的唯一标识符。 + * urn 唯一的资源名称。 + * + * @var string[] + */ + protected static $attributeMap = [ + 'id' => 'id', + 'urn' => 'urn' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * id 存档规则的唯一标识符。 + * urn 唯一的资源名称。 + * + * @var string[] + */ + protected static $setters = [ + 'id' => 'setId', + 'urn' => 'setUrn' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * id 存档规则的唯一标识符。 + * urn 唯一的资源名称。 + * + * @var string[] + */ + protected static $getters = [ + 'id' => 'getId', + 'urn' => 'getUrn' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$openAPIModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['id'] = isset($data['id']) ? $data['id'] : null; + $this->container['urn'] = isset($data['urn']) ? $data['urn'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + if (!is_null($this->container['id']) && (mb_strlen($this->container['id']) > 36)) { + $invalidProperties[] = "invalid value for 'id', the character length must be smaller than or equal to 36."; + } + if (!is_null($this->container['id']) && (mb_strlen($this->container['id']) < 1)) { + $invalidProperties[] = "invalid value for 'id', the character length must be bigger than or equal to 1."; + } + if (!is_null($this->container['id']) && !preg_match("/^[\\w-]+$/", $this->container['id'])) { + $invalidProperties[] = "invalid value for 'id', must be conform to the pattern /^[\\w-]+$/."; + } + if (!is_null($this->container['urn']) && (mb_strlen($this->container['urn']) > 1500)) { + $invalidProperties[] = "invalid value for 'urn', the character length must be smaller than or equal to 1500."; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + /** + * Gets id + * 存档规则的唯一标识符。 + * + * @return string|null + */ + public function getId() + { + return $this->container['id']; + } + + /** + * Sets id + * + * @param string|null $id 存档规则的唯一标识符。 + * + * @return $this + */ + public function setId($id) + { + $this->container['id'] = $id; + return $this; + } + + /** + * Gets urn + * 唯一的资源名称。 + * + * @return string|null + */ + public function getUrn() + { + return $this->container['urn']; + } + + /** + * Sets urn + * + * @param string|null $urn 唯一的资源名称。 + * + * @return $this + */ + public function setUrn($urn) + { + $this->container['urn'] = $urn; + return $this; + } + + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } +} + diff --git a/Services/IAMAccessAnalyzer/V1/Model/Criterion.php b/Services/IAMAccessAnalyzer/V1/Model/Criterion.php new file mode 100644 index 000000000..6a8472316 --- /dev/null +++ b/Services/IAMAccessAnalyzer/V1/Model/Criterion.php @@ -0,0 +1,370 @@ + 'string[]', + 'eq' => 'string[]', + 'exists' => 'bool', + 'neq' => 'string[]' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * contains 要匹配筛选器的“包含”运算符。 + * eq 要匹配筛选器的“等于”运算符。 + * exists 要匹配筛选器的“存在”运算符。 + * neq 要匹配筛选器的“不等于”运算符。 + * + * @var string[] + */ + protected static $openAPIFormats = [ + 'contains' => null, + 'eq' => null, + 'exists' => null, + 'neq' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * contains 要匹配筛选器的“包含”运算符。 + * eq 要匹配筛选器的“等于”运算符。 + * exists 要匹配筛选器的“存在”运算符。 + * neq 要匹配筛选器的“不等于”运算符。 + * + * @var string[] + */ + protected static $attributeMap = [ + 'contains' => 'contains', + 'eq' => 'eq', + 'exists' => 'exists', + 'neq' => 'neq' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * contains 要匹配筛选器的“包含”运算符。 + * eq 要匹配筛选器的“等于”运算符。 + * exists 要匹配筛选器的“存在”运算符。 + * neq 要匹配筛选器的“不等于”运算符。 + * + * @var string[] + */ + protected static $setters = [ + 'contains' => 'setContains', + 'eq' => 'setEq', + 'exists' => 'setExists', + 'neq' => 'setNeq' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * contains 要匹配筛选器的“包含”运算符。 + * eq 要匹配筛选器的“等于”运算符。 + * exists 要匹配筛选器的“存在”运算符。 + * neq 要匹配筛选器的“不等于”运算符。 + * + * @var string[] + */ + protected static $getters = [ + 'contains' => 'getContains', + 'eq' => 'getEq', + 'exists' => 'getExists', + 'neq' => 'getNeq' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$openAPIModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['contains'] = isset($data['contains']) ? $data['contains'] : null; + $this->container['eq'] = isset($data['eq']) ? $data['eq'] : null; + $this->container['exists'] = isset($data['exists']) ? $data['exists'] : null; + $this->container['neq'] = isset($data['neq']) ? $data['neq'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + /** + * Gets contains + * 要匹配筛选器的“包含”运算符。 + * + * @return string[]|null + */ + public function getContains() + { + return $this->container['contains']; + } + + /** + * Sets contains + * + * @param string[]|null $contains 要匹配筛选器的“包含”运算符。 + * + * @return $this + */ + public function setContains($contains) + { + $this->container['contains'] = $contains; + return $this; + } + + /** + * Gets eq + * 要匹配筛选器的“等于”运算符。 + * + * @return string[]|null + */ + public function getEq() + { + return $this->container['eq']; + } + + /** + * Sets eq + * + * @param string[]|null $eq 要匹配筛选器的“等于”运算符。 + * + * @return $this + */ + public function setEq($eq) + { + $this->container['eq'] = $eq; + return $this; + } + + /** + * Gets exists + * 要匹配筛选器的“存在”运算符。 + * + * @return bool|null + */ + public function getExists() + { + return $this->container['exists']; + } + + /** + * Sets exists + * + * @param bool|null $exists 要匹配筛选器的“存在”运算符。 + * + * @return $this + */ + public function setExists($exists) + { + $this->container['exists'] = $exists; + return $this; + } + + /** + * Gets neq + * 要匹配筛选器的“不等于”运算符。 + * + * @return string[]|null + */ + public function getNeq() + { + return $this->container['neq']; + } + + /** + * Sets neq + * + * @param string[]|null $neq 要匹配筛选器的“不等于”运算符。 + * + * @return $this + */ + public function setNeq($neq) + { + $this->container['neq'] = $neq; + return $this; + } + + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } +} + diff --git a/Services/IAMAccessAnalyzer/V1/Model/CurrentCount.php b/Services/IAMAccessAnalyzer/V1/Model/CurrentCount.php new file mode 100644 index 000000000..321dcb82f --- /dev/null +++ b/Services/IAMAccessAnalyzer/V1/Model/CurrentCount.php @@ -0,0 +1,235 @@ +listInvalidProperties()) === 0; + } + + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } +} + diff --git a/Services/IAMAccessAnalyzer/V1/Model/DeleteAnalyzerRequest.php b/Services/IAMAccessAnalyzer/V1/Model/DeleteAnalyzerRequest.php new file mode 100644 index 000000000..5e8277129 --- /dev/null +++ b/Services/IAMAccessAnalyzer/V1/Model/DeleteAnalyzerRequest.php @@ -0,0 +1,277 @@ + 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * analyzerId 分析器的唯一标识符。 + * + * @var string[] + */ + protected static $openAPIFormats = [ + 'analyzerId' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * analyzerId 分析器的唯一标识符。 + * + * @var string[] + */ + protected static $attributeMap = [ + 'analyzerId' => 'analyzer_id' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * analyzerId 分析器的唯一标识符。 + * + * @var string[] + */ + protected static $setters = [ + 'analyzerId' => 'setAnalyzerId' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * analyzerId 分析器的唯一标识符。 + * + * @var string[] + */ + protected static $getters = [ + 'analyzerId' => 'getAnalyzerId' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$openAPIModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['analyzerId'] = isset($data['analyzerId']) ? $data['analyzerId'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + if ($this->container['analyzerId'] === null) { + $invalidProperties[] = "'analyzerId' can't be null"; + } + if ((mb_strlen($this->container['analyzerId']) > 36)) { + $invalidProperties[] = "invalid value for 'analyzerId', the character length must be smaller than or equal to 36."; + } + if ((mb_strlen($this->container['analyzerId']) < 1)) { + $invalidProperties[] = "invalid value for 'analyzerId', the character length must be bigger than or equal to 1."; + } + if (!preg_match("/^[\\w-]+$/", $this->container['analyzerId'])) { + $invalidProperties[] = "invalid value for 'analyzerId', must be conform to the pattern /^[\\w-]+$/."; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + /** + * Gets analyzerId + * 分析器的唯一标识符。 + * + * @return string + */ + public function getAnalyzerId() + { + return $this->container['analyzerId']; + } + + /** + * Sets analyzerId + * + * @param string $analyzerId 分析器的唯一标识符。 + * + * @return $this + */ + public function setAnalyzerId($analyzerId) + { + $this->container['analyzerId'] = $analyzerId; + return $this; + } + + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } +} + diff --git a/Services/IAMAccessAnalyzer/V1/Model/DeleteAnalyzerResponse.php b/Services/IAMAccessAnalyzer/V1/Model/DeleteAnalyzerResponse.php new file mode 100644 index 000000000..7236033a5 --- /dev/null +++ b/Services/IAMAccessAnalyzer/V1/Model/DeleteAnalyzerResponse.php @@ -0,0 +1,236 @@ +listInvalidProperties()) === 0; + } + + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } +} + diff --git a/Services/IAMAccessAnalyzer/V1/Model/DeleteArchiveRuleRequest.php b/Services/IAMAccessAnalyzer/V1/Model/DeleteArchiveRuleRequest.php new file mode 100644 index 000000000..519d34113 --- /dev/null +++ b/Services/IAMAccessAnalyzer/V1/Model/DeleteArchiveRuleRequest.php @@ -0,0 +1,324 @@ + 'string', + 'archiveRuleId' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * analyzerId 分析器的唯一标识符。 + * archiveRuleId 存档规则的唯一标识符。 + * + * @var string[] + */ + protected static $openAPIFormats = [ + 'analyzerId' => null, + 'archiveRuleId' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * analyzerId 分析器的唯一标识符。 + * archiveRuleId 存档规则的唯一标识符。 + * + * @var string[] + */ + protected static $attributeMap = [ + 'analyzerId' => 'analyzer_id', + 'archiveRuleId' => 'archive_rule_id' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * analyzerId 分析器的唯一标识符。 + * archiveRuleId 存档规则的唯一标识符。 + * + * @var string[] + */ + protected static $setters = [ + 'analyzerId' => 'setAnalyzerId', + 'archiveRuleId' => 'setArchiveRuleId' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * analyzerId 分析器的唯一标识符。 + * archiveRuleId 存档规则的唯一标识符。 + * + * @var string[] + */ + protected static $getters = [ + 'analyzerId' => 'getAnalyzerId', + 'archiveRuleId' => 'getArchiveRuleId' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$openAPIModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['analyzerId'] = isset($data['analyzerId']) ? $data['analyzerId'] : null; + $this->container['archiveRuleId'] = isset($data['archiveRuleId']) ? $data['archiveRuleId'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + if ($this->container['analyzerId'] === null) { + $invalidProperties[] = "'analyzerId' can't be null"; + } + if ((mb_strlen($this->container['analyzerId']) > 36)) { + $invalidProperties[] = "invalid value for 'analyzerId', the character length must be smaller than or equal to 36."; + } + if ((mb_strlen($this->container['analyzerId']) < 1)) { + $invalidProperties[] = "invalid value for 'analyzerId', the character length must be bigger than or equal to 1."; + } + if (!preg_match("/^[\\w-]+$/", $this->container['analyzerId'])) { + $invalidProperties[] = "invalid value for 'analyzerId', must be conform to the pattern /^[\\w-]+$/."; + } + if ($this->container['archiveRuleId'] === null) { + $invalidProperties[] = "'archiveRuleId' can't be null"; + } + if ((mb_strlen($this->container['archiveRuleId']) > 36)) { + $invalidProperties[] = "invalid value for 'archiveRuleId', the character length must be smaller than or equal to 36."; + } + if ((mb_strlen($this->container['archiveRuleId']) < 1)) { + $invalidProperties[] = "invalid value for 'archiveRuleId', the character length must be bigger than or equal to 1."; + } + if (!preg_match("/^[\\w-]+$/", $this->container['archiveRuleId'])) { + $invalidProperties[] = "invalid value for 'archiveRuleId', must be conform to the pattern /^[\\w-]+$/."; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + /** + * Gets analyzerId + * 分析器的唯一标识符。 + * + * @return string + */ + public function getAnalyzerId() + { + return $this->container['analyzerId']; + } + + /** + * Sets analyzerId + * + * @param string $analyzerId 分析器的唯一标识符。 + * + * @return $this + */ + public function setAnalyzerId($analyzerId) + { + $this->container['analyzerId'] = $analyzerId; + return $this; + } + + /** + * Gets archiveRuleId + * 存档规则的唯一标识符。 + * + * @return string + */ + public function getArchiveRuleId() + { + return $this->container['archiveRuleId']; + } + + /** + * Sets archiveRuleId + * + * @param string $archiveRuleId 存档规则的唯一标识符。 + * + * @return $this + */ + public function setArchiveRuleId($archiveRuleId) + { + $this->container['archiveRuleId'] = $archiveRuleId; + return $this; + } + + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } +} + diff --git a/Services/IAMAccessAnalyzer/V1/Model/DeleteArchiveRuleResponse.php b/Services/IAMAccessAnalyzer/V1/Model/DeleteArchiveRuleResponse.php new file mode 100644 index 000000000..df712aa68 --- /dev/null +++ b/Services/IAMAccessAnalyzer/V1/Model/DeleteArchiveRuleResponse.php @@ -0,0 +1,236 @@ +listInvalidProperties()) === 0; + } + + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } +} + diff --git a/Services/IAMAccessAnalyzer/V1/Model/Finding.php b/Services/IAMAccessAnalyzer/V1/Model/Finding.php new file mode 100644 index 000000000..0b8197bd9 --- /dev/null +++ b/Services/IAMAccessAnalyzer/V1/Model/Finding.php @@ -0,0 +1,811 @@ + 'string[]', + 'analyzedAt' => '\DateTime', + 'condition' => '\HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\FindingCondition[]', + 'createdAt' => '\DateTime', + 'id' => 'string', + 'isPublic' => 'bool', + 'principal' => '\HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\FindingPrincipal', + 'resource' => 'string', + 'resourceId' => 'string', + 'resourceOwnerAccount' => 'string', + 'resourceType' => '\HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\ResourceType', + 'sources' => '\HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\FindingSourceType[]', + 'status' => 'string', + 'updatedAt' => '\DateTime' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * action 访问信任区域内资源的外部主体。 + * analyzedAt 分析资源的时间。 + * condition condition + * createdAt 生成查找结果的时间。 + * id 要检索的结果的ID。 + * isPublic 表示生成查找结果的策略是否允许公共访问资源。 + * principal principal + * resource 唯一的资源名称。 + * resourceId 资源的唯一标识符。 + * resourceOwnerAccount 拥有资源的帐户ID。 + * resourceType resourceType + * sources sources + * status 结果的当前状态。 + * updatedAt 更新调查结果的时间。 + * + * @var string[] + */ + protected static $openAPIFormats = [ + 'action' => null, + 'analyzedAt' => 'date-time', + 'condition' => null, + 'createdAt' => 'date-time', + 'id' => null, + 'isPublic' => null, + 'principal' => null, + 'resource' => null, + 'resourceId' => null, + 'resourceOwnerAccount' => null, + 'resourceType' => null, + 'sources' => null, + 'status' => null, + 'updatedAt' => 'date-time' + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * action 访问信任区域内资源的外部主体。 + * analyzedAt 分析资源的时间。 + * condition condition + * createdAt 生成查找结果的时间。 + * id 要检索的结果的ID。 + * isPublic 表示生成查找结果的策略是否允许公共访问资源。 + * principal principal + * resource 唯一的资源名称。 + * resourceId 资源的唯一标识符。 + * resourceOwnerAccount 拥有资源的帐户ID。 + * resourceType resourceType + * sources sources + * status 结果的当前状态。 + * updatedAt 更新调查结果的时间。 + * + * @var string[] + */ + protected static $attributeMap = [ + 'action' => 'action', + 'analyzedAt' => 'analyzed_at', + 'condition' => 'condition', + 'createdAt' => 'created_at', + 'id' => 'id', + 'isPublic' => 'is_public', + 'principal' => 'principal', + 'resource' => 'resource', + 'resourceId' => 'resource_id', + 'resourceOwnerAccount' => 'resource_owner_account', + 'resourceType' => 'resource_type', + 'sources' => 'sources', + 'status' => 'status', + 'updatedAt' => 'updated_at' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * action 访问信任区域内资源的外部主体。 + * analyzedAt 分析资源的时间。 + * condition condition + * createdAt 生成查找结果的时间。 + * id 要检索的结果的ID。 + * isPublic 表示生成查找结果的策略是否允许公共访问资源。 + * principal principal + * resource 唯一的资源名称。 + * resourceId 资源的唯一标识符。 + * resourceOwnerAccount 拥有资源的帐户ID。 + * resourceType resourceType + * sources sources + * status 结果的当前状态。 + * updatedAt 更新调查结果的时间。 + * + * @var string[] + */ + protected static $setters = [ + 'action' => 'setAction', + 'analyzedAt' => 'setAnalyzedAt', + 'condition' => 'setCondition', + 'createdAt' => 'setCreatedAt', + 'id' => 'setId', + 'isPublic' => 'setIsPublic', + 'principal' => 'setPrincipal', + 'resource' => 'setResource', + 'resourceId' => 'setResourceId', + 'resourceOwnerAccount' => 'setResourceOwnerAccount', + 'resourceType' => 'setResourceType', + 'sources' => 'setSources', + 'status' => 'setStatus', + 'updatedAt' => 'setUpdatedAt' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * action 访问信任区域内资源的外部主体。 + * analyzedAt 分析资源的时间。 + * condition condition + * createdAt 生成查找结果的时间。 + * id 要检索的结果的ID。 + * isPublic 表示生成查找结果的策略是否允许公共访问资源。 + * principal principal + * resource 唯一的资源名称。 + * resourceId 资源的唯一标识符。 + * resourceOwnerAccount 拥有资源的帐户ID。 + * resourceType resourceType + * sources sources + * status 结果的当前状态。 + * updatedAt 更新调查结果的时间。 + * + * @var string[] + */ + protected static $getters = [ + 'action' => 'getAction', + 'analyzedAt' => 'getAnalyzedAt', + 'condition' => 'getCondition', + 'createdAt' => 'getCreatedAt', + 'id' => 'getId', + 'isPublic' => 'getIsPublic', + 'principal' => 'getPrincipal', + 'resource' => 'getResource', + 'resourceId' => 'getResourceId', + 'resourceOwnerAccount' => 'getResourceOwnerAccount', + 'resourceType' => 'getResourceType', + 'sources' => 'getSources', + 'status' => 'getStatus', + 'updatedAt' => 'getUpdatedAt' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$openAPIModelName; + } + const STATUS_ACTIVE = 'active'; + const STATUS_ARCHIVED = 'archived'; + const STATUS_RESOLVED = 'resolved'; + + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getStatusAllowableValues() + { + return [ + self::STATUS_ACTIVE, + self::STATUS_ARCHIVED, + self::STATUS_RESOLVED, + ]; + } + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['action'] = isset($data['action']) ? $data['action'] : null; + $this->container['analyzedAt'] = isset($data['analyzedAt']) ? $data['analyzedAt'] : null; + $this->container['condition'] = isset($data['condition']) ? $data['condition'] : null; + $this->container['createdAt'] = isset($data['createdAt']) ? $data['createdAt'] : null; + $this->container['id'] = isset($data['id']) ? $data['id'] : null; + $this->container['isPublic'] = isset($data['isPublic']) ? $data['isPublic'] : null; + $this->container['principal'] = isset($data['principal']) ? $data['principal'] : null; + $this->container['resource'] = isset($data['resource']) ? $data['resource'] : null; + $this->container['resourceId'] = isset($data['resourceId']) ? $data['resourceId'] : null; + $this->container['resourceOwnerAccount'] = isset($data['resourceOwnerAccount']) ? $data['resourceOwnerAccount'] : null; + $this->container['resourceType'] = isset($data['resourceType']) ? $data['resourceType'] : null; + $this->container['sources'] = isset($data['sources']) ? $data['sources'] : null; + $this->container['status'] = isset($data['status']) ? $data['status'] : null; + $this->container['updatedAt'] = isset($data['updatedAt']) ? $data['updatedAt'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + if ($this->container['action'] === null) { + $invalidProperties[] = "'action' can't be null"; + } + if ($this->container['analyzedAt'] === null) { + $invalidProperties[] = "'analyzedAt' can't be null"; + } + if ($this->container['condition'] === null) { + $invalidProperties[] = "'condition' can't be null"; + } + if ($this->container['createdAt'] === null) { + $invalidProperties[] = "'createdAt' can't be null"; + } + if ($this->container['id'] === null) { + $invalidProperties[] = "'id' can't be null"; + } + if ((mb_strlen($this->container['id']) > 36)) { + $invalidProperties[] = "invalid value for 'id', the character length must be smaller than or equal to 36."; + } + if ((mb_strlen($this->container['id']) < 1)) { + $invalidProperties[] = "invalid value for 'id', the character length must be bigger than or equal to 1."; + } + if (!preg_match("/^[\\w-]+$/", $this->container['id'])) { + $invalidProperties[] = "invalid value for 'id', must be conform to the pattern /^[\\w-]+$/."; + } + if ($this->container['isPublic'] === null) { + $invalidProperties[] = "'isPublic' can't be null"; + } + if ($this->container['principal'] === null) { + $invalidProperties[] = "'principal' can't be null"; + } + if ($this->container['resource'] === null) { + $invalidProperties[] = "'resource' can't be null"; + } + if ((mb_strlen($this->container['resource']) > 1500)) { + $invalidProperties[] = "invalid value for 'resource', the character length must be smaller than or equal to 1500."; + } + if (!is_null($this->container['resourceId']) && (mb_strlen($this->container['resourceId']) > 36)) { + $invalidProperties[] = "invalid value for 'resourceId', the character length must be smaller than or equal to 36."; + } + if (!is_null($this->container['resourceId']) && (mb_strlen($this->container['resourceId']) < 1)) { + $invalidProperties[] = "invalid value for 'resourceId', the character length must be bigger than or equal to 1."; + } + if (!is_null($this->container['resourceId']) && !preg_match("/^[\\w-]+$/", $this->container['resourceId'])) { + $invalidProperties[] = "invalid value for 'resourceId', must be conform to the pattern /^[\\w-]+$/."; + } + if ($this->container['resourceOwnerAccount'] === null) { + $invalidProperties[] = "'resourceOwnerAccount' can't be null"; + } + if ((mb_strlen($this->container['resourceOwnerAccount']) > 36)) { + $invalidProperties[] = "invalid value for 'resourceOwnerAccount', the character length must be smaller than or equal to 36."; + } + if ((mb_strlen($this->container['resourceOwnerAccount']) < 1)) { + $invalidProperties[] = "invalid value for 'resourceOwnerAccount', the character length must be bigger than or equal to 1."; + } + if (!preg_match("/^[\\w-]+$/", $this->container['resourceOwnerAccount'])) { + $invalidProperties[] = "invalid value for 'resourceOwnerAccount', must be conform to the pattern /^[\\w-]+$/."; + } + if ($this->container['resourceType'] === null) { + $invalidProperties[] = "'resourceType' can't be null"; + } + if ($this->container['status'] === null) { + $invalidProperties[] = "'status' can't be null"; + } + $allowedValues = $this->getStatusAllowableValues(); + if (!is_null($this->container['status']) && !in_array($this->container['status'], $allowedValues, true)) { + $invalidProperties[] = sprintf( + "invalid value for 'status', must be one of '%s'", + implode("', '", $allowedValues) + ); + } + + if ($this->container['updatedAt'] === null) { + $invalidProperties[] = "'updatedAt' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + /** + * Gets action + * 访问信任区域内资源的外部主体。 + * + * @return string[] + */ + public function getAction() + { + return $this->container['action']; + } + + /** + * Sets action + * + * @param string[] $action 访问信任区域内资源的外部主体。 + * + * @return $this + */ + public function setAction($action) + { + $this->container['action'] = $action; + return $this; + } + + /** + * Gets analyzedAt + * 分析资源的时间。 + * + * @return \DateTime + */ + public function getAnalyzedAt() + { + return $this->container['analyzedAt']; + } + + /** + * Sets analyzedAt + * + * @param \DateTime $analyzedAt 分析资源的时间。 + * + * @return $this + */ + public function setAnalyzedAt($analyzedAt) + { + $this->container['analyzedAt'] = $analyzedAt; + return $this; + } + + /** + * Gets condition + * condition + * + * @return \HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\FindingCondition[] + */ + public function getCondition() + { + return $this->container['condition']; + } + + /** + * Sets condition + * + * @param \HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\FindingCondition[] $condition condition + * + * @return $this + */ + public function setCondition($condition) + { + $this->container['condition'] = $condition; + return $this; + } + + /** + * Gets createdAt + * 生成查找结果的时间。 + * + * @return \DateTime + */ + public function getCreatedAt() + { + return $this->container['createdAt']; + } + + /** + * Sets createdAt + * + * @param \DateTime $createdAt 生成查找结果的时间。 + * + * @return $this + */ + public function setCreatedAt($createdAt) + { + $this->container['createdAt'] = $createdAt; + return $this; + } + + /** + * Gets id + * 要检索的结果的ID。 + * + * @return string + */ + public function getId() + { + return $this->container['id']; + } + + /** + * Sets id + * + * @param string $id 要检索的结果的ID。 + * + * @return $this + */ + public function setId($id) + { + $this->container['id'] = $id; + return $this; + } + + /** + * Gets isPublic + * 表示生成查找结果的策略是否允许公共访问资源。 + * + * @return bool + */ + public function getIsPublic() + { + return $this->container['isPublic']; + } + + /** + * Sets isPublic + * + * @param bool $isPublic 表示生成查找结果的策略是否允许公共访问资源。 + * + * @return $this + */ + public function setIsPublic($isPublic) + { + $this->container['isPublic'] = $isPublic; + return $this; + } + + /** + * Gets principal + * principal + * + * @return \HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\FindingPrincipal + */ + public function getPrincipal() + { + return $this->container['principal']; + } + + /** + * Sets principal + * + * @param \HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\FindingPrincipal $principal principal + * + * @return $this + */ + public function setPrincipal($principal) + { + $this->container['principal'] = $principal; + return $this; + } + + /** + * Gets resource + * 唯一的资源名称。 + * + * @return string + */ + public function getResource() + { + return $this->container['resource']; + } + + /** + * Sets resource + * + * @param string $resource 唯一的资源名称。 + * + * @return $this + */ + public function setResource($resource) + { + $this->container['resource'] = $resource; + return $this; + } + + /** + * Gets resourceId + * 资源的唯一标识符。 + * + * @return string|null + */ + public function getResourceId() + { + return $this->container['resourceId']; + } + + /** + * Sets resourceId + * + * @param string|null $resourceId 资源的唯一标识符。 + * + * @return $this + */ + public function setResourceId($resourceId) + { + $this->container['resourceId'] = $resourceId; + return $this; + } + + /** + * Gets resourceOwnerAccount + * 拥有资源的帐户ID。 + * + * @return string + */ + public function getResourceOwnerAccount() + { + return $this->container['resourceOwnerAccount']; + } + + /** + * Sets resourceOwnerAccount + * + * @param string $resourceOwnerAccount 拥有资源的帐户ID。 + * + * @return $this + */ + public function setResourceOwnerAccount($resourceOwnerAccount) + { + $this->container['resourceOwnerAccount'] = $resourceOwnerAccount; + return $this; + } + + /** + * Gets resourceType + * resourceType + * + * @return \HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\ResourceType + */ + public function getResourceType() + { + return $this->container['resourceType']; + } + + /** + * Sets resourceType + * + * @param \HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\ResourceType $resourceType resourceType + * + * @return $this + */ + public function setResourceType($resourceType) + { + $this->container['resourceType'] = $resourceType; + return $this; + } + + /** + * Gets sources + * sources + * + * @return \HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\FindingSourceType[]|null + */ + public function getSources() + { + return $this->container['sources']; + } + + /** + * Sets sources + * + * @param \HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\FindingSourceType[]|null $sources sources + * + * @return $this + */ + public function setSources($sources) + { + $this->container['sources'] = $sources; + return $this; + } + + /** + * Gets status + * 结果的当前状态。 + * + * @return string + */ + public function getStatus() + { + return $this->container['status']; + } + + /** + * Sets status + * + * @param string $status 结果的当前状态。 + * + * @return $this + */ + public function setStatus($status) + { + $this->container['status'] = $status; + return $this; + } + + /** + * Gets updatedAt + * 更新调查结果的时间。 + * + * @return \DateTime + */ + public function getUpdatedAt() + { + return $this->container['updatedAt']; + } + + /** + * Sets updatedAt + * + * @param \DateTime $updatedAt 更新调查结果的时间。 + * + * @return $this + */ + public function setUpdatedAt($updatedAt) + { + $this->container['updatedAt'] = $updatedAt; + return $this; + } + + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } +} + diff --git a/Services/IAMAccessAnalyzer/V1/Model/FindingCondition.php b/Services/IAMAccessAnalyzer/V1/Model/FindingCondition.php new file mode 100644 index 000000000..5fd7451c6 --- /dev/null +++ b/Services/IAMAccessAnalyzer/V1/Model/FindingCondition.php @@ -0,0 +1,306 @@ + 'string', + 'value' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * key 标签\"键\"的标识符或名称。 + * value 标签\"键\"对应的\"值\"。 + * + * @var string[] + */ + protected static $openAPIFormats = [ + 'key' => null, + 'value' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * key 标签\"键\"的标识符或名称。 + * value 标签\"键\"对应的\"值\"。 + * + * @var string[] + */ + protected static $attributeMap = [ + 'key' => 'key', + 'value' => 'value' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * key 标签\"键\"的标识符或名称。 + * value 标签\"键\"对应的\"值\"。 + * + * @var string[] + */ + protected static $setters = [ + 'key' => 'setKey', + 'value' => 'setValue' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * key 标签\"键\"的标识符或名称。 + * value 标签\"键\"对应的\"值\"。 + * + * @var string[] + */ + protected static $getters = [ + 'key' => 'getKey', + 'value' => 'getValue' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$openAPIModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['key'] = isset($data['key']) ? $data['key'] : null; + $this->container['value'] = isset($data['value']) ? $data['value'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + if ($this->container['key'] === null) { + $invalidProperties[] = "'key' can't be null"; + } + if ($this->container['value'] === null) { + $invalidProperties[] = "'value' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + /** + * Gets key + * 标签\"键\"的标识符或名称。 + * + * @return string + */ + public function getKey() + { + return $this->container['key']; + } + + /** + * Sets key + * + * @param string $key 标签\"键\"的标识符或名称。 + * + * @return $this + */ + public function setKey($key) + { + $this->container['key'] = $key; + return $this; + } + + /** + * Gets value + * 标签\"键\"对应的\"值\"。 + * + * @return string + */ + public function getValue() + { + return $this->container['value']; + } + + /** + * Sets value + * + * @param string $value 标签\"键\"对应的\"值\"。 + * + * @return $this + */ + public function setValue($value) + { + $this->container['value'] = $value; + return $this; + } + + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } +} + diff --git a/Services/IAMAccessAnalyzer/V1/Model/FindingFilter.php b/Services/IAMAccessAnalyzer/V1/Model/FindingFilter.php new file mode 100644 index 000000000..b22297694 --- /dev/null +++ b/Services/IAMAccessAnalyzer/V1/Model/FindingFilter.php @@ -0,0 +1,363 @@ + '\HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\Criterion', + 'key' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * criterion criterion + * key 过滤键。 + * + * @var string[] + */ + protected static $openAPIFormats = [ + 'criterion' => null, + 'key' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * criterion criterion + * key 过滤键。 + * + * @var string[] + */ + protected static $attributeMap = [ + 'criterion' => 'criterion', + 'key' => 'key' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * criterion criterion + * key 过滤键。 + * + * @var string[] + */ + protected static $setters = [ + 'criterion' => 'setCriterion', + 'key' => 'setKey' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * criterion criterion + * key 过滤键。 + * + * @var string[] + */ + protected static $getters = [ + 'criterion' => 'getCriterion', + 'key' => 'getKey' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$openAPIModelName; + } + const KEY_RESOURCE = 'resource'; + const KEY_RESOURCE_TYPE = 'resource_type'; + const KEY_RESOURCE_OWNER_ACCOUNT = 'resource_owner_account'; + const KEY_IS_PUBLIC = 'is_public'; + const KEY_ID = 'id'; + const KEY_STATUS = 'status'; + const KEY_PRINCIPAL_TYPE = 'principal_type'; + const KEY_PRINCIPAL_IDENTIFIER = 'principal_identifier'; + const KEY_CHANGE_TYPE = 'change_type'; + const KEY_EXISTING_FINDING_ID = 'existing_finding_id'; + const KEY_EXISTING_FINDING_STATUS = 'existing_finding_status'; + const KEY_CONDITION_GPRINCIPAL_URN = 'condition.g:PrincipalUrn'; + const KEY_CONDITION_GPRINCIPAL_ID = 'condition.g:PrincipalId'; + const KEY_CONDITION_GPRINCIPAL_ACCOUNT = 'condition.g:PrincipalAccount'; + const KEY_CONDITION_GPRINCIPAL_ORG_ID = 'condition.g:PrincipalOrgId'; + const KEY_CONDITION_GPRINCIPAL_ORG_PATH = 'condition.g:PrincipalOrgPath'; + const KEY_CONDITION_GPRINCIPAL_ORG_MANAGEMENT_ACCOUNT_ID = 'condition.g:PrincipalOrgManagementAccountId'; + const KEY_CONDITION_GSOURCE_IP = 'condition.g:SourceIp'; + const KEY_CONDITION_GSOURCE_VPC = 'condition.g:SourceVpc'; + + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getKeyAllowableValues() + { + return [ + self::KEY_RESOURCE, + self::KEY_RESOURCE_TYPE, + self::KEY_RESOURCE_OWNER_ACCOUNT, + self::KEY_IS_PUBLIC, + self::KEY_ID, + self::KEY_STATUS, + self::KEY_PRINCIPAL_TYPE, + self::KEY_PRINCIPAL_IDENTIFIER, + self::KEY_CHANGE_TYPE, + self::KEY_EXISTING_FINDING_ID, + self::KEY_EXISTING_FINDING_STATUS, + self::KEY_CONDITION_GPRINCIPAL_URN, + self::KEY_CONDITION_GPRINCIPAL_ID, + self::KEY_CONDITION_GPRINCIPAL_ACCOUNT, + self::KEY_CONDITION_GPRINCIPAL_ORG_ID, + self::KEY_CONDITION_GPRINCIPAL_ORG_PATH, + self::KEY_CONDITION_GPRINCIPAL_ORG_MANAGEMENT_ACCOUNT_ID, + self::KEY_CONDITION_GSOURCE_IP, + self::KEY_CONDITION_GSOURCE_VPC, + ]; + } + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['criterion'] = isset($data['criterion']) ? $data['criterion'] : null; + $this->container['key'] = isset($data['key']) ? $data['key'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + if ($this->container['criterion'] === null) { + $invalidProperties[] = "'criterion' can't be null"; + } + if ($this->container['key'] === null) { + $invalidProperties[] = "'key' can't be null"; + } + $allowedValues = $this->getKeyAllowableValues(); + if (!is_null($this->container['key']) && !in_array($this->container['key'], $allowedValues, true)) { + $invalidProperties[] = sprintf( + "invalid value for 'key', must be one of '%s'", + implode("', '", $allowedValues) + ); + } + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + /** + * Gets criterion + * criterion + * + * @return \HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\Criterion + */ + public function getCriterion() + { + return $this->container['criterion']; + } + + /** + * Sets criterion + * + * @param \HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\Criterion $criterion criterion + * + * @return $this + */ + public function setCriterion($criterion) + { + $this->container['criterion'] = $criterion; + return $this; + } + + /** + * Gets key + * 过滤键。 + * + * @return string + */ + public function getKey() + { + return $this->container['key']; + } + + /** + * Sets key + * + * @param string $key 过滤键。 + * + * @return $this + */ + public function setKey($key) + { + $this->container['key'] = $key; + return $this; + } + + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } +} + diff --git a/Services/IAMAccessAnalyzer/V1/Model/FindingId.php b/Services/IAMAccessAnalyzer/V1/Model/FindingId.php new file mode 100644 index 000000000..1c66275a7 --- /dev/null +++ b/Services/IAMAccessAnalyzer/V1/Model/FindingId.php @@ -0,0 +1,235 @@ +listInvalidProperties()) === 0; + } + + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } +} + diff --git a/Services/IAMAccessAnalyzer/V1/Model/FindingPrincipal.php b/Services/IAMAccessAnalyzer/V1/Model/FindingPrincipal.php new file mode 100644 index 000000000..470f4df92 --- /dev/null +++ b/Services/IAMAccessAnalyzer/V1/Model/FindingPrincipal.php @@ -0,0 +1,343 @@ + 'string', + 'type' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * identifier 检索结果的身份的类型。 + * type 检索结果的标识符。 + * + * @var string[] + */ + protected static $openAPIFormats = [ + 'identifier' => null, + 'type' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * identifier 检索结果的身份的类型。 + * type 检索结果的标识符。 + * + * @var string[] + */ + protected static $attributeMap = [ + 'identifier' => 'identifier', + 'type' => 'type' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * identifier 检索结果的身份的类型。 + * type 检索结果的标识符。 + * + * @var string[] + */ + protected static $setters = [ + 'identifier' => 'setIdentifier', + 'type' => 'setType' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * identifier 检索结果的身份的类型。 + * type 检索结果的标识符。 + * + * @var string[] + */ + protected static $getters = [ + 'identifier' => 'getIdentifier', + 'type' => 'getType' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$openAPIModelName; + } + const TYPE_ALL_PRINCIPAL = 'all_principal'; + const TYPE_ACCOUNT = 'account'; + const TYPE_ALL_USER_IN_ACCOUNT = 'all_user_in_account'; + const TYPE_ALL_AGENCY_IN_ACCOUNT = 'all_agency_in_account'; + const TYPE_ALL_IDENTITY_PROVIDER_IN_ACCOUNT = 'all_identity_provider_in_account'; + const TYPE_SPECIFIC_USER = 'specific_user'; + const TYPE_SPECIFIC_AGENCY = 'specific_agency'; + const TYPE_SPECIFIC_GROUP = 'specific_group'; + const TYPE_SPECIFIC_IDENTITY_PROVIDER = 'specific_identity_provider'; + + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getTypeAllowableValues() + { + return [ + self::TYPE_ALL_PRINCIPAL, + self::TYPE_ACCOUNT, + self::TYPE_ALL_USER_IN_ACCOUNT, + self::TYPE_ALL_AGENCY_IN_ACCOUNT, + self::TYPE_ALL_IDENTITY_PROVIDER_IN_ACCOUNT, + self::TYPE_SPECIFIC_USER, + self::TYPE_SPECIFIC_AGENCY, + self::TYPE_SPECIFIC_GROUP, + self::TYPE_SPECIFIC_IDENTITY_PROVIDER, + ]; + } + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['identifier'] = isset($data['identifier']) ? $data['identifier'] : null; + $this->container['type'] = isset($data['type']) ? $data['type'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + if ($this->container['identifier'] === null) { + $invalidProperties[] = "'identifier' can't be null"; + } + if ($this->container['type'] === null) { + $invalidProperties[] = "'type' can't be null"; + } + $allowedValues = $this->getTypeAllowableValues(); + if (!is_null($this->container['type']) && !in_array($this->container['type'], $allowedValues, true)) { + $invalidProperties[] = sprintf( + "invalid value for 'type', must be one of '%s'", + implode("', '", $allowedValues) + ); + } + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + /** + * Gets identifier + * 检索结果的身份的类型。 + * + * @return string + */ + public function getIdentifier() + { + return $this->container['identifier']; + } + + /** + * Sets identifier + * + * @param string $identifier 检索结果的身份的类型。 + * + * @return $this + */ + public function setIdentifier($identifier) + { + $this->container['identifier'] = $identifier; + return $this; + } + + /** + * Gets type + * 检索结果的标识符。 + * + * @return string + */ + public function getType() + { + return $this->container['type']; + } + + /** + * Sets type + * + * @param string $type 检索结果的标识符。 + * + * @return $this + */ + public function setType($type) + { + $this->container['type'] = $type; + return $this; + } + + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } +} + diff --git a/Services/IAMAccessAnalyzer/V1/Model/FindingSourceType.php b/Services/IAMAccessAnalyzer/V1/Model/FindingSourceType.php new file mode 100644 index 000000000..701bd06b5 --- /dev/null +++ b/Services/IAMAccessAnalyzer/V1/Model/FindingSourceType.php @@ -0,0 +1,28 @@ + 'string', + 'accessPreviewId' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * analyzerId 分析器的唯一标识符。 + * accessPreviewId 分析预览的唯一标识符。 + * + * @var string[] + */ + protected static $openAPIFormats = [ + 'analyzerId' => null, + 'accessPreviewId' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * analyzerId 分析器的唯一标识符。 + * accessPreviewId 分析预览的唯一标识符。 + * + * @var string[] + */ + protected static $attributeMap = [ + 'analyzerId' => 'analyzer_id', + 'accessPreviewId' => 'access_preview_id' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * analyzerId 分析器的唯一标识符。 + * accessPreviewId 分析预览的唯一标识符。 + * + * @var string[] + */ + protected static $setters = [ + 'analyzerId' => 'setAnalyzerId', + 'accessPreviewId' => 'setAccessPreviewId' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * analyzerId 分析器的唯一标识符。 + * accessPreviewId 分析预览的唯一标识符。 + * + * @var string[] + */ + protected static $getters = [ + 'analyzerId' => 'getAnalyzerId', + 'accessPreviewId' => 'getAccessPreviewId' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$openAPIModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['analyzerId'] = isset($data['analyzerId']) ? $data['analyzerId'] : null; + $this->container['accessPreviewId'] = isset($data['accessPreviewId']) ? $data['accessPreviewId'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + if ($this->container['analyzerId'] === null) { + $invalidProperties[] = "'analyzerId' can't be null"; + } + if ((mb_strlen($this->container['analyzerId']) > 36)) { + $invalidProperties[] = "invalid value for 'analyzerId', the character length must be smaller than or equal to 36."; + } + if ((mb_strlen($this->container['analyzerId']) < 1)) { + $invalidProperties[] = "invalid value for 'analyzerId', the character length must be bigger than or equal to 1."; + } + if (!preg_match("/^[\\w-]+$/", $this->container['analyzerId'])) { + $invalidProperties[] = "invalid value for 'analyzerId', must be conform to the pattern /^[\\w-]+$/."; + } + if ($this->container['accessPreviewId'] === null) { + $invalidProperties[] = "'accessPreviewId' can't be null"; + } + if ((mb_strlen($this->container['accessPreviewId']) > 36)) { + $invalidProperties[] = "invalid value for 'accessPreviewId', the character length must be smaller than or equal to 36."; + } + if ((mb_strlen($this->container['accessPreviewId']) < 1)) { + $invalidProperties[] = "invalid value for 'accessPreviewId', the character length must be bigger than or equal to 1."; + } + if (!preg_match("/^[\\w-]+$/", $this->container['accessPreviewId'])) { + $invalidProperties[] = "invalid value for 'accessPreviewId', must be conform to the pattern /^[\\w-]+$/."; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + /** + * Gets analyzerId + * 分析器的唯一标识符。 + * + * @return string + */ + public function getAnalyzerId() + { + return $this->container['analyzerId']; + } + + /** + * Sets analyzerId + * + * @param string $analyzerId 分析器的唯一标识符。 + * + * @return $this + */ + public function setAnalyzerId($analyzerId) + { + $this->container['analyzerId'] = $analyzerId; + return $this; + } + + /** + * Gets accessPreviewId + * 分析预览的唯一标识符。 + * + * @return string + */ + public function getAccessPreviewId() + { + return $this->container['accessPreviewId']; + } + + /** + * Sets accessPreviewId + * + * @param string $accessPreviewId 分析预览的唯一标识符。 + * + * @return $this + */ + public function setAccessPreviewId($accessPreviewId) + { + $this->container['accessPreviewId'] = $accessPreviewId; + return $this; + } + + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } +} + diff --git a/Services/IAMAccessAnalyzer/V1/Model/GetAccessPreviewResponse.php b/Services/IAMAccessAnalyzer/V1/Model/GetAccessPreviewResponse.php new file mode 100644 index 000000000..e45cf8f46 --- /dev/null +++ b/Services/IAMAccessAnalyzer/V1/Model/GetAccessPreviewResponse.php @@ -0,0 +1,266 @@ + '\HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\AccessPreview' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * accessPreview accessPreview + * + * @var string[] + */ + protected static $openAPIFormats = [ + 'accessPreview' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * accessPreview accessPreview + * + * @var string[] + */ + protected static $attributeMap = [ + 'accessPreview' => 'access_preview' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * accessPreview accessPreview + * + * @var string[] + */ + protected static $setters = [ + 'accessPreview' => 'setAccessPreview' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * accessPreview accessPreview + * + * @var string[] + */ + protected static $getters = [ + 'accessPreview' => 'getAccessPreview' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$openAPIModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['accessPreview'] = isset($data['accessPreview']) ? $data['accessPreview'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + /** + * Gets accessPreview + * accessPreview + * + * @return \HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\AccessPreview|null + */ + public function getAccessPreview() + { + return $this->container['accessPreview']; + } + + /** + * Sets accessPreview + * + * @param \HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\AccessPreview|null $accessPreview accessPreview + * + * @return $this + */ + public function setAccessPreview($accessPreview) + { + $this->container['accessPreview'] = $accessPreview; + return $this; + } + + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } +} + diff --git a/Services/IAMAccessAnalyzer/V1/Model/IAMAgency.php b/Services/IAMAccessAnalyzer/V1/Model/IAMAgency.php new file mode 100644 index 000000000..96c9bb99d --- /dev/null +++ b/Services/IAMAccessAnalyzer/V1/Model/IAMAgency.php @@ -0,0 +1,274 @@ + 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * trustPolicy 此策略的json格式策略文档。 + * + * @var string[] + */ + protected static $openAPIFormats = [ + 'trustPolicy' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * trustPolicy 此策略的json格式策略文档。 + * + * @var string[] + */ + protected static $attributeMap = [ + 'trustPolicy' => 'trust_policy' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * trustPolicy 此策略的json格式策略文档。 + * + * @var string[] + */ + protected static $setters = [ + 'trustPolicy' => 'setTrustPolicy' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * trustPolicy 此策略的json格式策略文档。 + * + * @var string[] + */ + protected static $getters = [ + 'trustPolicy' => 'getTrustPolicy' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$openAPIModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['trustPolicy'] = isset($data['trustPolicy']) ? $data['trustPolicy'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + if ($this->container['trustPolicy'] === null) { + $invalidProperties[] = "'trustPolicy' can't be null"; + } + if ((mb_strlen($this->container['trustPolicy']) > 131072)) { + $invalidProperties[] = "invalid value for 'trustPolicy', the character length must be smaller than or equal to 131072."; + } + if ((mb_strlen($this->container['trustPolicy']) < 0)) { + $invalidProperties[] = "invalid value for 'trustPolicy', the character length must be bigger than or equal to 0."; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + /** + * Gets trustPolicy + * 此策略的json格式策略文档。 + * + * @return string + */ + public function getTrustPolicy() + { + return $this->container['trustPolicy']; + } + + /** + * Sets trustPolicy + * + * @param string $trustPolicy 此策略的json格式策略文档。 + * + * @return $this + */ + public function setTrustPolicy($trustPolicy) + { + $this->container['trustPolicy'] = $trustPolicy; + return $this; + } + + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } +} + diff --git a/Services/IAMAccessAnalyzer/V1/Model/Limit.php b/Services/IAMAccessAnalyzer/V1/Model/Limit.php new file mode 100644 index 000000000..f5b43f2bc --- /dev/null +++ b/Services/IAMAccessAnalyzer/V1/Model/Limit.php @@ -0,0 +1,235 @@ +listInvalidProperties()) === 0; + } + + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } +} + diff --git a/Services/IAMAccessAnalyzer/V1/Model/ListAccessPreviewsRequest.php b/Services/IAMAccessAnalyzer/V1/Model/ListAccessPreviewsRequest.php new file mode 100644 index 000000000..3b5f382f6 --- /dev/null +++ b/Services/IAMAccessAnalyzer/V1/Model/ListAccessPreviewsRequest.php @@ -0,0 +1,362 @@ + 'string', + 'limit' => 'int', + 'marker' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * analyzerId 分析器的唯一标识符。 + * limit 单页最大结果数。 + * marker 页面标记。 + * + * @var string[] + */ + protected static $openAPIFormats = [ + 'analyzerId' => null, + 'limit' => 'int32', + 'marker' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * analyzerId 分析器的唯一标识符。 + * limit 单页最大结果数。 + * marker 页面标记。 + * + * @var string[] + */ + protected static $attributeMap = [ + 'analyzerId' => 'analyzer_id', + 'limit' => 'limit', + 'marker' => 'marker' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * analyzerId 分析器的唯一标识符。 + * limit 单页最大结果数。 + * marker 页面标记。 + * + * @var string[] + */ + protected static $setters = [ + 'analyzerId' => 'setAnalyzerId', + 'limit' => 'setLimit', + 'marker' => 'setMarker' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * analyzerId 分析器的唯一标识符。 + * limit 单页最大结果数。 + * marker 页面标记。 + * + * @var string[] + */ + protected static $getters = [ + 'analyzerId' => 'getAnalyzerId', + 'limit' => 'getLimit', + 'marker' => 'getMarker' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$openAPIModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['analyzerId'] = isset($data['analyzerId']) ? $data['analyzerId'] : null; + $this->container['limit'] = isset($data['limit']) ? $data['limit'] : null; + $this->container['marker'] = isset($data['marker']) ? $data['marker'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + if ($this->container['analyzerId'] === null) { + $invalidProperties[] = "'analyzerId' can't be null"; + } + if ((mb_strlen($this->container['analyzerId']) > 36)) { + $invalidProperties[] = "invalid value for 'analyzerId', the character length must be smaller than or equal to 36."; + } + if ((mb_strlen($this->container['analyzerId']) < 1)) { + $invalidProperties[] = "invalid value for 'analyzerId', the character length must be bigger than or equal to 1."; + } + if (!preg_match("/^[\\w-]+$/", $this->container['analyzerId'])) { + $invalidProperties[] = "invalid value for 'analyzerId', must be conform to the pattern /^[\\w-]+$/."; + } + if (!is_null($this->container['limit']) && ($this->container['limit'] > 200)) { + $invalidProperties[] = "invalid value for 'limit', must be smaller than or equal to 200."; + } + if (!is_null($this->container['limit']) && ($this->container['limit'] < 1)) { + $invalidProperties[] = "invalid value for 'limit', must be bigger than or equal to 1."; + } + if (!is_null($this->container['marker']) && (mb_strlen($this->container['marker']) > 400)) { + $invalidProperties[] = "invalid value for 'marker', the character length must be smaller than or equal to 400."; + } + if (!is_null($this->container['marker']) && (mb_strlen($this->container['marker']) < 4)) { + $invalidProperties[] = "invalid value for 'marker', the character length must be bigger than or equal to 4."; + } + if (!is_null($this->container['marker']) && !preg_match("/^[A-Za-z0-9+\/=\\-_]+$/", $this->container['marker'])) { + $invalidProperties[] = "invalid value for 'marker', must be conform to the pattern /^[A-Za-z0-9+\/=\\-_]+$/."; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + /** + * Gets analyzerId + * 分析器的唯一标识符。 + * + * @return string + */ + public function getAnalyzerId() + { + return $this->container['analyzerId']; + } + + /** + * Sets analyzerId + * + * @param string $analyzerId 分析器的唯一标识符。 + * + * @return $this + */ + public function setAnalyzerId($analyzerId) + { + $this->container['analyzerId'] = $analyzerId; + return $this; + } + + /** + * Gets limit + * 单页最大结果数。 + * + * @return int|null + */ + public function getLimit() + { + return $this->container['limit']; + } + + /** + * Sets limit + * + * @param int|null $limit 单页最大结果数。 + * + * @return $this + */ + public function setLimit($limit) + { + $this->container['limit'] = $limit; + return $this; + } + + /** + * Gets marker + * 页面标记。 + * + * @return string|null + */ + public function getMarker() + { + return $this->container['marker']; + } + + /** + * Sets marker + * + * @param string|null $marker 页面标记。 + * + * @return $this + */ + public function setMarker($marker) + { + $this->container['marker'] = $marker; + return $this; + } + + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } +} + diff --git a/Services/IAMAccessAnalyzer/V1/Model/ListAccessPreviewsResponse.php b/Services/IAMAccessAnalyzer/V1/Model/ListAccessPreviewsResponse.php new file mode 100644 index 000000000..b7918cbd4 --- /dev/null +++ b/Services/IAMAccessAnalyzer/V1/Model/ListAccessPreviewsResponse.php @@ -0,0 +1,301 @@ + '\HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\AccessPreviewSummary[]', + 'pageInfo' => '\HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\PageInfo' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * accessPreviews accessPreviews + * pageInfo pageInfo + * + * @var string[] + */ + protected static $openAPIFormats = [ + 'accessPreviews' => null, + 'pageInfo' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * accessPreviews accessPreviews + * pageInfo pageInfo + * + * @var string[] + */ + protected static $attributeMap = [ + 'accessPreviews' => 'access_previews', + 'pageInfo' => 'page_info' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * accessPreviews accessPreviews + * pageInfo pageInfo + * + * @var string[] + */ + protected static $setters = [ + 'accessPreviews' => 'setAccessPreviews', + 'pageInfo' => 'setPageInfo' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * accessPreviews accessPreviews + * pageInfo pageInfo + * + * @var string[] + */ + protected static $getters = [ + 'accessPreviews' => 'getAccessPreviews', + 'pageInfo' => 'getPageInfo' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$openAPIModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['accessPreviews'] = isset($data['accessPreviews']) ? $data['accessPreviews'] : null; + $this->container['pageInfo'] = isset($data['pageInfo']) ? $data['pageInfo'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + /** + * Gets accessPreviews + * accessPreviews + * + * @return \HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\AccessPreviewSummary[]|null + */ + public function getAccessPreviews() + { + return $this->container['accessPreviews']; + } + + /** + * Sets accessPreviews + * + * @param \HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\AccessPreviewSummary[]|null $accessPreviews accessPreviews + * + * @return $this + */ + public function setAccessPreviews($accessPreviews) + { + $this->container['accessPreviews'] = $accessPreviews; + return $this; + } + + /** + * Gets pageInfo + * pageInfo + * + * @return \HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\PageInfo|null + */ + public function getPageInfo() + { + return $this->container['pageInfo']; + } + + /** + * Sets pageInfo + * + * @param \HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\PageInfo|null $pageInfo pageInfo + * + * @return $this + */ + public function setPageInfo($pageInfo) + { + $this->container['pageInfo'] = $pageInfo; + return $this; + } + + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } +} + diff --git a/Services/IAMAccessAnalyzer/V1/Model/ListAnalyzersRequest.php b/Services/IAMAccessAnalyzer/V1/Model/ListAnalyzersRequest.php new file mode 100644 index 000000000..8d3534561 --- /dev/null +++ b/Services/IAMAccessAnalyzer/V1/Model/ListAnalyzersRequest.php @@ -0,0 +1,350 @@ + 'int', + 'marker' => 'string', + 'type' => '\HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\AnalyzerType' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * limit 单页最大结果数。 + * marker 页面标记。 + * type 分析器的类型。 + * + * @var string[] + */ + protected static $openAPIFormats = [ + 'limit' => 'int32', + 'marker' => null, + 'type' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * limit 单页最大结果数。 + * marker 页面标记。 + * type 分析器的类型。 + * + * @var string[] + */ + protected static $attributeMap = [ + 'limit' => 'limit', + 'marker' => 'marker', + 'type' => 'type' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * limit 单页最大结果数。 + * marker 页面标记。 + * type 分析器的类型。 + * + * @var string[] + */ + protected static $setters = [ + 'limit' => 'setLimit', + 'marker' => 'setMarker', + 'type' => 'setType' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * limit 单页最大结果数。 + * marker 页面标记。 + * type 分析器的类型。 + * + * @var string[] + */ + protected static $getters = [ + 'limit' => 'getLimit', + 'marker' => 'getMarker', + 'type' => 'getType' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$openAPIModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['limit'] = isset($data['limit']) ? $data['limit'] : null; + $this->container['marker'] = isset($data['marker']) ? $data['marker'] : null; + $this->container['type'] = isset($data['type']) ? $data['type'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + if (!is_null($this->container['limit']) && ($this->container['limit'] > 200)) { + $invalidProperties[] = "invalid value for 'limit', must be smaller than or equal to 200."; + } + if (!is_null($this->container['limit']) && ($this->container['limit'] < 1)) { + $invalidProperties[] = "invalid value for 'limit', must be bigger than or equal to 1."; + } + if (!is_null($this->container['marker']) && (mb_strlen($this->container['marker']) > 400)) { + $invalidProperties[] = "invalid value for 'marker', the character length must be smaller than or equal to 400."; + } + if (!is_null($this->container['marker']) && (mb_strlen($this->container['marker']) < 4)) { + $invalidProperties[] = "invalid value for 'marker', the character length must be bigger than or equal to 4."; + } + if (!is_null($this->container['marker']) && !preg_match("/^[A-Za-z0-9+\/=\\-_]+$/", $this->container['marker'])) { + $invalidProperties[] = "invalid value for 'marker', must be conform to the pattern /^[A-Za-z0-9+\/=\\-_]+$/."; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + /** + * Gets limit + * 单页最大结果数。 + * + * @return int|null + */ + public function getLimit() + { + return $this->container['limit']; + } + + /** + * Sets limit + * + * @param int|null $limit 单页最大结果数。 + * + * @return $this + */ + public function setLimit($limit) + { + $this->container['limit'] = $limit; + return $this; + } + + /** + * Gets marker + * 页面标记。 + * + * @return string|null + */ + public function getMarker() + { + return $this->container['marker']; + } + + /** + * Sets marker + * + * @param string|null $marker 页面标记。 + * + * @return $this + */ + public function setMarker($marker) + { + $this->container['marker'] = $marker; + return $this; + } + + /** + * Gets type + * 分析器的类型。 + * + * @return \HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\AnalyzerType|null + */ + public function getType() + { + return $this->container['type']; + } + + /** + * Sets type + * + * @param \HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\AnalyzerType|null $type 分析器的类型。 + * + * @return $this + */ + public function setType($type) + { + $this->container['type'] = $type; + return $this; + } + + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } +} + diff --git a/Services/IAMAccessAnalyzer/V1/Model/ListAnalyzersResponse.php b/Services/IAMAccessAnalyzer/V1/Model/ListAnalyzersResponse.php new file mode 100644 index 000000000..616f4ffb0 --- /dev/null +++ b/Services/IAMAccessAnalyzer/V1/Model/ListAnalyzersResponse.php @@ -0,0 +1,301 @@ + '\HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\AnalyzerSummary[]', + 'pageInfo' => '\HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\PageInfo' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * analyzers analyzers + * pageInfo pageInfo + * + * @var string[] + */ + protected static $openAPIFormats = [ + 'analyzers' => null, + 'pageInfo' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * analyzers analyzers + * pageInfo pageInfo + * + * @var string[] + */ + protected static $attributeMap = [ + 'analyzers' => 'analyzers', + 'pageInfo' => 'page_info' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * analyzers analyzers + * pageInfo pageInfo + * + * @var string[] + */ + protected static $setters = [ + 'analyzers' => 'setAnalyzers', + 'pageInfo' => 'setPageInfo' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * analyzers analyzers + * pageInfo pageInfo + * + * @var string[] + */ + protected static $getters = [ + 'analyzers' => 'getAnalyzers', + 'pageInfo' => 'getPageInfo' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$openAPIModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['analyzers'] = isset($data['analyzers']) ? $data['analyzers'] : null; + $this->container['pageInfo'] = isset($data['pageInfo']) ? $data['pageInfo'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + /** + * Gets analyzers + * analyzers + * + * @return \HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\AnalyzerSummary[]|null + */ + public function getAnalyzers() + { + return $this->container['analyzers']; + } + + /** + * Sets analyzers + * + * @param \HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\AnalyzerSummary[]|null $analyzers analyzers + * + * @return $this + */ + public function setAnalyzers($analyzers) + { + $this->container['analyzers'] = $analyzers; + return $this; + } + + /** + * Gets pageInfo + * pageInfo + * + * @return \HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\PageInfo|null + */ + public function getPageInfo() + { + return $this->container['pageInfo']; + } + + /** + * Sets pageInfo + * + * @param \HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\PageInfo|null $pageInfo pageInfo + * + * @return $this + */ + public function setPageInfo($pageInfo) + { + $this->container['pageInfo'] = $pageInfo; + return $this; + } + + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } +} + diff --git a/Services/IAMAccessAnalyzer/V1/Model/ListArchiveRulesRequest.php b/Services/IAMAccessAnalyzer/V1/Model/ListArchiveRulesRequest.php new file mode 100644 index 000000000..2caaed141 --- /dev/null +++ b/Services/IAMAccessAnalyzer/V1/Model/ListArchiveRulesRequest.php @@ -0,0 +1,362 @@ + 'string', + 'limit' => 'int', + 'marker' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * analyzerId 分析器的唯一标识符。 + * limit 单页最大结果数。 + * marker 页面标记。 + * + * @var string[] + */ + protected static $openAPIFormats = [ + 'analyzerId' => null, + 'limit' => 'int32', + 'marker' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * analyzerId 分析器的唯一标识符。 + * limit 单页最大结果数。 + * marker 页面标记。 + * + * @var string[] + */ + protected static $attributeMap = [ + 'analyzerId' => 'analyzer_id', + 'limit' => 'limit', + 'marker' => 'marker' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * analyzerId 分析器的唯一标识符。 + * limit 单页最大结果数。 + * marker 页面标记。 + * + * @var string[] + */ + protected static $setters = [ + 'analyzerId' => 'setAnalyzerId', + 'limit' => 'setLimit', + 'marker' => 'setMarker' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * analyzerId 分析器的唯一标识符。 + * limit 单页最大结果数。 + * marker 页面标记。 + * + * @var string[] + */ + protected static $getters = [ + 'analyzerId' => 'getAnalyzerId', + 'limit' => 'getLimit', + 'marker' => 'getMarker' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$openAPIModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['analyzerId'] = isset($data['analyzerId']) ? $data['analyzerId'] : null; + $this->container['limit'] = isset($data['limit']) ? $data['limit'] : null; + $this->container['marker'] = isset($data['marker']) ? $data['marker'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + if ($this->container['analyzerId'] === null) { + $invalidProperties[] = "'analyzerId' can't be null"; + } + if ((mb_strlen($this->container['analyzerId']) > 36)) { + $invalidProperties[] = "invalid value for 'analyzerId', the character length must be smaller than or equal to 36."; + } + if ((mb_strlen($this->container['analyzerId']) < 1)) { + $invalidProperties[] = "invalid value for 'analyzerId', the character length must be bigger than or equal to 1."; + } + if (!preg_match("/^[\\w-]+$/", $this->container['analyzerId'])) { + $invalidProperties[] = "invalid value for 'analyzerId', must be conform to the pattern /^[\\w-]+$/."; + } + if (!is_null($this->container['limit']) && ($this->container['limit'] > 200)) { + $invalidProperties[] = "invalid value for 'limit', must be smaller than or equal to 200."; + } + if (!is_null($this->container['limit']) && ($this->container['limit'] < 1)) { + $invalidProperties[] = "invalid value for 'limit', must be bigger than or equal to 1."; + } + if (!is_null($this->container['marker']) && (mb_strlen($this->container['marker']) > 400)) { + $invalidProperties[] = "invalid value for 'marker', the character length must be smaller than or equal to 400."; + } + if (!is_null($this->container['marker']) && (mb_strlen($this->container['marker']) < 4)) { + $invalidProperties[] = "invalid value for 'marker', the character length must be bigger than or equal to 4."; + } + if (!is_null($this->container['marker']) && !preg_match("/^[A-Za-z0-9+\/=\\-_]+$/", $this->container['marker'])) { + $invalidProperties[] = "invalid value for 'marker', must be conform to the pattern /^[A-Za-z0-9+\/=\\-_]+$/."; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + /** + * Gets analyzerId + * 分析器的唯一标识符。 + * + * @return string + */ + public function getAnalyzerId() + { + return $this->container['analyzerId']; + } + + /** + * Sets analyzerId + * + * @param string $analyzerId 分析器的唯一标识符。 + * + * @return $this + */ + public function setAnalyzerId($analyzerId) + { + $this->container['analyzerId'] = $analyzerId; + return $this; + } + + /** + * Gets limit + * 单页最大结果数。 + * + * @return int|null + */ + public function getLimit() + { + return $this->container['limit']; + } + + /** + * Sets limit + * + * @param int|null $limit 单页最大结果数。 + * + * @return $this + */ + public function setLimit($limit) + { + $this->container['limit'] = $limit; + return $this; + } + + /** + * Gets marker + * 页面标记。 + * + * @return string|null + */ + public function getMarker() + { + return $this->container['marker']; + } + + /** + * Sets marker + * + * @param string|null $marker 页面标记。 + * + * @return $this + */ + public function setMarker($marker) + { + $this->container['marker'] = $marker; + return $this; + } + + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } +} + diff --git a/Services/IAMAccessAnalyzer/V1/Model/ListArchiveRulesResponse.php b/Services/IAMAccessAnalyzer/V1/Model/ListArchiveRulesResponse.php new file mode 100644 index 000000000..7ed0870e6 --- /dev/null +++ b/Services/IAMAccessAnalyzer/V1/Model/ListArchiveRulesResponse.php @@ -0,0 +1,301 @@ + '\HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\ArchiveRuleSummary[]', + 'pageInfo' => '\HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\PageInfo' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * archiveRules archiveRules + * pageInfo pageInfo + * + * @var string[] + */ + protected static $openAPIFormats = [ + 'archiveRules' => null, + 'pageInfo' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * archiveRules archiveRules + * pageInfo pageInfo + * + * @var string[] + */ + protected static $attributeMap = [ + 'archiveRules' => 'archive_rules', + 'pageInfo' => 'page_info' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * archiveRules archiveRules + * pageInfo pageInfo + * + * @var string[] + */ + protected static $setters = [ + 'archiveRules' => 'setArchiveRules', + 'pageInfo' => 'setPageInfo' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * archiveRules archiveRules + * pageInfo pageInfo + * + * @var string[] + */ + protected static $getters = [ + 'archiveRules' => 'getArchiveRules', + 'pageInfo' => 'getPageInfo' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$openAPIModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['archiveRules'] = isset($data['archiveRules']) ? $data['archiveRules'] : null; + $this->container['pageInfo'] = isset($data['pageInfo']) ? $data['pageInfo'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + /** + * Gets archiveRules + * archiveRules + * + * @return \HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\ArchiveRuleSummary[]|null + */ + public function getArchiveRules() + { + return $this->container['archiveRules']; + } + + /** + * Sets archiveRules + * + * @param \HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\ArchiveRuleSummary[]|null $archiveRules archiveRules + * + * @return $this + */ + public function setArchiveRules($archiveRules) + { + $this->container['archiveRules'] = $archiveRules; + return $this; + } + + /** + * Gets pageInfo + * pageInfo + * + * @return \HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\PageInfo|null + */ + public function getPageInfo() + { + return $this->container['pageInfo']; + } + + /** + * Sets pageInfo + * + * @param \HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\PageInfo|null $pageInfo pageInfo + * + * @return $this + */ + public function setPageInfo($pageInfo) + { + $this->container['pageInfo'] = $pageInfo; + return $this; + } + + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } +} + diff --git a/Services/IAMAccessAnalyzer/V1/Model/ListFindingsReqBody.php b/Services/IAMAccessAnalyzer/V1/Model/ListFindingsReqBody.php new file mode 100644 index 000000000..f0f48b3f9 --- /dev/null +++ b/Services/IAMAccessAnalyzer/V1/Model/ListFindingsReqBody.php @@ -0,0 +1,350 @@ + '\HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\FindingFilter[]', + 'limit' => 'int', + 'marker' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * filters filters + * limit 单页最大结果数。 + * marker 页面标记。 + * + * @var string[] + */ + protected static $openAPIFormats = [ + 'filters' => null, + 'limit' => 'int32', + 'marker' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * filters filters + * limit 单页最大结果数。 + * marker 页面标记。 + * + * @var string[] + */ + protected static $attributeMap = [ + 'filters' => 'filters', + 'limit' => 'limit', + 'marker' => 'marker' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * filters filters + * limit 单页最大结果数。 + * marker 页面标记。 + * + * @var string[] + */ + protected static $setters = [ + 'filters' => 'setFilters', + 'limit' => 'setLimit', + 'marker' => 'setMarker' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * filters filters + * limit 单页最大结果数。 + * marker 页面标记。 + * + * @var string[] + */ + protected static $getters = [ + 'filters' => 'getFilters', + 'limit' => 'getLimit', + 'marker' => 'getMarker' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$openAPIModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['filters'] = isset($data['filters']) ? $data['filters'] : null; + $this->container['limit'] = isset($data['limit']) ? $data['limit'] : null; + $this->container['marker'] = isset($data['marker']) ? $data['marker'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + if (!is_null($this->container['limit']) && ($this->container['limit'] > 200)) { + $invalidProperties[] = "invalid value for 'limit', must be smaller than or equal to 200."; + } + if (!is_null($this->container['limit']) && ($this->container['limit'] < 1)) { + $invalidProperties[] = "invalid value for 'limit', must be bigger than or equal to 1."; + } + if (!is_null($this->container['marker']) && (mb_strlen($this->container['marker']) > 400)) { + $invalidProperties[] = "invalid value for 'marker', the character length must be smaller than or equal to 400."; + } + if (!is_null($this->container['marker']) && (mb_strlen($this->container['marker']) < 4)) { + $invalidProperties[] = "invalid value for 'marker', the character length must be bigger than or equal to 4."; + } + if (!is_null($this->container['marker']) && !preg_match("/^[A-Za-z0-9+\/=\\-_]+$/", $this->container['marker'])) { + $invalidProperties[] = "invalid value for 'marker', must be conform to the pattern /^[A-Za-z0-9+\/=\\-_]+$/."; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + /** + * Gets filters + * filters + * + * @return \HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\FindingFilter[]|null + */ + public function getFilters() + { + return $this->container['filters']; + } + + /** + * Sets filters + * + * @param \HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\FindingFilter[]|null $filters filters + * + * @return $this + */ + public function setFilters($filters) + { + $this->container['filters'] = $filters; + return $this; + } + + /** + * Gets limit + * 单页最大结果数。 + * + * @return int|null + */ + public function getLimit() + { + return $this->container['limit']; + } + + /** + * Sets limit + * + * @param int|null $limit 单页最大结果数。 + * + * @return $this + */ + public function setLimit($limit) + { + $this->container['limit'] = $limit; + return $this; + } + + /** + * Gets marker + * 页面标记。 + * + * @return string|null + */ + public function getMarker() + { + return $this->container['marker']; + } + + /** + * Sets marker + * + * @param string|null $marker 页面标记。 + * + * @return $this + */ + public function setMarker($marker) + { + $this->container['marker'] = $marker; + return $this; + } + + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } +} + diff --git a/Services/IAMAccessAnalyzer/V1/Model/ListFindingsRequest.php b/Services/IAMAccessAnalyzer/V1/Model/ListFindingsRequest.php new file mode 100644 index 000000000..875665382 --- /dev/null +++ b/Services/IAMAccessAnalyzer/V1/Model/ListFindingsRequest.php @@ -0,0 +1,312 @@ + 'string', + 'body' => '\HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\ListFindingsReqBody' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * analyzerId 分析器的唯一标识符。 + * body body + * + * @var string[] + */ + protected static $openAPIFormats = [ + 'analyzerId' => null, + 'body' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * analyzerId 分析器的唯一标识符。 + * body body + * + * @var string[] + */ + protected static $attributeMap = [ + 'analyzerId' => 'analyzer_id', + 'body' => 'body' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * analyzerId 分析器的唯一标识符。 + * body body + * + * @var string[] + */ + protected static $setters = [ + 'analyzerId' => 'setAnalyzerId', + 'body' => 'setBody' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * analyzerId 分析器的唯一标识符。 + * body body + * + * @var string[] + */ + protected static $getters = [ + 'analyzerId' => 'getAnalyzerId', + 'body' => 'getBody' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$openAPIModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['analyzerId'] = isset($data['analyzerId']) ? $data['analyzerId'] : null; + $this->container['body'] = isset($data['body']) ? $data['body'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + if ($this->container['analyzerId'] === null) { + $invalidProperties[] = "'analyzerId' can't be null"; + } + if ((mb_strlen($this->container['analyzerId']) > 36)) { + $invalidProperties[] = "invalid value for 'analyzerId', the character length must be smaller than or equal to 36."; + } + if ((mb_strlen($this->container['analyzerId']) < 1)) { + $invalidProperties[] = "invalid value for 'analyzerId', the character length must be bigger than or equal to 1."; + } + if (!preg_match("/^[\\w-]+$/", $this->container['analyzerId'])) { + $invalidProperties[] = "invalid value for 'analyzerId', must be conform to the pattern /^[\\w-]+$/."; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + /** + * Gets analyzerId + * 分析器的唯一标识符。 + * + * @return string + */ + public function getAnalyzerId() + { + return $this->container['analyzerId']; + } + + /** + * Sets analyzerId + * + * @param string $analyzerId 分析器的唯一标识符。 + * + * @return $this + */ + public function setAnalyzerId($analyzerId) + { + $this->container['analyzerId'] = $analyzerId; + return $this; + } + + /** + * Gets body + * body + * + * @return \HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\ListFindingsReqBody|null + */ + public function getBody() + { + return $this->container['body']; + } + + /** + * Sets body + * + * @param \HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\ListFindingsReqBody|null $body body + * + * @return $this + */ + public function setBody($body) + { + $this->container['body'] = $body; + return $this; + } + + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } +} + diff --git a/Services/IAMAccessAnalyzer/V1/Model/ListFindingsResponse.php b/Services/IAMAccessAnalyzer/V1/Model/ListFindingsResponse.php new file mode 100644 index 000000000..6acdb10a5 --- /dev/null +++ b/Services/IAMAccessAnalyzer/V1/Model/ListFindingsResponse.php @@ -0,0 +1,301 @@ + '\HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\Finding[]', + 'pageInfo' => '\HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\PageInfo' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * findings findings + * pageInfo pageInfo + * + * @var string[] + */ + protected static $openAPIFormats = [ + 'findings' => null, + 'pageInfo' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * findings findings + * pageInfo pageInfo + * + * @var string[] + */ + protected static $attributeMap = [ + 'findings' => 'findings', + 'pageInfo' => 'page_info' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * findings findings + * pageInfo pageInfo + * + * @var string[] + */ + protected static $setters = [ + 'findings' => 'setFindings', + 'pageInfo' => 'setPageInfo' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * findings findings + * pageInfo pageInfo + * + * @var string[] + */ + protected static $getters = [ + 'findings' => 'getFindings', + 'pageInfo' => 'getPageInfo' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$openAPIModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['findings'] = isset($data['findings']) ? $data['findings'] : null; + $this->container['pageInfo'] = isset($data['pageInfo']) ? $data['pageInfo'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + /** + * Gets findings + * findings + * + * @return \HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\Finding[]|null + */ + public function getFindings() + { + return $this->container['findings']; + } + + /** + * Sets findings + * + * @param \HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\Finding[]|null $findings findings + * + * @return $this + */ + public function setFindings($findings) + { + $this->container['findings'] = $findings; + return $this; + } + + /** + * Gets pageInfo + * pageInfo + * + * @return \HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\PageInfo|null + */ + public function getPageInfo() + { + return $this->container['pageInfo']; + } + + /** + * Sets pageInfo + * + * @param \HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\PageInfo|null $pageInfo pageInfo + * + * @return $this + */ + public function setPageInfo($pageInfo) + { + $this->container['pageInfo'] = $pageInfo; + return $this; + } + + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } +} + diff --git a/Services/IAMAccessAnalyzer/V1/Model/ListPreviewFindingsReqBody.php b/Services/IAMAccessAnalyzer/V1/Model/ListPreviewFindingsReqBody.php new file mode 100644 index 000000000..fd9ea1222 --- /dev/null +++ b/Services/IAMAccessAnalyzer/V1/Model/ListPreviewFindingsReqBody.php @@ -0,0 +1,350 @@ + '\HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\FindingFilter[]', + 'limit' => 'int', + 'marker' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * filters filters + * limit 单页最大结果数。 + * marker 页面标记。 + * + * @var string[] + */ + protected static $openAPIFormats = [ + 'filters' => null, + 'limit' => 'int32', + 'marker' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * filters filters + * limit 单页最大结果数。 + * marker 页面标记。 + * + * @var string[] + */ + protected static $attributeMap = [ + 'filters' => 'filters', + 'limit' => 'limit', + 'marker' => 'marker' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * filters filters + * limit 单页最大结果数。 + * marker 页面标记。 + * + * @var string[] + */ + protected static $setters = [ + 'filters' => 'setFilters', + 'limit' => 'setLimit', + 'marker' => 'setMarker' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * filters filters + * limit 单页最大结果数。 + * marker 页面标记。 + * + * @var string[] + */ + protected static $getters = [ + 'filters' => 'getFilters', + 'limit' => 'getLimit', + 'marker' => 'getMarker' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$openAPIModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['filters'] = isset($data['filters']) ? $data['filters'] : null; + $this->container['limit'] = isset($data['limit']) ? $data['limit'] : null; + $this->container['marker'] = isset($data['marker']) ? $data['marker'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + if (!is_null($this->container['limit']) && ($this->container['limit'] > 200)) { + $invalidProperties[] = "invalid value for 'limit', must be smaller than or equal to 200."; + } + if (!is_null($this->container['limit']) && ($this->container['limit'] < 1)) { + $invalidProperties[] = "invalid value for 'limit', must be bigger than or equal to 1."; + } + if (!is_null($this->container['marker']) && (mb_strlen($this->container['marker']) > 400)) { + $invalidProperties[] = "invalid value for 'marker', the character length must be smaller than or equal to 400."; + } + if (!is_null($this->container['marker']) && (mb_strlen($this->container['marker']) < 4)) { + $invalidProperties[] = "invalid value for 'marker', the character length must be bigger than or equal to 4."; + } + if (!is_null($this->container['marker']) && !preg_match("/^[A-Za-z0-9+\/=\\-_]+$/", $this->container['marker'])) { + $invalidProperties[] = "invalid value for 'marker', must be conform to the pattern /^[A-Za-z0-9+\/=\\-_]+$/."; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + /** + * Gets filters + * filters + * + * @return \HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\FindingFilter[]|null + */ + public function getFilters() + { + return $this->container['filters']; + } + + /** + * Sets filters + * + * @param \HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\FindingFilter[]|null $filters filters + * + * @return $this + */ + public function setFilters($filters) + { + $this->container['filters'] = $filters; + return $this; + } + + /** + * Gets limit + * 单页最大结果数。 + * + * @return int|null + */ + public function getLimit() + { + return $this->container['limit']; + } + + /** + * Sets limit + * + * @param int|null $limit 单页最大结果数。 + * + * @return $this + */ + public function setLimit($limit) + { + $this->container['limit'] = $limit; + return $this; + } + + /** + * Gets marker + * 页面标记。 + * + * @return string|null + */ + public function getMarker() + { + return $this->container['marker']; + } + + /** + * Sets marker + * + * @param string|null $marker 页面标记。 + * + * @return $this + */ + public function setMarker($marker) + { + $this->container['marker'] = $marker; + return $this; + } + + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } +} + diff --git a/Services/IAMAccessAnalyzer/V1/Model/ListPreviewFindingsRequest.php b/Services/IAMAccessAnalyzer/V1/Model/ListPreviewFindingsRequest.php new file mode 100644 index 000000000..257a4c967 --- /dev/null +++ b/Services/IAMAccessAnalyzer/V1/Model/ListPreviewFindingsRequest.php @@ -0,0 +1,359 @@ + 'string', + 'accessPreviewId' => 'string', + 'body' => '\HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\ListPreviewFindingsReqBody' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * analyzerId 分析器的唯一标识符。 + * accessPreviewId 分析预览的唯一标识符。 + * body body + * + * @var string[] + */ + protected static $openAPIFormats = [ + 'analyzerId' => null, + 'accessPreviewId' => null, + 'body' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * analyzerId 分析器的唯一标识符。 + * accessPreviewId 分析预览的唯一标识符。 + * body body + * + * @var string[] + */ + protected static $attributeMap = [ + 'analyzerId' => 'analyzer_id', + 'accessPreviewId' => 'access_preview_id', + 'body' => 'body' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * analyzerId 分析器的唯一标识符。 + * accessPreviewId 分析预览的唯一标识符。 + * body body + * + * @var string[] + */ + protected static $setters = [ + 'analyzerId' => 'setAnalyzerId', + 'accessPreviewId' => 'setAccessPreviewId', + 'body' => 'setBody' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * analyzerId 分析器的唯一标识符。 + * accessPreviewId 分析预览的唯一标识符。 + * body body + * + * @var string[] + */ + protected static $getters = [ + 'analyzerId' => 'getAnalyzerId', + 'accessPreviewId' => 'getAccessPreviewId', + 'body' => 'getBody' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$openAPIModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['analyzerId'] = isset($data['analyzerId']) ? $data['analyzerId'] : null; + $this->container['accessPreviewId'] = isset($data['accessPreviewId']) ? $data['accessPreviewId'] : null; + $this->container['body'] = isset($data['body']) ? $data['body'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + if ($this->container['analyzerId'] === null) { + $invalidProperties[] = "'analyzerId' can't be null"; + } + if ((mb_strlen($this->container['analyzerId']) > 36)) { + $invalidProperties[] = "invalid value for 'analyzerId', the character length must be smaller than or equal to 36."; + } + if ((mb_strlen($this->container['analyzerId']) < 1)) { + $invalidProperties[] = "invalid value for 'analyzerId', the character length must be bigger than or equal to 1."; + } + if (!preg_match("/^[\\w-]+$/", $this->container['analyzerId'])) { + $invalidProperties[] = "invalid value for 'analyzerId', must be conform to the pattern /^[\\w-]+$/."; + } + if ($this->container['accessPreviewId'] === null) { + $invalidProperties[] = "'accessPreviewId' can't be null"; + } + if ((mb_strlen($this->container['accessPreviewId']) > 36)) { + $invalidProperties[] = "invalid value for 'accessPreviewId', the character length must be smaller than or equal to 36."; + } + if ((mb_strlen($this->container['accessPreviewId']) < 1)) { + $invalidProperties[] = "invalid value for 'accessPreviewId', the character length must be bigger than or equal to 1."; + } + if (!preg_match("/^[\\w-]+$/", $this->container['accessPreviewId'])) { + $invalidProperties[] = "invalid value for 'accessPreviewId', must be conform to the pattern /^[\\w-]+$/."; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + /** + * Gets analyzerId + * 分析器的唯一标识符。 + * + * @return string + */ + public function getAnalyzerId() + { + return $this->container['analyzerId']; + } + + /** + * Sets analyzerId + * + * @param string $analyzerId 分析器的唯一标识符。 + * + * @return $this + */ + public function setAnalyzerId($analyzerId) + { + $this->container['analyzerId'] = $analyzerId; + return $this; + } + + /** + * Gets accessPreviewId + * 分析预览的唯一标识符。 + * + * @return string + */ + public function getAccessPreviewId() + { + return $this->container['accessPreviewId']; + } + + /** + * Sets accessPreviewId + * + * @param string $accessPreviewId 分析预览的唯一标识符。 + * + * @return $this + */ + public function setAccessPreviewId($accessPreviewId) + { + $this->container['accessPreviewId'] = $accessPreviewId; + return $this; + } + + /** + * Gets body + * body + * + * @return \HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\ListPreviewFindingsReqBody|null + */ + public function getBody() + { + return $this->container['body']; + } + + /** + * Sets body + * + * @param \HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\ListPreviewFindingsReqBody|null $body body + * + * @return $this + */ + public function setBody($body) + { + $this->container['body'] = $body; + return $this; + } + + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } +} + diff --git a/Services/IAMAccessAnalyzer/V1/Model/ListPreviewFindingsResponse.php b/Services/IAMAccessAnalyzer/V1/Model/ListPreviewFindingsResponse.php new file mode 100644 index 000000000..b344dfb96 --- /dev/null +++ b/Services/IAMAccessAnalyzer/V1/Model/ListPreviewFindingsResponse.php @@ -0,0 +1,301 @@ + '\HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\PreviewFinding[]', + 'pageInfo' => '\HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\PageInfo' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * findings findings + * pageInfo pageInfo + * + * @var string[] + */ + protected static $openAPIFormats = [ + 'findings' => null, + 'pageInfo' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * findings findings + * pageInfo pageInfo + * + * @var string[] + */ + protected static $attributeMap = [ + 'findings' => 'findings', + 'pageInfo' => 'page_info' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * findings findings + * pageInfo pageInfo + * + * @var string[] + */ + protected static $setters = [ + 'findings' => 'setFindings', + 'pageInfo' => 'setPageInfo' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * findings findings + * pageInfo pageInfo + * + * @var string[] + */ + protected static $getters = [ + 'findings' => 'getFindings', + 'pageInfo' => 'getPageInfo' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$openAPIModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['findings'] = isset($data['findings']) ? $data['findings'] : null; + $this->container['pageInfo'] = isset($data['pageInfo']) ? $data['pageInfo'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + /** + * Gets findings + * findings + * + * @return \HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\PreviewFinding[]|null + */ + public function getFindings() + { + return $this->container['findings']; + } + + /** + * Sets findings + * + * @param \HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\PreviewFinding[]|null $findings findings + * + * @return $this + */ + public function setFindings($findings) + { + $this->container['findings'] = $findings; + return $this; + } + + /** + * Gets pageInfo + * pageInfo + * + * @return \HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\PageInfo|null + */ + public function getPageInfo() + { + return $this->container['pageInfo']; + } + + /** + * Sets pageInfo + * + * @param \HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\PageInfo|null $pageInfo pageInfo + * + * @return $this + */ + public function setPageInfo($pageInfo) + { + $this->container['pageInfo'] = $pageInfo; + return $this; + } + + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } +} + diff --git a/Services/IAMAccessAnalyzer/V1/Model/Location.php b/Services/IAMAccessAnalyzer/V1/Model/Location.php new file mode 100644 index 000000000..a16e02888 --- /dev/null +++ b/Services/IAMAccessAnalyzer/V1/Model/Location.php @@ -0,0 +1,306 @@ + '\HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\PathElement[]', + 'span' => '\HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\Span' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * path 策略中的路径,表示为路径元素的有序序列。 + * span span + * + * @var string[] + */ + protected static $openAPIFormats = [ + 'path' => null, + 'span' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * path 策略中的路径,表示为路径元素的有序序列。 + * span span + * + * @var string[] + */ + protected static $attributeMap = [ + 'path' => 'path', + 'span' => 'span' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * path 策略中的路径,表示为路径元素的有序序列。 + * span span + * + * @var string[] + */ + protected static $setters = [ + 'path' => 'setPath', + 'span' => 'setSpan' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * path 策略中的路径,表示为路径元素的有序序列。 + * span span + * + * @var string[] + */ + protected static $getters = [ + 'path' => 'getPath', + 'span' => 'getSpan' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$openAPIModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['path'] = isset($data['path']) ? $data['path'] : null; + $this->container['span'] = isset($data['span']) ? $data['span'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + if ($this->container['path'] === null) { + $invalidProperties[] = "'path' can't be null"; + } + if ($this->container['span'] === null) { + $invalidProperties[] = "'span' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + /** + * Gets path + * 策略中的路径,表示为路径元素的有序序列。 + * + * @return \HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\PathElement[] + */ + public function getPath() + { + return $this->container['path']; + } + + /** + * Sets path + * + * @param \HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\PathElement[] $path 策略中的路径,表示为路径元素的有序序列。 + * + * @return $this + */ + public function setPath($path) + { + $this->container['path'] = $path; + return $this; + } + + /** + * Gets span + * span + * + * @return \HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\Span + */ + public function getSpan() + { + return $this->container['span']; + } + + /** + * Sets span + * + * @param \HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\Span $span span + * + * @return $this + */ + public function setSpan($span) + { + $this->container['span'] = $span; + return $this; + } + + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } +} + diff --git a/Services/IAMAccessAnalyzer/V1/Model/Marker.php b/Services/IAMAccessAnalyzer/V1/Model/Marker.php new file mode 100644 index 000000000..510c5ed9e --- /dev/null +++ b/Services/IAMAccessAnalyzer/V1/Model/Marker.php @@ -0,0 +1,235 @@ +listInvalidProperties()) === 0; + } + + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } +} + diff --git a/Services/IAMAccessAnalyzer/V1/Model/NextMarker.php b/Services/IAMAccessAnalyzer/V1/Model/NextMarker.php new file mode 100644 index 000000000..1a38b88ea --- /dev/null +++ b/Services/IAMAccessAnalyzer/V1/Model/NextMarker.php @@ -0,0 +1,235 @@ +listInvalidProperties()) === 0; + } + + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } +} + diff --git a/Services/IAMAccessAnalyzer/V1/Model/OBSBucket.php b/Services/IAMAccessAnalyzer/V1/Model/OBSBucket.php new file mode 100644 index 000000000..8983281db --- /dev/null +++ b/Services/IAMAccessAnalyzer/V1/Model/OBSBucket.php @@ -0,0 +1,306 @@ + 'string', + 'bucketPolicy' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * bucketAcl 此ACL xml文件的string格式 + * bucketPolicy 此策略的json格式策略文档。 + * + * @var string[] + */ + protected static $openAPIFormats = [ + 'bucketAcl' => null, + 'bucketPolicy' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * bucketAcl 此ACL xml文件的string格式 + * bucketPolicy 此策略的json格式策略文档。 + * + * @var string[] + */ + protected static $attributeMap = [ + 'bucketAcl' => 'bucket_acl', + 'bucketPolicy' => 'bucket_policy' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * bucketAcl 此ACL xml文件的string格式 + * bucketPolicy 此策略的json格式策略文档。 + * + * @var string[] + */ + protected static $setters = [ + 'bucketAcl' => 'setBucketAcl', + 'bucketPolicy' => 'setBucketPolicy' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * bucketAcl 此ACL xml文件的string格式 + * bucketPolicy 此策略的json格式策略文档。 + * + * @var string[] + */ + protected static $getters = [ + 'bucketAcl' => 'getBucketAcl', + 'bucketPolicy' => 'getBucketPolicy' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$openAPIModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['bucketAcl'] = isset($data['bucketAcl']) ? $data['bucketAcl'] : null; + $this->container['bucketPolicy'] = isset($data['bucketPolicy']) ? $data['bucketPolicy'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + if (!is_null($this->container['bucketPolicy']) && (mb_strlen($this->container['bucketPolicy']) > 131072)) { + $invalidProperties[] = "invalid value for 'bucketPolicy', the character length must be smaller than or equal to 131072."; + } + if (!is_null($this->container['bucketPolicy']) && (mb_strlen($this->container['bucketPolicy']) < 0)) { + $invalidProperties[] = "invalid value for 'bucketPolicy', the character length must be bigger than or equal to 0."; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + /** + * Gets bucketAcl + * 此ACL xml文件的string格式 + * + * @return string|null + */ + public function getBucketAcl() + { + return $this->container['bucketAcl']; + } + + /** + * Sets bucketAcl + * + * @param string|null $bucketAcl 此ACL xml文件的string格式 + * + * @return $this + */ + public function setBucketAcl($bucketAcl) + { + $this->container['bucketAcl'] = $bucketAcl; + return $this; + } + + /** + * Gets bucketPolicy + * 此策略的json格式策略文档。 + * + * @return string|null + */ + public function getBucketPolicy() + { + return $this->container['bucketPolicy']; + } + + /** + * Sets bucketPolicy + * + * @param string|null $bucketPolicy 此策略的json格式策略文档。 + * + * @return $this + */ + public function setBucketPolicy($bucketPolicy) + { + $this->container['bucketPolicy'] = $bucketPolicy; + return $this; + } + + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } +} + diff --git a/Services/IAMAccessAnalyzer/V1/Model/PageInfo.php b/Services/IAMAccessAnalyzer/V1/Model/PageInfo.php new file mode 100644 index 000000000..9a1b30368 --- /dev/null +++ b/Services/IAMAccessAnalyzer/V1/Model/PageInfo.php @@ -0,0 +1,306 @@ + 'int', + 'nextMarker' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * currentCount 当前页中的项数。 + * nextMarker 如果存在更多可用的输出,那么该值表示可用输出比当前响应中包含的更多。在后续调用此操作时,您可以在标记请求参数中使用此值,以获取输出的下一部分。您应该重复这个过程,直到next_marker返回为null。 + * + * @var string[] + */ + protected static $openAPIFormats = [ + 'currentCount' => 'int32', + 'nextMarker' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * currentCount 当前页中的项数。 + * nextMarker 如果存在更多可用的输出,那么该值表示可用输出比当前响应中包含的更多。在后续调用此操作时,您可以在标记请求参数中使用此值,以获取输出的下一部分。您应该重复这个过程,直到next_marker返回为null。 + * + * @var string[] + */ + protected static $attributeMap = [ + 'currentCount' => 'current_count', + 'nextMarker' => 'next_marker' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * currentCount 当前页中的项数。 + * nextMarker 如果存在更多可用的输出,那么该值表示可用输出比当前响应中包含的更多。在后续调用此操作时,您可以在标记请求参数中使用此值,以获取输出的下一部分。您应该重复这个过程,直到next_marker返回为null。 + * + * @var string[] + */ + protected static $setters = [ + 'currentCount' => 'setCurrentCount', + 'nextMarker' => 'setNextMarker' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * currentCount 当前页中的项数。 + * nextMarker 如果存在更多可用的输出,那么该值表示可用输出比当前响应中包含的更多。在后续调用此操作时,您可以在标记请求参数中使用此值,以获取输出的下一部分。您应该重复这个过程,直到next_marker返回为null。 + * + * @var string[] + */ + protected static $getters = [ + 'currentCount' => 'getCurrentCount', + 'nextMarker' => 'getNextMarker' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$openAPIModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['currentCount'] = isset($data['currentCount']) ? $data['currentCount'] : null; + $this->container['nextMarker'] = isset($data['nextMarker']) ? $data['nextMarker'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + if ($this->container['currentCount'] === null) { + $invalidProperties[] = "'currentCount' can't be null"; + } + if (!is_null($this->container['nextMarker']) && !preg_match("/^[A-Za-z0-9+\/=\\-_]+$/", $this->container['nextMarker'])) { + $invalidProperties[] = "invalid value for 'nextMarker', must be conform to the pattern /^[A-Za-z0-9+\/=\\-_]+$/."; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + /** + * Gets currentCount + * 当前页中的项数。 + * + * @return int + */ + public function getCurrentCount() + { + return $this->container['currentCount']; + } + + /** + * Sets currentCount + * + * @param int $currentCount 当前页中的项数。 + * + * @return $this + */ + public function setCurrentCount($currentCount) + { + $this->container['currentCount'] = $currentCount; + return $this; + } + + /** + * Gets nextMarker + * 如果存在更多可用的输出,那么该值表示可用输出比当前响应中包含的更多。在后续调用此操作时,您可以在标记请求参数中使用此值,以获取输出的下一部分。您应该重复这个过程,直到next_marker返回为null。 + * + * @return string|null + */ + public function getNextMarker() + { + return $this->container['nextMarker']; + } + + /** + * Sets nextMarker + * + * @param string|null $nextMarker 如果存在更多可用的输出,那么该值表示可用输出比当前响应中包含的更多。在后续调用此操作时,您可以在标记请求参数中使用此值,以获取输出的下一部分。您应该重复这个过程,直到next_marker返回为null。 + * + * @return $this + */ + public function setNextMarker($nextMarker) + { + $this->container['nextMarker'] = $nextMarker; + return $this; + } + + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } +} + diff --git a/Services/IAMAccessAnalyzer/V1/Model/PathElement.php b/Services/IAMAccessAnalyzer/V1/Model/PathElement.php new file mode 100644 index 000000000..60186d3fb --- /dev/null +++ b/Services/IAMAccessAnalyzer/V1/Model/PathElement.php @@ -0,0 +1,370 @@ + 'int', + 'key' => 'string', + 'substring' => '\HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\Substring', + 'value' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * index 数组中的索引,从0开始。 + * key 对象中的键。 + * substring substring + * value 与对象中给定键关联的值。 + * + * @var string[] + */ + protected static $openAPIFormats = [ + 'index' => 'int32', + 'key' => null, + 'substring' => null, + 'value' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * index 数组中的索引,从0开始。 + * key 对象中的键。 + * substring substring + * value 与对象中给定键关联的值。 + * + * @var string[] + */ + protected static $attributeMap = [ + 'index' => 'index', + 'key' => 'key', + 'substring' => 'substring', + 'value' => 'value' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * index 数组中的索引,从0开始。 + * key 对象中的键。 + * substring substring + * value 与对象中给定键关联的值。 + * + * @var string[] + */ + protected static $setters = [ + 'index' => 'setIndex', + 'key' => 'setKey', + 'substring' => 'setSubstring', + 'value' => 'setValue' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * index 数组中的索引,从0开始。 + * key 对象中的键。 + * substring substring + * value 与对象中给定键关联的值。 + * + * @var string[] + */ + protected static $getters = [ + 'index' => 'getIndex', + 'key' => 'getKey', + 'substring' => 'getSubstring', + 'value' => 'getValue' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$openAPIModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['index'] = isset($data['index']) ? $data['index'] : null; + $this->container['key'] = isset($data['key']) ? $data['key'] : null; + $this->container['substring'] = isset($data['substring']) ? $data['substring'] : null; + $this->container['value'] = isset($data['value']) ? $data['value'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + /** + * Gets index + * 数组中的索引,从0开始。 + * + * @return int|null + */ + public function getIndex() + { + return $this->container['index']; + } + + /** + * Sets index + * + * @param int|null $index 数组中的索引,从0开始。 + * + * @return $this + */ + public function setIndex($index) + { + $this->container['index'] = $index; + return $this; + } + + /** + * Gets key + * 对象中的键。 + * + * @return string|null + */ + public function getKey() + { + return $this->container['key']; + } + + /** + * Sets key + * + * @param string|null $key 对象中的键。 + * + * @return $this + */ + public function setKey($key) + { + $this->container['key'] = $key; + return $this; + } + + /** + * Gets substring + * substring + * + * @return \HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\Substring|null + */ + public function getSubstring() + { + return $this->container['substring']; + } + + /** + * Sets substring + * + * @param \HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\Substring|null $substring substring + * + * @return $this + */ + public function setSubstring($substring) + { + $this->container['substring'] = $substring; + return $this; + } + + /** + * Gets value + * 与对象中给定键关联的值。 + * + * @return string|null + */ + public function getValue() + { + return $this->container['value']; + } + + /** + * Sets value + * + * @param string|null $value 与对象中给定键关联的值。 + * + * @return $this + */ + public function setValue($value) + { + $this->container['value'] = $value; + return $this; + } + + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } +} + diff --git a/Services/IAMAccessAnalyzer/V1/Model/PolicyDocument.php b/Services/IAMAccessAnalyzer/V1/Model/PolicyDocument.php new file mode 100644 index 000000000..e41186205 --- /dev/null +++ b/Services/IAMAccessAnalyzer/V1/Model/PolicyDocument.php @@ -0,0 +1,235 @@ +listInvalidProperties()) === 0; + } + + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } +} + diff --git a/Services/IAMAccessAnalyzer/V1/Model/PolicyType.php b/Services/IAMAccessAnalyzer/V1/Model/PolicyType.php new file mode 100644 index 000000000..bf24a38a3 --- /dev/null +++ b/Services/IAMAccessAnalyzer/V1/Model/PolicyType.php @@ -0,0 +1,30 @@ + 'int', + 'column' => 'int', + 'offset' => 'int' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * line 位置的行号,从1开始。 + * column 位置的列号,从0开开始。 + * offset 策略中与位置对应的偏移量,从0开始。 + * + * @var string[] + */ + protected static $openAPIFormats = [ + 'line' => 'int32', + 'column' => 'int32', + 'offset' => 'int32' + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * line 位置的行号,从1开始。 + * column 位置的列号,从0开开始。 + * offset 策略中与位置对应的偏移量,从0开始。 + * + * @var string[] + */ + protected static $attributeMap = [ + 'line' => 'line', + 'column' => 'column', + 'offset' => 'offset' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * line 位置的行号,从1开始。 + * column 位置的列号,从0开开始。 + * offset 策略中与位置对应的偏移量,从0开始。 + * + * @var string[] + */ + protected static $setters = [ + 'line' => 'setLine', + 'column' => 'setColumn', + 'offset' => 'setOffset' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * line 位置的行号,从1开始。 + * column 位置的列号,从0开开始。 + * offset 策略中与位置对应的偏移量,从0开始。 + * + * @var string[] + */ + protected static $getters = [ + 'line' => 'getLine', + 'column' => 'getColumn', + 'offset' => 'getOffset' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$openAPIModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['line'] = isset($data['line']) ? $data['line'] : null; + $this->container['column'] = isset($data['column']) ? $data['column'] : null; + $this->container['offset'] = isset($data['offset']) ? $data['offset'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + if ($this->container['line'] === null) { + $invalidProperties[] = "'line' can't be null"; + } + if ($this->container['column'] === null) { + $invalidProperties[] = "'column' can't be null"; + } + if ($this->container['offset'] === null) { + $invalidProperties[] = "'offset' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + /** + * Gets line + * 位置的行号,从1开始。 + * + * @return int + */ + public function getLine() + { + return $this->container['line']; + } + + /** + * Sets line + * + * @param int $line 位置的行号,从1开始。 + * + * @return $this + */ + public function setLine($line) + { + $this->container['line'] = $line; + return $this; + } + + /** + * Gets column + * 位置的列号,从0开开始。 + * + * @return int + */ + public function getColumn() + { + return $this->container['column']; + } + + /** + * Sets column + * + * @param int $column 位置的列号,从0开开始。 + * + * @return $this + */ + public function setColumn($column) + { + $this->container['column'] = $column; + return $this; + } + + /** + * Gets offset + * 策略中与位置对应的偏移量,从0开始。 + * + * @return int + */ + public function getOffset() + { + return $this->container['offset']; + } + + /** + * Sets offset + * + * @param int $offset 策略中与位置对应的偏移量,从0开始。 + * + * @return $this + */ + public function setOffset($offset) + { + $this->container['offset'] = $offset; + return $this; + } + + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } +} + diff --git a/Services/IAMAccessAnalyzer/V1/Model/PreviewFinding.php b/Services/IAMAccessAnalyzer/V1/Model/PreviewFinding.php new file mode 100644 index 000000000..1662035b9 --- /dev/null +++ b/Services/IAMAccessAnalyzer/V1/Model/PreviewFinding.php @@ -0,0 +1,858 @@ + 'string[]', + 'changeType' => 'string', + 'condition' => '\HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\FindingCondition[]', + 'createdAt' => '\DateTime', + 'existingFindingId' => 'string', + 'existingFindingStatus' => 'string', + 'id' => 'string', + 'isPublic' => 'bool', + 'principal' => '\HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\FindingPrincipal', + 'resource' => 'string', + 'resourceOwnerAccount' => 'string', + 'resourceType' => '\HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\ResourceType', + 'sources' => '\HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\FindingSourceType[]', + 'status' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * action 访问信任区域内资源的外部主体。 + * changeType 结果状态的变化 + * condition condition + * createdAt 生成查找结果的时间。 + * existingFindingId 要检索的结果的ID。 + * existingFindingStatus 结果的当前状态。 + * id 要检索的结果的ID。 + * isPublic 表示生成查找结果的策略是否允许公共访问资源。 + * principal principal + * resource 唯一的资源名称。 + * resourceOwnerAccount 拥有资源的帐户ID。 + * resourceType resourceType + * sources sources + * status 变化后的状态。 + * + * @var string[] + */ + protected static $openAPIFormats = [ + 'action' => null, + 'changeType' => null, + 'condition' => null, + 'createdAt' => 'date-time', + 'existingFindingId' => null, + 'existingFindingStatus' => null, + 'id' => null, + 'isPublic' => null, + 'principal' => null, + 'resource' => null, + 'resourceOwnerAccount' => null, + 'resourceType' => null, + 'sources' => null, + 'status' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * action 访问信任区域内资源的外部主体。 + * changeType 结果状态的变化 + * condition condition + * createdAt 生成查找结果的时间。 + * existingFindingId 要检索的结果的ID。 + * existingFindingStatus 结果的当前状态。 + * id 要检索的结果的ID。 + * isPublic 表示生成查找结果的策略是否允许公共访问资源。 + * principal principal + * resource 唯一的资源名称。 + * resourceOwnerAccount 拥有资源的帐户ID。 + * resourceType resourceType + * sources sources + * status 变化后的状态。 + * + * @var string[] + */ + protected static $attributeMap = [ + 'action' => 'action', + 'changeType' => 'change_type', + 'condition' => 'condition', + 'createdAt' => 'created_at', + 'existingFindingId' => 'existing_finding_id', + 'existingFindingStatus' => 'existing_finding_status', + 'id' => 'id', + 'isPublic' => 'is_public', + 'principal' => 'principal', + 'resource' => 'resource', + 'resourceOwnerAccount' => 'resource_owner_account', + 'resourceType' => 'resource_type', + 'sources' => 'sources', + 'status' => 'status' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * action 访问信任区域内资源的外部主体。 + * changeType 结果状态的变化 + * condition condition + * createdAt 生成查找结果的时间。 + * existingFindingId 要检索的结果的ID。 + * existingFindingStatus 结果的当前状态。 + * id 要检索的结果的ID。 + * isPublic 表示生成查找结果的策略是否允许公共访问资源。 + * principal principal + * resource 唯一的资源名称。 + * resourceOwnerAccount 拥有资源的帐户ID。 + * resourceType resourceType + * sources sources + * status 变化后的状态。 + * + * @var string[] + */ + protected static $setters = [ + 'action' => 'setAction', + 'changeType' => 'setChangeType', + 'condition' => 'setCondition', + 'createdAt' => 'setCreatedAt', + 'existingFindingId' => 'setExistingFindingId', + 'existingFindingStatus' => 'setExistingFindingStatus', + 'id' => 'setId', + 'isPublic' => 'setIsPublic', + 'principal' => 'setPrincipal', + 'resource' => 'setResource', + 'resourceOwnerAccount' => 'setResourceOwnerAccount', + 'resourceType' => 'setResourceType', + 'sources' => 'setSources', + 'status' => 'setStatus' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * action 访问信任区域内资源的外部主体。 + * changeType 结果状态的变化 + * condition condition + * createdAt 生成查找结果的时间。 + * existingFindingId 要检索的结果的ID。 + * existingFindingStatus 结果的当前状态。 + * id 要检索的结果的ID。 + * isPublic 表示生成查找结果的策略是否允许公共访问资源。 + * principal principal + * resource 唯一的资源名称。 + * resourceOwnerAccount 拥有资源的帐户ID。 + * resourceType resourceType + * sources sources + * status 变化后的状态。 + * + * @var string[] + */ + protected static $getters = [ + 'action' => 'getAction', + 'changeType' => 'getChangeType', + 'condition' => 'getCondition', + 'createdAt' => 'getCreatedAt', + 'existingFindingId' => 'getExistingFindingId', + 'existingFindingStatus' => 'getExistingFindingStatus', + 'id' => 'getId', + 'isPublic' => 'getIsPublic', + 'principal' => 'getPrincipal', + 'resource' => 'getResource', + 'resourceOwnerAccount' => 'getResourceOwnerAccount', + 'resourceType' => 'getResourceType', + 'sources' => 'getSources', + 'status' => 'getStatus' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$openAPIModelName; + } + const CHANGE_TYPE_UNCHANGED = 'unchanged'; + const CHANGE_TYPE__NEW = 'new'; + const CHANGE_TYPE_CHANGED = 'changed'; + const EXISTING_FINDING_STATUS_ACTIVE = 'active'; + const EXISTING_FINDING_STATUS_ARCHIVED = 'archived'; + const EXISTING_FINDING_STATUS_RESOLVED = 'resolved'; + const STATUS_ACTIVE = 'active'; + const STATUS_ARCHIVED = 'archived'; + const STATUS_RESOLVED = 'resolved'; + + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getChangeTypeAllowableValues() + { + return [ + self::CHANGE_TYPE_UNCHANGED, + self::CHANGE_TYPE__NEW, + self::CHANGE_TYPE_CHANGED, + ]; + } + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getExistingFindingStatusAllowableValues() + { + return [ + self::EXISTING_FINDING_STATUS_ACTIVE, + self::EXISTING_FINDING_STATUS_ARCHIVED, + self::EXISTING_FINDING_STATUS_RESOLVED, + ]; + } + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getStatusAllowableValues() + { + return [ + self::STATUS_ACTIVE, + self::STATUS_ARCHIVED, + self::STATUS_RESOLVED, + ]; + } + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['action'] = isset($data['action']) ? $data['action'] : null; + $this->container['changeType'] = isset($data['changeType']) ? $data['changeType'] : null; + $this->container['condition'] = isset($data['condition']) ? $data['condition'] : null; + $this->container['createdAt'] = isset($data['createdAt']) ? $data['createdAt'] : null; + $this->container['existingFindingId'] = isset($data['existingFindingId']) ? $data['existingFindingId'] : null; + $this->container['existingFindingStatus'] = isset($data['existingFindingStatus']) ? $data['existingFindingStatus'] : null; + $this->container['id'] = isset($data['id']) ? $data['id'] : null; + $this->container['isPublic'] = isset($data['isPublic']) ? $data['isPublic'] : null; + $this->container['principal'] = isset($data['principal']) ? $data['principal'] : null; + $this->container['resource'] = isset($data['resource']) ? $data['resource'] : null; + $this->container['resourceOwnerAccount'] = isset($data['resourceOwnerAccount']) ? $data['resourceOwnerAccount'] : null; + $this->container['resourceType'] = isset($data['resourceType']) ? $data['resourceType'] : null; + $this->container['sources'] = isset($data['sources']) ? $data['sources'] : null; + $this->container['status'] = isset($data['status']) ? $data['status'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + if ($this->container['action'] === null) { + $invalidProperties[] = "'action' can't be null"; + } + if ($this->container['changeType'] === null) { + $invalidProperties[] = "'changeType' can't be null"; + } + $allowedValues = $this->getChangeTypeAllowableValues(); + if (!is_null($this->container['changeType']) && !in_array($this->container['changeType'], $allowedValues, true)) { + $invalidProperties[] = sprintf( + "invalid value for 'changeType', must be one of '%s'", + implode("', '", $allowedValues) + ); + } + + if ($this->container['condition'] === null) { + $invalidProperties[] = "'condition' can't be null"; + } + if ($this->container['createdAt'] === null) { + $invalidProperties[] = "'createdAt' can't be null"; + } + if (!is_null($this->container['existingFindingId']) && (mb_strlen($this->container['existingFindingId']) > 36)) { + $invalidProperties[] = "invalid value for 'existingFindingId', the character length must be smaller than or equal to 36."; + } + if (!is_null($this->container['existingFindingId']) && (mb_strlen($this->container['existingFindingId']) < 1)) { + $invalidProperties[] = "invalid value for 'existingFindingId', the character length must be bigger than or equal to 1."; + } + if (!is_null($this->container['existingFindingId']) && !preg_match("/^[\\w-]+$/", $this->container['existingFindingId'])) { + $invalidProperties[] = "invalid value for 'existingFindingId', must be conform to the pattern /^[\\w-]+$/."; + } + $allowedValues = $this->getExistingFindingStatusAllowableValues(); + if (!is_null($this->container['existingFindingStatus']) && !in_array($this->container['existingFindingStatus'], $allowedValues, true)) { + $invalidProperties[] = sprintf( + "invalid value for 'existingFindingStatus', must be one of '%s'", + implode("', '", $allowedValues) + ); + } + + if ($this->container['id'] === null) { + $invalidProperties[] = "'id' can't be null"; + } + if ((mb_strlen($this->container['id']) > 36)) { + $invalidProperties[] = "invalid value for 'id', the character length must be smaller than or equal to 36."; + } + if ((mb_strlen($this->container['id']) < 1)) { + $invalidProperties[] = "invalid value for 'id', the character length must be bigger than or equal to 1."; + } + if (!preg_match("/^[\\w-]+$/", $this->container['id'])) { + $invalidProperties[] = "invalid value for 'id', must be conform to the pattern /^[\\w-]+$/."; + } + if ($this->container['isPublic'] === null) { + $invalidProperties[] = "'isPublic' can't be null"; + } + if ($this->container['principal'] === null) { + $invalidProperties[] = "'principal' can't be null"; + } + if ($this->container['resource'] === null) { + $invalidProperties[] = "'resource' can't be null"; + } + if ((mb_strlen($this->container['resource']) > 1500)) { + $invalidProperties[] = "invalid value for 'resource', the character length must be smaller than or equal to 1500."; + } + if ($this->container['resourceOwnerAccount'] === null) { + $invalidProperties[] = "'resourceOwnerAccount' can't be null"; + } + if ((mb_strlen($this->container['resourceOwnerAccount']) > 36)) { + $invalidProperties[] = "invalid value for 'resourceOwnerAccount', the character length must be smaller than or equal to 36."; + } + if ((mb_strlen($this->container['resourceOwnerAccount']) < 1)) { + $invalidProperties[] = "invalid value for 'resourceOwnerAccount', the character length must be bigger than or equal to 1."; + } + if (!preg_match("/^[\\w-]+$/", $this->container['resourceOwnerAccount'])) { + $invalidProperties[] = "invalid value for 'resourceOwnerAccount', must be conform to the pattern /^[\\w-]+$/."; + } + if ($this->container['resourceType'] === null) { + $invalidProperties[] = "'resourceType' can't be null"; + } + if ($this->container['status'] === null) { + $invalidProperties[] = "'status' can't be null"; + } + $allowedValues = $this->getStatusAllowableValues(); + if (!is_null($this->container['status']) && !in_array($this->container['status'], $allowedValues, true)) { + $invalidProperties[] = sprintf( + "invalid value for 'status', must be one of '%s'", + implode("', '", $allowedValues) + ); + } + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + /** + * Gets action + * 访问信任区域内资源的外部主体。 + * + * @return string[] + */ + public function getAction() + { + return $this->container['action']; + } + + /** + * Sets action + * + * @param string[] $action 访问信任区域内资源的外部主体。 + * + * @return $this + */ + public function setAction($action) + { + $this->container['action'] = $action; + return $this; + } + + /** + * Gets changeType + * 结果状态的变化 + * + * @return string + */ + public function getChangeType() + { + return $this->container['changeType']; + } + + /** + * Sets changeType + * + * @param string $changeType 结果状态的变化 + * + * @return $this + */ + public function setChangeType($changeType) + { + $this->container['changeType'] = $changeType; + return $this; + } + + /** + * Gets condition + * condition + * + * @return \HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\FindingCondition[] + */ + public function getCondition() + { + return $this->container['condition']; + } + + /** + * Sets condition + * + * @param \HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\FindingCondition[] $condition condition + * + * @return $this + */ + public function setCondition($condition) + { + $this->container['condition'] = $condition; + return $this; + } + + /** + * Gets createdAt + * 生成查找结果的时间。 + * + * @return \DateTime + */ + public function getCreatedAt() + { + return $this->container['createdAt']; + } + + /** + * Sets createdAt + * + * @param \DateTime $createdAt 生成查找结果的时间。 + * + * @return $this + */ + public function setCreatedAt($createdAt) + { + $this->container['createdAt'] = $createdAt; + return $this; + } + + /** + * Gets existingFindingId + * 要检索的结果的ID。 + * + * @return string|null + */ + public function getExistingFindingId() + { + return $this->container['existingFindingId']; + } + + /** + * Sets existingFindingId + * + * @param string|null $existingFindingId 要检索的结果的ID。 + * + * @return $this + */ + public function setExistingFindingId($existingFindingId) + { + $this->container['existingFindingId'] = $existingFindingId; + return $this; + } + + /** + * Gets existingFindingStatus + * 结果的当前状态。 + * + * @return string|null + */ + public function getExistingFindingStatus() + { + return $this->container['existingFindingStatus']; + } + + /** + * Sets existingFindingStatus + * + * @param string|null $existingFindingStatus 结果的当前状态。 + * + * @return $this + */ + public function setExistingFindingStatus($existingFindingStatus) + { + $this->container['existingFindingStatus'] = $existingFindingStatus; + return $this; + } + + /** + * Gets id + * 要检索的结果的ID。 + * + * @return string + */ + public function getId() + { + return $this->container['id']; + } + + /** + * Sets id + * + * @param string $id 要检索的结果的ID。 + * + * @return $this + */ + public function setId($id) + { + $this->container['id'] = $id; + return $this; + } + + /** + * Gets isPublic + * 表示生成查找结果的策略是否允许公共访问资源。 + * + * @return bool + */ + public function getIsPublic() + { + return $this->container['isPublic']; + } + + /** + * Sets isPublic + * + * @param bool $isPublic 表示生成查找结果的策略是否允许公共访问资源。 + * + * @return $this + */ + public function setIsPublic($isPublic) + { + $this->container['isPublic'] = $isPublic; + return $this; + } + + /** + * Gets principal + * principal + * + * @return \HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\FindingPrincipal + */ + public function getPrincipal() + { + return $this->container['principal']; + } + + /** + * Sets principal + * + * @param \HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\FindingPrincipal $principal principal + * + * @return $this + */ + public function setPrincipal($principal) + { + $this->container['principal'] = $principal; + return $this; + } + + /** + * Gets resource + * 唯一的资源名称。 + * + * @return string + */ + public function getResource() + { + return $this->container['resource']; + } + + /** + * Sets resource + * + * @param string $resource 唯一的资源名称。 + * + * @return $this + */ + public function setResource($resource) + { + $this->container['resource'] = $resource; + return $this; + } + + /** + * Gets resourceOwnerAccount + * 拥有资源的帐户ID。 + * + * @return string + */ + public function getResourceOwnerAccount() + { + return $this->container['resourceOwnerAccount']; + } + + /** + * Sets resourceOwnerAccount + * + * @param string $resourceOwnerAccount 拥有资源的帐户ID。 + * + * @return $this + */ + public function setResourceOwnerAccount($resourceOwnerAccount) + { + $this->container['resourceOwnerAccount'] = $resourceOwnerAccount; + return $this; + } + + /** + * Gets resourceType + * resourceType + * + * @return \HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\ResourceType + */ + public function getResourceType() + { + return $this->container['resourceType']; + } + + /** + * Sets resourceType + * + * @param \HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\ResourceType $resourceType resourceType + * + * @return $this + */ + public function setResourceType($resourceType) + { + $this->container['resourceType'] = $resourceType; + return $this; + } + + /** + * Gets sources + * sources + * + * @return \HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\FindingSourceType[]|null + */ + public function getSources() + { + return $this->container['sources']; + } + + /** + * Sets sources + * + * @param \HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\FindingSourceType[]|null $sources sources + * + * @return $this + */ + public function setSources($sources) + { + $this->container['sources'] = $sources; + return $this; + } + + /** + * Gets status + * 变化后的状态。 + * + * @return string + */ + public function getStatus() + { + return $this->container['status']; + } + + /** + * Sets status + * + * @param string $status 变化后的状态。 + * + * @return $this + */ + public function setStatus($status) + { + $this->container['status'] = $status; + return $this; + } + + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } +} + diff --git a/Services/IAMAccessAnalyzer/V1/Model/PreviewStatusReason.php b/Services/IAMAccessAnalyzer/V1/Model/PreviewStatusReason.php new file mode 100644 index 000000000..d4eebab40 --- /dev/null +++ b/Services/IAMAccessAnalyzer/V1/Model/PreviewStatusReason.php @@ -0,0 +1,291 @@ + 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * code 分析预览状态原因 + * + * @var string[] + */ + protected static $openAPIFormats = [ + 'code' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * code 分析预览状态原因 + * + * @var string[] + */ + protected static $attributeMap = [ + 'code' => 'code' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * code 分析预览状态原因 + * + * @var string[] + */ + protected static $setters = [ + 'code' => 'setCode' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * code 分析预览状态原因 + * + * @var string[] + */ + protected static $getters = [ + 'code' => 'getCode' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$openAPIModelName; + } + const CODE_INTERNAL_ERROR = 'internal_error'; + const CODE_INVALID_CONFIGURATION = 'invalid_configuration'; + + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getCodeAllowableValues() + { + return [ + self::CODE_INTERNAL_ERROR, + self::CODE_INVALID_CONFIGURATION, + ]; + } + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['code'] = isset($data['code']) ? $data['code'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + if ($this->container['code'] === null) { + $invalidProperties[] = "'code' can't be null"; + } + $allowedValues = $this->getCodeAllowableValues(); + if (!is_null($this->container['code']) && !in_array($this->container['code'], $allowedValues, true)) { + $invalidProperties[] = sprintf( + "invalid value for 'code', must be one of '%s'", + implode("', '", $allowedValues) + ); + } + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + /** + * Gets code + * 分析预览状态原因 + * + * @return string + */ + public function getCode() + { + return $this->container['code']; + } + + /** + * Sets code + * + * @param string $code 分析预览状态原因 + * + * @return $this + */ + public function setCode($code) + { + $this->container['code'] = $code; + return $this; + } + + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } +} + diff --git a/Services/IAMAccessAnalyzer/V1/Model/ResourceOwnerAccount.php b/Services/IAMAccessAnalyzer/V1/Model/ResourceOwnerAccount.php new file mode 100644 index 000000000..27b23c47b --- /dev/null +++ b/Services/IAMAccessAnalyzer/V1/Model/ResourceOwnerAccount.php @@ -0,0 +1,235 @@ +listInvalidProperties()) === 0; + } + + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } +} + diff --git a/Services/IAMAccessAnalyzer/V1/Model/ResourceType.php b/Services/IAMAccessAnalyzer/V1/Model/ResourceType.php new file mode 100644 index 000000000..85f4fe7a2 --- /dev/null +++ b/Services/IAMAccessAnalyzer/V1/Model/ResourceType.php @@ -0,0 +1,28 @@ + 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * analyzerId 分析器的唯一标识符。 + * + * @var string[] + */ + protected static $openAPIFormats = [ + 'analyzerId' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * analyzerId 分析器的唯一标识符。 + * + * @var string[] + */ + protected static $attributeMap = [ + 'analyzerId' => 'analyzer_id' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * analyzerId 分析器的唯一标识符。 + * + * @var string[] + */ + protected static $setters = [ + 'analyzerId' => 'setAnalyzerId' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * analyzerId 分析器的唯一标识符。 + * + * @var string[] + */ + protected static $getters = [ + 'analyzerId' => 'getAnalyzerId' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$openAPIModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['analyzerId'] = isset($data['analyzerId']) ? $data['analyzerId'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + if ($this->container['analyzerId'] === null) { + $invalidProperties[] = "'analyzerId' can't be null"; + } + if ((mb_strlen($this->container['analyzerId']) > 36)) { + $invalidProperties[] = "invalid value for 'analyzerId', the character length must be smaller than or equal to 36."; + } + if ((mb_strlen($this->container['analyzerId']) < 1)) { + $invalidProperties[] = "invalid value for 'analyzerId', the character length must be bigger than or equal to 1."; + } + if (!preg_match("/^[\\w-]+$/", $this->container['analyzerId'])) { + $invalidProperties[] = "invalid value for 'analyzerId', must be conform to the pattern /^[\\w-]+$/."; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + /** + * Gets analyzerId + * 分析器的唯一标识符。 + * + * @return string + */ + public function getAnalyzerId() + { + return $this->container['analyzerId']; + } + + /** + * Sets analyzerId + * + * @param string $analyzerId 分析器的唯一标识符。 + * + * @return $this + */ + public function setAnalyzerId($analyzerId) + { + $this->container['analyzerId'] = $analyzerId; + return $this; + } + + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } +} + diff --git a/Services/IAMAccessAnalyzer/V1/Model/ShowAnalyzerResponse.php b/Services/IAMAccessAnalyzer/V1/Model/ShowAnalyzerResponse.php new file mode 100644 index 000000000..7b203acae --- /dev/null +++ b/Services/IAMAccessAnalyzer/V1/Model/ShowAnalyzerResponse.php @@ -0,0 +1,266 @@ + '\HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\AnalyzerSummary' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * analyzer analyzer + * + * @var string[] + */ + protected static $openAPIFormats = [ + 'analyzer' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * analyzer analyzer + * + * @var string[] + */ + protected static $attributeMap = [ + 'analyzer' => 'analyzer' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * analyzer analyzer + * + * @var string[] + */ + protected static $setters = [ + 'analyzer' => 'setAnalyzer' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * analyzer analyzer + * + * @var string[] + */ + protected static $getters = [ + 'analyzer' => 'getAnalyzer' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$openAPIModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['analyzer'] = isset($data['analyzer']) ? $data['analyzer'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + /** + * Gets analyzer + * analyzer + * + * @return \HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\AnalyzerSummary|null + */ + public function getAnalyzer() + { + return $this->container['analyzer']; + } + + /** + * Sets analyzer + * + * @param \HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\AnalyzerSummary|null $analyzer analyzer + * + * @return $this + */ + public function setAnalyzer($analyzer) + { + $this->container['analyzer'] = $analyzer; + return $this; + } + + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } +} + diff --git a/Services/IAMAccessAnalyzer/V1/Model/ShowArchiveRuleRequest.php b/Services/IAMAccessAnalyzer/V1/Model/ShowArchiveRuleRequest.php new file mode 100644 index 000000000..f0f119fed --- /dev/null +++ b/Services/IAMAccessAnalyzer/V1/Model/ShowArchiveRuleRequest.php @@ -0,0 +1,324 @@ + 'string', + 'archiveRuleId' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * analyzerId 分析器的唯一标识符。 + * archiveRuleId 存档规则的唯一标识符。 + * + * @var string[] + */ + protected static $openAPIFormats = [ + 'analyzerId' => null, + 'archiveRuleId' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * analyzerId 分析器的唯一标识符。 + * archiveRuleId 存档规则的唯一标识符。 + * + * @var string[] + */ + protected static $attributeMap = [ + 'analyzerId' => 'analyzer_id', + 'archiveRuleId' => 'archive_rule_id' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * analyzerId 分析器的唯一标识符。 + * archiveRuleId 存档规则的唯一标识符。 + * + * @var string[] + */ + protected static $setters = [ + 'analyzerId' => 'setAnalyzerId', + 'archiveRuleId' => 'setArchiveRuleId' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * analyzerId 分析器的唯一标识符。 + * archiveRuleId 存档规则的唯一标识符。 + * + * @var string[] + */ + protected static $getters = [ + 'analyzerId' => 'getAnalyzerId', + 'archiveRuleId' => 'getArchiveRuleId' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$openAPIModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['analyzerId'] = isset($data['analyzerId']) ? $data['analyzerId'] : null; + $this->container['archiveRuleId'] = isset($data['archiveRuleId']) ? $data['archiveRuleId'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + if ($this->container['analyzerId'] === null) { + $invalidProperties[] = "'analyzerId' can't be null"; + } + if ((mb_strlen($this->container['analyzerId']) > 36)) { + $invalidProperties[] = "invalid value for 'analyzerId', the character length must be smaller than or equal to 36."; + } + if ((mb_strlen($this->container['analyzerId']) < 1)) { + $invalidProperties[] = "invalid value for 'analyzerId', the character length must be bigger than or equal to 1."; + } + if (!preg_match("/^[\\w-]+$/", $this->container['analyzerId'])) { + $invalidProperties[] = "invalid value for 'analyzerId', must be conform to the pattern /^[\\w-]+$/."; + } + if ($this->container['archiveRuleId'] === null) { + $invalidProperties[] = "'archiveRuleId' can't be null"; + } + if ((mb_strlen($this->container['archiveRuleId']) > 36)) { + $invalidProperties[] = "invalid value for 'archiveRuleId', the character length must be smaller than or equal to 36."; + } + if ((mb_strlen($this->container['archiveRuleId']) < 1)) { + $invalidProperties[] = "invalid value for 'archiveRuleId', the character length must be bigger than or equal to 1."; + } + if (!preg_match("/^[\\w-]+$/", $this->container['archiveRuleId'])) { + $invalidProperties[] = "invalid value for 'archiveRuleId', must be conform to the pattern /^[\\w-]+$/."; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + /** + * Gets analyzerId + * 分析器的唯一标识符。 + * + * @return string + */ + public function getAnalyzerId() + { + return $this->container['analyzerId']; + } + + /** + * Sets analyzerId + * + * @param string $analyzerId 分析器的唯一标识符。 + * + * @return $this + */ + public function setAnalyzerId($analyzerId) + { + $this->container['analyzerId'] = $analyzerId; + return $this; + } + + /** + * Gets archiveRuleId + * 存档规则的唯一标识符。 + * + * @return string + */ + public function getArchiveRuleId() + { + return $this->container['archiveRuleId']; + } + + /** + * Sets archiveRuleId + * + * @param string $archiveRuleId 存档规则的唯一标识符。 + * + * @return $this + */ + public function setArchiveRuleId($archiveRuleId) + { + $this->container['archiveRuleId'] = $archiveRuleId; + return $this; + } + + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } +} + diff --git a/Services/IAMAccessAnalyzer/V1/Model/ShowArchiveRuleResponse.php b/Services/IAMAccessAnalyzer/V1/Model/ShowArchiveRuleResponse.php new file mode 100644 index 000000000..b494ce302 --- /dev/null +++ b/Services/IAMAccessAnalyzer/V1/Model/ShowArchiveRuleResponse.php @@ -0,0 +1,266 @@ + '\HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\ArchiveRuleSummary' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * archiveRule archiveRule + * + * @var string[] + */ + protected static $openAPIFormats = [ + 'archiveRule' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * archiveRule archiveRule + * + * @var string[] + */ + protected static $attributeMap = [ + 'archiveRule' => 'archive_rule' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * archiveRule archiveRule + * + * @var string[] + */ + protected static $setters = [ + 'archiveRule' => 'setArchiveRule' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * archiveRule archiveRule + * + * @var string[] + */ + protected static $getters = [ + 'archiveRule' => 'getArchiveRule' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$openAPIModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['archiveRule'] = isset($data['archiveRule']) ? $data['archiveRule'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + /** + * Gets archiveRule + * archiveRule + * + * @return \HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\ArchiveRuleSummary|null + */ + public function getArchiveRule() + { + return $this->container['archiveRule']; + } + + /** + * Sets archiveRule + * + * @param \HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\ArchiveRuleSummary|null $archiveRule archiveRule + * + * @return $this + */ + public function setArchiveRule($archiveRule) + { + $this->container['archiveRule'] = $archiveRule; + return $this; + } + + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } +} + diff --git a/Services/IAMAccessAnalyzer/V1/Model/ShowFindingRequest.php b/Services/IAMAccessAnalyzer/V1/Model/ShowFindingRequest.php new file mode 100644 index 000000000..7948e3b1e --- /dev/null +++ b/Services/IAMAccessAnalyzer/V1/Model/ShowFindingRequest.php @@ -0,0 +1,324 @@ + 'string', + 'findingId' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * analyzerId 分析器的唯一标识符。 + * findingId 要检索的结果的ID。 + * + * @var string[] + */ + protected static $openAPIFormats = [ + 'analyzerId' => null, + 'findingId' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * analyzerId 分析器的唯一标识符。 + * findingId 要检索的结果的ID。 + * + * @var string[] + */ + protected static $attributeMap = [ + 'analyzerId' => 'analyzer_id', + 'findingId' => 'finding_id' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * analyzerId 分析器的唯一标识符。 + * findingId 要检索的结果的ID。 + * + * @var string[] + */ + protected static $setters = [ + 'analyzerId' => 'setAnalyzerId', + 'findingId' => 'setFindingId' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * analyzerId 分析器的唯一标识符。 + * findingId 要检索的结果的ID。 + * + * @var string[] + */ + protected static $getters = [ + 'analyzerId' => 'getAnalyzerId', + 'findingId' => 'getFindingId' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$openAPIModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['analyzerId'] = isset($data['analyzerId']) ? $data['analyzerId'] : null; + $this->container['findingId'] = isset($data['findingId']) ? $data['findingId'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + if ($this->container['analyzerId'] === null) { + $invalidProperties[] = "'analyzerId' can't be null"; + } + if ((mb_strlen($this->container['analyzerId']) > 36)) { + $invalidProperties[] = "invalid value for 'analyzerId', the character length must be smaller than or equal to 36."; + } + if ((mb_strlen($this->container['analyzerId']) < 1)) { + $invalidProperties[] = "invalid value for 'analyzerId', the character length must be bigger than or equal to 1."; + } + if (!preg_match("/^[\\w-]+$/", $this->container['analyzerId'])) { + $invalidProperties[] = "invalid value for 'analyzerId', must be conform to the pattern /^[\\w-]+$/."; + } + if ($this->container['findingId'] === null) { + $invalidProperties[] = "'findingId' can't be null"; + } + if ((mb_strlen($this->container['findingId']) > 36)) { + $invalidProperties[] = "invalid value for 'findingId', the character length must be smaller than or equal to 36."; + } + if ((mb_strlen($this->container['findingId']) < 1)) { + $invalidProperties[] = "invalid value for 'findingId', the character length must be bigger than or equal to 1."; + } + if (!preg_match("/^[\\w-]+$/", $this->container['findingId'])) { + $invalidProperties[] = "invalid value for 'findingId', must be conform to the pattern /^[\\w-]+$/."; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + /** + * Gets analyzerId + * 分析器的唯一标识符。 + * + * @return string + */ + public function getAnalyzerId() + { + return $this->container['analyzerId']; + } + + /** + * Sets analyzerId + * + * @param string $analyzerId 分析器的唯一标识符。 + * + * @return $this + */ + public function setAnalyzerId($analyzerId) + { + $this->container['analyzerId'] = $analyzerId; + return $this; + } + + /** + * Gets findingId + * 要检索的结果的ID。 + * + * @return string + */ + public function getFindingId() + { + return $this->container['findingId']; + } + + /** + * Sets findingId + * + * @param string $findingId 要检索的结果的ID。 + * + * @return $this + */ + public function setFindingId($findingId) + { + $this->container['findingId'] = $findingId; + return $this; + } + + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } +} + diff --git a/Services/IAMAccessAnalyzer/V1/Model/ShowFindingResponse.php b/Services/IAMAccessAnalyzer/V1/Model/ShowFindingResponse.php new file mode 100644 index 000000000..722d71f34 --- /dev/null +++ b/Services/IAMAccessAnalyzer/V1/Model/ShowFindingResponse.php @@ -0,0 +1,266 @@ + '\HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\Finding' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * finding finding + * + * @var string[] + */ + protected static $openAPIFormats = [ + 'finding' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * finding finding + * + * @var string[] + */ + protected static $attributeMap = [ + 'finding' => 'finding' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * finding finding + * + * @var string[] + */ + protected static $setters = [ + 'finding' => 'setFinding' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * finding finding + * + * @var string[] + */ + protected static $getters = [ + 'finding' => 'getFinding' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$openAPIModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['finding'] = isset($data['finding']) ? $data['finding'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + /** + * Gets finding + * finding + * + * @return \HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\Finding|null + */ + public function getFinding() + { + return $this->container['finding']; + } + + /** + * Sets finding + * + * @param \HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\Finding|null $finding finding + * + * @return $this + */ + public function setFinding($finding) + { + $this->container['finding'] = $finding; + return $this; + } + + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } +} + diff --git a/Services/IAMAccessAnalyzer/V1/Model/Span.php b/Services/IAMAccessAnalyzer/V1/Model/Span.php new file mode 100644 index 000000000..84f4b7b00 --- /dev/null +++ b/Services/IAMAccessAnalyzer/V1/Model/Span.php @@ -0,0 +1,306 @@ + '\HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\Position', + 'end' => '\HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\Position' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * start start + * end end + * + * @var string[] + */ + protected static $openAPIFormats = [ + 'start' => null, + 'end' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * start start + * end end + * + * @var string[] + */ + protected static $attributeMap = [ + 'start' => 'start', + 'end' => 'end' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * start start + * end end + * + * @var string[] + */ + protected static $setters = [ + 'start' => 'setStart', + 'end' => 'setEnd' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * start start + * end end + * + * @var string[] + */ + protected static $getters = [ + 'start' => 'getStart', + 'end' => 'getEnd' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$openAPIModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['start'] = isset($data['start']) ? $data['start'] : null; + $this->container['end'] = isset($data['end']) ? $data['end'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + if ($this->container['start'] === null) { + $invalidProperties[] = "'start' can't be null"; + } + if ($this->container['end'] === null) { + $invalidProperties[] = "'end' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + /** + * Gets start + * start + * + * @return \HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\Position + */ + public function getStart() + { + return $this->container['start']; + } + + /** + * Sets start + * + * @param \HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\Position $start start + * + * @return $this + */ + public function setStart($start) + { + $this->container['start'] = $start; + return $this; + } + + /** + * Gets end + * end + * + * @return \HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\Position + */ + public function getEnd() + { + return $this->container['end']; + } + + /** + * Sets end + * + * @param \HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\Position $end end + * + * @return $this + */ + public function setEnd($end) + { + $this->container['end'] = $end; + return $this; + } + + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } +} + diff --git a/Services/IAMAccessAnalyzer/V1/Model/StartResourceScanReqBody.php b/Services/IAMAccessAnalyzer/V1/Model/StartResourceScanReqBody.php new file mode 100644 index 000000000..dbc0b21de --- /dev/null +++ b/Services/IAMAccessAnalyzer/V1/Model/StartResourceScanReqBody.php @@ -0,0 +1,362 @@ + 'string', + 'resourceOwnerAccount' => 'string', + 'resourceUrn' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * resourceId 资源的唯一标识符。 + * resourceOwnerAccount 拥有资源的帐户ID。 + * resourceUrn 唯一的资源名称。 + * + * @var string[] + */ + protected static $openAPIFormats = [ + 'resourceId' => null, + 'resourceOwnerAccount' => null, + 'resourceUrn' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * resourceId 资源的唯一标识符。 + * resourceOwnerAccount 拥有资源的帐户ID。 + * resourceUrn 唯一的资源名称。 + * + * @var string[] + */ + protected static $attributeMap = [ + 'resourceId' => 'resource_id', + 'resourceOwnerAccount' => 'resource_owner_account', + 'resourceUrn' => 'resource_urn' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * resourceId 资源的唯一标识符。 + * resourceOwnerAccount 拥有资源的帐户ID。 + * resourceUrn 唯一的资源名称。 + * + * @var string[] + */ + protected static $setters = [ + 'resourceId' => 'setResourceId', + 'resourceOwnerAccount' => 'setResourceOwnerAccount', + 'resourceUrn' => 'setResourceUrn' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * resourceId 资源的唯一标识符。 + * resourceOwnerAccount 拥有资源的帐户ID。 + * resourceUrn 唯一的资源名称。 + * + * @var string[] + */ + protected static $getters = [ + 'resourceId' => 'getResourceId', + 'resourceOwnerAccount' => 'getResourceOwnerAccount', + 'resourceUrn' => 'getResourceUrn' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$openAPIModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['resourceId'] = isset($data['resourceId']) ? $data['resourceId'] : null; + $this->container['resourceOwnerAccount'] = isset($data['resourceOwnerAccount']) ? $data['resourceOwnerAccount'] : null; + $this->container['resourceUrn'] = isset($data['resourceUrn']) ? $data['resourceUrn'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + if (!is_null($this->container['resourceId']) && (mb_strlen($this->container['resourceId']) > 36)) { + $invalidProperties[] = "invalid value for 'resourceId', the character length must be smaller than or equal to 36."; + } + if (!is_null($this->container['resourceId']) && (mb_strlen($this->container['resourceId']) < 1)) { + $invalidProperties[] = "invalid value for 'resourceId', the character length must be bigger than or equal to 1."; + } + if (!is_null($this->container['resourceId']) && !preg_match("/^[\\w-]+$/", $this->container['resourceId'])) { + $invalidProperties[] = "invalid value for 'resourceId', must be conform to the pattern /^[\\w-]+$/."; + } + if ($this->container['resourceOwnerAccount'] === null) { + $invalidProperties[] = "'resourceOwnerAccount' can't be null"; + } + if ((mb_strlen($this->container['resourceOwnerAccount']) > 36)) { + $invalidProperties[] = "invalid value for 'resourceOwnerAccount', the character length must be smaller than or equal to 36."; + } + if ((mb_strlen($this->container['resourceOwnerAccount']) < 1)) { + $invalidProperties[] = "invalid value for 'resourceOwnerAccount', the character length must be bigger than or equal to 1."; + } + if (!preg_match("/^[\\w-]+$/", $this->container['resourceOwnerAccount'])) { + $invalidProperties[] = "invalid value for 'resourceOwnerAccount', must be conform to the pattern /^[\\w-]+$/."; + } + if ($this->container['resourceUrn'] === null) { + $invalidProperties[] = "'resourceUrn' can't be null"; + } + if ((mb_strlen($this->container['resourceUrn']) > 1500)) { + $invalidProperties[] = "invalid value for 'resourceUrn', the character length must be smaller than or equal to 1500."; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + /** + * Gets resourceId + * 资源的唯一标识符。 + * + * @return string|null + */ + public function getResourceId() + { + return $this->container['resourceId']; + } + + /** + * Sets resourceId + * + * @param string|null $resourceId 资源的唯一标识符。 + * + * @return $this + */ + public function setResourceId($resourceId) + { + $this->container['resourceId'] = $resourceId; + return $this; + } + + /** + * Gets resourceOwnerAccount + * 拥有资源的帐户ID。 + * + * @return string + */ + public function getResourceOwnerAccount() + { + return $this->container['resourceOwnerAccount']; + } + + /** + * Sets resourceOwnerAccount + * + * @param string $resourceOwnerAccount 拥有资源的帐户ID。 + * + * @return $this + */ + public function setResourceOwnerAccount($resourceOwnerAccount) + { + $this->container['resourceOwnerAccount'] = $resourceOwnerAccount; + return $this; + } + + /** + * Gets resourceUrn + * 唯一的资源名称。 + * + * @return string + */ + public function getResourceUrn() + { + return $this->container['resourceUrn']; + } + + /** + * Sets resourceUrn + * + * @param string $resourceUrn 唯一的资源名称。 + * + * @return $this + */ + public function setResourceUrn($resourceUrn) + { + $this->container['resourceUrn'] = $resourceUrn; + return $this; + } + + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } +} + diff --git a/Services/IAMAccessAnalyzer/V1/Model/StartResourceScanRequest.php b/Services/IAMAccessAnalyzer/V1/Model/StartResourceScanRequest.php new file mode 100644 index 000000000..dc2dde357 --- /dev/null +++ b/Services/IAMAccessAnalyzer/V1/Model/StartResourceScanRequest.php @@ -0,0 +1,312 @@ + 'string', + 'body' => '\HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\StartResourceScanReqBody' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * analyzerId 分析器的唯一标识符。 + * body body + * + * @var string[] + */ + protected static $openAPIFormats = [ + 'analyzerId' => null, + 'body' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * analyzerId 分析器的唯一标识符。 + * body body + * + * @var string[] + */ + protected static $attributeMap = [ + 'analyzerId' => 'analyzer_id', + 'body' => 'body' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * analyzerId 分析器的唯一标识符。 + * body body + * + * @var string[] + */ + protected static $setters = [ + 'analyzerId' => 'setAnalyzerId', + 'body' => 'setBody' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * analyzerId 分析器的唯一标识符。 + * body body + * + * @var string[] + */ + protected static $getters = [ + 'analyzerId' => 'getAnalyzerId', + 'body' => 'getBody' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$openAPIModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['analyzerId'] = isset($data['analyzerId']) ? $data['analyzerId'] : null; + $this->container['body'] = isset($data['body']) ? $data['body'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + if ($this->container['analyzerId'] === null) { + $invalidProperties[] = "'analyzerId' can't be null"; + } + if ((mb_strlen($this->container['analyzerId']) > 36)) { + $invalidProperties[] = "invalid value for 'analyzerId', the character length must be smaller than or equal to 36."; + } + if ((mb_strlen($this->container['analyzerId']) < 1)) { + $invalidProperties[] = "invalid value for 'analyzerId', the character length must be bigger than or equal to 1."; + } + if (!preg_match("/^[\\w-]+$/", $this->container['analyzerId'])) { + $invalidProperties[] = "invalid value for 'analyzerId', must be conform to the pattern /^[\\w-]+$/."; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + /** + * Gets analyzerId + * 分析器的唯一标识符。 + * + * @return string + */ + public function getAnalyzerId() + { + return $this->container['analyzerId']; + } + + /** + * Sets analyzerId + * + * @param string $analyzerId 分析器的唯一标识符。 + * + * @return $this + */ + public function setAnalyzerId($analyzerId) + { + $this->container['analyzerId'] = $analyzerId; + return $this; + } + + /** + * Gets body + * body + * + * @return \HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\StartResourceScanReqBody|null + */ + public function getBody() + { + return $this->container['body']; + } + + /** + * Sets body + * + * @param \HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\StartResourceScanReqBody|null $body body + * + * @return $this + */ + public function setBody($body) + { + $this->container['body'] = $body; + return $this; + } + + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } +} + diff --git a/Services/IAMAccessAnalyzer/V1/Model/StartResourceScanResponse.php b/Services/IAMAccessAnalyzer/V1/Model/StartResourceScanResponse.php new file mode 100644 index 000000000..874fa1247 --- /dev/null +++ b/Services/IAMAccessAnalyzer/V1/Model/StartResourceScanResponse.php @@ -0,0 +1,236 @@ +listInvalidProperties()) === 0; + } + + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } +} + diff --git a/Services/IAMAccessAnalyzer/V1/Model/StatusReason.php b/Services/IAMAccessAnalyzer/V1/Model/StatusReason.php new file mode 100644 index 000000000..72c699f79 --- /dev/null +++ b/Services/IAMAccessAnalyzer/V1/Model/StatusReason.php @@ -0,0 +1,289 @@ + 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * code 分析器的当前状态的原因。 + * + * @var string[] + */ + protected static $openAPIFormats = [ + 'code' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * code 分析器的当前状态的原因。 + * + * @var string[] + */ + protected static $attributeMap = [ + 'code' => 'code' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * code 分析器的当前状态的原因。 + * + * @var string[] + */ + protected static $setters = [ + 'code' => 'setCode' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * code 分析器的当前状态的原因。 + * + * @var string[] + */ + protected static $getters = [ + 'code' => 'getCode' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$openAPIModelName; + } + const CODE_SERVICE_LINKED_AGENCY_CREATION_FAILED = 'service_linked_agency_creation_failed'; + + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getCodeAllowableValues() + { + return [ + self::CODE_SERVICE_LINKED_AGENCY_CREATION_FAILED, + ]; + } + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['code'] = isset($data['code']) ? $data['code'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + if ($this->container['code'] === null) { + $invalidProperties[] = "'code' can't be null"; + } + $allowedValues = $this->getCodeAllowableValues(); + if (!is_null($this->container['code']) && !in_array($this->container['code'], $allowedValues, true)) { + $invalidProperties[] = sprintf( + "invalid value for 'code', must be one of '%s'", + implode("', '", $allowedValues) + ); + } + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + /** + * Gets code + * 分析器的当前状态的原因。 + * + * @return string + */ + public function getCode() + { + return $this->container['code']; + } + + /** + * Sets code + * + * @param string $code 分析器的当前状态的原因。 + * + * @return $this + */ + public function setCode($code) + { + $this->container['code'] = $code; + return $this; + } + + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } +} + diff --git a/Services/IAMAccessAnalyzer/V1/Model/Substring.php b/Services/IAMAccessAnalyzer/V1/Model/Substring.php new file mode 100644 index 000000000..605c866f1 --- /dev/null +++ b/Services/IAMAccessAnalyzer/V1/Model/Substring.php @@ -0,0 +1,306 @@ + 'int', + 'length' => 'int' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * start 子字符串的起始索引,从0开始。0表示第一个字符。 + * length 子字符串的长度。 + * + * @var string[] + */ + protected static $openAPIFormats = [ + 'start' => 'int32', + 'length' => 'int32' + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * start 子字符串的起始索引,从0开始。0表示第一个字符。 + * length 子字符串的长度。 + * + * @var string[] + */ + protected static $attributeMap = [ + 'start' => 'start', + 'length' => 'length' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * start 子字符串的起始索引,从0开始。0表示第一个字符。 + * length 子字符串的长度。 + * + * @var string[] + */ + protected static $setters = [ + 'start' => 'setStart', + 'length' => 'setLength' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * start 子字符串的起始索引,从0开始。0表示第一个字符。 + * length 子字符串的长度。 + * + * @var string[] + */ + protected static $getters = [ + 'start' => 'getStart', + 'length' => 'getLength' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$openAPIModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['start'] = isset($data['start']) ? $data['start'] : null; + $this->container['length'] = isset($data['length']) ? $data['length'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + if ($this->container['start'] === null) { + $invalidProperties[] = "'start' can't be null"; + } + if ($this->container['length'] === null) { + $invalidProperties[] = "'length' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + /** + * Gets start + * 子字符串的起始索引,从0开始。0表示第一个字符。 + * + * @return int + */ + public function getStart() + { + return $this->container['start']; + } + + /** + * Sets start + * + * @param int $start 子字符串的起始索引,从0开始。0表示第一个字符。 + * + * @return $this + */ + public function setStart($start) + { + $this->container['start'] = $start; + return $this; + } + + /** + * Gets length + * 子字符串的长度。 + * + * @return int + */ + public function getLength() + { + return $this->container['length']; + } + + /** + * Sets length + * + * @param int $length 子字符串的长度。 + * + * @return $this + */ + public function setLength($length) + { + $this->container['length'] = $length; + return $this; + } + + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } +} + diff --git a/Services/IAMAccessAnalyzer/V1/Model/Tag.php b/Services/IAMAccessAnalyzer/V1/Model/Tag.php new file mode 100644 index 000000000..c851fdfd4 --- /dev/null +++ b/Services/IAMAccessAnalyzer/V1/Model/Tag.php @@ -0,0 +1,324 @@ + 'string', + 'value' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * key 标记的密钥标识符或名称。 + * value 与标记键关联的字符串值。 + * + * @var string[] + */ + protected static $openAPIFormats = [ + 'key' => null, + 'value' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * key 标记的密钥标识符或名称。 + * value 与标记键关联的字符串值。 + * + * @var string[] + */ + protected static $attributeMap = [ + 'key' => 'key', + 'value' => 'value' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * key 标记的密钥标识符或名称。 + * value 与标记键关联的字符串值。 + * + * @var string[] + */ + protected static $setters = [ + 'key' => 'setKey', + 'value' => 'setValue' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * key 标记的密钥标识符或名称。 + * value 与标记键关联的字符串值。 + * + * @var string[] + */ + protected static $getters = [ + 'key' => 'getKey', + 'value' => 'getValue' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$openAPIModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['key'] = isset($data['key']) ? $data['key'] : null; + $this->container['value'] = isset($data['value']) ? $data['value'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + if ($this->container['key'] === null) { + $invalidProperties[] = "'key' can't be null"; + } + if ((mb_strlen($this->container['key']) > 128)) { + $invalidProperties[] = "invalid value for 'key', the character length must be smaller than or equal to 128."; + } + if ((mb_strlen($this->container['key']) < 1)) { + $invalidProperties[] = "invalid value for 'key', the character length must be bigger than or equal to 1."; + } + if (!preg_match("/^((?!\\s)(?!_sys_)[\\p{L}\\p{Z}\\p{N}_.:=+\\-@]*)(?container['key'])) { + $invalidProperties[] = "invalid value for 'key', must be conform to the pattern /^((?!\\s)(?!_sys_)[\\p{L}\\p{Z}\\p{N}_.:=+\\-@]*)(?container['value'] === null) { + $invalidProperties[] = "'value' can't be null"; + } + if ((mb_strlen($this->container['value']) > 255)) { + $invalidProperties[] = "invalid value for 'value', the character length must be smaller than or equal to 255."; + } + if ((mb_strlen($this->container['value']) < 0)) { + $invalidProperties[] = "invalid value for 'value', the character length must be bigger than or equal to 0."; + } + if (!preg_match("/^([\\p{L}\\p{Z}\\p{N}_.:\/=+\\-@]*)$/", $this->container['value'])) { + $invalidProperties[] = "invalid value for 'value', must be conform to the pattern /^([\\p{L}\\p{Z}\\p{N}_.:\/=+\\-@]*)$/."; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + /** + * Gets key + * 标记的密钥标识符或名称。 + * + * @return string + */ + public function getKey() + { + return $this->container['key']; + } + + /** + * Sets key + * + * @param string $key 标记的密钥标识符或名称。 + * + * @return $this + */ + public function setKey($key) + { + $this->container['key'] = $key; + return $this; + } + + /** + * Gets value + * 与标记键关联的字符串值。 + * + * @return string + */ + public function getValue() + { + return $this->container['value']; + } + + /** + * Sets value + * + * @param string $value 与标记键关联的字符串值。 + * + * @return $this + */ + public function setValue($value) + { + $this->container['value'] = $value; + return $this; + } + + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } +} + diff --git a/Services/IAMAccessAnalyzer/V1/Model/TagKey.php b/Services/IAMAccessAnalyzer/V1/Model/TagKey.php new file mode 100644 index 000000000..0fdc3eb20 --- /dev/null +++ b/Services/IAMAccessAnalyzer/V1/Model/TagKey.php @@ -0,0 +1,235 @@ +listInvalidProperties()) === 0; + } + + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } +} + diff --git a/Services/IAMAccessAnalyzer/V1/Model/TagResourceReqBody.php b/Services/IAMAccessAnalyzer/V1/Model/TagResourceReqBody.php new file mode 100644 index 000000000..59aa0a134 --- /dev/null +++ b/Services/IAMAccessAnalyzer/V1/Model/TagResourceReqBody.php @@ -0,0 +1,268 @@ + '\HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\Tag[]' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * tags tags + * + * @var string[] + */ + protected static $openAPIFormats = [ + 'tags' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * tags tags + * + * @var string[] + */ + protected static $attributeMap = [ + 'tags' => 'tags' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * tags tags + * + * @var string[] + */ + protected static $setters = [ + 'tags' => 'setTags' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * tags tags + * + * @var string[] + */ + protected static $getters = [ + 'tags' => 'getTags' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$openAPIModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['tags'] = isset($data['tags']) ? $data['tags'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + if ($this->container['tags'] === null) { + $invalidProperties[] = "'tags' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + /** + * Gets tags + * tags + * + * @return \HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\Tag[] + */ + public function getTags() + { + return $this->container['tags']; + } + + /** + * Sets tags + * + * @param \HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\Tag[] $tags tags + * + * @return $this + */ + public function setTags($tags) + { + $this->container['tags'] = $tags; + return $this; + } + + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } +} + diff --git a/Services/IAMAccessAnalyzer/V1/Model/TagResourceRequest.php b/Services/IAMAccessAnalyzer/V1/Model/TagResourceRequest.php new file mode 100644 index 000000000..28ff9aec5 --- /dev/null +++ b/Services/IAMAccessAnalyzer/V1/Model/TagResourceRequest.php @@ -0,0 +1,371 @@ + 'string', + 'resourceId' => 'string', + 'body' => '\HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\TagResourceReqBody' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * resourceType 资源类型。 + * resourceId 资源的唯一标识符。 + * body body + * + * @var string[] + */ + protected static $openAPIFormats = [ + 'resourceType' => null, + 'resourceId' => null, + 'body' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * resourceType 资源类型。 + * resourceId 资源的唯一标识符。 + * body body + * + * @var string[] + */ + protected static $attributeMap = [ + 'resourceType' => 'resource_type', + 'resourceId' => 'resource_id', + 'body' => 'body' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * resourceType 资源类型。 + * resourceId 资源的唯一标识符。 + * body body + * + * @var string[] + */ + protected static $setters = [ + 'resourceType' => 'setResourceType', + 'resourceId' => 'setResourceId', + 'body' => 'setBody' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * resourceType 资源类型。 + * resourceId 资源的唯一标识符。 + * body body + * + * @var string[] + */ + protected static $getters = [ + 'resourceType' => 'getResourceType', + 'resourceId' => 'getResourceId', + 'body' => 'getBody' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$openAPIModelName; + } + const RESOURCE_TYPE_ANALYZERS = 'analyzers'; + + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getResourceTypeAllowableValues() + { + return [ + self::RESOURCE_TYPE_ANALYZERS, + ]; + } + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['resourceType'] = isset($data['resourceType']) ? $data['resourceType'] : null; + $this->container['resourceId'] = isset($data['resourceId']) ? $data['resourceId'] : null; + $this->container['body'] = isset($data['body']) ? $data['body'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + if ($this->container['resourceType'] === null) { + $invalidProperties[] = "'resourceType' can't be null"; + } + $allowedValues = $this->getResourceTypeAllowableValues(); + if (!is_null($this->container['resourceType']) && !in_array($this->container['resourceType'], $allowedValues, true)) { + $invalidProperties[] = sprintf( + "invalid value for 'resourceType', must be one of '%s'", + implode("', '", $allowedValues) + ); + } + + if ($this->container['resourceId'] === null) { + $invalidProperties[] = "'resourceId' can't be null"; + } + if ((mb_strlen($this->container['resourceId']) > 36)) { + $invalidProperties[] = "invalid value for 'resourceId', the character length must be smaller than or equal to 36."; + } + if ((mb_strlen($this->container['resourceId']) < 1)) { + $invalidProperties[] = "invalid value for 'resourceId', the character length must be bigger than or equal to 1."; + } + if (!preg_match("/^[\\w-]+$/", $this->container['resourceId'])) { + $invalidProperties[] = "invalid value for 'resourceId', must be conform to the pattern /^[\\w-]+$/."; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + /** + * Gets resourceType + * 资源类型。 + * + * @return string + */ + public function getResourceType() + { + return $this->container['resourceType']; + } + + /** + * Sets resourceType + * + * @param string $resourceType 资源类型。 + * + * @return $this + */ + public function setResourceType($resourceType) + { + $this->container['resourceType'] = $resourceType; + return $this; + } + + /** + * Gets resourceId + * 资源的唯一标识符。 + * + * @return string + */ + public function getResourceId() + { + return $this->container['resourceId']; + } + + /** + * Sets resourceId + * + * @param string $resourceId 资源的唯一标识符。 + * + * @return $this + */ + public function setResourceId($resourceId) + { + $this->container['resourceId'] = $resourceId; + return $this; + } + + /** + * Gets body + * body + * + * @return \HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\TagResourceReqBody|null + */ + public function getBody() + { + return $this->container['body']; + } + + /** + * Sets body + * + * @param \HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\TagResourceReqBody|null $body body + * + * @return $this + */ + public function setBody($body) + { + $this->container['body'] = $body; + return $this; + } + + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } +} + diff --git a/Services/IAMAccessAnalyzer/V1/Model/TagResourceResponse.php b/Services/IAMAccessAnalyzer/V1/Model/TagResourceResponse.php new file mode 100644 index 000000000..12b8b0046 --- /dev/null +++ b/Services/IAMAccessAnalyzer/V1/Model/TagResourceResponse.php @@ -0,0 +1,236 @@ +listInvalidProperties()) === 0; + } + + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } +} + diff --git a/Services/IAMAccessAnalyzer/V1/Model/TagValue.php b/Services/IAMAccessAnalyzer/V1/Model/TagValue.php new file mode 100644 index 000000000..6772fc928 --- /dev/null +++ b/Services/IAMAccessAnalyzer/V1/Model/TagValue.php @@ -0,0 +1,235 @@ +listInvalidProperties()) === 0; + } + + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } +} + diff --git a/Services/IAMAccessAnalyzer/V1/Model/UntagResourceReqBody.php b/Services/IAMAccessAnalyzer/V1/Model/UntagResourceReqBody.php new file mode 100644 index 000000000..0b218c1a2 --- /dev/null +++ b/Services/IAMAccessAnalyzer/V1/Model/UntagResourceReqBody.php @@ -0,0 +1,268 @@ + 'string[]' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * tagKeys tagKeys + * + * @var string[] + */ + protected static $openAPIFormats = [ + 'tagKeys' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * tagKeys tagKeys + * + * @var string[] + */ + protected static $attributeMap = [ + 'tagKeys' => 'tag_keys' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * tagKeys tagKeys + * + * @var string[] + */ + protected static $setters = [ + 'tagKeys' => 'setTagKeys' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * tagKeys tagKeys + * + * @var string[] + */ + protected static $getters = [ + 'tagKeys' => 'getTagKeys' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$openAPIModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['tagKeys'] = isset($data['tagKeys']) ? $data['tagKeys'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + if ($this->container['tagKeys'] === null) { + $invalidProperties[] = "'tagKeys' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + /** + * Gets tagKeys + * tagKeys + * + * @return string[] + */ + public function getTagKeys() + { + return $this->container['tagKeys']; + } + + /** + * Sets tagKeys + * + * @param string[] $tagKeys tagKeys + * + * @return $this + */ + public function setTagKeys($tagKeys) + { + $this->container['tagKeys'] = $tagKeys; + return $this; + } + + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } +} + diff --git a/Services/IAMAccessAnalyzer/V1/Model/UntagResourceRequest.php b/Services/IAMAccessAnalyzer/V1/Model/UntagResourceRequest.php new file mode 100644 index 000000000..badc6773f --- /dev/null +++ b/Services/IAMAccessAnalyzer/V1/Model/UntagResourceRequest.php @@ -0,0 +1,371 @@ + 'string', + 'resourceId' => 'string', + 'body' => '\HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\UntagResourceReqBody' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * resourceType 资源类型。 + * resourceId 资源的唯一标识符。 + * body body + * + * @var string[] + */ + protected static $openAPIFormats = [ + 'resourceType' => null, + 'resourceId' => null, + 'body' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * resourceType 资源类型。 + * resourceId 资源的唯一标识符。 + * body body + * + * @var string[] + */ + protected static $attributeMap = [ + 'resourceType' => 'resource_type', + 'resourceId' => 'resource_id', + 'body' => 'body' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * resourceType 资源类型。 + * resourceId 资源的唯一标识符。 + * body body + * + * @var string[] + */ + protected static $setters = [ + 'resourceType' => 'setResourceType', + 'resourceId' => 'setResourceId', + 'body' => 'setBody' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * resourceType 资源类型。 + * resourceId 资源的唯一标识符。 + * body body + * + * @var string[] + */ + protected static $getters = [ + 'resourceType' => 'getResourceType', + 'resourceId' => 'getResourceId', + 'body' => 'getBody' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$openAPIModelName; + } + const RESOURCE_TYPE_ANALYZERS = 'analyzers'; + + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getResourceTypeAllowableValues() + { + return [ + self::RESOURCE_TYPE_ANALYZERS, + ]; + } + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['resourceType'] = isset($data['resourceType']) ? $data['resourceType'] : null; + $this->container['resourceId'] = isset($data['resourceId']) ? $data['resourceId'] : null; + $this->container['body'] = isset($data['body']) ? $data['body'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + if ($this->container['resourceType'] === null) { + $invalidProperties[] = "'resourceType' can't be null"; + } + $allowedValues = $this->getResourceTypeAllowableValues(); + if (!is_null($this->container['resourceType']) && !in_array($this->container['resourceType'], $allowedValues, true)) { + $invalidProperties[] = sprintf( + "invalid value for 'resourceType', must be one of '%s'", + implode("', '", $allowedValues) + ); + } + + if ($this->container['resourceId'] === null) { + $invalidProperties[] = "'resourceId' can't be null"; + } + if ((mb_strlen($this->container['resourceId']) > 36)) { + $invalidProperties[] = "invalid value for 'resourceId', the character length must be smaller than or equal to 36."; + } + if ((mb_strlen($this->container['resourceId']) < 1)) { + $invalidProperties[] = "invalid value for 'resourceId', the character length must be bigger than or equal to 1."; + } + if (!preg_match("/^[\\w-]+$/", $this->container['resourceId'])) { + $invalidProperties[] = "invalid value for 'resourceId', must be conform to the pattern /^[\\w-]+$/."; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + /** + * Gets resourceType + * 资源类型。 + * + * @return string + */ + public function getResourceType() + { + return $this->container['resourceType']; + } + + /** + * Sets resourceType + * + * @param string $resourceType 资源类型。 + * + * @return $this + */ + public function setResourceType($resourceType) + { + $this->container['resourceType'] = $resourceType; + return $this; + } + + /** + * Gets resourceId + * 资源的唯一标识符。 + * + * @return string + */ + public function getResourceId() + { + return $this->container['resourceId']; + } + + /** + * Sets resourceId + * + * @param string $resourceId 资源的唯一标识符。 + * + * @return $this + */ + public function setResourceId($resourceId) + { + $this->container['resourceId'] = $resourceId; + return $this; + } + + /** + * Gets body + * body + * + * @return \HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\UntagResourceReqBody|null + */ + public function getBody() + { + return $this->container['body']; + } + + /** + * Sets body + * + * @param \HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\UntagResourceReqBody|null $body body + * + * @return $this + */ + public function setBody($body) + { + $this->container['body'] = $body; + return $this; + } + + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } +} + diff --git a/Services/IAMAccessAnalyzer/V1/Model/UntagResourceResponse.php b/Services/IAMAccessAnalyzer/V1/Model/UntagResourceResponse.php new file mode 100644 index 000000000..d6706391e --- /dev/null +++ b/Services/IAMAccessAnalyzer/V1/Model/UntagResourceResponse.php @@ -0,0 +1,236 @@ +listInvalidProperties()) === 0; + } + + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } +} + diff --git a/Services/IAMAccessAnalyzer/V1/Model/UpdateArchiveRuleReqBody.php b/Services/IAMAccessAnalyzer/V1/Model/UpdateArchiveRuleReqBody.php new file mode 100644 index 000000000..ff96813ff --- /dev/null +++ b/Services/IAMAccessAnalyzer/V1/Model/UpdateArchiveRuleReqBody.php @@ -0,0 +1,268 @@ + '\HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\FindingFilter[]' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * filters filters + * + * @var string[] + */ + protected static $openAPIFormats = [ + 'filters' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * filters filters + * + * @var string[] + */ + protected static $attributeMap = [ + 'filters' => 'filters' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * filters filters + * + * @var string[] + */ + protected static $setters = [ + 'filters' => 'setFilters' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * filters filters + * + * @var string[] + */ + protected static $getters = [ + 'filters' => 'getFilters' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$openAPIModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['filters'] = isset($data['filters']) ? $data['filters'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + if ($this->container['filters'] === null) { + $invalidProperties[] = "'filters' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + /** + * Gets filters + * filters + * + * @return \HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\FindingFilter[] + */ + public function getFilters() + { + return $this->container['filters']; + } + + /** + * Sets filters + * + * @param \HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\FindingFilter[] $filters filters + * + * @return $this + */ + public function setFilters($filters) + { + $this->container['filters'] = $filters; + return $this; + } + + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } +} + diff --git a/Services/IAMAccessAnalyzer/V1/Model/UpdateArchiveRuleRequest.php b/Services/IAMAccessAnalyzer/V1/Model/UpdateArchiveRuleRequest.php new file mode 100644 index 000000000..238c3f136 --- /dev/null +++ b/Services/IAMAccessAnalyzer/V1/Model/UpdateArchiveRuleRequest.php @@ -0,0 +1,359 @@ + 'string', + 'archiveRuleId' => 'string', + 'body' => '\HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\UpdateArchiveRuleReqBody' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * analyzerId 分析器的唯一标识符。 + * archiveRuleId 存档规则的唯一标识符。 + * body body + * + * @var string[] + */ + protected static $openAPIFormats = [ + 'analyzerId' => null, + 'archiveRuleId' => null, + 'body' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * analyzerId 分析器的唯一标识符。 + * archiveRuleId 存档规则的唯一标识符。 + * body body + * + * @var string[] + */ + protected static $attributeMap = [ + 'analyzerId' => 'analyzer_id', + 'archiveRuleId' => 'archive_rule_id', + 'body' => 'body' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * analyzerId 分析器的唯一标识符。 + * archiveRuleId 存档规则的唯一标识符。 + * body body + * + * @var string[] + */ + protected static $setters = [ + 'analyzerId' => 'setAnalyzerId', + 'archiveRuleId' => 'setArchiveRuleId', + 'body' => 'setBody' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * analyzerId 分析器的唯一标识符。 + * archiveRuleId 存档规则的唯一标识符。 + * body body + * + * @var string[] + */ + protected static $getters = [ + 'analyzerId' => 'getAnalyzerId', + 'archiveRuleId' => 'getArchiveRuleId', + 'body' => 'getBody' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$openAPIModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['analyzerId'] = isset($data['analyzerId']) ? $data['analyzerId'] : null; + $this->container['archiveRuleId'] = isset($data['archiveRuleId']) ? $data['archiveRuleId'] : null; + $this->container['body'] = isset($data['body']) ? $data['body'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + if ($this->container['analyzerId'] === null) { + $invalidProperties[] = "'analyzerId' can't be null"; + } + if ((mb_strlen($this->container['analyzerId']) > 36)) { + $invalidProperties[] = "invalid value for 'analyzerId', the character length must be smaller than or equal to 36."; + } + if ((mb_strlen($this->container['analyzerId']) < 1)) { + $invalidProperties[] = "invalid value for 'analyzerId', the character length must be bigger than or equal to 1."; + } + if (!preg_match("/^[\\w-]+$/", $this->container['analyzerId'])) { + $invalidProperties[] = "invalid value for 'analyzerId', must be conform to the pattern /^[\\w-]+$/."; + } + if ($this->container['archiveRuleId'] === null) { + $invalidProperties[] = "'archiveRuleId' can't be null"; + } + if ((mb_strlen($this->container['archiveRuleId']) > 36)) { + $invalidProperties[] = "invalid value for 'archiveRuleId', the character length must be smaller than or equal to 36."; + } + if ((mb_strlen($this->container['archiveRuleId']) < 1)) { + $invalidProperties[] = "invalid value for 'archiveRuleId', the character length must be bigger than or equal to 1."; + } + if (!preg_match("/^[\\w-]+$/", $this->container['archiveRuleId'])) { + $invalidProperties[] = "invalid value for 'archiveRuleId', must be conform to the pattern /^[\\w-]+$/."; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + /** + * Gets analyzerId + * 分析器的唯一标识符。 + * + * @return string + */ + public function getAnalyzerId() + { + return $this->container['analyzerId']; + } + + /** + * Sets analyzerId + * + * @param string $analyzerId 分析器的唯一标识符。 + * + * @return $this + */ + public function setAnalyzerId($analyzerId) + { + $this->container['analyzerId'] = $analyzerId; + return $this; + } + + /** + * Gets archiveRuleId + * 存档规则的唯一标识符。 + * + * @return string + */ + public function getArchiveRuleId() + { + return $this->container['archiveRuleId']; + } + + /** + * Sets archiveRuleId + * + * @param string $archiveRuleId 存档规则的唯一标识符。 + * + * @return $this + */ + public function setArchiveRuleId($archiveRuleId) + { + $this->container['archiveRuleId'] = $archiveRuleId; + return $this; + } + + /** + * Gets body + * body + * + * @return \HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\UpdateArchiveRuleReqBody|null + */ + public function getBody() + { + return $this->container['body']; + } + + /** + * Sets body + * + * @param \HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\UpdateArchiveRuleReqBody|null $body body + * + * @return $this + */ + public function setBody($body) + { + $this->container['body'] = $body; + return $this; + } + + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } +} + diff --git a/Services/IAMAccessAnalyzer/V1/Model/UpdateArchiveRuleResponse.php b/Services/IAMAccessAnalyzer/V1/Model/UpdateArchiveRuleResponse.php new file mode 100644 index 000000000..7cd645e62 --- /dev/null +++ b/Services/IAMAccessAnalyzer/V1/Model/UpdateArchiveRuleResponse.php @@ -0,0 +1,236 @@ +listInvalidProperties()) === 0; + } + + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } +} + diff --git a/Services/IAMAccessAnalyzer/V1/Model/UpdateFindingsReqBody.php b/Services/IAMAccessAnalyzer/V1/Model/UpdateFindingsReqBody.php new file mode 100644 index 000000000..3ca172155 --- /dev/null +++ b/Services/IAMAccessAnalyzer/V1/Model/UpdateFindingsReqBody.php @@ -0,0 +1,364 @@ + 'string[]', + 'resourceUrn' => 'string', + 'status' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * ids 要更新的调查结果的ID。 + * resourceUrn 唯一的资源名称。 + * status 状态表示为更新查找状态而要采取的操作。使用“存档”将活动查找更改为存档查找。使用“活动”将存档的查找更改为活动查找。 + * + * @var string[] + */ + protected static $openAPIFormats = [ + 'ids' => null, + 'resourceUrn' => null, + 'status' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * ids 要更新的调查结果的ID。 + * resourceUrn 唯一的资源名称。 + * status 状态表示为更新查找状态而要采取的操作。使用“存档”将活动查找更改为存档查找。使用“活动”将存档的查找更改为活动查找。 + * + * @var string[] + */ + protected static $attributeMap = [ + 'ids' => 'ids', + 'resourceUrn' => 'resource_urn', + 'status' => 'status' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * ids 要更新的调查结果的ID。 + * resourceUrn 唯一的资源名称。 + * status 状态表示为更新查找状态而要采取的操作。使用“存档”将活动查找更改为存档查找。使用“活动”将存档的查找更改为活动查找。 + * + * @var string[] + */ + protected static $setters = [ + 'ids' => 'setIds', + 'resourceUrn' => 'setResourceUrn', + 'status' => 'setStatus' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * ids 要更新的调查结果的ID。 + * resourceUrn 唯一的资源名称。 + * status 状态表示为更新查找状态而要采取的操作。使用“存档”将活动查找更改为存档查找。使用“活动”将存档的查找更改为活动查找。 + * + * @var string[] + */ + protected static $getters = [ + 'ids' => 'getIds', + 'resourceUrn' => 'getResourceUrn', + 'status' => 'getStatus' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$openAPIModelName; + } + const STATUS_ACTIVE = 'active'; + const STATUS_ARCHIVED = 'archived'; + + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getStatusAllowableValues() + { + return [ + self::STATUS_ACTIVE, + self::STATUS_ARCHIVED, + ]; + } + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['ids'] = isset($data['ids']) ? $data['ids'] : null; + $this->container['resourceUrn'] = isset($data['resourceUrn']) ? $data['resourceUrn'] : null; + $this->container['status'] = isset($data['status']) ? $data['status'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + if (!is_null($this->container['resourceUrn']) && (mb_strlen($this->container['resourceUrn']) > 1500)) { + $invalidProperties[] = "invalid value for 'resourceUrn', the character length must be smaller than or equal to 1500."; + } + if ($this->container['status'] === null) { + $invalidProperties[] = "'status' can't be null"; + } + $allowedValues = $this->getStatusAllowableValues(); + if (!is_null($this->container['status']) && !in_array($this->container['status'], $allowedValues, true)) { + $invalidProperties[] = sprintf( + "invalid value for 'status', must be one of '%s'", + implode("', '", $allowedValues) + ); + } + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + /** + * Gets ids + * 要更新的调查结果的ID。 + * + * @return string[]|null + */ + public function getIds() + { + return $this->container['ids']; + } + + /** + * Sets ids + * + * @param string[]|null $ids 要更新的调查结果的ID。 + * + * @return $this + */ + public function setIds($ids) + { + $this->container['ids'] = $ids; + return $this; + } + + /** + * Gets resourceUrn + * 唯一的资源名称。 + * + * @return string|null + */ + public function getResourceUrn() + { + return $this->container['resourceUrn']; + } + + /** + * Sets resourceUrn + * + * @param string|null $resourceUrn 唯一的资源名称。 + * + * @return $this + */ + public function setResourceUrn($resourceUrn) + { + $this->container['resourceUrn'] = $resourceUrn; + return $this; + } + + /** + * Gets status + * 状态表示为更新查找状态而要采取的操作。使用“存档”将活动查找更改为存档查找。使用“活动”将存档的查找更改为活动查找。 + * + * @return string + */ + public function getStatus() + { + return $this->container['status']; + } + + /** + * Sets status + * + * @param string $status 状态表示为更新查找状态而要采取的操作。使用“存档”将活动查找更改为存档查找。使用“活动”将存档的查找更改为活动查找。 + * + * @return $this + */ + public function setStatus($status) + { + $this->container['status'] = $status; + return $this; + } + + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } +} + diff --git a/Services/IAMAccessAnalyzer/V1/Model/UpdateFindingsRequest.php b/Services/IAMAccessAnalyzer/V1/Model/UpdateFindingsRequest.php new file mode 100644 index 000000000..67352af54 --- /dev/null +++ b/Services/IAMAccessAnalyzer/V1/Model/UpdateFindingsRequest.php @@ -0,0 +1,312 @@ + 'string', + 'body' => '\HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\UpdateFindingsReqBody' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * analyzerId 分析器的唯一标识符。 + * body body + * + * @var string[] + */ + protected static $openAPIFormats = [ + 'analyzerId' => null, + 'body' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * analyzerId 分析器的唯一标识符。 + * body body + * + * @var string[] + */ + protected static $attributeMap = [ + 'analyzerId' => 'analyzer_id', + 'body' => 'body' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * analyzerId 分析器的唯一标识符。 + * body body + * + * @var string[] + */ + protected static $setters = [ + 'analyzerId' => 'setAnalyzerId', + 'body' => 'setBody' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * analyzerId 分析器的唯一标识符。 + * body body + * + * @var string[] + */ + protected static $getters = [ + 'analyzerId' => 'getAnalyzerId', + 'body' => 'getBody' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$openAPIModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['analyzerId'] = isset($data['analyzerId']) ? $data['analyzerId'] : null; + $this->container['body'] = isset($data['body']) ? $data['body'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + if ($this->container['analyzerId'] === null) { + $invalidProperties[] = "'analyzerId' can't be null"; + } + if ((mb_strlen($this->container['analyzerId']) > 36)) { + $invalidProperties[] = "invalid value for 'analyzerId', the character length must be smaller than or equal to 36."; + } + if ((mb_strlen($this->container['analyzerId']) < 1)) { + $invalidProperties[] = "invalid value for 'analyzerId', the character length must be bigger than or equal to 1."; + } + if (!preg_match("/^[\\w-]+$/", $this->container['analyzerId'])) { + $invalidProperties[] = "invalid value for 'analyzerId', must be conform to the pattern /^[\\w-]+$/."; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + /** + * Gets analyzerId + * 分析器的唯一标识符。 + * + * @return string + */ + public function getAnalyzerId() + { + return $this->container['analyzerId']; + } + + /** + * Sets analyzerId + * + * @param string $analyzerId 分析器的唯一标识符。 + * + * @return $this + */ + public function setAnalyzerId($analyzerId) + { + $this->container['analyzerId'] = $analyzerId; + return $this; + } + + /** + * Gets body + * body + * + * @return \HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\UpdateFindingsReqBody|null + */ + public function getBody() + { + return $this->container['body']; + } + + /** + * Sets body + * + * @param \HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\UpdateFindingsReqBody|null $body body + * + * @return $this + */ + public function setBody($body) + { + $this->container['body'] = $body; + return $this; + } + + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } +} + diff --git a/Services/IAMAccessAnalyzer/V1/Model/UpdateFindingsResponse.php b/Services/IAMAccessAnalyzer/V1/Model/UpdateFindingsResponse.php new file mode 100644 index 000000000..87b7f1b4a --- /dev/null +++ b/Services/IAMAccessAnalyzer/V1/Model/UpdateFindingsResponse.php @@ -0,0 +1,236 @@ +listInvalidProperties()) === 0; + } + + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } +} + diff --git a/Services/IAMAccessAnalyzer/V1/Model/Urn.php b/Services/IAMAccessAnalyzer/V1/Model/Urn.php new file mode 100644 index 000000000..4d2d95fc3 --- /dev/null +++ b/Services/IAMAccessAnalyzer/V1/Model/Urn.php @@ -0,0 +1,235 @@ +listInvalidProperties()) === 0; + } + + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } +} + diff --git a/Services/IAMAccessAnalyzer/V1/Model/ValidatePolicyFinding.php b/Services/IAMAccessAnalyzer/V1/Model/ValidatePolicyFinding.php new file mode 100644 index 000000000..ccb00c556 --- /dev/null +++ b/Services/IAMAccessAnalyzer/V1/Model/ValidatePolicyFinding.php @@ -0,0 +1,447 @@ + 'string', + 'findingType' => 'string', + 'issueCode' => 'string', + 'learnMoreLink' => 'string', + 'locations' => '\HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\Location[]' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * findingDetails 一条本地化消息提供了如何解决该问题的指导。 + * findingType 影响级别。 安全警告:策略允许的范围过大。 错误:策略不符合策略语法规则。 警告:非安全问题,策略不符合策略编写最佳实践。 建议:改进策略,不影响访问范围。 + * issueCode 问题码提供了与此查找结果关联的问题的标识符。 + * learnMoreLink 指向与此查找结果关联的相关文档的链接。 + * locations 策略文档中与查找结果相关的位置列表。 + * + * @var string[] + */ + protected static $openAPIFormats = [ + 'findingDetails' => null, + 'findingType' => null, + 'issueCode' => null, + 'learnMoreLink' => null, + 'locations' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * findingDetails 一条本地化消息提供了如何解决该问题的指导。 + * findingType 影响级别。 安全警告:策略允许的范围过大。 错误:策略不符合策略语法规则。 警告:非安全问题,策略不符合策略编写最佳实践。 建议:改进策略,不影响访问范围。 + * issueCode 问题码提供了与此查找结果关联的问题的标识符。 + * learnMoreLink 指向与此查找结果关联的相关文档的链接。 + * locations 策略文档中与查找结果相关的位置列表。 + * + * @var string[] + */ + protected static $attributeMap = [ + 'findingDetails' => 'finding_details', + 'findingType' => 'finding_type', + 'issueCode' => 'issue_code', + 'learnMoreLink' => 'learn_more_link', + 'locations' => 'locations' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * findingDetails 一条本地化消息提供了如何解决该问题的指导。 + * findingType 影响级别。 安全警告:策略允许的范围过大。 错误:策略不符合策略语法规则。 警告:非安全问题,策略不符合策略编写最佳实践。 建议:改进策略,不影响访问范围。 + * issueCode 问题码提供了与此查找结果关联的问题的标识符。 + * learnMoreLink 指向与此查找结果关联的相关文档的链接。 + * locations 策略文档中与查找结果相关的位置列表。 + * + * @var string[] + */ + protected static $setters = [ + 'findingDetails' => 'setFindingDetails', + 'findingType' => 'setFindingType', + 'issueCode' => 'setIssueCode', + 'learnMoreLink' => 'setLearnMoreLink', + 'locations' => 'setLocations' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * findingDetails 一条本地化消息提供了如何解决该问题的指导。 + * findingType 影响级别。 安全警告:策略允许的范围过大。 错误:策略不符合策略语法规则。 警告:非安全问题,策略不符合策略编写最佳实践。 建议:改进策略,不影响访问范围。 + * issueCode 问题码提供了与此查找结果关联的问题的标识符。 + * learnMoreLink 指向与此查找结果关联的相关文档的链接。 + * locations 策略文档中与查找结果相关的位置列表。 + * + * @var string[] + */ + protected static $getters = [ + 'findingDetails' => 'getFindingDetails', + 'findingType' => 'getFindingType', + 'issueCode' => 'getIssueCode', + 'learnMoreLink' => 'getLearnMoreLink', + 'locations' => 'getLocations' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$openAPIModelName; + } + const FINDING_TYPE_SECURITY_WARNING = 'security_warning'; + const FINDING_TYPE_ERROR = 'error'; + const FINDING_TYPE_WARNING = 'warning'; + const FINDING_TYPE_SUGGESTION = 'suggestion'; + + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getFindingTypeAllowableValues() + { + return [ + self::FINDING_TYPE_SECURITY_WARNING, + self::FINDING_TYPE_ERROR, + self::FINDING_TYPE_WARNING, + self::FINDING_TYPE_SUGGESTION, + ]; + } + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['findingDetails'] = isset($data['findingDetails']) ? $data['findingDetails'] : null; + $this->container['findingType'] = isset($data['findingType']) ? $data['findingType'] : null; + $this->container['issueCode'] = isset($data['issueCode']) ? $data['issueCode'] : null; + $this->container['learnMoreLink'] = isset($data['learnMoreLink']) ? $data['learnMoreLink'] : null; + $this->container['locations'] = isset($data['locations']) ? $data['locations'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + if ($this->container['findingDetails'] === null) { + $invalidProperties[] = "'findingDetails' can't be null"; + } + if ($this->container['findingType'] === null) { + $invalidProperties[] = "'findingType' can't be null"; + } + $allowedValues = $this->getFindingTypeAllowableValues(); + if (!is_null($this->container['findingType']) && !in_array($this->container['findingType'], $allowedValues, true)) { + $invalidProperties[] = sprintf( + "invalid value for 'findingType', must be one of '%s'", + implode("', '", $allowedValues) + ); + } + + if ($this->container['issueCode'] === null) { + $invalidProperties[] = "'issueCode' can't be null"; + } + if ($this->container['learnMoreLink'] === null) { + $invalidProperties[] = "'learnMoreLink' can't be null"; + } + if ($this->container['locations'] === null) { + $invalidProperties[] = "'locations' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + /** + * Gets findingDetails + * 一条本地化消息提供了如何解决该问题的指导。 + * + * @return string + */ + public function getFindingDetails() + { + return $this->container['findingDetails']; + } + + /** + * Sets findingDetails + * + * @param string $findingDetails 一条本地化消息提供了如何解决该问题的指导。 + * + * @return $this + */ + public function setFindingDetails($findingDetails) + { + $this->container['findingDetails'] = $findingDetails; + return $this; + } + + /** + * Gets findingType + * 影响级别。 安全警告:策略允许的范围过大。 错误:策略不符合策略语法规则。 警告:非安全问题,策略不符合策略编写最佳实践。 建议:改进策略,不影响访问范围。 + * + * @return string + */ + public function getFindingType() + { + return $this->container['findingType']; + } + + /** + * Sets findingType + * + * @param string $findingType 影响级别。 安全警告:策略允许的范围过大。 错误:策略不符合策略语法规则。 警告:非安全问题,策略不符合策略编写最佳实践。 建议:改进策略,不影响访问范围。 + * + * @return $this + */ + public function setFindingType($findingType) + { + $this->container['findingType'] = $findingType; + return $this; + } + + /** + * Gets issueCode + * 问题码提供了与此查找结果关联的问题的标识符。 + * + * @return string + */ + public function getIssueCode() + { + return $this->container['issueCode']; + } + + /** + * Sets issueCode + * + * @param string $issueCode 问题码提供了与此查找结果关联的问题的标识符。 + * + * @return $this + */ + public function setIssueCode($issueCode) + { + $this->container['issueCode'] = $issueCode; + return $this; + } + + /** + * Gets learnMoreLink + * 指向与此查找结果关联的相关文档的链接。 + * + * @return string + */ + public function getLearnMoreLink() + { + return $this->container['learnMoreLink']; + } + + /** + * Sets learnMoreLink + * + * @param string $learnMoreLink 指向与此查找结果关联的相关文档的链接。 + * + * @return $this + */ + public function setLearnMoreLink($learnMoreLink) + { + $this->container['learnMoreLink'] = $learnMoreLink; + return $this; + } + + /** + * Gets locations + * 策略文档中与查找结果相关的位置列表。 + * + * @return \HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\Location[] + */ + public function getLocations() + { + return $this->container['locations']; + } + + /** + * Sets locations + * + * @param \HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\Location[] $locations 策略文档中与查找结果相关的位置列表。 + * + * @return $this + */ + public function setLocations($locations) + { + $this->container['locations'] = $locations; + return $this; + } + + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } +} + diff --git a/Services/IAMAccessAnalyzer/V1/Model/ValidatePolicyReqBody.php b/Services/IAMAccessAnalyzer/V1/Model/ValidatePolicyReqBody.php new file mode 100644 index 000000000..2826a57ad --- /dev/null +++ b/Services/IAMAccessAnalyzer/V1/Model/ValidatePolicyReqBody.php @@ -0,0 +1,347 @@ + 'string', + 'policyType' => '\HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\PolicyType', + 'validatePolicyResourceType' => '\HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\ValidatePolicyResourceType' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * policyDocument 此策略的json格式策略文档。 + * policyType policyType + * validatePolicyResourceType validatePolicyResourceType + * + * @var string[] + */ + protected static $openAPIFormats = [ + 'policyDocument' => null, + 'policyType' => null, + 'validatePolicyResourceType' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * policyDocument 此策略的json格式策略文档。 + * policyType policyType + * validatePolicyResourceType validatePolicyResourceType + * + * @var string[] + */ + protected static $attributeMap = [ + 'policyDocument' => 'policy_document', + 'policyType' => 'policy_type', + 'validatePolicyResourceType' => 'validate_policy_resource_type' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * policyDocument 此策略的json格式策略文档。 + * policyType policyType + * validatePolicyResourceType validatePolicyResourceType + * + * @var string[] + */ + protected static $setters = [ + 'policyDocument' => 'setPolicyDocument', + 'policyType' => 'setPolicyType', + 'validatePolicyResourceType' => 'setValidatePolicyResourceType' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * policyDocument 此策略的json格式策略文档。 + * policyType policyType + * validatePolicyResourceType validatePolicyResourceType + * + * @var string[] + */ + protected static $getters = [ + 'policyDocument' => 'getPolicyDocument', + 'policyType' => 'getPolicyType', + 'validatePolicyResourceType' => 'getValidatePolicyResourceType' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$openAPIModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['policyDocument'] = isset($data['policyDocument']) ? $data['policyDocument'] : null; + $this->container['policyType'] = isset($data['policyType']) ? $data['policyType'] : null; + $this->container['validatePolicyResourceType'] = isset($data['validatePolicyResourceType']) ? $data['validatePolicyResourceType'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + if ($this->container['policyDocument'] === null) { + $invalidProperties[] = "'policyDocument' can't be null"; + } + if ((mb_strlen($this->container['policyDocument']) > 131072)) { + $invalidProperties[] = "invalid value for 'policyDocument', the character length must be smaller than or equal to 131072."; + } + if ((mb_strlen($this->container['policyDocument']) < 0)) { + $invalidProperties[] = "invalid value for 'policyDocument', the character length must be bigger than or equal to 0."; + } + if ($this->container['policyType'] === null) { + $invalidProperties[] = "'policyType' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + /** + * Gets policyDocument + * 此策略的json格式策略文档。 + * + * @return string + */ + public function getPolicyDocument() + { + return $this->container['policyDocument']; + } + + /** + * Sets policyDocument + * + * @param string $policyDocument 此策略的json格式策略文档。 + * + * @return $this + */ + public function setPolicyDocument($policyDocument) + { + $this->container['policyDocument'] = $policyDocument; + return $this; + } + + /** + * Gets policyType + * policyType + * + * @return \HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\PolicyType + */ + public function getPolicyType() + { + return $this->container['policyType']; + } + + /** + * Sets policyType + * + * @param \HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\PolicyType $policyType policyType + * + * @return $this + */ + public function setPolicyType($policyType) + { + $this->container['policyType'] = $policyType; + return $this; + } + + /** + * Gets validatePolicyResourceType + * validatePolicyResourceType + * + * @return \HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\ValidatePolicyResourceType|null + */ + public function getValidatePolicyResourceType() + { + return $this->container['validatePolicyResourceType']; + } + + /** + * Sets validatePolicyResourceType + * + * @param \HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\ValidatePolicyResourceType|null $validatePolicyResourceType validatePolicyResourceType + * + * @return $this + */ + public function setValidatePolicyResourceType($validatePolicyResourceType) + { + $this->container['validatePolicyResourceType'] = $validatePolicyResourceType; + return $this; + } + + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } +} + diff --git a/Services/IAMAccessAnalyzer/V1/Model/ValidatePolicyRequest.php b/Services/IAMAccessAnalyzer/V1/Model/ValidatePolicyRequest.php new file mode 100644 index 000000000..03ac3098d --- /dev/null +++ b/Services/IAMAccessAnalyzer/V1/Model/ValidatePolicyRequest.php @@ -0,0 +1,408 @@ + 'int', + 'marker' => 'string', + 'xLanguage' => 'string', + 'body' => '\HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\ValidatePolicyReqBody' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * limit 单页最大结果数。 + * marker 页面标记。 + * xLanguage 返回消息的语言,默认值为'zh-cn',表示中文。 + * body body + * + * @var string[] + */ + protected static $openAPIFormats = [ + 'limit' => 'int32', + 'marker' => null, + 'xLanguage' => null, + 'body' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * limit 单页最大结果数。 + * marker 页面标记。 + * xLanguage 返回消息的语言,默认值为'zh-cn',表示中文。 + * body body + * + * @var string[] + */ + protected static $attributeMap = [ + 'limit' => 'limit', + 'marker' => 'marker', + 'xLanguage' => 'X-Language', + 'body' => 'body' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * limit 单页最大结果数。 + * marker 页面标记。 + * xLanguage 返回消息的语言,默认值为'zh-cn',表示中文。 + * body body + * + * @var string[] + */ + protected static $setters = [ + 'limit' => 'setLimit', + 'marker' => 'setMarker', + 'xLanguage' => 'setXLanguage', + 'body' => 'setBody' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * limit 单页最大结果数。 + * marker 页面标记。 + * xLanguage 返回消息的语言,默认值为'zh-cn',表示中文。 + * body body + * + * @var string[] + */ + protected static $getters = [ + 'limit' => 'getLimit', + 'marker' => 'getMarker', + 'xLanguage' => 'getXLanguage', + 'body' => 'getBody' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$openAPIModelName; + } + const X_LANGUAGE_ZH_CN = 'zh-cn'; + const X_LANGUAGE_EN_US = 'en-us'; + + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getXLanguageAllowableValues() + { + return [ + self::X_LANGUAGE_ZH_CN, + self::X_LANGUAGE_EN_US, + ]; + } + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['limit'] = isset($data['limit']) ? $data['limit'] : null; + $this->container['marker'] = isset($data['marker']) ? $data['marker'] : null; + $this->container['xLanguage'] = isset($data['xLanguage']) ? $data['xLanguage'] : null; + $this->container['body'] = isset($data['body']) ? $data['body'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + if (!is_null($this->container['limit']) && ($this->container['limit'] > 200)) { + $invalidProperties[] = "invalid value for 'limit', must be smaller than or equal to 200."; + } + if (!is_null($this->container['limit']) && ($this->container['limit'] < 1)) { + $invalidProperties[] = "invalid value for 'limit', must be bigger than or equal to 1."; + } + if (!is_null($this->container['marker']) && (mb_strlen($this->container['marker']) > 400)) { + $invalidProperties[] = "invalid value for 'marker', the character length must be smaller than or equal to 400."; + } + if (!is_null($this->container['marker']) && (mb_strlen($this->container['marker']) < 4)) { + $invalidProperties[] = "invalid value for 'marker', the character length must be bigger than or equal to 4."; + } + if (!is_null($this->container['marker']) && !preg_match("/^[A-Za-z0-9+\/=\\-_]+$/", $this->container['marker'])) { + $invalidProperties[] = "invalid value for 'marker', must be conform to the pattern /^[A-Za-z0-9+\/=\\-_]+$/."; + } + $allowedValues = $this->getXLanguageAllowableValues(); + if (!is_null($this->container['xLanguage']) && !in_array($this->container['xLanguage'], $allowedValues, true)) { + $invalidProperties[] = sprintf( + "invalid value for 'xLanguage', must be one of '%s'", + implode("', '", $allowedValues) + ); + } + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + /** + * Gets limit + * 单页最大结果数。 + * + * @return int|null + */ + public function getLimit() + { + return $this->container['limit']; + } + + /** + * Sets limit + * + * @param int|null $limit 单页最大结果数。 + * + * @return $this + */ + public function setLimit($limit) + { + $this->container['limit'] = $limit; + return $this; + } + + /** + * Gets marker + * 页面标记。 + * + * @return string|null + */ + public function getMarker() + { + return $this->container['marker']; + } + + /** + * Sets marker + * + * @param string|null $marker 页面标记。 + * + * @return $this + */ + public function setMarker($marker) + { + $this->container['marker'] = $marker; + return $this; + } + + /** + * Gets xLanguage + * 返回消息的语言,默认值为'zh-cn',表示中文。 + * + * @return string|null + */ + public function getXLanguage() + { + return $this->container['xLanguage']; + } + + /** + * Sets xLanguage + * + * @param string|null $xLanguage 返回消息的语言,默认值为'zh-cn',表示中文。 + * + * @return $this + */ + public function setXLanguage($xLanguage) + { + $this->container['xLanguage'] = $xLanguage; + return $this; + } + + /** + * Gets body + * body + * + * @return \HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\ValidatePolicyReqBody|null + */ + public function getBody() + { + return $this->container['body']; + } + + /** + * Sets body + * + * @param \HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\ValidatePolicyReqBody|null $body body + * + * @return $this + */ + public function setBody($body) + { + $this->container['body'] = $body; + return $this; + } + + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } +} + diff --git a/Services/IAMAccessAnalyzer/V1/Model/ValidatePolicyResourceType.php b/Services/IAMAccessAnalyzer/V1/Model/ValidatePolicyResourceType.php new file mode 100644 index 000000000..d24b62a28 --- /dev/null +++ b/Services/IAMAccessAnalyzer/V1/Model/ValidatePolicyResourceType.php @@ -0,0 +1,28 @@ + '\HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\ValidatePolicyFinding[]', + 'pageInfo' => '\HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\PageInfo' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * findings findings + * pageInfo pageInfo + * + * @var string[] + */ + protected static $openAPIFormats = [ + 'findings' => null, + 'pageInfo' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * findings findings + * pageInfo pageInfo + * + * @var string[] + */ + protected static $attributeMap = [ + 'findings' => 'findings', + 'pageInfo' => 'page_info' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * findings findings + * pageInfo pageInfo + * + * @var string[] + */ + protected static $setters = [ + 'findings' => 'setFindings', + 'pageInfo' => 'setPageInfo' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * findings findings + * pageInfo pageInfo + * + * @var string[] + */ + protected static $getters = [ + 'findings' => 'getFindings', + 'pageInfo' => 'getPageInfo' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$openAPIModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['findings'] = isset($data['findings']) ? $data['findings'] : null; + $this->container['pageInfo'] = isset($data['pageInfo']) ? $data['pageInfo'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + /** + * Gets findings + * findings + * + * @return \HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\ValidatePolicyFinding[]|null + */ + public function getFindings() + { + return $this->container['findings']; + } + + /** + * Sets findings + * + * @param \HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\ValidatePolicyFinding[]|null $findings findings + * + * @return $this + */ + public function setFindings($findings) + { + $this->container['findings'] = $findings; + return $this; + } + + /** + * Gets pageInfo + * pageInfo + * + * @return \HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\PageInfo|null + */ + public function getPageInfo() + { + return $this->container['pageInfo']; + } + + /** + * Sets pageInfo + * + * @param \HuaweiCloud\SDK\IAMAccessAnalyzer\V1\Model\PageInfo|null $pageInfo pageInfo + * + * @return $this + */ + public function setPageInfo($pageInfo) + { + $this->container['pageInfo'] = $pageInfo; + return $this; + } + + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } +} + diff --git a/Services/IAMAccessAnalyzer/V1/Region/IAMAccessAnalyzerRegion.php b/Services/IAMAccessAnalyzer/V1/Region/IAMAccessAnalyzerRegion.php new file mode 100644 index 000000000..f813e2883 --- /dev/null +++ b/Services/IAMAccessAnalyzer/V1/Region/IAMAccessAnalyzerRegion.php @@ -0,0 +1,27 @@ +"cn-east-3","https://access-analyzer.ap-southeast-4.myhuaweicloud.com"=>"ap-southeast-4",); + + public static function valueOf($regionId) + { + try { + if (null == $regionId) { + throw new InvalidArgumentException("Unexpected empty parameter: regionId."); + } + $endpoint = array_search($regionId, self::$REGION); + if (!$endpoint) { + throw new InvalidArgumentException("Unexpected regionId: " . $regionId); + } + return new Region($regionId, $endpoint); + } catch (InvalidArgumentException $e) { + $msg = $e->getMessage(); + echo "\n" . $msg . "\n"; + } + } +} \ No newline at end of file diff --git a/Services/IAMAccessAnalyzer/composer.json b/Services/IAMAccessAnalyzer/composer.json new file mode 100644 index 000000000..fd8ed9096 --- /dev/null +++ b/Services/IAMAccessAnalyzer/composer.json @@ -0,0 +1,30 @@ +{ + "name": "huaweicloud/huaweicloud-sdk-iamaccessanalyzer", + "description": "HUAWEICLOUD SDK IAMAccessAnalyzer", + "keywords": [ + "php", + "sdk", + "rest", + "api", + "iamaccessanalyzer" + ], + "version": "3.1.78", + "type": "library", + "license": "Apache-2.0", + "authors": [ + { + "name": "HUAWEICloud_SDK", + "email": "hwcloudsdk@huawei.com", + "homepage": "https://github.com/huaweicloud-sdk/huaweicloud-sdk-php" + } + ], + "minimum-stability": "dev", + "require": { + "huaweicloud/huaweicloud-sdk-core": "3.1.78" + }, + "autoload": { + "psr-4": { + "HuaweiCloud\\SDK\\IAMAccessAnalyzer\\V3\\": "V3/" + } + } +} diff --git a/Services/Iam/composer.json b/Services/Iam/composer.json index ae82673f0..03cf1b864 100644 --- a/Services/Iam/composer.json +++ b/Services/Iam/composer.json @@ -8,7 +8,7 @@ "api", "iam" ], - "version": "3.1.77", + "version": "3.1.78", "type": "library", "license": "Apache-2.0", "authors": [ @@ -20,7 +20,7 @@ ], "minimum-stability": "dev", "require": { - "huaweicloud/huaweicloud-sdk-core": "3.1.77" + "huaweicloud/huaweicloud-sdk-core": "3.1.78" }, "autoload": { "psr-4": { diff --git a/Services/Ims/composer.json b/Services/Ims/composer.json index 4f8102d3d..e145029ce 100644 --- a/Services/Ims/composer.json +++ b/Services/Ims/composer.json @@ -8,7 +8,7 @@ "api", "ims" ], - "version": "3.1.77", + "version": "3.1.78", "type": "library", "license": "Apache-2.0", "authors": [ @@ -20,7 +20,7 @@ ], "minimum-stability": "dev", "require": { - "huaweicloud/huaweicloud-sdk-core": "3.1.77" + "huaweicloud/huaweicloud-sdk-core": "3.1.78" }, "autoload": { "psr-4": { diff --git a/Services/IoTDA/composer.json b/Services/IoTDA/composer.json index 1a3a78e24..4e128fccc 100644 --- a/Services/IoTDA/composer.json +++ b/Services/IoTDA/composer.json @@ -8,7 +8,7 @@ "api", "iotda" ], - "version": "3.1.77", + "version": "3.1.78", "type": "library", "license": "Apache-2.0", "authors": [ @@ -20,7 +20,7 @@ ], "minimum-stability": "dev", "require": { - "huaweicloud/huaweicloud-sdk-core": "3.1.77" + "huaweicloud/huaweicloud-sdk-core": "3.1.78" }, "autoload": { "psr-4": { diff --git a/Services/Ivs/composer.json b/Services/Ivs/composer.json index 6bcc9eb8f..73b1ec4b5 100644 --- a/Services/Ivs/composer.json +++ b/Services/Ivs/composer.json @@ -8,7 +8,7 @@ "api", "ivs" ], - "version": "3.1.77", + "version": "3.1.78", "type": "library", "license": "Apache-2.0", "authors": [ @@ -20,7 +20,7 @@ ], "minimum-stability": "dev", "require": { - "huaweicloud/huaweicloud-sdk-core": "3.1.77" + "huaweicloud/huaweicloud-sdk-core": "3.1.78" }, "autoload": { "psr-4": { diff --git a/Services/Kafka/composer.json b/Services/Kafka/composer.json index 62ade6267..24d539aaa 100644 --- a/Services/Kafka/composer.json +++ b/Services/Kafka/composer.json @@ -8,7 +8,7 @@ "api", "kafka" ], - "version": "3.1.77", + "version": "3.1.78", "type": "library", "license": "Apache-2.0", "authors": [ @@ -20,7 +20,7 @@ ], "minimum-stability": "dev", "require": { - "huaweicloud/huaweicloud-sdk-core": "3.1.77" + "huaweicloud/huaweicloud-sdk-core": "3.1.78" }, "autoload": { "psr-4": { diff --git a/Services/Kms/composer.json b/Services/Kms/composer.json index 787f0ed46..6dc81a056 100644 --- a/Services/Kms/composer.json +++ b/Services/Kms/composer.json @@ -8,7 +8,7 @@ "api", "kms" ], - "version": "3.1.77", + "version": "3.1.78", "type": "library", "license": "Apache-2.0", "authors": [ @@ -20,7 +20,7 @@ ], "minimum-stability": "dev", "require": { - "huaweicloud/huaweicloud-sdk-core": "3.1.77" + "huaweicloud/huaweicloud-sdk-core": "3.1.78" }, "autoload": { "psr-4": { diff --git a/Services/Kps/composer.json b/Services/Kps/composer.json index 01931e79a..e65e1f703 100644 --- a/Services/Kps/composer.json +++ b/Services/Kps/composer.json @@ -8,7 +8,7 @@ "api", "kps" ], - "version": "3.1.77", + "version": "3.1.78", "type": "library", "license": "Apache-2.0", "authors": [ @@ -20,7 +20,7 @@ ], "minimum-stability": "dev", "require": { - "huaweicloud/huaweicloud-sdk-core": "3.1.77" + "huaweicloud/huaweicloud-sdk-core": "3.1.78" }, "autoload": { "psr-4": { diff --git a/Services/Live/composer.json b/Services/Live/composer.json index 621335db3..c913fc9e5 100644 --- a/Services/Live/composer.json +++ b/Services/Live/composer.json @@ -8,7 +8,7 @@ "api", "live" ], - "version": "3.1.77", + "version": "3.1.78", "type": "library", "license": "Apache-2.0", "authors": [ @@ -20,7 +20,7 @@ ], "minimum-stability": "dev", "require": { - "huaweicloud/huaweicloud-sdk-core": "3.1.77" + "huaweicloud/huaweicloud-sdk-core": "3.1.78" }, "autoload": { "psr-4": { diff --git a/Services/Lts/composer.json b/Services/Lts/composer.json index 1922866ca..8d613d106 100644 --- a/Services/Lts/composer.json +++ b/Services/Lts/composer.json @@ -8,7 +8,7 @@ "api", "lts" ], - "version": "3.1.77", + "version": "3.1.78", "type": "library", "license": "Apache-2.0", "authors": [ @@ -20,7 +20,7 @@ ], "minimum-stability": "dev", "require": { - "huaweicloud/huaweicloud-sdk-core": "3.1.77" + "huaweicloud/huaweicloud-sdk-core": "3.1.78" }, "autoload": { "psr-4": { diff --git a/Services/Meeting/composer.json b/Services/Meeting/composer.json index 0c6beb545..f0fe50487 100644 --- a/Services/Meeting/composer.json +++ b/Services/Meeting/composer.json @@ -8,7 +8,7 @@ "api", "meeting" ], - "version": "3.1.77", + "version": "3.1.78", "type": "library", "license": "Apache-2.0", "authors": [ @@ -20,7 +20,7 @@ ], "minimum-stability": "dev", "require": { - "huaweicloud/huaweicloud-sdk-core": "3.1.77" + "huaweicloud/huaweicloud-sdk-core": "3.1.78" }, "autoload": { "psr-4": { diff --git a/Services/MetaStudio/composer.json b/Services/MetaStudio/composer.json index 5f5e8cfc8..8b0d0fe19 100644 --- a/Services/MetaStudio/composer.json +++ b/Services/MetaStudio/composer.json @@ -8,7 +8,7 @@ "api", "metastudio" ], - "version": "3.1.77", + "version": "3.1.78", "type": "library", "license": "Apache-2.0", "authors": [ @@ -20,7 +20,7 @@ ], "minimum-stability": "dev", "require": { - "huaweicloud/huaweicloud-sdk-core": "3.1.77" + "huaweicloud/huaweicloud-sdk-core": "3.1.78" }, "autoload": { "psr-4": { diff --git a/Services/Moderation/composer.json b/Services/Moderation/composer.json index 5eec8569c..9ce600d6b 100644 --- a/Services/Moderation/composer.json +++ b/Services/Moderation/composer.json @@ -8,7 +8,7 @@ "api", "moderation" ], - "version": "3.1.77", + "version": "3.1.78", "type": "library", "license": "Apache-2.0", "authors": [ @@ -20,7 +20,7 @@ ], "minimum-stability": "dev", "require": { - "huaweicloud/huaweicloud-sdk-core": "3.1.77" + "huaweicloud/huaweicloud-sdk-core": "3.1.78" }, "autoload": { "psr-4": { diff --git a/Services/Mpc/composer.json b/Services/Mpc/composer.json index 5526c00bf..b94111e70 100644 --- a/Services/Mpc/composer.json +++ b/Services/Mpc/composer.json @@ -8,7 +8,7 @@ "api", "mpc" ], - "version": "3.1.77", + "version": "3.1.78", "type": "library", "license": "Apache-2.0", "authors": [ @@ -20,7 +20,7 @@ ], "minimum-stability": "dev", "require": { - "huaweicloud/huaweicloud-sdk-core": "3.1.77" + "huaweicloud/huaweicloud-sdk-core": "3.1.78" }, "autoload": { "psr-4": { diff --git a/Services/Mrs/composer.json b/Services/Mrs/composer.json index 3747b8ec8..8c5ddd296 100644 --- a/Services/Mrs/composer.json +++ b/Services/Mrs/composer.json @@ -8,7 +8,7 @@ "api", "mrs" ], - "version": "3.1.77", + "version": "3.1.78", "type": "library", "license": "Apache-2.0", "authors": [ @@ -20,7 +20,7 @@ ], "minimum-stability": "dev", "require": { - "huaweicloud/huaweicloud-sdk-core": "3.1.77" + "huaweicloud/huaweicloud-sdk-core": "3.1.78" }, "autoload": { "psr-4": { diff --git a/Services/Nat/composer.json b/Services/Nat/composer.json index bf1f125fb..ebcac9fe7 100644 --- a/Services/Nat/composer.json +++ b/Services/Nat/composer.json @@ -8,7 +8,7 @@ "api", "nat" ], - "version": "3.1.77", + "version": "3.1.78", "type": "library", "license": "Apache-2.0", "authors": [ @@ -20,7 +20,7 @@ ], "minimum-stability": "dev", "require": { - "huaweicloud/huaweicloud-sdk-core": "3.1.77" + "huaweicloud/huaweicloud-sdk-core": "3.1.78" }, "autoload": { "psr-4": { diff --git a/Services/Ocr/composer.json b/Services/Ocr/composer.json index a4c8d92e1..cf5fd9e21 100644 --- a/Services/Ocr/composer.json +++ b/Services/Ocr/composer.json @@ -8,7 +8,7 @@ "api", "ocr" ], - "version": "3.1.77", + "version": "3.1.78", "type": "library", "license": "Apache-2.0", "authors": [ @@ -20,7 +20,7 @@ ], "minimum-stability": "dev", "require": { - "huaweicloud/huaweicloud-sdk-core": "3.1.77" + "huaweicloud/huaweicloud-sdk-core": "3.1.78" }, "autoload": { "psr-4": { diff --git a/Services/Oms/composer.json b/Services/Oms/composer.json index 989169376..75b03b9eb 100644 --- a/Services/Oms/composer.json +++ b/Services/Oms/composer.json @@ -8,7 +8,7 @@ "api", "oms" ], - "version": "3.1.77", + "version": "3.1.78", "type": "library", "license": "Apache-2.0", "authors": [ @@ -20,7 +20,7 @@ ], "minimum-stability": "dev", "require": { - "huaweicloud/huaweicloud-sdk-core": "3.1.77" + "huaweicloud/huaweicloud-sdk-core": "3.1.78" }, "autoload": { "psr-4": { diff --git a/Services/RabbitMQ/composer.json b/Services/RabbitMQ/composer.json index 91bdb0ded..4d1eb88db 100644 --- a/Services/RabbitMQ/composer.json +++ b/Services/RabbitMQ/composer.json @@ -8,7 +8,7 @@ "api", "rabbitmq" ], - "version": "3.1.77", + "version": "3.1.78", "type": "library", "license": "Apache-2.0", "authors": [ @@ -20,7 +20,7 @@ ], "minimum-stability": "dev", "require": { - "huaweicloud/huaweicloud-sdk-core": "3.1.77" + "huaweicloud/huaweicloud-sdk-core": "3.1.78" }, "autoload": { "psr-4": { diff --git a/Services/Rds/composer.json b/Services/Rds/composer.json index b43862863..e2a431b4b 100644 --- a/Services/Rds/composer.json +++ b/Services/Rds/composer.json @@ -8,7 +8,7 @@ "api", "rds" ], - "version": "3.1.77", + "version": "3.1.78", "type": "library", "license": "Apache-2.0", "authors": [ @@ -20,7 +20,7 @@ ], "minimum-stability": "dev", "require": { - "huaweicloud/huaweicloud-sdk-core": "3.1.77" + "huaweicloud/huaweicloud-sdk-core": "3.1.78" }, "autoload": { "psr-4": { diff --git a/Services/Rms/composer.json b/Services/Rms/composer.json index 487415d33..1a4ba3cce 100644 --- a/Services/Rms/composer.json +++ b/Services/Rms/composer.json @@ -8,7 +8,7 @@ "api", "rms" ], - "version": "3.1.77", + "version": "3.1.78", "type": "library", "license": "Apache-2.0", "authors": [ @@ -20,7 +20,7 @@ ], "minimum-stability": "dev", "require": { - "huaweicloud/huaweicloud-sdk-core": "3.1.77" + "huaweicloud/huaweicloud-sdk-core": "3.1.78" }, "autoload": { "psr-4": { diff --git a/Services/RocketMQ/composer.json b/Services/RocketMQ/composer.json index 72b07c656..9b236d2da 100644 --- a/Services/RocketMQ/composer.json +++ b/Services/RocketMQ/composer.json @@ -8,7 +8,7 @@ "api", "rocketmq" ], - "version": "3.1.77", + "version": "3.1.78", "type": "library", "license": "Apache-2.0", "authors": [ @@ -20,7 +20,7 @@ ], "minimum-stability": "dev", "require": { - "huaweicloud/huaweicloud-sdk-core": "3.1.77" + "huaweicloud/huaweicloud-sdk-core": "3.1.78" }, "autoload": { "psr-4": { diff --git a/Services/SFSTurbo/composer.json b/Services/SFSTurbo/composer.json index 177daf181..b8a86cb0b 100644 --- a/Services/SFSTurbo/composer.json +++ b/Services/SFSTurbo/composer.json @@ -8,7 +8,7 @@ "api", "sfsturbo" ], - "version": "3.1.77", + "version": "3.1.78", "type": "library", "license": "Apache-2.0", "authors": [ @@ -20,7 +20,7 @@ ], "minimum-stability": "dev", "require": { - "huaweicloud/huaweicloud-sdk-core": "3.1.77" + "huaweicloud/huaweicloud-sdk-core": "3.1.78" }, "autoload": { "psr-4": { diff --git a/Services/SecMaster/composer.json b/Services/SecMaster/composer.json index 3abdaedc8..ba44b93ec 100644 --- a/Services/SecMaster/composer.json +++ b/Services/SecMaster/composer.json @@ -8,7 +8,7 @@ "api", "secmaster" ], - "version": "3.1.77", + "version": "3.1.78", "type": "library", "license": "Apache-2.0", "authors": [ @@ -20,7 +20,7 @@ ], "minimum-stability": "dev", "require": { - "huaweicloud/huaweicloud-sdk-core": "3.1.77" + "huaweicloud/huaweicloud-sdk-core": "3.1.78" }, "autoload": { "psr-4": { diff --git a/Services/ServiceStage/composer.json b/Services/ServiceStage/composer.json index e5b444e0a..7ab48a6c7 100644 --- a/Services/ServiceStage/composer.json +++ b/Services/ServiceStage/composer.json @@ -8,7 +8,7 @@ "api", "servicestage" ], - "version": "3.1.77", + "version": "3.1.78", "type": "library", "license": "Apache-2.0", "authors": [ @@ -20,7 +20,7 @@ ], "minimum-stability": "dev", "require": { - "huaweicloud/huaweicloud-sdk-core": "3.1.77" + "huaweicloud/huaweicloud-sdk-core": "3.1.78" }, "autoload": { "psr-4": { diff --git a/Services/Sis/composer.json b/Services/Sis/composer.json index 8314adceb..f9e9082d2 100644 --- a/Services/Sis/composer.json +++ b/Services/Sis/composer.json @@ -8,7 +8,7 @@ "api", "sis" ], - "version": "3.1.77", + "version": "3.1.78", "type": "library", "license": "Apache-2.0", "authors": [ @@ -20,7 +20,7 @@ ], "minimum-stability": "dev", "require": { - "huaweicloud/huaweicloud-sdk-core": "3.1.77" + "huaweicloud/huaweicloud-sdk-core": "3.1.78" }, "autoload": { "psr-4": { diff --git a/Services/Smn/composer.json b/Services/Smn/composer.json index dfa4ac1e6..41bf67864 100644 --- a/Services/Smn/composer.json +++ b/Services/Smn/composer.json @@ -8,7 +8,7 @@ "api", "smn" ], - "version": "3.1.77", + "version": "3.1.78", "type": "library", "license": "Apache-2.0", "authors": [ @@ -20,7 +20,7 @@ ], "minimum-stability": "dev", "require": { - "huaweicloud/huaweicloud-sdk-core": "3.1.77" + "huaweicloud/huaweicloud-sdk-core": "3.1.78" }, "autoload": { "psr-4": { diff --git a/Services/Sms/composer.json b/Services/Sms/composer.json index 625bb47e9..7ff49f8fb 100644 --- a/Services/Sms/composer.json +++ b/Services/Sms/composer.json @@ -8,7 +8,7 @@ "api", "sms" ], - "version": "3.1.77", + "version": "3.1.78", "type": "library", "license": "Apache-2.0", "authors": [ @@ -20,7 +20,7 @@ ], "minimum-stability": "dev", "require": { - "huaweicloud/huaweicloud-sdk-core": "3.1.77" + "huaweicloud/huaweicloud-sdk-core": "3.1.78" }, "autoload": { "psr-4": { diff --git a/Services/Swr/composer.json b/Services/Swr/composer.json index 61f09ff3b..790689709 100644 --- a/Services/Swr/composer.json +++ b/Services/Swr/composer.json @@ -8,7 +8,7 @@ "api", "swr" ], - "version": "3.1.77", + "version": "3.1.78", "type": "library", "license": "Apache-2.0", "authors": [ @@ -20,7 +20,7 @@ ], "minimum-stability": "dev", "require": { - "huaweicloud/huaweicloud-sdk-core": "3.1.77" + "huaweicloud/huaweicloud-sdk-core": "3.1.78" }, "autoload": { "psr-4": { diff --git a/Services/Tics/composer.json b/Services/Tics/composer.json index 29b96129b..cfcf07ca8 100644 --- a/Services/Tics/composer.json +++ b/Services/Tics/composer.json @@ -8,7 +8,7 @@ "api", "tics" ], - "version": "3.1.77", + "version": "3.1.78", "type": "library", "license": "Apache-2.0", "authors": [ @@ -20,7 +20,7 @@ ], "minimum-stability": "dev", "require": { - "huaweicloud/huaweicloud-sdk-core": "3.1.77" + "huaweicloud/huaweicloud-sdk-core": "3.1.78" }, "autoload": { "psr-4": { diff --git a/Services/Tms/composer.json b/Services/Tms/composer.json index 32d9cec62..d87450881 100644 --- a/Services/Tms/composer.json +++ b/Services/Tms/composer.json @@ -8,7 +8,7 @@ "api", "tms" ], - "version": "3.1.77", + "version": "3.1.78", "type": "library", "license": "Apache-2.0", "authors": [ @@ -20,7 +20,7 @@ ], "minimum-stability": "dev", "require": { - "huaweicloud/huaweicloud-sdk-core": "3.1.77" + "huaweicloud/huaweicloud-sdk-core": "3.1.78" }, "autoload": { "psr-4": { diff --git a/Services/Vod/composer.json b/Services/Vod/composer.json index 856d34b38..be24c4c40 100644 --- a/Services/Vod/composer.json +++ b/Services/Vod/composer.json @@ -8,7 +8,7 @@ "api", "vod" ], - "version": "3.1.77", + "version": "3.1.78", "type": "library", "license": "Apache-2.0", "authors": [ @@ -20,7 +20,7 @@ ], "minimum-stability": "dev", "require": { - "huaweicloud/huaweicloud-sdk-core": "3.1.77" + "huaweicloud/huaweicloud-sdk-core": "3.1.78" }, "autoload": { "psr-4": { diff --git a/Services/Vpc/composer.json b/Services/Vpc/composer.json index 55c819872..c78a66d50 100644 --- a/Services/Vpc/composer.json +++ b/Services/Vpc/composer.json @@ -8,7 +8,7 @@ "api", "vpc" ], - "version": "3.1.77", + "version": "3.1.78", "type": "library", "license": "Apache-2.0", "authors": [ @@ -20,7 +20,7 @@ ], "minimum-stability": "dev", "require": { - "huaweicloud/huaweicloud-sdk-core": "3.1.77" + "huaweicloud/huaweicloud-sdk-core": "3.1.78" }, "autoload": { "psr-4": { diff --git a/Services/Vpcep/composer.json b/Services/Vpcep/composer.json index 102610535..e57349a46 100644 --- a/Services/Vpcep/composer.json +++ b/Services/Vpcep/composer.json @@ -8,7 +8,7 @@ "api", "vpcep" ], - "version": "3.1.77", + "version": "3.1.78", "type": "library", "license": "Apache-2.0", "authors": [ @@ -20,7 +20,7 @@ ], "minimum-stability": "dev", "require": { - "huaweicloud/huaweicloud-sdk-core": "3.1.77" + "huaweicloud/huaweicloud-sdk-core": "3.1.78" }, "autoload": { "psr-4": { diff --git a/Services/Vpn/composer.json b/Services/Vpn/composer.json index 4e4b0db73..25c5200ba 100644 --- a/Services/Vpn/composer.json +++ b/Services/Vpn/composer.json @@ -8,7 +8,7 @@ "api", "vpn" ], - "version": "3.1.77", + "version": "3.1.78", "type": "library", "license": "Apache-2.0", "authors": [ @@ -20,7 +20,7 @@ ], "minimum-stability": "dev", "require": { - "huaweicloud/huaweicloud-sdk-core": "3.1.77" + "huaweicloud/huaweicloud-sdk-core": "3.1.78" }, "autoload": { "psr-4": { diff --git a/Services/Waf/composer.json b/Services/Waf/composer.json index 11b40ebba..81a07cb82 100644 --- a/Services/Waf/composer.json +++ b/Services/Waf/composer.json @@ -8,7 +8,7 @@ "api", "waf" ], - "version": "3.1.77", + "version": "3.1.78", "type": "library", "license": "Apache-2.0", "authors": [ @@ -20,7 +20,7 @@ ], "minimum-stability": "dev", "require": { - "huaweicloud/huaweicloud-sdk-core": "3.1.77" + "huaweicloud/huaweicloud-sdk-core": "3.1.78" }, "autoload": { "psr-4": { diff --git a/Services/cts/composer.json b/Services/cts/composer.json index e9027ed01..e2c4ccf27 100644 --- a/Services/cts/composer.json +++ b/Services/cts/composer.json @@ -8,7 +8,7 @@ "api", "cts" ], - "version": "3.1.77", + "version": "3.1.78", "type": "library", "license": "Apache-2.0", "authors": [ @@ -20,7 +20,7 @@ ], "minimum-stability": "dev", "require": { - "huaweicloud/huaweicloud-sdk-core": "3.1.77" + "huaweicloud/huaweicloud-sdk-core": "3.1.78" }, "autoload": { "psr-4": { diff --git a/Services/gaussdbfornosql/composer.json b/Services/gaussdbfornosql/composer.json index 428f4c3dc..80fb6400a 100644 --- a/Services/gaussdbfornosql/composer.json +++ b/Services/gaussdbfornosql/composer.json @@ -8,7 +8,7 @@ "api", "gaussdbfornosql" ], - "version": "3.1.77", + "version": "3.1.78", "type": "library", "license": "Apache-2.0", "authors": [ @@ -20,7 +20,7 @@ ], "minimum-stability": "dev", "require": { - "huaweicloud/huaweicloud-sdk-core": "3.1.77" + "huaweicloud/huaweicloud-sdk-core": "3.1.78" }, "autoload": { "psr-4": { diff --git a/VERSION b/VERSION index b84b989eb..a53dcb0c7 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -3.1.77 +3.1.78 diff --git a/composer.json b/composer.json index 9cc29928e..83238fb79 100644 --- a/composer.json +++ b/composer.json @@ -7,7 +7,7 @@ "rest", "api" ], - "version": "3.1.77", + "version": "3.1.78", "type": "library", "license": "Apache-2.0", "authors": [