Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 3a76092

Browse files
committed
Update API DescribeCheckWarningDetail: add request parameters ContainerName.
1 parent bbae49c commit 3a76092

File tree

7 files changed

+41
-5
lines changed

7 files changed

+41
-5
lines changed

‎sas-20181203/ChangeLog.txt‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
2025年10月28日 Version: 6.0.1
2+
- Update API DescribeCheckWarningDetail: add request parameters ContainerName.
3+
4+
15
2025年10月27日 Version: 6.0.0
26
- Update API DescribeMonitorAccounts: delete response parameters Body.AccountIdInfos.$.IsCloudSiemAccount.
37
- Update API DescribeMonitorAccounts: delete response parameters Body.AccountIdInfos.$.IsSasAccount.

‎sas-20181203/include/alibabacloud/Sas20181203.hpp‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1804,7 +1804,7 @@ namespace Sas20181203
18041804
Models::DeleteBinarySecurityPolicyResponse deleteBinarySecurityPolicy(const Models::DeleteBinarySecurityPolicyRequest &request);
18051805

18061806
/**
1807-
* @summary 删除自定义策略
1807+
* @summary Delete custom scope directories in Cloud Security Posture Management (CSPM) custom checks. You can remove assigned standards, requirements, or sections.
18081808
*
18091809
* @param request DeleteCheckPolicyRequest
18101810
* @param runtime runtime options for this request RuntimeOptions
@@ -1813,7 +1813,7 @@ namespace Sas20181203
18131813
Models::DeleteCheckPolicyResponse deleteCheckPolicyWithOptions(const Models::DeleteCheckPolicyRequest &request, const Darabonba::RuntimeOptions &runtime);
18141814

18151815
/**
1816-
* @summary 删除自定义策略
1816+
* @summary Delete custom scope directories in Cloud Security Posture Management (CSPM) custom checks. You can remove assigned standards, requirements, or sections.
18171817
*
18181818
* @param request DeleteCheckPolicyRequest
18191819
* @return DeleteCheckPolicyResponse

‎sas-20181203/include/alibabacloud/models/DeleteCheckPolicyRequest.hpp‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,16 @@ namespace Models
5151

5252

5353
protected:
54+
// Array of policies to delete
55+
//
5456
// This parameter is required.
5557
std::shared_ptr<vector<int64_t>> policyIds_ = nullptr;
58+
// Policy type for custom check rule:
59+
//
60+
// * **STANDARD**: Standard-level policy
61+
// * **REQUIREMENT**: Requirement-level policy
62+
// * **SECTION**: Section-level policy
63+
//
5664
// This parameter is required.
5765
std::shared_ptr<string> policyType_ = nullptr;
5866
};

‎sas-20181203/include/alibabacloud/models/DeleteCheckPolicyResponseBody.hpp‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,9 @@ namespace Models
5252

5353

5454
protected:
55+
// List of deleted policy details.
5556
std::shared_ptr<vector<DeleteCheckPolicyResponseBodyPolicys>> policys_ = nullptr;
57+
// The unique ID of the request, which is used to locate and troubleshoot issues.
5658
std::shared_ptr<string> requestId_ = nullptr;
5759
};
5860

‎sas-20181203/include/alibabacloud/models/DeleteCheckPolicyResponseBodyPolicys.hpp‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,15 @@ namespace Models
5757

5858

5959
protected:
60+
// Deleted policy ID.
6061
std::shared_ptr<int64_t> policyId_ = nullptr;
62+
// The name of the custom policy.
6163
std::shared_ptr<string> policyShowName_ = nullptr;
64+
// Policy type for custom check rule:
65+
//
66+
// * **STANDARD**: Standard-level policy
67+
// * **REQUIREMENT**: Requirement-level policy
68+
// * **SECTION**: Section-level policy
6269
std::shared_ptr<string> policyType_ = nullptr;
6370
};
6471

‎sas-20181203/include/alibabacloud/models/DescribeCheckWarningDetailRequest.hpp‎

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ namespace Models
1515
friend void to_json(Darabonba::Json& j, const DescribeCheckWarningDetailRequest& obj) {
1616
DARABONBA_PTR_TO_JSON(CheckId, checkId_);
1717
DARABONBA_PTR_TO_JSON(CheckWarningId, checkWarningId_);
18+
DARABONBA_PTR_TO_JSON(ContainerName, containerName_);
1819
DARABONBA_PTR_TO_JSON(Lang, lang_);
1920
DARABONBA_PTR_TO_JSON(ResourceDirectoryAccountId, resourceDirectoryAccountId_);
2021
DARABONBA_PTR_TO_JSON(SourceIp, sourceIp_);
@@ -23,6 +24,7 @@ namespace Models
2324
friend void from_json(const Darabonba::Json& j, DescribeCheckWarningDetailRequest& obj) {
2425
DARABONBA_PTR_FROM_JSON(CheckId, checkId_);
2526
DARABONBA_PTR_FROM_JSON(CheckWarningId, checkWarningId_);
27+
DARABONBA_PTR_FROM_JSON(ContainerName, containerName_);
2628
DARABONBA_PTR_FROM_JSON(Lang, lang_);
2729
DARABONBA_PTR_FROM_JSON(ResourceDirectoryAccountId, resourceDirectoryAccountId_);
2830
DARABONBA_PTR_FROM_JSON(SourceIp, sourceIp_);
@@ -40,7 +42,8 @@ namespace Models
4042
virtual void fromMap(const Darabonba::Json &obj) override { from_json(obj, *this); validate(); };
4143
virtual Darabonba::Json toMap() const override { Darabonba::Json obj; to_json(obj, *this); return obj; };
4244
virtual bool empty() const override { return this->checkId_ == nullptr
43-
&& return this->checkWarningId_ == nullptr && return this->lang_ == nullptr && return this->resourceDirectoryAccountId_ == nullptr && return this->sourceIp_ == nullptr && return this->uuid_ == nullptr; };
45+
&& return this->checkWarningId_ == nullptr && return this->containerName_ == nullptr && return this->lang_ == nullptr && return this->resourceDirectoryAccountId_ == nullptr && return this->sourceIp_ == nullptr
46+
&& return this->uuid_ == nullptr; };
4447
// checkId Field Functions
4548
bool hasCheckId() const { return this->checkId_ != nullptr;};
4649
void deleteCheckId() { this->checkId_ = nullptr;};
@@ -55,6 +58,13 @@ namespace Models
5558
inline DescribeCheckWarningDetailRequest& setCheckWarningId(int64_t checkWarningId) { DARABONBA_PTR_SET_VALUE(checkWarningId_, checkWarningId) };
5659

5760

61+
// containerName Field Functions
62+
bool hasContainerName() const { return this->containerName_ != nullptr;};
63+
void deleteContainerName() { this->containerName_ = nullptr;};
64+
inline string containerName() const { DARABONBA_PTR_GET_DEFAULT(containerName_, "") };
65+
inline DescribeCheckWarningDetailRequest& setContainerName(string containerName) { DARABONBA_PTR_SET_VALUE(containerName_, containerName) };
66+
67+
5868
// lang Field Functions
5969
bool hasLang() const { return this->lang_ != nullptr;};
6070
void deleteLang() { this->lang_ = nullptr;};
@@ -92,6 +102,7 @@ namespace Models
92102
//
93103
// > To query the details of a check item, you must provide the ID of the alert that is triggered by the check item. You can call the [DescribeCheckWarnings](~~DescribeCheckWarnings~~) operation to query the IDs of alerts.
94104
std::shared_ptr<int64_t> checkWarningId_ = nullptr;
105+
std::shared_ptr<string> containerName_ = nullptr;
95106
// The language of the content within the request and response. Valid values:
96107
//
97108
// * **zh**: Chinese

‎sas-20181203/src/Client.cpp‎

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6074,7 +6074,7 @@ DeleteBinarySecurityPolicyResponse Client::deleteBinarySecurityPolicy(const Dele
60746074
}
60756075

60766076
/**
6077-
* @summary 删除自定义策略
6077+
* @summary Delete custom scope directories in Cloud Security Posture Management (CSPM) custom checks. You can remove assigned standards, requirements, or sections.
60786078
*
60796079
* @param request DeleteCheckPolicyRequest
60806080
* @param runtime runtime options for this request RuntimeOptions
@@ -6109,7 +6109,7 @@ DeleteCheckPolicyResponse Client::deleteCheckPolicyWithOptions(const DeleteCheck
61096109
}
61106110

61116111
/**
6112-
* @summary 删除自定义策略
6112+
* @summary Delete custom scope directories in Cloud Security Posture Management (CSPM) custom checks. You can remove assigned standards, requirements, or sections.
61136113
*
61146114
* @param request DeleteCheckPolicyRequest
61156115
* @return DeleteCheckPolicyResponse
@@ -10342,6 +10342,10 @@ DescribeCheckWarningDetailResponse Client::describeCheckWarningDetailWithOptions
1034210342
query["CheckWarningId"] = request.checkWarningId();
1034310343
}
1034410344

10345+
if (!!request.hasContainerName()) {
10346+
query["ContainerName"] = request.containerName();
10347+
}
10348+
1034510349
if (!!request.hasLang()) {
1034610350
query["Lang"] = request.lang();
1034710351
}

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /