Skip to content

Commit 5416b57

Browse files
committed
Support fromData for UpdateRulesAttribute and Createrules
1 parent 43d3080 commit 5416b57

9 files changed

+130
-103
lines changed

VERSION

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.36.2026
1+
1.36.2027

alb/include/alibabacloud/alb/model/CreateServerGroupRequest.h

+3
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,8 @@ class ALIBABACLOUD_ALB_EXPORT CreateServerGroupRequest : public RpcServiceReques
7070
};
7171
CreateServerGroupRequest();
7272
~CreateServerGroupRequest();
73+
bool getCrossZoneEnabled() const;
74+
void setCrossZoneEnabled(bool crossZoneEnabled);
7375
std::string getServerGroupName() const;
7476
void setServerGroupName(const std::string &serverGroupName);
7577
std::string getClientToken() const;
@@ -106,6 +108,7 @@ class ALIBABACLOUD_ALB_EXPORT CreateServerGroupRequest : public RpcServiceReques
106108
void setUchConfig(const UchConfig &uchConfig);
107109

108110
private:
111+
bool crossZoneEnabled_;
109112
std::string serverGroupName_;
110113
std::string clientToken_;
111114
HealthCheckConfig healthCheckConfig_;

alb/include/alibabacloud/alb/model/ListServerGroupsResult.h

+1
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ namespace AlibabaCloud
8484
std::string scheduler;
8585
std::vector<std::string> relatedRuleIds;
8686
int serverCount;
87+
bool crossZoneEnabled;
8788
bool ipv6Enabled;
8889
SlowStartConfig slowStartConfig;
8990
std::string serviceManagedMode;

alb/include/alibabacloud/alb/model/UpdateServerGroupAttributeRequest.h

+3
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,8 @@ class ALIBABACLOUD_ALB_EXPORT UpdateServerGroupAttributeRequest : public RpcServ
6666
};
6767
UpdateServerGroupAttributeRequest();
6868
~UpdateServerGroupAttributeRequest();
69+
bool getCrossZoneEnabled() const;
70+
void setCrossZoneEnabled(bool crossZoneEnabled);
6971
std::string getServerGroupName() const;
7072
void setServerGroupName(const std::string &serverGroupName);
7173
std::string getClientToken() const;
@@ -92,6 +94,7 @@ class ALIBABACLOUD_ALB_EXPORT UpdateServerGroupAttributeRequest : public RpcServ
9294
void setUchConfig(const UchConfig &uchConfig);
9395

9496
private:
97+
bool crossZoneEnabled_;
9598
std::string serverGroupName_;
9699
std::string clientToken_;
97100
HealthCheckConfig healthCheckConfig_;

alb/src/model/CreateRulesRequest.cc

+52-52
Large diffs are not rendered by default.

alb/src/model/CreateServerGroupRequest.cc

+9
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,15 @@ CreateServerGroupRequest::CreateServerGroupRequest()
2525

2626
CreateServerGroupRequest::~CreateServerGroupRequest() {}
2727

28+
bool CreateServerGroupRequest::getCrossZoneEnabled() const {
29+
return crossZoneEnabled_;
30+
}
31+
32+
void CreateServerGroupRequest::setCrossZoneEnabled(bool crossZoneEnabled) {
33+
crossZoneEnabled_ = crossZoneEnabled;
34+
setParameter(std::string("CrossZoneEnabled"), crossZoneEnabled ? "true" : "false");
35+
}
36+
2837
std::string CreateServerGroupRequest::getServerGroupName() const {
2938
return serverGroupName_;
3039
}

alb/src/model/ListServerGroupsResult.cc

+2
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,8 @@ void ListServerGroupsResult::parse(const std::string &payload)
7575
serverGroupsObject.serviceName = valueServerGroupsServerGroup["ServiceName"].asString();
7676
if(!valueServerGroupsServerGroup["CreateTime"].isNull())
7777
serverGroupsObject.createTime = valueServerGroupsServerGroup["CreateTime"].asString();
78+
if(!valueServerGroupsServerGroup["CrossZoneEnabled"].isNull())
79+
serverGroupsObject.crossZoneEnabled = valueServerGroupsServerGroup["CrossZoneEnabled"].asString() == "true";
7880
auto allTagsNode = valueServerGroupsServerGroup["Tags"]["Tag"];
7981
for (auto valueServerGroupsServerGroupTagsTag : allTagsNode)
8082
{

alb/src/model/UpdateRulesAttributeRequest.cc

+50-50
Large diffs are not rendered by default.

alb/src/model/UpdateServerGroupAttributeRequest.cc

+9
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,15 @@ UpdateServerGroupAttributeRequest::UpdateServerGroupAttributeRequest()
2525

2626
UpdateServerGroupAttributeRequest::~UpdateServerGroupAttributeRequest() {}
2727

28+
bool UpdateServerGroupAttributeRequest::getCrossZoneEnabled() const {
29+
return crossZoneEnabled_;
30+
}
31+
32+
void UpdateServerGroupAttributeRequest::setCrossZoneEnabled(bool crossZoneEnabled) {
33+
crossZoneEnabled_ = crossZoneEnabled;
34+
setParameter(std::string("CrossZoneEnabled"), crossZoneEnabled ? "true" : "false");
35+
}
36+
2837
std::string UpdateServerGroupAttributeRequest::getServerGroupName() const {
2938
return serverGroupName_;
3039
}

0 commit comments

Comments
 (0)