Skip to content

Commit 34bc585

Browse files
committed
DescribeClusterNamespaces add response body.
1 parent db705b3 commit 34bc585

File tree

5 files changed

+23
-3
lines changed

5 files changed

+23
-3
lines changed

cs-20151215/ChangeLog.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
2021-03-16 Version: 2.4.1
2+
- DescribeClusterNamespaces add response body.
3+
14
2021-03-12 Version: 2.4.0
25
- ListTagResources has added the required parameters resource_type and region_id.
36
- DescribeClusterNodes changes the type of parameter instanceIds to string.

cs-20151215/README-CN.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ sh cs-20151215/scripts/install.sh
9696

9797
Copyright (c) 2009-present, Alibaba Cloud All rights reserved.
9898

99-
[OpenAPI 开发者门户]: https://next.api.aliyun.com
99+
[open-api]: https://api.aliyun.com
100100
[latest-release]: https://github.com/aliyun/alibabacloud-cpp-sdk/releases
101101
[console]: https://home.console.aliyun.com
102102
[aliyun]: https://www.aliyun.com

cs-20151215/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ sh cs-20151215/scripts/install.sh
9898

9999
Copyright (c) 2009-present, Alibaba Cloud All rights reserved.
100100

101-
[Alibaba Cloud OpenAPI Portal]: https://next.api.aliyun.com
101+
[open-api]: https://api.aliyun.com
102102
[latest-release]: https://github.com/aliyun/alibabacloud-cpp-sdk/releases
103103
[console]: https://home.console.aliyun.com
104104
[aliyun]: https://www.aliyun.com

cs-20151215/include/alibabacloud/cs20151215.hpp

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10335,6 +10335,7 @@ class UpgradeClusterAddonsResponse : public Darabonba::Model {
1033510335
class DescribeClusterNamespacesResponse : public Darabonba::Model {
1033610336
public:
1033710337
shared_ptr<map<string, string>> headers{};
10338+
shared_ptr<vector<string>> body{};
1033810339

1033910340
DescribeClusterNamespacesResponse() {}
1034010341

@@ -10346,13 +10347,19 @@ class DescribeClusterNamespacesResponse : public Darabonba::Model {
1034610347
if (!headers) {
1034710348
BOOST_THROW_EXCEPTION(boost::enable_error_info(std::runtime_error("headers is required.")));
1034810349
}
10350+
if (!body) {
10351+
BOOST_THROW_EXCEPTION(boost::enable_error_info(std::runtime_error("body is required.")));
10352+
}
1034910353
}
1035010354

1035110355
map<string, boost::any> toMap() override {
1035210356
map<string, boost::any> res;
1035310357
if (headers) {
1035410358
res["headers"] = boost::any(*headers);
1035510359
}
10360+
if (body) {
10361+
res["body"] = boost::any(*body);
10362+
}
1035610363
return res;
1035710364
}
1035810365

@@ -10365,6 +10372,16 @@ class DescribeClusterNamespacesResponse : public Darabonba::Model {
1036510372
}
1036610373
headers = make_shared<map<string, string>>(toMap1);
1036710374
}
10375+
if (m.find("body") != m.end() && !m["body"].empty()) {
10376+
vector<string> toVec1;
10377+
if (typeid(vector<boost::any>) == m["body"].type()) {
10378+
vector<boost::any> vec1 = boost::any_cast<vector<boost::any>>(m["body"]);
10379+
for (auto item:vec1) {
10380+
toVec1.push_back(boost::any_cast<string>(item));
10381+
}
10382+
}
10383+
body = make_shared<vector<string>>(toVec1);
10384+
}
1036810385
}
1036910386

1037010387

cs-20151215/src/cs20151215.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1463,7 +1463,7 @@ DescribeClusterNamespacesResponse Alibabacloud_CS20151215::Client::describeClust
14631463
shared_ptr<Alibabacloud_OpenApi::OpenApiRequest> req = make_shared<Alibabacloud_OpenApi::OpenApiRequest>(map<string, boost::any>({
14641464
{"headers", !headers ? boost::any() : boost::any(*headers)}
14651465
}));
1466-
return DescribeClusterNamespacesResponse(doROARequest(make_shared<string>("DescribeClusterNamespaces"), make_shared<string>("2015-12-15"), make_shared<string>("HTTPS"), make_shared<string>("GET"), make_shared<string>("AK"), make_shared<string>(string("/k8s/") + string(*ClusterId) + string("/namespaces")), make_shared<string>("none"), req, runtime));
1466+
return DescribeClusterNamespacesResponse(doROARequest(make_shared<string>("DescribeClusterNamespaces"), make_shared<string>("2015-12-15"), make_shared<string>("HTTPS"), make_shared<string>("GET"), make_shared<string>("AK"), make_shared<string>(string("/k8s/") + string(*ClusterId) + string("/namespaces")), make_shared<string>("array"), req, runtime));
14671467
}
14681468

14691469
DeleteKubernetesTriggerResponse Alibabacloud_CS20151215::Client::deleteKubernetesTrigger(shared_ptr<string> Id) {

0 commit comments

Comments
 (0)