Fix bug.
This commit is contained in:
1230
eas/src/EasClient.cc
1230
eas/src/EasClient.cc
File diff suppressed because it is too large
Load Diff
@@ -1,52 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/eas/model/CheckServiceExistsRequest.h>
|
||||
|
||||
using AlibabaCloud::Eas::Model::CheckServiceExistsRequest;
|
||||
|
||||
CheckServiceExistsRequest::CheckServiceExistsRequest() :
|
||||
RoaServiceRequest("eas", "2018-05-22")
|
||||
{
|
||||
setResourcePath("/api/services/[region]/[service_name]/exists");
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
CheckServiceExistsRequest::~CheckServiceExistsRequest()
|
||||
{}
|
||||
|
||||
std::string CheckServiceExistsRequest::getService_name()const
|
||||
{
|
||||
return service_name_;
|
||||
}
|
||||
|
||||
void CheckServiceExistsRequest::setService_name(const std::string& service_name)
|
||||
{
|
||||
service_name_ = service_name;
|
||||
setParameter("Service_name", service_name);
|
||||
}
|
||||
|
||||
std::string CheckServiceExistsRequest::getRegion()const
|
||||
{
|
||||
return region_;
|
||||
}
|
||||
|
||||
void CheckServiceExistsRequest::setRegion(const std::string& region)
|
||||
{
|
||||
region_ = region;
|
||||
setParameter("Region", region);
|
||||
}
|
||||
|
||||
@@ -1,44 +1,37 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/eas/model/DeleteTaskResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Eas;
|
||||
using namespace AlibabaCloud::Eas::Model;
|
||||
|
||||
DeleteTaskResult::DeleteTaskResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteTaskResult::DeleteTaskResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteTaskResult::~DeleteTaskResult()
|
||||
{}
|
||||
|
||||
void DeleteTaskResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
*/
|
||||
|
||||
#include <alibabacloud/eas/model/CreateBenchmarkTaskRequest.h>
|
||||
|
||||
using AlibabaCloud::Eas::Model::CreateBenchmarkTaskRequest;
|
||||
|
||||
CreateBenchmarkTaskRequest::CreateBenchmarkTaskRequest()
|
||||
: RoaServiceRequest("eas", "2021-07-01") {
|
||||
setResourcePath("/api/v2/benchmark-tasks"};
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateBenchmarkTaskRequest::~CreateBenchmarkTaskRequest() {}
|
||||
|
||||
string CreateBenchmarkTaskRequest::getBody() const {
|
||||
return body_;
|
||||
}
|
||||
|
||||
void CreateBenchmarkTaskRequest::setBody(string body) {
|
||||
body_ = body;
|
||||
setBodyParameter(std::string("body"), std::to_string(body));
|
||||
}
|
||||
|
||||
65
eas/src/model/CreateBenchmarkTaskResult.cc
Normal file
65
eas/src/model/CreateBenchmarkTaskResult.cc
Normal file
@@ -0,0 +1,65 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/eas/model/CreateBenchmarkTaskResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Eas;
|
||||
using namespace AlibabaCloud::Eas::Model;
|
||||
|
||||
CreateBenchmarkTaskResult::CreateBenchmarkTaskResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateBenchmarkTaskResult::CreateBenchmarkTaskResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateBenchmarkTaskResult::~CreateBenchmarkTaskResult()
|
||||
{}
|
||||
|
||||
void CreateBenchmarkTaskResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Name"].isNull())
|
||||
name_ = value["Name"].asString();
|
||||
if(!value["Region"].isNull())
|
||||
region_ = value["Region"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CreateBenchmarkTaskResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string CreateBenchmarkTaskResult::getRegion()const
|
||||
{
|
||||
return region_;
|
||||
}
|
||||
|
||||
std::string CreateBenchmarkTaskResult::getName()const
|
||||
{
|
||||
return name_;
|
||||
}
|
||||
|
||||
@@ -1,52 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/eas/model/CreateNetworkInterfaceRequest.h>
|
||||
|
||||
using AlibabaCloud::Eas::Model::CreateNetworkInterfaceRequest;
|
||||
|
||||
CreateNetworkInterfaceRequest::CreateNetworkInterfaceRequest() :
|
||||
RoaServiceRequest("eas", "2018-05-22")
|
||||
{
|
||||
setResourcePath("/api/resources/[cluster_id]/[resource_name]/network");
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateNetworkInterfaceRequest::~CreateNetworkInterfaceRequest()
|
||||
{}
|
||||
|
||||
std::string CreateNetworkInterfaceRequest::getCluster_id()const
|
||||
{
|
||||
return cluster_id_;
|
||||
}
|
||||
|
||||
void CreateNetworkInterfaceRequest::setCluster_id(const std::string& cluster_id)
|
||||
{
|
||||
cluster_id_ = cluster_id;
|
||||
setParameter("Cluster_id", cluster_id);
|
||||
}
|
||||
|
||||
std::string CreateNetworkInterfaceRequest::getResource_name()const
|
||||
{
|
||||
return resource_name_;
|
||||
}
|
||||
|
||||
void CreateNetworkInterfaceRequest::setResource_name(const std::string& resource_name)
|
||||
{
|
||||
resource_name_ = resource_name;
|
||||
setParameter("Resource_name", resource_name);
|
||||
}
|
||||
|
||||
55
eas/src/model/CreateResourceInstancesRequest.cc
Normal file
55
eas/src/model/CreateResourceInstancesRequest.cc
Normal file
@@ -0,0 +1,55 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/eas/model/CreateResourceInstancesRequest.h>
|
||||
|
||||
using AlibabaCloud::Eas::Model::CreateResourceInstancesRequest;
|
||||
|
||||
CreateResourceInstancesRequest::CreateResourceInstancesRequest()
|
||||
: RoaServiceRequest("eas", "2021-07-01") {
|
||||
setResourcePath("/api/v2/resources/[ClusterId]/[ResourceId]/instances"};
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateResourceInstancesRequest::~CreateResourceInstancesRequest() {}
|
||||
|
||||
string CreateResourceInstancesRequest::getResourceId() const {
|
||||
return resourceId_;
|
||||
}
|
||||
|
||||
void CreateResourceInstancesRequest::setResourceId(string resourceId) {
|
||||
resourceId_ = resourceId;
|
||||
setParameter(std::string("ResourceId"), std::to_string(resourceId));
|
||||
}
|
||||
|
||||
string CreateResourceInstancesRequest::getClusterId() const {
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void CreateResourceInstancesRequest::setClusterId(string clusterId) {
|
||||
clusterId_ = clusterId;
|
||||
setParameter(std::string("ClusterId"), std::to_string(clusterId));
|
||||
}
|
||||
|
||||
std::string CreateResourceInstancesRequest::getBody() const {
|
||||
return body_;
|
||||
}
|
||||
|
||||
void CreateResourceInstancesRequest::setBody(const std::string &body) {
|
||||
body_ = body;
|
||||
setBodyParameter(std::string("body"), body);
|
||||
}
|
||||
|
||||
@@ -14,31 +14,38 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/eas/model/CreateNetworkInterfaceResult.h>
|
||||
#include <alibabacloud/eas/model/CreateResourceInstancesResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Eas;
|
||||
using namespace AlibabaCloud::Eas::Model;
|
||||
|
||||
CreateNetworkInterfaceResult::CreateNetworkInterfaceResult() :
|
||||
CreateResourceInstancesResult::CreateResourceInstancesResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateNetworkInterfaceResult::CreateNetworkInterfaceResult(const std::string &payload) :
|
||||
CreateResourceInstancesResult::CreateResourceInstancesResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateNetworkInterfaceResult::~CreateNetworkInterfaceResult()
|
||||
CreateResourceInstancesResult::~CreateResourceInstancesResult()
|
||||
{}
|
||||
|
||||
void CreateNetworkInterfaceResult::parse(const std::string &payload)
|
||||
void CreateResourceInstancesResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CreateResourceInstancesResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
55
eas/src/model/CreateResourceLogRequest.cc
Normal file
55
eas/src/model/CreateResourceLogRequest.cc
Normal file
@@ -0,0 +1,55 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/eas/model/CreateResourceLogRequest.h>
|
||||
|
||||
using AlibabaCloud::Eas::Model::CreateResourceLogRequest;
|
||||
|
||||
CreateResourceLogRequest::CreateResourceLogRequest()
|
||||
: RoaServiceRequest("eas", "2021-07-01") {
|
||||
setResourcePath("/api/v2/resources/[ClusterId]/[ResourceId]/log"};
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateResourceLogRequest::~CreateResourceLogRequest() {}
|
||||
|
||||
string CreateResourceLogRequest::getResourceId() const {
|
||||
return resourceId_;
|
||||
}
|
||||
|
||||
void CreateResourceLogRequest::setResourceId(string resourceId) {
|
||||
resourceId_ = resourceId;
|
||||
setParameter(std::string("ResourceId"), std::to_string(resourceId));
|
||||
}
|
||||
|
||||
string CreateResourceLogRequest::getClusterId() const {
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void CreateResourceLogRequest::setClusterId(string clusterId) {
|
||||
clusterId_ = clusterId;
|
||||
setParameter(std::string("ClusterId"), std::to_string(clusterId));
|
||||
}
|
||||
|
||||
std::string CreateResourceLogRequest::getBody() const {
|
||||
return body_;
|
||||
}
|
||||
|
||||
void CreateResourceLogRequest::setBody(const std::string &body) {
|
||||
body_ = body;
|
||||
setBodyParameter(std::string("body"), body);
|
||||
}
|
||||
|
||||
@@ -14,31 +14,38 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/eas/model/GetResourceStatusResult.h>
|
||||
#include <alibabacloud/eas/model/CreateResourceLogResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Eas;
|
||||
using namespace AlibabaCloud::Eas::Model;
|
||||
|
||||
GetResourceStatusResult::GetResourceStatusResult() :
|
||||
CreateResourceLogResult::CreateResourceLogResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetResourceStatusResult::GetResourceStatusResult(const std::string &payload) :
|
||||
CreateResourceLogResult::CreateResourceLogResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetResourceStatusResult::~GetResourceStatusResult()
|
||||
CreateResourceLogResult::~CreateResourceLogResult()
|
||||
{}
|
||||
|
||||
void GetResourceStatusResult::parse(const std::string &payload)
|
||||
void CreateResourceLogResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CreateResourceLogResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
@@ -1,44 +1,37 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/eas/model/CreateSLSResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Eas;
|
||||
using namespace AlibabaCloud::Eas::Model;
|
||||
|
||||
CreateSLSResult::CreateSLSResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateSLSResult::CreateSLSResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateSLSResult::~CreateSLSResult()
|
||||
{}
|
||||
|
||||
void CreateSLSResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
*/
|
||||
|
||||
#include <alibabacloud/eas/model/CreateResourceRequest.h>
|
||||
|
||||
using AlibabaCloud::Eas::Model::CreateResourceRequest;
|
||||
|
||||
CreateResourceRequest::CreateResourceRequest()
|
||||
: RoaServiceRequest("eas", "2021-07-01") {
|
||||
setResourcePath("/api/v2/resources"};
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateResourceRequest::~CreateResourceRequest() {}
|
||||
|
||||
std::string CreateResourceRequest::getBody() const {
|
||||
return body_;
|
||||
}
|
||||
|
||||
void CreateResourceRequest::setBody(const std::string &body) {
|
||||
body_ = body;
|
||||
setBodyParameter(std::string("body"), body);
|
||||
}
|
||||
|
||||
72
eas/src/model/CreateResourceResult.cc
Normal file
72
eas/src/model/CreateResourceResult.cc
Normal file
@@ -0,0 +1,72 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/eas/model/CreateResourceResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Eas;
|
||||
using namespace AlibabaCloud::Eas::Model;
|
||||
|
||||
CreateResourceResult::CreateResourceResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateResourceResult::CreateResourceResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateResourceResult::~CreateResourceResult()
|
||||
{}
|
||||
|
||||
void CreateResourceResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["ResourceId"].isNull())
|
||||
resourceId_ = value["ResourceId"].asString();
|
||||
if(!value["ResourceName"].isNull())
|
||||
resourceName_ = value["ResourceName"].asString();
|
||||
if(!value["ClusterId"].isNull())
|
||||
clusterId_ = value["ClusterId"].asString();
|
||||
if(!value["OwnerUid"].isNull())
|
||||
ownerUid_ = value["OwnerUid"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CreateResourceResult::getResourceId()const
|
||||
{
|
||||
return resourceId_;
|
||||
}
|
||||
|
||||
std::string CreateResourceResult::getClusterId()const
|
||||
{
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
std::string CreateResourceResult::getResourceName()const
|
||||
{
|
||||
return resourceName_;
|
||||
}
|
||||
|
||||
std::string CreateResourceResult::getOwnerUid()const
|
||||
{
|
||||
return ownerUid_;
|
||||
}
|
||||
|
||||
@@ -1,52 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/eas/model/CreateSLSRequest.h>
|
||||
|
||||
using AlibabaCloud::Eas::Model::CreateSLSRequest;
|
||||
|
||||
CreateSLSRequest::CreateSLSRequest() :
|
||||
RoaServiceRequest("eas", "2018-05-22")
|
||||
{
|
||||
setResourcePath("/api/resources/[cluster_id]/[resource_name]/log");
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateSLSRequest::~CreateSLSRequest()
|
||||
{}
|
||||
|
||||
std::string CreateSLSRequest::getCluster_id()const
|
||||
{
|
||||
return cluster_id_;
|
||||
}
|
||||
|
||||
void CreateSLSRequest::setCluster_id(const std::string& cluster_id)
|
||||
{
|
||||
cluster_id_ = cluster_id;
|
||||
setParameter("Cluster_id", cluster_id);
|
||||
}
|
||||
|
||||
std::string CreateSLSRequest::getResource_name()const
|
||||
{
|
||||
return resource_name_;
|
||||
}
|
||||
|
||||
void CreateSLSRequest::setResource_name(const std::string& resource_name)
|
||||
{
|
||||
resource_name_ = resource_name;
|
||||
setParameter("Resource_name", resource_name);
|
||||
}
|
||||
|
||||
55
eas/src/model/CreateServiceAutoScalerRequest.cc
Normal file
55
eas/src/model/CreateServiceAutoScalerRequest.cc
Normal file
@@ -0,0 +1,55 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/eas/model/CreateServiceAutoScalerRequest.h>
|
||||
|
||||
using AlibabaCloud::Eas::Model::CreateServiceAutoScalerRequest;
|
||||
|
||||
CreateServiceAutoScalerRequest::CreateServiceAutoScalerRequest()
|
||||
: RoaServiceRequest("eas", "2021-07-01") {
|
||||
setResourcePath("/api/v2/services/[ClusterId]/[ServiceName]/autoscaler"};
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateServiceAutoScalerRequest::~CreateServiceAutoScalerRequest() {}
|
||||
|
||||
string CreateServiceAutoScalerRequest::getServiceName() const {
|
||||
return serviceName_;
|
||||
}
|
||||
|
||||
void CreateServiceAutoScalerRequest::setServiceName(string serviceName) {
|
||||
serviceName_ = serviceName;
|
||||
setParameter(std::string("ServiceName"), std::to_string(serviceName));
|
||||
}
|
||||
|
||||
string CreateServiceAutoScalerRequest::getClusterId() const {
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void CreateServiceAutoScalerRequest::setClusterId(string clusterId) {
|
||||
clusterId_ = clusterId;
|
||||
setParameter(std::string("ClusterId"), std::to_string(clusterId));
|
||||
}
|
||||
|
||||
std::string CreateServiceAutoScalerRequest::getBody() const {
|
||||
return body_;
|
||||
}
|
||||
|
||||
void CreateServiceAutoScalerRequest::setBody(const std::string &body) {
|
||||
body_ = body;
|
||||
setBodyParameter(std::string("body"), body);
|
||||
}
|
||||
|
||||
51
eas/src/model/CreateServiceAutoScalerResult.cc
Normal file
51
eas/src/model/CreateServiceAutoScalerResult.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/eas/model/CreateServiceAutoScalerResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Eas;
|
||||
using namespace AlibabaCloud::Eas::Model;
|
||||
|
||||
CreateServiceAutoScalerResult::CreateServiceAutoScalerResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateServiceAutoScalerResult::CreateServiceAutoScalerResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateServiceAutoScalerResult::~CreateServiceAutoScalerResult()
|
||||
{}
|
||||
|
||||
void CreateServiceAutoScalerResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CreateServiceAutoScalerResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
55
eas/src/model/CreateServiceCronScalerRequest.cc
Normal file
55
eas/src/model/CreateServiceCronScalerRequest.cc
Normal file
@@ -0,0 +1,55 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/eas/model/CreateServiceCronScalerRequest.h>
|
||||
|
||||
using AlibabaCloud::Eas::Model::CreateServiceCronScalerRequest;
|
||||
|
||||
CreateServiceCronScalerRequest::CreateServiceCronScalerRequest()
|
||||
: RoaServiceRequest("eas", "2021-07-01") {
|
||||
setResourcePath("/api/v2/services/[ClusterId]/[ServiceName]/cronscaler"};
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateServiceCronScalerRequest::~CreateServiceCronScalerRequest() {}
|
||||
|
||||
string CreateServiceCronScalerRequest::getServiceName() const {
|
||||
return serviceName_;
|
||||
}
|
||||
|
||||
void CreateServiceCronScalerRequest::setServiceName(string serviceName) {
|
||||
serviceName_ = serviceName;
|
||||
setParameter(std::string("ServiceName"), std::to_string(serviceName));
|
||||
}
|
||||
|
||||
string CreateServiceCronScalerRequest::getClusterId() const {
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void CreateServiceCronScalerRequest::setClusterId(string clusterId) {
|
||||
clusterId_ = clusterId;
|
||||
setParameter(std::string("ClusterId"), std::to_string(clusterId));
|
||||
}
|
||||
|
||||
std::string CreateServiceCronScalerRequest::getBody() const {
|
||||
return body_;
|
||||
}
|
||||
|
||||
void CreateServiceCronScalerRequest::setBody(const std::string &body) {
|
||||
body_ = body;
|
||||
setBodyParameter(std::string("body"), body);
|
||||
}
|
||||
|
||||
51
eas/src/model/CreateServiceCronScalerResult.cc
Normal file
51
eas/src/model/CreateServiceCronScalerResult.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/eas/model/CreateServiceCronScalerResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Eas;
|
||||
using namespace AlibabaCloud::Eas::Model;
|
||||
|
||||
CreateServiceCronScalerResult::CreateServiceCronScalerResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateServiceCronScalerResult::CreateServiceCronScalerResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateServiceCronScalerResult::~CreateServiceCronScalerResult()
|
||||
{}
|
||||
|
||||
void CreateServiceCronScalerResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CreateServiceCronScalerResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
55
eas/src/model/CreateServiceMirrorRequest.cc
Normal file
55
eas/src/model/CreateServiceMirrorRequest.cc
Normal file
@@ -0,0 +1,55 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/eas/model/CreateServiceMirrorRequest.h>
|
||||
|
||||
using AlibabaCloud::Eas::Model::CreateServiceMirrorRequest;
|
||||
|
||||
CreateServiceMirrorRequest::CreateServiceMirrorRequest()
|
||||
: RoaServiceRequest("eas", "2021-07-01") {
|
||||
setResourcePath("/api/v2/services/[ClusterId]/[ServiceName]/mirror"};
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateServiceMirrorRequest::~CreateServiceMirrorRequest() {}
|
||||
|
||||
string CreateServiceMirrorRequest::getServiceName() const {
|
||||
return serviceName_;
|
||||
}
|
||||
|
||||
void CreateServiceMirrorRequest::setServiceName(string serviceName) {
|
||||
serviceName_ = serviceName;
|
||||
setParameter(std::string("ServiceName"), std::to_string(serviceName));
|
||||
}
|
||||
|
||||
string CreateServiceMirrorRequest::getClusterId() const {
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void CreateServiceMirrorRequest::setClusterId(string clusterId) {
|
||||
clusterId_ = clusterId;
|
||||
setParameter(std::string("ClusterId"), std::to_string(clusterId));
|
||||
}
|
||||
|
||||
std::string CreateServiceMirrorRequest::getBody() const {
|
||||
return body_;
|
||||
}
|
||||
|
||||
void CreateServiceMirrorRequest::setBody(const std::string &body) {
|
||||
body_ = body;
|
||||
setBodyParameter(std::string("body"), body);
|
||||
}
|
||||
|
||||
@@ -14,31 +14,38 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/eas/model/GetAvailableRegionsResult.h>
|
||||
#include <alibabacloud/eas/model/CreateServiceMirrorResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Eas;
|
||||
using namespace AlibabaCloud::Eas::Model;
|
||||
|
||||
GetAvailableRegionsResult::GetAvailableRegionsResult() :
|
||||
CreateServiceMirrorResult::CreateServiceMirrorResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetAvailableRegionsResult::GetAvailableRegionsResult(const std::string &payload) :
|
||||
CreateServiceMirrorResult::CreateServiceMirrorResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetAvailableRegionsResult::~GetAvailableRegionsResult()
|
||||
CreateServiceMirrorResult::~CreateServiceMirrorResult()
|
||||
{}
|
||||
|
||||
void GetAvailableRegionsResult::parse(const std::string &payload)
|
||||
void CreateServiceMirrorResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CreateServiceMirrorResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
@@ -1,30 +1,37 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/eas/model/CreateServiceRequest.h>
|
||||
|
||||
using AlibabaCloud::Eas::Model::CreateServiceRequest;
|
||||
|
||||
CreateServiceRequest::CreateServiceRequest() :
|
||||
RoaServiceRequest("eas", "2018-05-22")
|
||||
{
|
||||
setResourcePath("/api/services");
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateServiceRequest::~CreateServiceRequest()
|
||||
{}
|
||||
|
||||
*/
|
||||
|
||||
#include <alibabacloud/eas/model/CreateServiceRequest.h>
|
||||
|
||||
using AlibabaCloud::Eas::Model::CreateServiceRequest;
|
||||
|
||||
CreateServiceRequest::CreateServiceRequest()
|
||||
: RoaServiceRequest("eas", "2021-07-01") {
|
||||
setResourcePath("/api/v2/services"};
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateServiceRequest::~CreateServiceRequest() {}
|
||||
|
||||
string CreateServiceRequest::getBody() const {
|
||||
return body_;
|
||||
}
|
||||
|
||||
void CreateServiceRequest::setBody(string body) {
|
||||
body_ = body;
|
||||
setBodyParameter(std::string("body"), std::to_string(body));
|
||||
}
|
||||
|
||||
|
||||
@@ -39,6 +39,48 @@ void CreateServiceResult::parse(const std::string &payload)
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["ServiceId"].isNull())
|
||||
serviceId_ = value["ServiceId"].asString();
|
||||
if(!value["ServiceName"].isNull())
|
||||
serviceName_ = value["ServiceName"].asString();
|
||||
if(!value["Status"].isNull())
|
||||
status_ = value["Status"].asString();
|
||||
if(!value["Region"].isNull())
|
||||
region_ = value["Region"].asString();
|
||||
if(!value["InternetEndpoint"].isNull())
|
||||
internetEndpoint_ = value["InternetEndpoint"].asString();
|
||||
if(!value["IntranetEndpoint"].isNull())
|
||||
intranetEndpoint_ = value["IntranetEndpoint"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CreateServiceResult::getStatus()const
|
||||
{
|
||||
return status_;
|
||||
}
|
||||
|
||||
std::string CreateServiceResult::getServiceName()const
|
||||
{
|
||||
return serviceName_;
|
||||
}
|
||||
|
||||
std::string CreateServiceResult::getInternetEndpoint()const
|
||||
{
|
||||
return internetEndpoint_;
|
||||
}
|
||||
|
||||
std::string CreateServiceResult::getRegion()const
|
||||
{
|
||||
return region_;
|
||||
}
|
||||
|
||||
std::string CreateServiceResult::getIntranetEndpoint()const
|
||||
{
|
||||
return intranetEndpoint_;
|
||||
}
|
||||
|
||||
std::string CreateServiceResult::getServiceId()const
|
||||
{
|
||||
return serviceId_;
|
||||
}
|
||||
|
||||
|
||||
@@ -1,30 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/eas/model/CreateTaskRequest.h>
|
||||
|
||||
using AlibabaCloud::Eas::Model::CreateTaskRequest;
|
||||
|
||||
CreateTaskRequest::CreateTaskRequest() :
|
||||
RoaServiceRequest("eas", "2018-05-22")
|
||||
{
|
||||
setResourcePath("/api/tasks");
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateTaskRequest::~CreateTaskRequest()
|
||||
{}
|
||||
|
||||
46
eas/src/model/DeleteBenchmarkTaskRequest.cc
Normal file
46
eas/src/model/DeleteBenchmarkTaskRequest.cc
Normal file
@@ -0,0 +1,46 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/eas/model/DeleteBenchmarkTaskRequest.h>
|
||||
|
||||
using AlibabaCloud::Eas::Model::DeleteBenchmarkTaskRequest;
|
||||
|
||||
DeleteBenchmarkTaskRequest::DeleteBenchmarkTaskRequest()
|
||||
: RoaServiceRequest("eas", "2021-07-01") {
|
||||
setResourcePath("/api/v2/benchmark-tasks/[ClusterId]/[TaskName]"};
|
||||
setMethod(HttpRequest::Method::Delete);
|
||||
}
|
||||
|
||||
DeleteBenchmarkTaskRequest::~DeleteBenchmarkTaskRequest() {}
|
||||
|
||||
string DeleteBenchmarkTaskRequest::getTaskName() const {
|
||||
return taskName_;
|
||||
}
|
||||
|
||||
void DeleteBenchmarkTaskRequest::setTaskName(string taskName) {
|
||||
taskName_ = taskName;
|
||||
setParameter(std::string("TaskName"), std::to_string(taskName));
|
||||
}
|
||||
|
||||
string DeleteBenchmarkTaskRequest::getClusterId() const {
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void DeleteBenchmarkTaskRequest::setClusterId(string clusterId) {
|
||||
clusterId_ = clusterId;
|
||||
setParameter(std::string("ClusterId"), std::to_string(clusterId));
|
||||
}
|
||||
|
||||
@@ -14,31 +14,38 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/eas/model/GetNetworkInterfaceResult.h>
|
||||
#include <alibabacloud/eas/model/DeleteBenchmarkTaskResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Eas;
|
||||
using namespace AlibabaCloud::Eas::Model;
|
||||
|
||||
GetNetworkInterfaceResult::GetNetworkInterfaceResult() :
|
||||
DeleteBenchmarkTaskResult::DeleteBenchmarkTaskResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetNetworkInterfaceResult::GetNetworkInterfaceResult(const std::string &payload) :
|
||||
DeleteBenchmarkTaskResult::DeleteBenchmarkTaskResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetNetworkInterfaceResult::~GetNetworkInterfaceResult()
|
||||
DeleteBenchmarkTaskResult::~DeleteBenchmarkTaskResult()
|
||||
{}
|
||||
|
||||
void GetNetworkInterfaceResult::parse(const std::string &payload)
|
||||
void DeleteBenchmarkTaskResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DeleteBenchmarkTaskResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
46
eas/src/model/DeleteResourceDLinkRequest.cc
Normal file
46
eas/src/model/DeleteResourceDLinkRequest.cc
Normal file
@@ -0,0 +1,46 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/eas/model/DeleteResourceDLinkRequest.h>
|
||||
|
||||
using AlibabaCloud::Eas::Model::DeleteResourceDLinkRequest;
|
||||
|
||||
DeleteResourceDLinkRequest::DeleteResourceDLinkRequest()
|
||||
: RoaServiceRequest("eas", "2021-07-01") {
|
||||
setResourcePath("/api/v2/resources/[ClusterId]/[ResourceId]/dlink"};
|
||||
setMethod(HttpRequest::Method::Delete);
|
||||
}
|
||||
|
||||
DeleteResourceDLinkRequest::~DeleteResourceDLinkRequest() {}
|
||||
|
||||
string DeleteResourceDLinkRequest::getResourceId() const {
|
||||
return resourceId_;
|
||||
}
|
||||
|
||||
void DeleteResourceDLinkRequest::setResourceId(string resourceId) {
|
||||
resourceId_ = resourceId;
|
||||
setParameter(std::string("ResourceId"), std::to_string(resourceId));
|
||||
}
|
||||
|
||||
string DeleteResourceDLinkRequest::getClusterId() const {
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void DeleteResourceDLinkRequest::setClusterId(string clusterId) {
|
||||
clusterId_ = clusterId;
|
||||
setParameter(std::string("ClusterId"), std::to_string(clusterId));
|
||||
}
|
||||
|
||||
@@ -14,31 +14,38 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/eas/model/GetOrCreateResourceResult.h>
|
||||
#include <alibabacloud/eas/model/DeleteResourceDLinkResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Eas;
|
||||
using namespace AlibabaCloud::Eas::Model;
|
||||
|
||||
GetOrCreateResourceResult::GetOrCreateResourceResult() :
|
||||
DeleteResourceDLinkResult::DeleteResourceDLinkResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetOrCreateResourceResult::GetOrCreateResourceResult(const std::string &payload) :
|
||||
DeleteResourceDLinkResult::DeleteResourceDLinkResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetOrCreateResourceResult::~GetOrCreateResourceResult()
|
||||
DeleteResourceDLinkResult::~DeleteResourceDLinkResult()
|
||||
{}
|
||||
|
||||
void GetOrCreateResourceResult::parse(const std::string &payload)
|
||||
void DeleteResourceDLinkResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DeleteResourceDLinkResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
@@ -1,52 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/eas/model/DeleteResourceInstanceRequest.h>
|
||||
|
||||
using AlibabaCloud::Eas::Model::DeleteResourceInstanceRequest;
|
||||
|
||||
DeleteResourceInstanceRequest::DeleteResourceInstanceRequest() :
|
||||
RoaServiceRequest("eas", "2018-05-22")
|
||||
{
|
||||
setResourcePath("/api/resources/[cluster_id]/[resource_name]/instances/delete");
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteResourceInstanceRequest::~DeleteResourceInstanceRequest()
|
||||
{}
|
||||
|
||||
std::string DeleteResourceInstanceRequest::getCluster_id()const
|
||||
{
|
||||
return cluster_id_;
|
||||
}
|
||||
|
||||
void DeleteResourceInstanceRequest::setCluster_id(const std::string& cluster_id)
|
||||
{
|
||||
cluster_id_ = cluster_id;
|
||||
setParameter("Cluster_id", cluster_id);
|
||||
}
|
||||
|
||||
std::string DeleteResourceInstanceRequest::getResource_name()const
|
||||
{
|
||||
return resource_name_;
|
||||
}
|
||||
|
||||
void DeleteResourceInstanceRequest::setResource_name(const std::string& resource_name)
|
||||
{
|
||||
resource_name_ = resource_name;
|
||||
setParameter("Resource_name", resource_name);
|
||||
}
|
||||
|
||||
64
eas/src/model/DeleteResourceInstancesRequest.cc
Normal file
64
eas/src/model/DeleteResourceInstancesRequest.cc
Normal file
@@ -0,0 +1,64 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/eas/model/DeleteResourceInstancesRequest.h>
|
||||
|
||||
using AlibabaCloud::Eas::Model::DeleteResourceInstancesRequest;
|
||||
|
||||
DeleteResourceInstancesRequest::DeleteResourceInstancesRequest()
|
||||
: RoaServiceRequest("eas", "2021-07-01") {
|
||||
setResourcePath("/api/v2/resources/[ClusterId]/[ResourceId]/instances"};
|
||||
setMethod(HttpRequest::Method::Delete);
|
||||
}
|
||||
|
||||
DeleteResourceInstancesRequest::~DeleteResourceInstancesRequest() {}
|
||||
|
||||
string DeleteResourceInstancesRequest::getInstanceList() const {
|
||||
return instanceList_;
|
||||
}
|
||||
|
||||
void DeleteResourceInstancesRequest::setInstanceList(string instanceList) {
|
||||
instanceList_ = instanceList;
|
||||
setParameter(std::string("InstanceList"), std::to_string(instanceList));
|
||||
}
|
||||
|
||||
string DeleteResourceInstancesRequest::getResourceId() const {
|
||||
return resourceId_;
|
||||
}
|
||||
|
||||
void DeleteResourceInstancesRequest::setResourceId(string resourceId) {
|
||||
resourceId_ = resourceId;
|
||||
setParameter(std::string("ResourceId"), std::to_string(resourceId));
|
||||
}
|
||||
|
||||
boolean DeleteResourceInstancesRequest::getAllFailed() const {
|
||||
return allFailed_;
|
||||
}
|
||||
|
||||
void DeleteResourceInstancesRequest::setAllFailed(boolean allFailed) {
|
||||
allFailed_ = allFailed;
|
||||
setParameter(std::string("AllFailed"), std::to_string(allFailed));
|
||||
}
|
||||
|
||||
string DeleteResourceInstancesRequest::getClusterId() const {
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void DeleteResourceInstancesRequest::setClusterId(string clusterId) {
|
||||
clusterId_ = clusterId;
|
||||
setParameter(std::string("ClusterId"), std::to_string(clusterId));
|
||||
}
|
||||
|
||||
51
eas/src/model/DeleteResourceInstancesResult.cc
Normal file
51
eas/src/model/DeleteResourceInstancesResult.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/eas/model/DeleteResourceInstancesResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Eas;
|
||||
using namespace AlibabaCloud::Eas::Model;
|
||||
|
||||
DeleteResourceInstancesResult::DeleteResourceInstancesResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteResourceInstancesResult::DeleteResourceInstancesResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteResourceInstancesResult::~DeleteResourceInstancesResult()
|
||||
{}
|
||||
|
||||
void DeleteResourceInstancesResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DeleteResourceInstancesResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
46
eas/src/model/DeleteResourceLogRequest.cc
Normal file
46
eas/src/model/DeleteResourceLogRequest.cc
Normal file
@@ -0,0 +1,46 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/eas/model/DeleteResourceLogRequest.h>
|
||||
|
||||
using AlibabaCloud::Eas::Model::DeleteResourceLogRequest;
|
||||
|
||||
DeleteResourceLogRequest::DeleteResourceLogRequest()
|
||||
: RoaServiceRequest("eas", "2021-07-01") {
|
||||
setResourcePath("/api/v2/resources/[ClusterId]/[ResourceId]/log"};
|
||||
setMethod(HttpRequest::Method::Delete);
|
||||
}
|
||||
|
||||
DeleteResourceLogRequest::~DeleteResourceLogRequest() {}
|
||||
|
||||
string DeleteResourceLogRequest::getResourceId() const {
|
||||
return resourceId_;
|
||||
}
|
||||
|
||||
void DeleteResourceLogRequest::setResourceId(string resourceId) {
|
||||
resourceId_ = resourceId;
|
||||
setParameter(std::string("ResourceId"), std::to_string(resourceId));
|
||||
}
|
||||
|
||||
string DeleteResourceLogRequest::getClusterId() const {
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void DeleteResourceLogRequest::setClusterId(string clusterId) {
|
||||
clusterId_ = clusterId;
|
||||
setParameter(std::string("ClusterId"), std::to_string(clusterId));
|
||||
}
|
||||
|
||||
@@ -14,31 +14,38 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/eas/model/GetServiceVersionResult.h>
|
||||
#include <alibabacloud/eas/model/DeleteResourceLogResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Eas;
|
||||
using namespace AlibabaCloud::Eas::Model;
|
||||
|
||||
GetServiceVersionResult::GetServiceVersionResult() :
|
||||
DeleteResourceLogResult::DeleteResourceLogResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetServiceVersionResult::GetServiceVersionResult(const std::string &payload) :
|
||||
DeleteResourceLogResult::DeleteResourceLogResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetServiceVersionResult::~GetServiceVersionResult()
|
||||
DeleteResourceLogResult::~DeleteResourceLogResult()
|
||||
{}
|
||||
|
||||
void GetServiceVersionResult::parse(const std::string &payload)
|
||||
void DeleteResourceLogResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DeleteResourceLogResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
@@ -1,52 +1,46 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/eas/model/DeleteResourceRequest.h>
|
||||
|
||||
using AlibabaCloud::Eas::Model::DeleteResourceRequest;
|
||||
|
||||
DeleteResourceRequest::DeleteResourceRequest() :
|
||||
RoaServiceRequest("eas", "2018-05-22")
|
||||
{
|
||||
setResourcePath("/api/resources/[cluster_id]/[resource_name]");
|
||||
setMethod(HttpRequest::Method::Delete);
|
||||
}
|
||||
|
||||
DeleteResourceRequest::~DeleteResourceRequest()
|
||||
{}
|
||||
|
||||
std::string DeleteResourceRequest::getCluster_id()const
|
||||
{
|
||||
return cluster_id_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/eas/model/DeleteResourceRequest.h>
|
||||
|
||||
using AlibabaCloud::Eas::Model::DeleteResourceRequest;
|
||||
|
||||
DeleteResourceRequest::DeleteResourceRequest()
|
||||
: RoaServiceRequest("eas", "2021-07-01") {
|
||||
setResourcePath("/api/v2/resources/[ClusterId]/[ResourceId]"};
|
||||
setMethod(HttpRequest::Method::Delete);
|
||||
}
|
||||
|
||||
void DeleteResourceRequest::setCluster_id(const std::string& cluster_id)
|
||||
{
|
||||
cluster_id_ = cluster_id;
|
||||
setParameter("Cluster_id", cluster_id);
|
||||
DeleteResourceRequest::~DeleteResourceRequest() {}
|
||||
|
||||
string DeleteResourceRequest::getResourceId() const {
|
||||
return resourceId_;
|
||||
}
|
||||
|
||||
std::string DeleteResourceRequest::getResource_name()const
|
||||
{
|
||||
return resource_name_;
|
||||
void DeleteResourceRequest::setResourceId(string resourceId) {
|
||||
resourceId_ = resourceId;
|
||||
setParameter(std::string("ResourceId"), std::to_string(resourceId));
|
||||
}
|
||||
|
||||
void DeleteResourceRequest::setResource_name(const std::string& resource_name)
|
||||
{
|
||||
resource_name_ = resource_name;
|
||||
setParameter("Resource_name", resource_name);
|
||||
string DeleteResourceRequest::getClusterId() const {
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void DeleteResourceRequest::setClusterId(string clusterId) {
|
||||
clusterId_ = clusterId;
|
||||
setParameter(std::string("ClusterId"), std::to_string(clusterId));
|
||||
}
|
||||
|
||||
|
||||
@@ -39,6 +39,13 @@ void DeleteResourceResult::parse(const std::string &payload)
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DeleteResourceResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
|
||||
46
eas/src/model/DeleteServiceAutoScalerRequest.cc
Normal file
46
eas/src/model/DeleteServiceAutoScalerRequest.cc
Normal file
@@ -0,0 +1,46 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/eas/model/DeleteServiceAutoScalerRequest.h>
|
||||
|
||||
using AlibabaCloud::Eas::Model::DeleteServiceAutoScalerRequest;
|
||||
|
||||
DeleteServiceAutoScalerRequest::DeleteServiceAutoScalerRequest()
|
||||
: RoaServiceRequest("eas", "2021-07-01") {
|
||||
setResourcePath("/api/v2/services/[ClusterId]/[ServiceName]/autoscaler"};
|
||||
setMethod(HttpRequest::Method::Delete);
|
||||
}
|
||||
|
||||
DeleteServiceAutoScalerRequest::~DeleteServiceAutoScalerRequest() {}
|
||||
|
||||
string DeleteServiceAutoScalerRequest::getServiceName() const {
|
||||
return serviceName_;
|
||||
}
|
||||
|
||||
void DeleteServiceAutoScalerRequest::setServiceName(string serviceName) {
|
||||
serviceName_ = serviceName;
|
||||
setParameter(std::string("ServiceName"), std::to_string(serviceName));
|
||||
}
|
||||
|
||||
string DeleteServiceAutoScalerRequest::getClusterId() const {
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void DeleteServiceAutoScalerRequest::setClusterId(string clusterId) {
|
||||
clusterId_ = clusterId;
|
||||
setParameter(std::string("ClusterId"), std::to_string(clusterId));
|
||||
}
|
||||
|
||||
51
eas/src/model/DeleteServiceAutoScalerResult.cc
Normal file
51
eas/src/model/DeleteServiceAutoScalerResult.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/eas/model/DeleteServiceAutoScalerResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Eas;
|
||||
using namespace AlibabaCloud::Eas::Model;
|
||||
|
||||
DeleteServiceAutoScalerResult::DeleteServiceAutoScalerResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteServiceAutoScalerResult::DeleteServiceAutoScalerResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteServiceAutoScalerResult::~DeleteServiceAutoScalerResult()
|
||||
{}
|
||||
|
||||
void DeleteServiceAutoScalerResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DeleteServiceAutoScalerResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
46
eas/src/model/DeleteServiceCronScalerRequest.cc
Normal file
46
eas/src/model/DeleteServiceCronScalerRequest.cc
Normal file
@@ -0,0 +1,46 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/eas/model/DeleteServiceCronScalerRequest.h>
|
||||
|
||||
using AlibabaCloud::Eas::Model::DeleteServiceCronScalerRequest;
|
||||
|
||||
DeleteServiceCronScalerRequest::DeleteServiceCronScalerRequest()
|
||||
: RoaServiceRequest("eas", "2021-07-01") {
|
||||
setResourcePath("/api/v2/services/[ClusterId]/[ServiceName]/cronscaler"};
|
||||
setMethod(HttpRequest::Method::Delete);
|
||||
}
|
||||
|
||||
DeleteServiceCronScalerRequest::~DeleteServiceCronScalerRequest() {}
|
||||
|
||||
string DeleteServiceCronScalerRequest::getServiceName() const {
|
||||
return serviceName_;
|
||||
}
|
||||
|
||||
void DeleteServiceCronScalerRequest::setServiceName(string serviceName) {
|
||||
serviceName_ = serviceName;
|
||||
setParameter(std::string("ServiceName"), std::to_string(serviceName));
|
||||
}
|
||||
|
||||
string DeleteServiceCronScalerRequest::getClusterId() const {
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void DeleteServiceCronScalerRequest::setClusterId(string clusterId) {
|
||||
clusterId_ = clusterId;
|
||||
setParameter(std::string("ClusterId"), std::to_string(clusterId));
|
||||
}
|
||||
|
||||
51
eas/src/model/DeleteServiceCronScalerResult.cc
Normal file
51
eas/src/model/DeleteServiceCronScalerResult.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/eas/model/DeleteServiceCronScalerResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Eas;
|
||||
using namespace AlibabaCloud::Eas::Model;
|
||||
|
||||
DeleteServiceCronScalerResult::DeleteServiceCronScalerResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteServiceCronScalerResult::DeleteServiceCronScalerResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteServiceCronScalerResult::~DeleteServiceCronScalerResult()
|
||||
{}
|
||||
|
||||
void DeleteServiceCronScalerResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DeleteServiceCronScalerResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
55
eas/src/model/DeleteServiceInstancesRequest.cc
Normal file
55
eas/src/model/DeleteServiceInstancesRequest.cc
Normal file
@@ -0,0 +1,55 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/eas/model/DeleteServiceInstancesRequest.h>
|
||||
|
||||
using AlibabaCloud::Eas::Model::DeleteServiceInstancesRequest;
|
||||
|
||||
DeleteServiceInstancesRequest::DeleteServiceInstancesRequest()
|
||||
: RoaServiceRequest("eas", "2021-07-01") {
|
||||
setResourcePath("/api/v2/services/[ClusterId]/[ServiceName]/instances"};
|
||||
setMethod(HttpRequest::Method::Delete);
|
||||
}
|
||||
|
||||
DeleteServiceInstancesRequest::~DeleteServiceInstancesRequest() {}
|
||||
|
||||
string DeleteServiceInstancesRequest::getInstanceList() const {
|
||||
return instanceList_;
|
||||
}
|
||||
|
||||
void DeleteServiceInstancesRequest::setInstanceList(string instanceList) {
|
||||
instanceList_ = instanceList;
|
||||
setParameter(std::string("InstanceList"), std::to_string(instanceList));
|
||||
}
|
||||
|
||||
string DeleteServiceInstancesRequest::getServiceName() const {
|
||||
return serviceName_;
|
||||
}
|
||||
|
||||
void DeleteServiceInstancesRequest::setServiceName(string serviceName) {
|
||||
serviceName_ = serviceName;
|
||||
setParameter(std::string("ServiceName"), std::to_string(serviceName));
|
||||
}
|
||||
|
||||
string DeleteServiceInstancesRequest::getClusterId() const {
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void DeleteServiceInstancesRequest::setClusterId(string clusterId) {
|
||||
clusterId_ = clusterId;
|
||||
setParameter(std::string("ClusterId"), std::to_string(clusterId));
|
||||
}
|
||||
|
||||
@@ -14,31 +14,38 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/eas/model/DeleteResourceInstanceResult.h>
|
||||
#include <alibabacloud/eas/model/DeleteServiceInstancesResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Eas;
|
||||
using namespace AlibabaCloud::Eas::Model;
|
||||
|
||||
DeleteResourceInstanceResult::DeleteResourceInstanceResult() :
|
||||
DeleteServiceInstancesResult::DeleteServiceInstancesResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteResourceInstanceResult::DeleteResourceInstanceResult(const std::string &payload) :
|
||||
DeleteServiceInstancesResult::DeleteServiceInstancesResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteResourceInstanceResult::~DeleteResourceInstanceResult()
|
||||
DeleteServiceInstancesResult::~DeleteServiceInstancesResult()
|
||||
{}
|
||||
|
||||
void DeleteResourceInstanceResult::parse(const std::string &payload)
|
||||
void DeleteServiceInstancesResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DeleteServiceInstancesResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
46
eas/src/model/DeleteServiceMirrorRequest.cc
Normal file
46
eas/src/model/DeleteServiceMirrorRequest.cc
Normal file
@@ -0,0 +1,46 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/eas/model/DeleteServiceMirrorRequest.h>
|
||||
|
||||
using AlibabaCloud::Eas::Model::DeleteServiceMirrorRequest;
|
||||
|
||||
DeleteServiceMirrorRequest::DeleteServiceMirrorRequest()
|
||||
: RoaServiceRequest("eas", "2021-07-01") {
|
||||
setResourcePath("/api/v2/services/[ClusterId]/[ServiceName]/mirror"};
|
||||
setMethod(HttpRequest::Method::Delete);
|
||||
}
|
||||
|
||||
DeleteServiceMirrorRequest::~DeleteServiceMirrorRequest() {}
|
||||
|
||||
string DeleteServiceMirrorRequest::getServiceName() const {
|
||||
return serviceName_;
|
||||
}
|
||||
|
||||
void DeleteServiceMirrorRequest::setServiceName(string serviceName) {
|
||||
serviceName_ = serviceName;
|
||||
setParameter(std::string("ServiceName"), std::to_string(serviceName));
|
||||
}
|
||||
|
||||
string DeleteServiceMirrorRequest::getClusterId() const {
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void DeleteServiceMirrorRequest::setClusterId(string clusterId) {
|
||||
clusterId_ = clusterId;
|
||||
setParameter(std::string("ClusterId"), std::to_string(clusterId));
|
||||
}
|
||||
|
||||
@@ -14,31 +14,38 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/eas/model/GetResourceServicesResult.h>
|
||||
#include <alibabacloud/eas/model/DeleteServiceMirrorResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Eas;
|
||||
using namespace AlibabaCloud::Eas::Model;
|
||||
|
||||
GetResourceServicesResult::GetResourceServicesResult() :
|
||||
DeleteServiceMirrorResult::DeleteServiceMirrorResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetResourceServicesResult::GetResourceServicesResult(const std::string &payload) :
|
||||
DeleteServiceMirrorResult::DeleteServiceMirrorResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetResourceServicesResult::~GetResourceServicesResult()
|
||||
DeleteServiceMirrorResult::~DeleteServiceMirrorResult()
|
||||
{}
|
||||
|
||||
void GetResourceServicesResult::parse(const std::string &payload)
|
||||
void DeleteServiceMirrorResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DeleteServiceMirrorResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
@@ -1,52 +1,46 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/eas/model/DeleteServiceRequest.h>
|
||||
|
||||
using AlibabaCloud::Eas::Model::DeleteServiceRequest;
|
||||
|
||||
DeleteServiceRequest::DeleteServiceRequest() :
|
||||
RoaServiceRequest("eas", "2018-05-22")
|
||||
{
|
||||
setResourcePath("/api/services/[region]/[service_name]");
|
||||
setMethod(HttpRequest::Method::Delete);
|
||||
}
|
||||
|
||||
DeleteServiceRequest::~DeleteServiceRequest()
|
||||
{}
|
||||
|
||||
std::string DeleteServiceRequest::getService_name()const
|
||||
{
|
||||
return service_name_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/eas/model/DeleteServiceRequest.h>
|
||||
|
||||
using AlibabaCloud::Eas::Model::DeleteServiceRequest;
|
||||
|
||||
DeleteServiceRequest::DeleteServiceRequest()
|
||||
: RoaServiceRequest("eas", "2021-07-01") {
|
||||
setResourcePath("/api/v2/services/[ClusterId]/[ServiceName]"};
|
||||
setMethod(HttpRequest::Method::Delete);
|
||||
}
|
||||
|
||||
void DeleteServiceRequest::setService_name(const std::string& service_name)
|
||||
{
|
||||
service_name_ = service_name;
|
||||
setParameter("Service_name", service_name);
|
||||
DeleteServiceRequest::~DeleteServiceRequest() {}
|
||||
|
||||
string DeleteServiceRequest::getServiceName() const {
|
||||
return serviceName_;
|
||||
}
|
||||
|
||||
std::string DeleteServiceRequest::getRegion()const
|
||||
{
|
||||
return region_;
|
||||
void DeleteServiceRequest::setServiceName(string serviceName) {
|
||||
serviceName_ = serviceName;
|
||||
setParameter(std::string("ServiceName"), std::to_string(serviceName));
|
||||
}
|
||||
|
||||
void DeleteServiceRequest::setRegion(const std::string& region)
|
||||
{
|
||||
region_ = region;
|
||||
setParameter("Region", region);
|
||||
string DeleteServiceRequest::getClusterId() const {
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void DeleteServiceRequest::setClusterId(string clusterId) {
|
||||
clusterId_ = clusterId;
|
||||
setParameter(std::string("ClusterId"), std::to_string(clusterId));
|
||||
}
|
||||
|
||||
|
||||
@@ -39,6 +39,13 @@ void DeleteServiceResult::parse(const std::string &payload)
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DeleteServiceResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
|
||||
@@ -1,52 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/eas/model/DeleteTaskRequest.h>
|
||||
|
||||
using AlibabaCloud::Eas::Model::DeleteTaskRequest;
|
||||
|
||||
DeleteTaskRequest::DeleteTaskRequest() :
|
||||
RoaServiceRequest("eas", "2018-05-22")
|
||||
{
|
||||
setResourcePath("/api/tasks/[region]/[task_name]");
|
||||
setMethod(HttpRequest::Method::Delete);
|
||||
}
|
||||
|
||||
DeleteTaskRequest::~DeleteTaskRequest()
|
||||
{}
|
||||
|
||||
std::string DeleteTaskRequest::getTask_name()const
|
||||
{
|
||||
return task_name_;
|
||||
}
|
||||
|
||||
void DeleteTaskRequest::setTask_name(const std::string& task_name)
|
||||
{
|
||||
task_name_ = task_name;
|
||||
setParameter("Task_name", task_name);
|
||||
}
|
||||
|
||||
std::string DeleteTaskRequest::getRegion()const
|
||||
{
|
||||
return region_;
|
||||
}
|
||||
|
||||
void DeleteTaskRequest::setRegion(const std::string& region)
|
||||
{
|
||||
region_ = region;
|
||||
setParameter("Region", region);
|
||||
}
|
||||
|
||||
46
eas/src/model/DescribeBenchmarkTaskReportRequest.cc
Normal file
46
eas/src/model/DescribeBenchmarkTaskReportRequest.cc
Normal file
@@ -0,0 +1,46 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/eas/model/DescribeBenchmarkTaskReportRequest.h>
|
||||
|
||||
using AlibabaCloud::Eas::Model::DescribeBenchmarkTaskReportRequest;
|
||||
|
||||
DescribeBenchmarkTaskReportRequest::DescribeBenchmarkTaskReportRequest()
|
||||
: RoaServiceRequest("eas", "2021-07-01") {
|
||||
setResourcePath("/api/v2/benchmark-tasks/[ClusterId]/[TaskName]/report"};
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
DescribeBenchmarkTaskReportRequest::~DescribeBenchmarkTaskReportRequest() {}
|
||||
|
||||
string DescribeBenchmarkTaskReportRequest::getTaskName() const {
|
||||
return taskName_;
|
||||
}
|
||||
|
||||
void DescribeBenchmarkTaskReportRequest::setTaskName(string taskName) {
|
||||
taskName_ = taskName;
|
||||
setParameter(std::string("TaskName"), std::to_string(taskName));
|
||||
}
|
||||
|
||||
string DescribeBenchmarkTaskReportRequest::getClusterId() const {
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void DescribeBenchmarkTaskReportRequest::setClusterId(string clusterId) {
|
||||
clusterId_ = clusterId;
|
||||
setParameter(std::string("ClusterId"), std::to_string(clusterId));
|
||||
}
|
||||
|
||||
51
eas/src/model/DescribeBenchmarkTaskReportResult.cc
Normal file
51
eas/src/model/DescribeBenchmarkTaskReportResult.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/eas/model/DescribeBenchmarkTaskReportResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Eas;
|
||||
using namespace AlibabaCloud::Eas::Model;
|
||||
|
||||
DescribeBenchmarkTaskReportResult::DescribeBenchmarkTaskReportResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeBenchmarkTaskReportResult::DescribeBenchmarkTaskReportResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeBenchmarkTaskReportResult::~DescribeBenchmarkTaskReportResult()
|
||||
{}
|
||||
|
||||
void DescribeBenchmarkTaskReportResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["ReportUrl"].isNull())
|
||||
reportUrl_ = value["ReportUrl"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DescribeBenchmarkTaskReportResult::getReportUrl()const
|
||||
{
|
||||
return reportUrl_;
|
||||
}
|
||||
|
||||
46
eas/src/model/DescribeBenchmarkTaskRequest.cc
Normal file
46
eas/src/model/DescribeBenchmarkTaskRequest.cc
Normal file
@@ -0,0 +1,46 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/eas/model/DescribeBenchmarkTaskRequest.h>
|
||||
|
||||
using AlibabaCloud::Eas::Model::DescribeBenchmarkTaskRequest;
|
||||
|
||||
DescribeBenchmarkTaskRequest::DescribeBenchmarkTaskRequest()
|
||||
: RoaServiceRequest("eas", "2021-07-01") {
|
||||
setResourcePath("/api/v2/benchmark-tasks/[ClusterId]/[TaskName]"};
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
DescribeBenchmarkTaskRequest::~DescribeBenchmarkTaskRequest() {}
|
||||
|
||||
string DescribeBenchmarkTaskRequest::getTaskName() const {
|
||||
return taskName_;
|
||||
}
|
||||
|
||||
void DescribeBenchmarkTaskRequest::setTaskName(string taskName) {
|
||||
taskName_ = taskName;
|
||||
setParameter(std::string("TaskName"), std::to_string(taskName));
|
||||
}
|
||||
|
||||
string DescribeBenchmarkTaskRequest::getClusterId() const {
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void DescribeBenchmarkTaskRequest::setClusterId(string clusterId) {
|
||||
clusterId_ = clusterId;
|
||||
setParameter(std::string("ClusterId"), std::to_string(clusterId));
|
||||
}
|
||||
|
||||
121
eas/src/model/DescribeBenchmarkTaskResult.cc
Normal file
121
eas/src/model/DescribeBenchmarkTaskResult.cc
Normal file
@@ -0,0 +1,121 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/eas/model/DescribeBenchmarkTaskResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Eas;
|
||||
using namespace AlibabaCloud::Eas::Model;
|
||||
|
||||
DescribeBenchmarkTaskResult::DescribeBenchmarkTaskResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeBenchmarkTaskResult::DescribeBenchmarkTaskResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeBenchmarkTaskResult::~DescribeBenchmarkTaskResult()
|
||||
{}
|
||||
|
||||
void DescribeBenchmarkTaskResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["TaskName"].isNull())
|
||||
taskName_ = value["TaskName"].asString();
|
||||
if(!value["TaskId"].isNull())
|
||||
taskId_ = value["TaskId"].asString();
|
||||
if(!value["ServiceName"].isNull())
|
||||
serviceName_ = value["ServiceName"].asString();
|
||||
if(!value["Token"].isNull())
|
||||
token_ = value["Token"].asString();
|
||||
if(!value["CallerUid"].isNull())
|
||||
callerUid_ = value["CallerUid"].asString();
|
||||
if(!value["ParentUid"].isNull())
|
||||
parentUid_ = value["ParentUid"].asString();
|
||||
if(!value["DesiredAgent"].isNull())
|
||||
desiredAgent_ = std::stol(value["DesiredAgent"].asString());
|
||||
if(!value["AvailableAgent"].isNull())
|
||||
availableAgent_ = std::stol(value["AvailableAgent"].asString());
|
||||
if(!value["Status"].isNull())
|
||||
status_ = value["Status"].asString();
|
||||
if(!value["Reason"].isNull())
|
||||
reason_ = value["Reason"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DescribeBenchmarkTaskResult::getStatus()const
|
||||
{
|
||||
return status_;
|
||||
}
|
||||
|
||||
long DescribeBenchmarkTaskResult::getAvailableAgent()const
|
||||
{
|
||||
return availableAgent_;
|
||||
}
|
||||
|
||||
std::string DescribeBenchmarkTaskResult::getTaskId()const
|
||||
{
|
||||
return taskId_;
|
||||
}
|
||||
|
||||
std::string DescribeBenchmarkTaskResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string DescribeBenchmarkTaskResult::getTaskName()const
|
||||
{
|
||||
return taskName_;
|
||||
}
|
||||
|
||||
std::string DescribeBenchmarkTaskResult::getServiceName()const
|
||||
{
|
||||
return serviceName_;
|
||||
}
|
||||
|
||||
long DescribeBenchmarkTaskResult::getDesiredAgent()const
|
||||
{
|
||||
return desiredAgent_;
|
||||
}
|
||||
|
||||
std::string DescribeBenchmarkTaskResult::getToken()const
|
||||
{
|
||||
return token_;
|
||||
}
|
||||
|
||||
std::string DescribeBenchmarkTaskResult::getCallerUid()const
|
||||
{
|
||||
return callerUid_;
|
||||
}
|
||||
|
||||
std::string DescribeBenchmarkTaskResult::getParentUid()const
|
||||
{
|
||||
return parentUid_;
|
||||
}
|
||||
|
||||
std::string DescribeBenchmarkTaskResult::getReason()const
|
||||
{
|
||||
return reason_;
|
||||
}
|
||||
|
||||
46
eas/src/model/DescribeResourceDLinkRequest.cc
Normal file
46
eas/src/model/DescribeResourceDLinkRequest.cc
Normal file
@@ -0,0 +1,46 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/eas/model/DescribeResourceDLinkRequest.h>
|
||||
|
||||
using AlibabaCloud::Eas::Model::DescribeResourceDLinkRequest;
|
||||
|
||||
DescribeResourceDLinkRequest::DescribeResourceDLinkRequest()
|
||||
: RoaServiceRequest("eas", "2021-07-01") {
|
||||
setResourcePath("/api/v2/resources/[ClusterId]/[ResourceId]/dlink"};
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
DescribeResourceDLinkRequest::~DescribeResourceDLinkRequest() {}
|
||||
|
||||
string DescribeResourceDLinkRequest::getResourceId() const {
|
||||
return resourceId_;
|
||||
}
|
||||
|
||||
void DescribeResourceDLinkRequest::setResourceId(string resourceId) {
|
||||
resourceId_ = resourceId;
|
||||
setParameter(std::string("ResourceId"), std::to_string(resourceId));
|
||||
}
|
||||
|
||||
string DescribeResourceDLinkRequest::getClusterId() const {
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void DescribeResourceDLinkRequest::setClusterId(string clusterId) {
|
||||
clusterId_ = clusterId;
|
||||
setParameter(std::string("ClusterId"), std::to_string(clusterId));
|
||||
}
|
||||
|
||||
80
eas/src/model/DescribeResourceDLinkResult.cc
Normal file
80
eas/src/model/DescribeResourceDLinkResult.cc
Normal file
@@ -0,0 +1,80 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/eas/model/DescribeResourceDLinkResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Eas;
|
||||
using namespace AlibabaCloud::Eas::Model;
|
||||
|
||||
DescribeResourceDLinkResult::DescribeResourceDLinkResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeResourceDLinkResult::DescribeResourceDLinkResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeResourceDLinkResult::~DescribeResourceDLinkResult()
|
||||
{}
|
||||
|
||||
void DescribeResourceDLinkResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allAuxVSwitchList = value["AuxVSwitchList"]["AuxVSwitch"];
|
||||
for (const auto &item : allAuxVSwitchList)
|
||||
auxVSwitchList_.push_back(item.asString());
|
||||
if(!value["VpcId"].isNull())
|
||||
vpcId_ = value["VpcId"].asString();
|
||||
if(!value["VSwitchId"].isNull())
|
||||
vSwitchId_ = value["VSwitchId"].asString();
|
||||
if(!value["SecurityGroupId"].isNull())
|
||||
securityGroupId_ = value["SecurityGroupId"].asString();
|
||||
if(!value["DestinationCIDRs"].isNull())
|
||||
destinationCIDRs_ = value["DestinationCIDRs"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::vector<std::string> DescribeResourceDLinkResult::getAuxVSwitchList()const
|
||||
{
|
||||
return auxVSwitchList_;
|
||||
}
|
||||
|
||||
std::string DescribeResourceDLinkResult::getVpcId()const
|
||||
{
|
||||
return vpcId_;
|
||||
}
|
||||
|
||||
std::string DescribeResourceDLinkResult::getVSwitchId()const
|
||||
{
|
||||
return vSwitchId_;
|
||||
}
|
||||
|
||||
std::string DescribeResourceDLinkResult::getSecurityGroupId()const
|
||||
{
|
||||
return securityGroupId_;
|
||||
}
|
||||
|
||||
std::string DescribeResourceDLinkResult::getDestinationCIDRs()const
|
||||
{
|
||||
return destinationCIDRs_;
|
||||
}
|
||||
|
||||
46
eas/src/model/DescribeResourceLogRequest.cc
Normal file
46
eas/src/model/DescribeResourceLogRequest.cc
Normal file
@@ -0,0 +1,46 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/eas/model/DescribeResourceLogRequest.h>
|
||||
|
||||
using AlibabaCloud::Eas::Model::DescribeResourceLogRequest;
|
||||
|
||||
DescribeResourceLogRequest::DescribeResourceLogRequest()
|
||||
: RoaServiceRequest("eas", "2021-07-01") {
|
||||
setResourcePath("/api/v2/resources/[ClusterId]/[ResourceId]/log"};
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
DescribeResourceLogRequest::~DescribeResourceLogRequest() {}
|
||||
|
||||
string DescribeResourceLogRequest::getResourceId() const {
|
||||
return resourceId_;
|
||||
}
|
||||
|
||||
void DescribeResourceLogRequest::setResourceId(string resourceId) {
|
||||
resourceId_ = resourceId;
|
||||
setParameter(std::string("ResourceId"), std::to_string(resourceId));
|
||||
}
|
||||
|
||||
string DescribeResourceLogRequest::getClusterId() const {
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void DescribeResourceLogRequest::setClusterId(string clusterId) {
|
||||
clusterId_ = clusterId;
|
||||
setParameter(std::string("ClusterId"), std::to_string(clusterId));
|
||||
}
|
||||
|
||||
72
eas/src/model/DescribeResourceLogResult.cc
Normal file
72
eas/src/model/DescribeResourceLogResult.cc
Normal file
@@ -0,0 +1,72 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/eas/model/DescribeResourceLogResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Eas;
|
||||
using namespace AlibabaCloud::Eas::Model;
|
||||
|
||||
DescribeResourceLogResult::DescribeResourceLogResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeResourceLogResult::DescribeResourceLogResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeResourceLogResult::~DescribeResourceLogResult()
|
||||
{}
|
||||
|
||||
void DescribeResourceLogResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["ProjectName"].isNull())
|
||||
projectName_ = value["ProjectName"].asString();
|
||||
if(!value["LogStore"].isNull())
|
||||
logStore_ = value["LogStore"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Status"].isNull())
|
||||
status_ = value["Status"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DescribeResourceLogResult::getStatus()const
|
||||
{
|
||||
return status_;
|
||||
}
|
||||
|
||||
std::string DescribeResourceLogResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string DescribeResourceLogResult::getProjectName()const
|
||||
{
|
||||
return projectName_;
|
||||
}
|
||||
|
||||
std::string DescribeResourceLogResult::getLogStore()const
|
||||
{
|
||||
return logStore_;
|
||||
}
|
||||
|
||||
46
eas/src/model/DescribeResourceRequest.cc
Normal file
46
eas/src/model/DescribeResourceRequest.cc
Normal file
@@ -0,0 +1,46 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/eas/model/DescribeResourceRequest.h>
|
||||
|
||||
using AlibabaCloud::Eas::Model::DescribeResourceRequest;
|
||||
|
||||
DescribeResourceRequest::DescribeResourceRequest()
|
||||
: RoaServiceRequest("eas", "2021-07-01") {
|
||||
setResourcePath("/api/v2/resources/[ClusterId]/[ResourceId]"};
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
DescribeResourceRequest::~DescribeResourceRequest() {}
|
||||
|
||||
string DescribeResourceRequest::getResourceId() const {
|
||||
return resourceId_;
|
||||
}
|
||||
|
||||
void DescribeResourceRequest::setResourceId(string resourceId) {
|
||||
resourceId_ = resourceId;
|
||||
setParameter(std::string("ResourceId"), std::to_string(resourceId));
|
||||
}
|
||||
|
||||
string DescribeResourceRequest::getClusterId() const {
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void DescribeResourceRequest::setClusterId(string clusterId) {
|
||||
clusterId_ = clusterId;
|
||||
setParameter(std::string("ClusterId"), std::to_string(clusterId));
|
||||
}
|
||||
|
||||
142
eas/src/model/DescribeResourceResult.cc
Normal file
142
eas/src/model/DescribeResourceResult.cc
Normal file
@@ -0,0 +1,142 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/eas/model/DescribeResourceResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Eas;
|
||||
using namespace AlibabaCloud::Eas::Model;
|
||||
|
||||
DescribeResourceResult::DescribeResourceResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeResourceResult::DescribeResourceResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeResourceResult::~DescribeResourceResult()
|
||||
{}
|
||||
|
||||
void DescribeResourceResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["ResourceId"].isNull())
|
||||
resourceId_ = value["ResourceId"].asString();
|
||||
if(!value["ResourceName"].isNull())
|
||||
resourceName_ = value["ResourceName"].asString();
|
||||
if(!value["ClusterId"].isNull())
|
||||
clusterId_ = value["ClusterId"].asString();
|
||||
if(!value["CreateTime"].isNull())
|
||||
createTime_ = value["CreateTime"].asString();
|
||||
if(!value["UpdateTime"].isNull())
|
||||
updateTime_ = value["UpdateTime"].asString();
|
||||
if(!value["OwnerUid"].isNull())
|
||||
ownerUid_ = value["OwnerUid"].asString();
|
||||
if(!value["InstanceCount"].isNull())
|
||||
instanceCount_ = std::stoi(value["InstanceCount"].asString());
|
||||
if(!value["PrePaidInstanceCount"].isNull())
|
||||
prePaidInstanceCount_ = std::stoi(value["PrePaidInstanceCount"].asString());
|
||||
if(!value["PostPaidInstanceCount"].isNull())
|
||||
postPaidInstanceCount_ = std::stoi(value["PostPaidInstanceCount"].asString());
|
||||
if(!value["CpuCount"].isNull())
|
||||
cpuCount_ = std::stoi(value["CpuCount"].asString());
|
||||
if(!value["GpuCount"].isNull())
|
||||
gpuCount_ = std::stoi(value["GpuCount"].asString());
|
||||
if(!value["Status"].isNull())
|
||||
status_ = value["Status"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["ExtraData"].isNull())
|
||||
extraData_ = value["ExtraData"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DescribeResourceResult::getStatus()const
|
||||
{
|
||||
return status_;
|
||||
}
|
||||
|
||||
int DescribeResourceResult::getPrePaidInstanceCount()const
|
||||
{
|
||||
return prePaidInstanceCount_;
|
||||
}
|
||||
|
||||
std::string DescribeResourceResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string DescribeResourceResult::getClusterId()const
|
||||
{
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
std::string DescribeResourceResult::getResourceName()const
|
||||
{
|
||||
return resourceName_;
|
||||
}
|
||||
|
||||
std::string DescribeResourceResult::getOwnerUid()const
|
||||
{
|
||||
return ownerUid_;
|
||||
}
|
||||
|
||||
std::string DescribeResourceResult::getCreateTime()const
|
||||
{
|
||||
return createTime_;
|
||||
}
|
||||
|
||||
int DescribeResourceResult::getPostPaidInstanceCount()const
|
||||
{
|
||||
return postPaidInstanceCount_;
|
||||
}
|
||||
|
||||
std::string DescribeResourceResult::getExtraData()const
|
||||
{
|
||||
return extraData_;
|
||||
}
|
||||
|
||||
int DescribeResourceResult::getInstanceCount()const
|
||||
{
|
||||
return instanceCount_;
|
||||
}
|
||||
|
||||
int DescribeResourceResult::getCpuCount()const
|
||||
{
|
||||
return cpuCount_;
|
||||
}
|
||||
|
||||
std::string DescribeResourceResult::getResourceId()const
|
||||
{
|
||||
return resourceId_;
|
||||
}
|
||||
|
||||
std::string DescribeResourceResult::getUpdateTime()const
|
||||
{
|
||||
return updateTime_;
|
||||
}
|
||||
|
||||
int DescribeResourceResult::getGpuCount()const
|
||||
{
|
||||
return gpuCount_;
|
||||
}
|
||||
|
||||
46
eas/src/model/DescribeServiceAutoScalerRequest.cc
Normal file
46
eas/src/model/DescribeServiceAutoScalerRequest.cc
Normal file
@@ -0,0 +1,46 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/eas/model/DescribeServiceAutoScalerRequest.h>
|
||||
|
||||
using AlibabaCloud::Eas::Model::DescribeServiceAutoScalerRequest;
|
||||
|
||||
DescribeServiceAutoScalerRequest::DescribeServiceAutoScalerRequest()
|
||||
: RoaServiceRequest("eas", "2021-07-01") {
|
||||
setResourcePath("/api/v2/services/[ClusterId]/[ServiceName]/autoscaler"};
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
DescribeServiceAutoScalerRequest::~DescribeServiceAutoScalerRequest() {}
|
||||
|
||||
string DescribeServiceAutoScalerRequest::getServiceName() const {
|
||||
return serviceName_;
|
||||
}
|
||||
|
||||
void DescribeServiceAutoScalerRequest::setServiceName(string serviceName) {
|
||||
serviceName_ = serviceName;
|
||||
setParameter(std::string("ServiceName"), std::to_string(serviceName));
|
||||
}
|
||||
|
||||
string DescribeServiceAutoScalerRequest::getClusterId() const {
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void DescribeServiceAutoScalerRequest::setClusterId(string clusterId) {
|
||||
clusterId_ = clusterId;
|
||||
setParameter(std::string("ClusterId"), std::to_string(clusterId));
|
||||
}
|
||||
|
||||
79
eas/src/model/DescribeServiceAutoScalerResult.cc
Normal file
79
eas/src/model/DescribeServiceAutoScalerResult.cc
Normal file
@@ -0,0 +1,79 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/eas/model/DescribeServiceAutoScalerResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Eas;
|
||||
using namespace AlibabaCloud::Eas::Model;
|
||||
|
||||
DescribeServiceAutoScalerResult::DescribeServiceAutoScalerResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeServiceAutoScalerResult::DescribeServiceAutoScalerResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeServiceAutoScalerResult::~DescribeServiceAutoScalerResult()
|
||||
{}
|
||||
|
||||
void DescribeServiceAutoScalerResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["ServiceName"].isNull())
|
||||
serviceName_ = value["ServiceName"].asString();
|
||||
if(!value["MinReplica"].isNull())
|
||||
minReplica_ = std::stoi(value["MinReplica"].asString());
|
||||
if(!value["MaxReplica"].isNull())
|
||||
maxReplica_ = std::stoi(value["MaxReplica"].asString());
|
||||
if(!value["Strategies"].isNull())
|
||||
strategies_ = value["Strategies"].asString();
|
||||
if(!value["CurrentValues"].isNull())
|
||||
currentValues_ = value["CurrentValues"].asString();
|
||||
|
||||
}
|
||||
|
||||
int DescribeServiceAutoScalerResult::getMaxReplica()const
|
||||
{
|
||||
return maxReplica_;
|
||||
}
|
||||
|
||||
std::string DescribeServiceAutoScalerResult::getServiceName()const
|
||||
{
|
||||
return serviceName_;
|
||||
}
|
||||
|
||||
std::string DescribeServiceAutoScalerResult::getStrategies()const
|
||||
{
|
||||
return strategies_;
|
||||
}
|
||||
|
||||
int DescribeServiceAutoScalerResult::getMinReplica()const
|
||||
{
|
||||
return minReplica_;
|
||||
}
|
||||
|
||||
std::string DescribeServiceAutoScalerResult::getCurrentValues()const
|
||||
{
|
||||
return currentValues_;
|
||||
}
|
||||
|
||||
46
eas/src/model/DescribeServiceCronScalerRequest.cc
Normal file
46
eas/src/model/DescribeServiceCronScalerRequest.cc
Normal file
@@ -0,0 +1,46 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/eas/model/DescribeServiceCronScalerRequest.h>
|
||||
|
||||
using AlibabaCloud::Eas::Model::DescribeServiceCronScalerRequest;
|
||||
|
||||
DescribeServiceCronScalerRequest::DescribeServiceCronScalerRequest()
|
||||
: RoaServiceRequest("eas", "2021-07-01") {
|
||||
setResourcePath("/api/v2/services/[ClusterId]/[ServiceName]/cronscaler"};
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
DescribeServiceCronScalerRequest::~DescribeServiceCronScalerRequest() {}
|
||||
|
||||
string DescribeServiceCronScalerRequest::getServiceName() const {
|
||||
return serviceName_;
|
||||
}
|
||||
|
||||
void DescribeServiceCronScalerRequest::setServiceName(string serviceName) {
|
||||
serviceName_ = serviceName;
|
||||
setParameter(std::string("ServiceName"), std::to_string(serviceName));
|
||||
}
|
||||
|
||||
string DescribeServiceCronScalerRequest::getClusterId() const {
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void DescribeServiceCronScalerRequest::setClusterId(string clusterId) {
|
||||
clusterId_ = clusterId;
|
||||
setParameter(std::string("ClusterId"), std::to_string(clusterId));
|
||||
}
|
||||
|
||||
84
eas/src/model/DescribeServiceCronScalerResult.cc
Normal file
84
eas/src/model/DescribeServiceCronScalerResult.cc
Normal file
@@ -0,0 +1,84 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/eas/model/DescribeServiceCronScalerResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Eas;
|
||||
using namespace AlibabaCloud::Eas::Model;
|
||||
|
||||
DescribeServiceCronScalerResult::DescribeServiceCronScalerResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeServiceCronScalerResult::DescribeServiceCronScalerResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeServiceCronScalerResult::~DescribeServiceCronScalerResult()
|
||||
{}
|
||||
|
||||
void DescribeServiceCronScalerResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allScaleJobsNode = value["ScaleJobs"]["ScaleJob"];
|
||||
for (auto valueScaleJobsScaleJob : allScaleJobsNode)
|
||||
{
|
||||
ScaleJob scaleJobsObject;
|
||||
if(!valueScaleJobsScaleJob["Schedule"].isNull())
|
||||
scaleJobsObject.schedule = valueScaleJobsScaleJob["Schedule"].asString();
|
||||
if(!valueScaleJobsScaleJob["TargetSize"].isNull())
|
||||
scaleJobsObject.targetSize = std::stoi(valueScaleJobsScaleJob["TargetSize"].asString());
|
||||
if(!valueScaleJobsScaleJob["Name"].isNull())
|
||||
scaleJobsObject.name = valueScaleJobsScaleJob["Name"].asString();
|
||||
if(!valueScaleJobsScaleJob["Message"].isNull())
|
||||
scaleJobsObject.message = valueScaleJobsScaleJob["Message"].asString();
|
||||
if(!valueScaleJobsScaleJob["State"].isNull())
|
||||
scaleJobsObject.state = valueScaleJobsScaleJob["State"].asString();
|
||||
if(!valueScaleJobsScaleJob["LastProbeTime"].isNull())
|
||||
scaleJobsObject.lastProbeTime = valueScaleJobsScaleJob["LastProbeTime"].asString();
|
||||
if(!valueScaleJobsScaleJob["CreateTime"].isNull())
|
||||
scaleJobsObject.createTime = valueScaleJobsScaleJob["CreateTime"].asString();
|
||||
scaleJobs_.push_back(scaleJobsObject);
|
||||
}
|
||||
auto allExcludeDates = value["ExcludeDates"]["ExcludeDate"];
|
||||
for (const auto &item : allExcludeDates)
|
||||
excludeDates_.push_back(item.asString());
|
||||
if(!value["ServiceName"].isNull())
|
||||
serviceName_ = value["ServiceName"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::vector<std::string> DescribeServiceCronScalerResult::getExcludeDates()const
|
||||
{
|
||||
return excludeDates_;
|
||||
}
|
||||
|
||||
std::string DescribeServiceCronScalerResult::getServiceName()const
|
||||
{
|
||||
return serviceName_;
|
||||
}
|
||||
|
||||
std::vector<DescribeServiceCronScalerResult::ScaleJob> DescribeServiceCronScalerResult::getScaleJobs()const
|
||||
{
|
||||
return scaleJobs_;
|
||||
}
|
||||
|
||||
100
eas/src/model/DescribeServiceLogRequest.cc
Normal file
100
eas/src/model/DescribeServiceLogRequest.cc
Normal file
@@ -0,0 +1,100 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/eas/model/DescribeServiceLogRequest.h>
|
||||
|
||||
using AlibabaCloud::Eas::Model::DescribeServiceLogRequest;
|
||||
|
||||
DescribeServiceLogRequest::DescribeServiceLogRequest()
|
||||
: RoaServiceRequest("eas", "2021-07-01") {
|
||||
setResourcePath("/api/v2/services/[ClusterId]/[ServiceName]/logs"};
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
DescribeServiceLogRequest::~DescribeServiceLogRequest() {}
|
||||
|
||||
string DescribeServiceLogRequest::getIp() const {
|
||||
return ip_;
|
||||
}
|
||||
|
||||
void DescribeServiceLogRequest::setIp(string ip) {
|
||||
ip_ = ip;
|
||||
setParameter(std::string("Ip"), std::to_string(ip));
|
||||
}
|
||||
|
||||
integer DescribeServiceLogRequest::getPageSize() const {
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void DescribeServiceLogRequest::setPageSize(integer pageSize) {
|
||||
pageSize_ = pageSize;
|
||||
setParameter(std::string("PageSize"), std::to_string(pageSize));
|
||||
}
|
||||
|
||||
string DescribeServiceLogRequest::getEndTime() const {
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
void DescribeServiceLogRequest::setEndTime(string endTime) {
|
||||
endTime_ = endTime;
|
||||
setParameter(std::string("EndTime"), std::to_string(endTime));
|
||||
}
|
||||
|
||||
string DescribeServiceLogRequest::getServiceName() const {
|
||||
return serviceName_;
|
||||
}
|
||||
|
||||
void DescribeServiceLogRequest::setServiceName(string serviceName) {
|
||||
serviceName_ = serviceName;
|
||||
setParameter(std::string("ServiceName"), std::to_string(serviceName));
|
||||
}
|
||||
|
||||
string DescribeServiceLogRequest::getStartTime() const {
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
void DescribeServiceLogRequest::setStartTime(string startTime) {
|
||||
startTime_ = startTime;
|
||||
setParameter(std::string("StartTime"), std::to_string(startTime));
|
||||
}
|
||||
|
||||
string DescribeServiceLogRequest::getClusterId() const {
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void DescribeServiceLogRequest::setClusterId(string clusterId) {
|
||||
clusterId_ = clusterId;
|
||||
setParameter(std::string("ClusterId"), std::to_string(clusterId));
|
||||
}
|
||||
|
||||
integer DescribeServiceLogRequest::getPageNum() const {
|
||||
return pageNum_;
|
||||
}
|
||||
|
||||
void DescribeServiceLogRequest::setPageNum(integer pageNum) {
|
||||
pageNum_ = pageNum;
|
||||
setParameter(std::string("PageNum"), std::to_string(pageNum));
|
||||
}
|
||||
|
||||
string DescribeServiceLogRequest::getKeyword() const {
|
||||
return keyword_;
|
||||
}
|
||||
|
||||
void DescribeServiceLogRequest::setKeyword(string keyword) {
|
||||
keyword_ = keyword;
|
||||
setParameter(std::string("Keyword"), std::to_string(keyword));
|
||||
}
|
||||
|
||||
73
eas/src/model/DescribeServiceLogResult.cc
Normal file
73
eas/src/model/DescribeServiceLogResult.cc
Normal file
@@ -0,0 +1,73 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/eas/model/DescribeServiceLogResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Eas;
|
||||
using namespace AlibabaCloud::Eas::Model;
|
||||
|
||||
DescribeServiceLogResult::DescribeServiceLogResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeServiceLogResult::DescribeServiceLogResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeServiceLogResult::~DescribeServiceLogResult()
|
||||
{}
|
||||
|
||||
void DescribeServiceLogResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allLogs = value["Logs"]["Log"];
|
||||
for (const auto &item : allLogs)
|
||||
logs_.push_back(item.asString());
|
||||
if(!value["PageNum"].isNull())
|
||||
pageNum_ = std::stol(value["PageNum"].asString());
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stol(value["TotalCount"].asString());
|
||||
if(!value["TotalPageNum"].isNull())
|
||||
totalPageNum_ = std::stol(value["TotalPageNum"].asString());
|
||||
|
||||
}
|
||||
|
||||
long DescribeServiceLogResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
long DescribeServiceLogResult::getPageNum()const
|
||||
{
|
||||
return pageNum_;
|
||||
}
|
||||
|
||||
long DescribeServiceLogResult::getTotalPageNum()const
|
||||
{
|
||||
return totalPageNum_;
|
||||
}
|
||||
|
||||
std::vector<std::string> DescribeServiceLogResult::getLogs()const
|
||||
{
|
||||
return logs_;
|
||||
}
|
||||
|
||||
46
eas/src/model/DescribeServiceMirrorRequest.cc
Normal file
46
eas/src/model/DescribeServiceMirrorRequest.cc
Normal file
@@ -0,0 +1,46 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/eas/model/DescribeServiceMirrorRequest.h>
|
||||
|
||||
using AlibabaCloud::Eas::Model::DescribeServiceMirrorRequest;
|
||||
|
||||
DescribeServiceMirrorRequest::DescribeServiceMirrorRequest()
|
||||
: RoaServiceRequest("eas", "2021-07-01") {
|
||||
setResourcePath("/api/v2/services/[ClusterId]/[ServiceName]/mirror"};
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
DescribeServiceMirrorRequest::~DescribeServiceMirrorRequest() {}
|
||||
|
||||
string DescribeServiceMirrorRequest::getServiceName() const {
|
||||
return serviceName_;
|
||||
}
|
||||
|
||||
void DescribeServiceMirrorRequest::setServiceName(string serviceName) {
|
||||
serviceName_ = serviceName;
|
||||
setParameter(std::string("ServiceName"), std::to_string(serviceName));
|
||||
}
|
||||
|
||||
string DescribeServiceMirrorRequest::getClusterId() const {
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void DescribeServiceMirrorRequest::setClusterId(string clusterId) {
|
||||
clusterId_ = clusterId;
|
||||
setParameter(std::string("ClusterId"), std::to_string(clusterId));
|
||||
}
|
||||
|
||||
65
eas/src/model/DescribeServiceMirrorResult.cc
Normal file
65
eas/src/model/DescribeServiceMirrorResult.cc
Normal file
@@ -0,0 +1,65 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/eas/model/DescribeServiceMirrorResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Eas;
|
||||
using namespace AlibabaCloud::Eas::Model;
|
||||
|
||||
DescribeServiceMirrorResult::DescribeServiceMirrorResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeServiceMirrorResult::DescribeServiceMirrorResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeServiceMirrorResult::~DescribeServiceMirrorResult()
|
||||
{}
|
||||
|
||||
void DescribeServiceMirrorResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["ServiceName"].isNull())
|
||||
serviceName_ = value["ServiceName"].asString();
|
||||
if(!value["Target"].isNull())
|
||||
target_ = value["Target"].asString();
|
||||
if(!value["Ratio"].isNull())
|
||||
ratio_ = value["Ratio"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DescribeServiceMirrorResult::getTarget()const
|
||||
{
|
||||
return target_;
|
||||
}
|
||||
|
||||
std::string DescribeServiceMirrorResult::getServiceName()const
|
||||
{
|
||||
return serviceName_;
|
||||
}
|
||||
|
||||
std::string DescribeServiceMirrorResult::getRatio()const
|
||||
{
|
||||
return ratio_;
|
||||
}
|
||||
|
||||
46
eas/src/model/DescribeServiceRequest.cc
Normal file
46
eas/src/model/DescribeServiceRequest.cc
Normal file
@@ -0,0 +1,46 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/eas/model/DescribeServiceRequest.h>
|
||||
|
||||
using AlibabaCloud::Eas::Model::DescribeServiceRequest;
|
||||
|
||||
DescribeServiceRequest::DescribeServiceRequest()
|
||||
: RoaServiceRequest("eas", "2021-07-01") {
|
||||
setResourcePath("/api/v2/services/[ClusterId]/[ServiceName]"};
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
DescribeServiceRequest::~DescribeServiceRequest() {}
|
||||
|
||||
string DescribeServiceRequest::getServiceName() const {
|
||||
return serviceName_;
|
||||
}
|
||||
|
||||
void DescribeServiceRequest::setServiceName(string serviceName) {
|
||||
serviceName_ = serviceName;
|
||||
setParameter(std::string("ServiceName"), std::to_string(serviceName));
|
||||
}
|
||||
|
||||
string DescribeServiceRequest::getClusterId() const {
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void DescribeServiceRequest::setClusterId(string clusterId) {
|
||||
clusterId_ = clusterId;
|
||||
setParameter(std::string("ClusterId"), std::to_string(clusterId));
|
||||
}
|
||||
|
||||
233
eas/src/model/DescribeServiceResult.cc
Normal file
233
eas/src/model/DescribeServiceResult.cc
Normal file
@@ -0,0 +1,233 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/eas/model/DescribeServiceResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Eas;
|
||||
using namespace AlibabaCloud::Eas::Model;
|
||||
|
||||
DescribeServiceResult::DescribeServiceResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeServiceResult::DescribeServiceResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeServiceResult::~DescribeServiceResult()
|
||||
{}
|
||||
|
||||
void DescribeServiceResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Region"].isNull())
|
||||
region_ = value["Region"].asString();
|
||||
if(!value["CallerUid"].isNull())
|
||||
callerUid_ = value["CallerUid"].asString();
|
||||
if(!value["ParentUid"].isNull())
|
||||
parentUid_ = value["ParentUid"].asString();
|
||||
if(!value["CurrentVersion"].isNull())
|
||||
currentVersion_ = std::stoi(value["CurrentVersion"].asString());
|
||||
if(!value["Cpu"].isNull())
|
||||
cpu_ = std::stoi(value["Cpu"].asString());
|
||||
if(!value["Gpu"].isNull())
|
||||
gpu_ = std::stoi(value["Gpu"].asString());
|
||||
if(!value["Image"].isNull())
|
||||
image_ = value["Image"].asString();
|
||||
if(!value["PendingInstance"].isNull())
|
||||
pendingInstance_ = std::stoi(value["PendingInstance"].asString());
|
||||
if(!value["RunningInstance"].isNull())
|
||||
runningInstance_ = std::stoi(value["RunningInstance"].asString());
|
||||
if(!value["TotalInstance"].isNull())
|
||||
totalInstance_ = std::stoi(value["TotalInstance"].asString());
|
||||
if(!value["InternetEndpoint"].isNull())
|
||||
internetEndpoint_ = value["InternetEndpoint"].asString();
|
||||
if(!value["IntranetEndpoint"].isNull())
|
||||
intranetEndpoint_ = value["IntranetEndpoint"].asString();
|
||||
if(!value["LatestVersion"].isNull())
|
||||
latestVersion_ = std::stoi(value["LatestVersion"].asString());
|
||||
if(!value["Memory"].isNull())
|
||||
memory_ = std::stoi(value["Memory"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Namespace"].isNull())
|
||||
_namespace_ = value["Namespace"].asString();
|
||||
if(!value["Reason"].isNull())
|
||||
reason_ = value["Reason"].asString();
|
||||
if(!value["Resource"].isNull())
|
||||
resource_ = value["Resource"].asString();
|
||||
if(!value["ServiceConfig"].isNull())
|
||||
serviceConfig_ = value["ServiceConfig"].asString();
|
||||
if(!value["ServiceName"].isNull())
|
||||
serviceName_ = value["ServiceName"].asString();
|
||||
if(!value["Status"].isNull())
|
||||
status_ = value["Status"].asString();
|
||||
if(!value["CreateTime"].isNull())
|
||||
createTime_ = value["CreateTime"].asString();
|
||||
if(!value["UpdateTime"].isNull())
|
||||
updateTime_ = value["UpdateTime"].asString();
|
||||
if(!value["Weight"].isNull())
|
||||
weight_ = std::stoi(value["Weight"].asString());
|
||||
if(!value["ServiceId"].isNull())
|
||||
serviceId_ = value["ServiceId"].asString();
|
||||
if(!value["AccessToken"].isNull())
|
||||
accessToken_ = value["AccessToken"].asString();
|
||||
if(!value["Source"].isNull())
|
||||
source_ = value["Source"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DescribeServiceResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int DescribeServiceResult::getMemory()const
|
||||
{
|
||||
return memory_;
|
||||
}
|
||||
|
||||
int DescribeServiceResult::getCurrentVersion()const
|
||||
{
|
||||
return currentVersion_;
|
||||
}
|
||||
|
||||
int DescribeServiceResult::getRunningInstance()const
|
||||
{
|
||||
return runningInstance_;
|
||||
}
|
||||
|
||||
int DescribeServiceResult::getCpu()const
|
||||
{
|
||||
return cpu_;
|
||||
}
|
||||
|
||||
std::string DescribeServiceResult::getImage()const
|
||||
{
|
||||
return image_;
|
||||
}
|
||||
|
||||
int DescribeServiceResult::getGpu()const
|
||||
{
|
||||
return gpu_;
|
||||
}
|
||||
|
||||
std::string DescribeServiceResult::getCallerUid()const
|
||||
{
|
||||
return callerUid_;
|
||||
}
|
||||
|
||||
std::string DescribeServiceResult::getReason()const
|
||||
{
|
||||
return reason_;
|
||||
}
|
||||
|
||||
std::string DescribeServiceResult::getSource()const
|
||||
{
|
||||
return source_;
|
||||
}
|
||||
|
||||
std::string DescribeServiceResult::getServiceId()const
|
||||
{
|
||||
return serviceId_;
|
||||
}
|
||||
|
||||
int DescribeServiceResult::getTotalInstance()const
|
||||
{
|
||||
return totalInstance_;
|
||||
}
|
||||
|
||||
std::string DescribeServiceResult::getServiceConfig()const
|
||||
{
|
||||
return serviceConfig_;
|
||||
}
|
||||
|
||||
std::string DescribeServiceResult::getAccessToken()const
|
||||
{
|
||||
return accessToken_;
|
||||
}
|
||||
|
||||
std::string DescribeServiceResult::getInternetEndpoint()const
|
||||
{
|
||||
return internetEndpoint_;
|
||||
}
|
||||
|
||||
std::string DescribeServiceResult::getStatus()const
|
||||
{
|
||||
return status_;
|
||||
}
|
||||
|
||||
std::string DescribeServiceResult::getCreateTime()const
|
||||
{
|
||||
return createTime_;
|
||||
}
|
||||
|
||||
std::string DescribeServiceResult::getResource()const
|
||||
{
|
||||
return resource_;
|
||||
}
|
||||
|
||||
std::string DescribeServiceResult::get_Namespace()const
|
||||
{
|
||||
return _namespace_;
|
||||
}
|
||||
|
||||
int DescribeServiceResult::getWeight()const
|
||||
{
|
||||
return weight_;
|
||||
}
|
||||
|
||||
int DescribeServiceResult::getPendingInstance()const
|
||||
{
|
||||
return pendingInstance_;
|
||||
}
|
||||
|
||||
int DescribeServiceResult::getLatestVersion()const
|
||||
{
|
||||
return latestVersion_;
|
||||
}
|
||||
|
||||
std::string DescribeServiceResult::getServiceName()const
|
||||
{
|
||||
return serviceName_;
|
||||
}
|
||||
|
||||
std::string DescribeServiceResult::getUpdateTime()const
|
||||
{
|
||||
return updateTime_;
|
||||
}
|
||||
|
||||
std::string DescribeServiceResult::getRegion()const
|
||||
{
|
||||
return region_;
|
||||
}
|
||||
|
||||
std::string DescribeServiceResult::getParentUid()const
|
||||
{
|
||||
return parentUid_;
|
||||
}
|
||||
|
||||
std::string DescribeServiceResult::getIntranetEndpoint()const
|
||||
{
|
||||
return intranetEndpoint_;
|
||||
}
|
||||
|
||||
@@ -1,30 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/eas/model/GetAvailableRegionsRequest.h>
|
||||
|
||||
using AlibabaCloud::Eas::Model::GetAvailableRegionsRequest;
|
||||
|
||||
GetAvailableRegionsRequest::GetAvailableRegionsRequest() :
|
||||
RoaServiceRequest("eas", "2018-05-22")
|
||||
{
|
||||
setResourcePath("/api/services/regions");
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
GetAvailableRegionsRequest::~GetAvailableRegionsRequest()
|
||||
{}
|
||||
|
||||
@@ -1,52 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/eas/model/GetNetworkInterfaceRequest.h>
|
||||
|
||||
using AlibabaCloud::Eas::Model::GetNetworkInterfaceRequest;
|
||||
|
||||
GetNetworkInterfaceRequest::GetNetworkInterfaceRequest() :
|
||||
RoaServiceRequest("eas", "2018-05-22")
|
||||
{
|
||||
setResourcePath("/api/resources/[cluster_id]/[resource_name]/network");
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
GetNetworkInterfaceRequest::~GetNetworkInterfaceRequest()
|
||||
{}
|
||||
|
||||
std::string GetNetworkInterfaceRequest::getCluster_id()const
|
||||
{
|
||||
return cluster_id_;
|
||||
}
|
||||
|
||||
void GetNetworkInterfaceRequest::setCluster_id(const std::string& cluster_id)
|
||||
{
|
||||
cluster_id_ = cluster_id;
|
||||
setParameter("Cluster_id", cluster_id);
|
||||
}
|
||||
|
||||
std::string GetNetworkInterfaceRequest::getResource_name()const
|
||||
{
|
||||
return resource_name_;
|
||||
}
|
||||
|
||||
void GetNetworkInterfaceRequest::setResource_name(const std::string& resource_name)
|
||||
{
|
||||
resource_name_ = resource_name;
|
||||
setParameter("Resource_name", resource_name);
|
||||
}
|
||||
|
||||
@@ -1,30 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/eas/model/GetOrCreateResourceRequest.h>
|
||||
|
||||
using AlibabaCloud::Eas::Model::GetOrCreateResourceRequest;
|
||||
|
||||
GetOrCreateResourceRequest::GetOrCreateResourceRequest() :
|
||||
RoaServiceRequest("eas", "2018-05-22")
|
||||
{
|
||||
setResourcePath("/api/resources");
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetOrCreateResourceRequest::~GetOrCreateResourceRequest()
|
||||
{}
|
||||
|
||||
@@ -1,44 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/eas/model/GetOssAuthorizeResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Eas;
|
||||
using namespace AlibabaCloud::Eas::Model;
|
||||
|
||||
GetOssAuthorizeResult::GetOssAuthorizeResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetOssAuthorizeResult::GetOssAuthorizeResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetOssAuthorizeResult::~GetOssAuthorizeResult()
|
||||
{}
|
||||
|
||||
void GetOssAuthorizeResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
@@ -1,52 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/eas/model/GetResourceInstancesRequest.h>
|
||||
|
||||
using AlibabaCloud::Eas::Model::GetResourceInstancesRequest;
|
||||
|
||||
GetResourceInstancesRequest::GetResourceInstancesRequest() :
|
||||
RoaServiceRequest("eas", "2018-05-22")
|
||||
{
|
||||
setResourcePath("/api/resources/[cluster_id]/[resource_name]/instances");
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
GetResourceInstancesRequest::~GetResourceInstancesRequest()
|
||||
{}
|
||||
|
||||
std::string GetResourceInstancesRequest::getCluster_id()const
|
||||
{
|
||||
return cluster_id_;
|
||||
}
|
||||
|
||||
void GetResourceInstancesRequest::setCluster_id(const std::string& cluster_id)
|
||||
{
|
||||
cluster_id_ = cluster_id;
|
||||
setParameter("Cluster_id", cluster_id);
|
||||
}
|
||||
|
||||
std::string GetResourceInstancesRequest::getResource_name()const
|
||||
{
|
||||
return resource_name_;
|
||||
}
|
||||
|
||||
void GetResourceInstancesRequest::setResource_name(const std::string& resource_name)
|
||||
{
|
||||
resource_name_ = resource_name;
|
||||
setParameter("Resource_name", resource_name);
|
||||
}
|
||||
|
||||
@@ -1,63 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/eas/model/GetResourcePodsRequest.h>
|
||||
|
||||
using AlibabaCloud::Eas::Model::GetResourcePodsRequest;
|
||||
|
||||
GetResourcePodsRequest::GetResourcePodsRequest() :
|
||||
RoaServiceRequest("eas", "2018-05-22")
|
||||
{
|
||||
setResourcePath("/api/resources/[cluster_id]/[resource_name]/instances/[instance_name]/pods");
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
GetResourcePodsRequest::~GetResourcePodsRequest()
|
||||
{}
|
||||
|
||||
std::string GetResourcePodsRequest::getCluster_id()const
|
||||
{
|
||||
return cluster_id_;
|
||||
}
|
||||
|
||||
void GetResourcePodsRequest::setCluster_id(const std::string& cluster_id)
|
||||
{
|
||||
cluster_id_ = cluster_id;
|
||||
setParameter("Cluster_id", cluster_id);
|
||||
}
|
||||
|
||||
std::string GetResourcePodsRequest::getInstance_name()const
|
||||
{
|
||||
return instance_name_;
|
||||
}
|
||||
|
||||
void GetResourcePodsRequest::setInstance_name(const std::string& instance_name)
|
||||
{
|
||||
instance_name_ = instance_name;
|
||||
setParameter("Instance_name", instance_name);
|
||||
}
|
||||
|
||||
std::string GetResourcePodsRequest::getResource_name()const
|
||||
{
|
||||
return resource_name_;
|
||||
}
|
||||
|
||||
void GetResourcePodsRequest::setResource_name(const std::string& resource_name)
|
||||
{
|
||||
resource_name_ = resource_name;
|
||||
setParameter("Resource_name", resource_name);
|
||||
}
|
||||
|
||||
@@ -1,44 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/eas/model/GetResourcePodsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Eas;
|
||||
using namespace AlibabaCloud::Eas::Model;
|
||||
|
||||
GetResourcePodsResult::GetResourcePodsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetResourcePodsResult::GetResourcePodsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetResourcePodsResult::~GetResourcePodsResult()
|
||||
{}
|
||||
|
||||
void GetResourcePodsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
@@ -1,52 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/eas/model/GetResourceServicesRequest.h>
|
||||
|
||||
using AlibabaCloud::Eas::Model::GetResourceServicesRequest;
|
||||
|
||||
GetResourceServicesRequest::GetResourceServicesRequest() :
|
||||
RoaServiceRequest("eas", "2018-05-22")
|
||||
{
|
||||
setResourcePath("/api/resources/[cluster_id]/[resource_name]/services");
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
GetResourceServicesRequest::~GetResourceServicesRequest()
|
||||
{}
|
||||
|
||||
std::string GetResourceServicesRequest::getCluster_id()const
|
||||
{
|
||||
return cluster_id_;
|
||||
}
|
||||
|
||||
void GetResourceServicesRequest::setCluster_id(const std::string& cluster_id)
|
||||
{
|
||||
cluster_id_ = cluster_id;
|
||||
setParameter("Cluster_id", cluster_id);
|
||||
}
|
||||
|
||||
std::string GetResourceServicesRequest::getResource_name()const
|
||||
{
|
||||
return resource_name_;
|
||||
}
|
||||
|
||||
void GetResourceServicesRequest::setResource_name(const std::string& resource_name)
|
||||
{
|
||||
resource_name_ = resource_name;
|
||||
setParameter("Resource_name", resource_name);
|
||||
}
|
||||
|
||||
@@ -1,52 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/eas/model/GetResourceStatusRequest.h>
|
||||
|
||||
using AlibabaCloud::Eas::Model::GetResourceStatusRequest;
|
||||
|
||||
GetResourceStatusRequest::GetResourceStatusRequest() :
|
||||
RoaServiceRequest("eas", "2018-05-22")
|
||||
{
|
||||
setResourcePath("/api/resources/[cluster_id]/[resource_name]");
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
GetResourceStatusRequest::~GetResourceStatusRequest()
|
||||
{}
|
||||
|
||||
std::string GetResourceStatusRequest::getCluster_id()const
|
||||
{
|
||||
return cluster_id_;
|
||||
}
|
||||
|
||||
void GetResourceStatusRequest::setCluster_id(const std::string& cluster_id)
|
||||
{
|
||||
cluster_id_ = cluster_id;
|
||||
setParameter("Cluster_id", cluster_id);
|
||||
}
|
||||
|
||||
std::string GetResourceStatusRequest::getResource_name()const
|
||||
{
|
||||
return resource_name_;
|
||||
}
|
||||
|
||||
void GetResourceStatusRequest::setResource_name(const std::string& resource_name)
|
||||
{
|
||||
resource_name_ = resource_name;
|
||||
setParameter("Resource_name", resource_name);
|
||||
}
|
||||
|
||||
@@ -1,30 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/eas/model/GetServiceRegionRequest.h>
|
||||
|
||||
using AlibabaCloud::Eas::Model::GetServiceRegionRequest;
|
||||
|
||||
GetServiceRegionRequest::GetServiceRegionRequest() :
|
||||
RoaServiceRequest("eas", "2018-05-22")
|
||||
{
|
||||
setResourcePath("/api/services/region");
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
GetServiceRegionRequest::~GetServiceRegionRequest()
|
||||
{}
|
||||
|
||||
@@ -1,44 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/eas/model/GetServiceRegionResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Eas;
|
||||
using namespace AlibabaCloud::Eas::Model;
|
||||
|
||||
GetServiceRegionResult::GetServiceRegionResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetServiceRegionResult::GetServiceRegionResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetServiceRegionResult::~GetServiceRegionResult()
|
||||
{}
|
||||
|
||||
void GetServiceRegionResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
@@ -1,52 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/eas/model/GetServiceRequest.h>
|
||||
|
||||
using AlibabaCloud::Eas::Model::GetServiceRequest;
|
||||
|
||||
GetServiceRequest::GetServiceRequest() :
|
||||
RoaServiceRequest("eas", "2018-05-22")
|
||||
{
|
||||
setResourcePath("/api/services/[region]/[service_name]");
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
GetServiceRequest::~GetServiceRequest()
|
||||
{}
|
||||
|
||||
std::string GetServiceRequest::getService_name()const
|
||||
{
|
||||
return service_name_;
|
||||
}
|
||||
|
||||
void GetServiceRequest::setService_name(const std::string& service_name)
|
||||
{
|
||||
service_name_ = service_name;
|
||||
setParameter("Service_name", service_name);
|
||||
}
|
||||
|
||||
std::string GetServiceRequest::getRegion()const
|
||||
{
|
||||
return region_;
|
||||
}
|
||||
|
||||
void GetServiceRequest::setRegion(const std::string& region)
|
||||
{
|
||||
region_ = region;
|
||||
setParameter("Region", region);
|
||||
}
|
||||
|
||||
@@ -1,44 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/eas/model/GetServiceResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Eas;
|
||||
using namespace AlibabaCloud::Eas::Model;
|
||||
|
||||
GetServiceResult::GetServiceResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetServiceResult::GetServiceResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetServiceResult::~GetServiceResult()
|
||||
{}
|
||||
|
||||
void GetServiceResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
@@ -1,96 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/eas/model/GetServiceStatisticsRequest.h>
|
||||
|
||||
using AlibabaCloud::Eas::Model::GetServiceStatisticsRequest;
|
||||
|
||||
GetServiceStatisticsRequest::GetServiceStatisticsRequest() :
|
||||
RoaServiceRequest("eas", "2018-05-22")
|
||||
{
|
||||
setResourcePath("/api/services/[region]/[service_name]/statistics");
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
GetServiceStatisticsRequest::~GetServiceStatisticsRequest()
|
||||
{}
|
||||
|
||||
std::string GetServiceStatisticsRequest::getMetric()const
|
||||
{
|
||||
return metric_;
|
||||
}
|
||||
|
||||
void GetServiceStatisticsRequest::setMetric(const std::string& metric)
|
||||
{
|
||||
metric_ = metric;
|
||||
setParameter("Metric", metric);
|
||||
}
|
||||
|
||||
std::string GetServiceStatisticsRequest::getService_name()const
|
||||
{
|
||||
return service_name_;
|
||||
}
|
||||
|
||||
void GetServiceStatisticsRequest::setService_name(const std::string& service_name)
|
||||
{
|
||||
service_name_ = service_name;
|
||||
setParameter("Service_name", service_name);
|
||||
}
|
||||
|
||||
int GetServiceStatisticsRequest::getCount()const
|
||||
{
|
||||
return count_;
|
||||
}
|
||||
|
||||
void GetServiceStatisticsRequest::setCount(int count)
|
||||
{
|
||||
count_ = count;
|
||||
setParameter("Count", std::to_string(count));
|
||||
}
|
||||
|
||||
std::string GetServiceStatisticsRequest::getFrom()const
|
||||
{
|
||||
return from_;
|
||||
}
|
||||
|
||||
void GetServiceStatisticsRequest::setFrom(const std::string& from)
|
||||
{
|
||||
from_ = from;
|
||||
setParameter("From", from);
|
||||
}
|
||||
|
||||
std::string GetServiceStatisticsRequest::getTo()const
|
||||
{
|
||||
return to_;
|
||||
}
|
||||
|
||||
void GetServiceStatisticsRequest::setTo(const std::string& to)
|
||||
{
|
||||
to_ = to;
|
||||
setParameter("To", to);
|
||||
}
|
||||
|
||||
std::string GetServiceStatisticsRequest::getRegion()const
|
||||
{
|
||||
return region_;
|
||||
}
|
||||
|
||||
void GetServiceStatisticsRequest::setRegion(const std::string& region)
|
||||
{
|
||||
region_ = region;
|
||||
setParameter("Region", region);
|
||||
}
|
||||
|
||||
@@ -1,44 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/eas/model/GetServiceStatisticsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Eas;
|
||||
using namespace AlibabaCloud::Eas::Model;
|
||||
|
||||
GetServiceStatisticsResult::GetServiceStatisticsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetServiceStatisticsResult::GetServiceStatisticsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetServiceStatisticsResult::~GetServiceStatisticsResult()
|
||||
{}
|
||||
|
||||
void GetServiceStatisticsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
@@ -1,52 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/eas/model/GetServiceTokenRequest.h>
|
||||
|
||||
using AlibabaCloud::Eas::Model::GetServiceTokenRequest;
|
||||
|
||||
GetServiceTokenRequest::GetServiceTokenRequest() :
|
||||
RoaServiceRequest("eas", "2018-05-22")
|
||||
{
|
||||
setResourcePath("/api/services/[region]/[service_name]/token");
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
GetServiceTokenRequest::~GetServiceTokenRequest()
|
||||
{}
|
||||
|
||||
std::string GetServiceTokenRequest::getService_name()const
|
||||
{
|
||||
return service_name_;
|
||||
}
|
||||
|
||||
void GetServiceTokenRequest::setService_name(const std::string& service_name)
|
||||
{
|
||||
service_name_ = service_name;
|
||||
setParameter("Service_name", service_name);
|
||||
}
|
||||
|
||||
std::string GetServiceTokenRequest::getRegion()const
|
||||
{
|
||||
return region_;
|
||||
}
|
||||
|
||||
void GetServiceTokenRequest::setRegion(const std::string& region)
|
||||
{
|
||||
region_ = region;
|
||||
setParameter("Region", region);
|
||||
}
|
||||
|
||||
@@ -1,44 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/eas/model/GetServiceTokenResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Eas;
|
||||
using namespace AlibabaCloud::Eas::Model;
|
||||
|
||||
GetServiceTokenResult::GetServiceTokenResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetServiceTokenResult::GetServiceTokenResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetServiceTokenResult::~GetServiceTokenResult()
|
||||
{}
|
||||
|
||||
void GetServiceTokenResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
@@ -1,52 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/eas/model/GetServiceVersionRequest.h>
|
||||
|
||||
using AlibabaCloud::Eas::Model::GetServiceVersionRequest;
|
||||
|
||||
GetServiceVersionRequest::GetServiceVersionRequest() :
|
||||
RoaServiceRequest("eas", "2018-05-22")
|
||||
{
|
||||
setResourcePath("/api/services/[region]/[service_name]/version");
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
GetServiceVersionRequest::~GetServiceVersionRequest()
|
||||
{}
|
||||
|
||||
std::string GetServiceVersionRequest::getService_name()const
|
||||
{
|
||||
return service_name_;
|
||||
}
|
||||
|
||||
void GetServiceVersionRequest::setService_name(const std::string& service_name)
|
||||
{
|
||||
service_name_ = service_name;
|
||||
setParameter("Service_name", service_name);
|
||||
}
|
||||
|
||||
std::string GetServiceVersionRequest::getRegion()const
|
||||
{
|
||||
return region_;
|
||||
}
|
||||
|
||||
void GetServiceVersionRequest::setRegion(const std::string& region)
|
||||
{
|
||||
region_ = region;
|
||||
setParameter("Region", region);
|
||||
}
|
||||
|
||||
@@ -1,52 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/eas/model/GetServiceWorkerRequest.h>
|
||||
|
||||
using AlibabaCloud::Eas::Model::GetServiceWorkerRequest;
|
||||
|
||||
GetServiceWorkerRequest::GetServiceWorkerRequest() :
|
||||
RoaServiceRequest("eas", "2018-05-22")
|
||||
{
|
||||
setResourcePath("/api/services/[region]/[service_name]/worker");
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
GetServiceWorkerRequest::~GetServiceWorkerRequest()
|
||||
{}
|
||||
|
||||
std::string GetServiceWorkerRequest::getService_name()const
|
||||
{
|
||||
return service_name_;
|
||||
}
|
||||
|
||||
void GetServiceWorkerRequest::setService_name(const std::string& service_name)
|
||||
{
|
||||
service_name_ = service_name;
|
||||
setParameter("Service_name", service_name);
|
||||
}
|
||||
|
||||
std::string GetServiceWorkerRequest::getRegion()const
|
||||
{
|
||||
return region_;
|
||||
}
|
||||
|
||||
void GetServiceWorkerRequest::setRegion(const std::string& region)
|
||||
{
|
||||
region_ = region;
|
||||
setParameter("Region", region);
|
||||
}
|
||||
|
||||
@@ -1,44 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/eas/model/GetServiceWorkerResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Eas;
|
||||
using namespace AlibabaCloud::Eas::Model;
|
||||
|
||||
GetServiceWorkerResult::GetServiceWorkerResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetServiceWorkerResult::GetServiceWorkerResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetServiceWorkerResult::~GetServiceWorkerResult()
|
||||
{}
|
||||
|
||||
void GetServiceWorkerResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
@@ -1,52 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/eas/model/GetTaskRequest.h>
|
||||
|
||||
using AlibabaCloud::Eas::Model::GetTaskRequest;
|
||||
|
||||
GetTaskRequest::GetTaskRequest() :
|
||||
RoaServiceRequest("eas", "2018-05-22")
|
||||
{
|
||||
setResourcePath("/api/tasks/[region]/[task_name]");
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
GetTaskRequest::~GetTaskRequest()
|
||||
{}
|
||||
|
||||
std::string GetTaskRequest::getTask_name()const
|
||||
{
|
||||
return task_name_;
|
||||
}
|
||||
|
||||
void GetTaskRequest::setTask_name(const std::string& task_name)
|
||||
{
|
||||
task_name_ = task_name;
|
||||
setParameter("Task_name", task_name);
|
||||
}
|
||||
|
||||
std::string GetTaskRequest::getRegion()const
|
||||
{
|
||||
return region_;
|
||||
}
|
||||
|
||||
void GetTaskRequest::setRegion(const std::string& region)
|
||||
{
|
||||
region_ = region;
|
||||
setParameter("Region", region);
|
||||
}
|
||||
|
||||
@@ -1,44 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/eas/model/GetTaskResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Eas;
|
||||
using namespace AlibabaCloud::Eas::Model;
|
||||
|
||||
GetTaskResult::GetTaskResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetTaskResult::GetTaskResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetTaskResult::~GetTaskResult()
|
||||
{}
|
||||
|
||||
void GetTaskResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
@@ -1,30 +1,28 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/eas/model/GetOssAuthorizeRequest.h>
|
||||
|
||||
using AlibabaCloud::Eas::Model::GetOssAuthorizeRequest;
|
||||
|
||||
GetOssAuthorizeRequest::GetOssAuthorizeRequest() :
|
||||
RoaServiceRequest("eas", "2018-05-22")
|
||||
{
|
||||
setResourcePath("/api/services/oss_authorize");
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
GetOssAuthorizeRequest::~GetOssAuthorizeRequest()
|
||||
{}
|
||||
|
||||
*/
|
||||
|
||||
#include <alibabacloud/eas/model/ListBenchmarkTaskRequest.h>
|
||||
|
||||
using AlibabaCloud::Eas::Model::ListBenchmarkTaskRequest;
|
||||
|
||||
ListBenchmarkTaskRequest::ListBenchmarkTaskRequest()
|
||||
: RoaServiceRequest("eas", "2021-07-01") {
|
||||
setResourcePath("/api/v2/benchmark-tasks"};
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
ListBenchmarkTaskRequest::~ListBenchmarkTaskRequest() {}
|
||||
|
||||
73
eas/src/model/ListBenchmarkTaskResult.cc
Normal file
73
eas/src/model/ListBenchmarkTaskResult.cc
Normal file
@@ -0,0 +1,73 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/eas/model/ListBenchmarkTaskResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Eas;
|
||||
using namespace AlibabaCloud::Eas::Model;
|
||||
|
||||
ListBenchmarkTaskResult::ListBenchmarkTaskResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListBenchmarkTaskResult::ListBenchmarkTaskResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListBenchmarkTaskResult::~ListBenchmarkTaskResult()
|
||||
{}
|
||||
|
||||
void ListBenchmarkTaskResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allTasksNode = value["Tasks"]["Task"];
|
||||
for (auto valueTasksTask : allTasksNode)
|
||||
{
|
||||
Task tasksObject;
|
||||
if(!valueTasksTask["TaskName"].isNull())
|
||||
tasksObject.taskName = valueTasksTask["TaskName"].asString();
|
||||
if(!valueTasksTask["TaskId"].isNull())
|
||||
tasksObject.taskId = valueTasksTask["TaskId"].asString();
|
||||
if(!valueTasksTask["ServiceName"].isNull())
|
||||
tasksObject.serviceName = valueTasksTask["ServiceName"].asString();
|
||||
if(!valueTasksTask["Region"].isNull())
|
||||
tasksObject.region = valueTasksTask["Region"].asString();
|
||||
if(!valueTasksTask["AvailableAgent"].isNull())
|
||||
tasksObject.availableAgent = std::stol(valueTasksTask["AvailableAgent"].asString());
|
||||
if(!valueTasksTask["Status"].isNull())
|
||||
tasksObject.status = valueTasksTask["Status"].asString();
|
||||
if(!valueTasksTask["Message"].isNull())
|
||||
tasksObject.message = valueTasksTask["Message"].asString();
|
||||
if(!valueTasksTask["CreateTime"].isNull())
|
||||
tasksObject.createTime = valueTasksTask["CreateTime"].asString();
|
||||
if(!valueTasksTask["UpdateTime"].isNull())
|
||||
tasksObject.updateTime = valueTasksTask["UpdateTime"].asString();
|
||||
tasks_.push_back(tasksObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
std::vector<ListBenchmarkTaskResult::Task> ListBenchmarkTaskResult::getTasks()const
|
||||
{
|
||||
return tasks_;
|
||||
}
|
||||
|
||||
73
eas/src/model/ListResourceInstanceWorkerRequest.cc
Normal file
73
eas/src/model/ListResourceInstanceWorkerRequest.cc
Normal file
@@ -0,0 +1,73 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/eas/model/ListResourceInstanceWorkerRequest.h>
|
||||
|
||||
using AlibabaCloud::Eas::Model::ListResourceInstanceWorkerRequest;
|
||||
|
||||
ListResourceInstanceWorkerRequest::ListResourceInstanceWorkerRequest()
|
||||
: RoaServiceRequest("eas", "2021-07-01") {
|
||||
setResourcePath("/api/v2/resources/[ClusterId]/[ResourceId]/instance/[InstanceName]/workers"};
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
ListResourceInstanceWorkerRequest::~ListResourceInstanceWorkerRequest() {}
|
||||
|
||||
string ListResourceInstanceWorkerRequest::getResourceId() const {
|
||||
return resourceId_;
|
||||
}
|
||||
|
||||
void ListResourceInstanceWorkerRequest::setResourceId(string resourceId) {
|
||||
resourceId_ = resourceId;
|
||||
setParameter(std::string("ResourceId"), std::to_string(resourceId));
|
||||
}
|
||||
|
||||
string ListResourceInstanceWorkerRequest::getInstanceName() const {
|
||||
return instanceName_;
|
||||
}
|
||||
|
||||
void ListResourceInstanceWorkerRequest::setInstanceName(string instanceName) {
|
||||
instanceName_ = instanceName;
|
||||
setParameter(std::string("InstanceName"), std::to_string(instanceName));
|
||||
}
|
||||
|
||||
integer ListResourceInstanceWorkerRequest::getPageSize() const {
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void ListResourceInstanceWorkerRequest::setPageSize(integer pageSize) {
|
||||
pageSize_ = pageSize;
|
||||
setParameter(std::string("PageSize"), std::to_string(pageSize));
|
||||
}
|
||||
|
||||
string ListResourceInstanceWorkerRequest::getClusterId() const {
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void ListResourceInstanceWorkerRequest::setClusterId(string clusterId) {
|
||||
clusterId_ = clusterId;
|
||||
setParameter(std::string("ClusterId"), std::to_string(clusterId));
|
||||
}
|
||||
|
||||
integer ListResourceInstanceWorkerRequest::getPageNumber() const {
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
void ListResourceInstanceWorkerRequest::setPageNumber(integer pageNumber) {
|
||||
pageNumber_ = pageNumber;
|
||||
setParameter(std::string("PageNumber"), std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
100
eas/src/model/ListResourceInstanceWorkerResult.cc
Normal file
100
eas/src/model/ListResourceInstanceWorkerResult.cc
Normal file
@@ -0,0 +1,100 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/eas/model/ListResourceInstanceWorkerResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Eas;
|
||||
using namespace AlibabaCloud::Eas::Model;
|
||||
|
||||
ListResourceInstanceWorkerResult::ListResourceInstanceWorkerResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListResourceInstanceWorkerResult::ListResourceInstanceWorkerResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListResourceInstanceWorkerResult::~ListResourceInstanceWorkerResult()
|
||||
{}
|
||||
|
||||
void ListResourceInstanceWorkerResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allPodsNode = value["Pods"]["PodsItem"];
|
||||
for (auto valuePodsPodsItem : allPodsNode)
|
||||
{
|
||||
PodsItem podsObject;
|
||||
if(!valuePodsPodsItem["Name"].isNull())
|
||||
podsObject.name = valuePodsPodsItem["Name"].asString();
|
||||
if(!valuePodsPodsItem["ServiceName"].isNull())
|
||||
podsObject.serviceName = valuePodsPodsItem["ServiceName"].asString();
|
||||
if(!valuePodsPodsItem["Status"].isNull())
|
||||
podsObject.status = valuePodsPodsItem["Status"].asString();
|
||||
if(!valuePodsPodsItem["Ready"].isNull())
|
||||
podsObject.ready = valuePodsPodsItem["Ready"].asString() == "true";
|
||||
if(!valuePodsPodsItem["CpuRequest"].isNull())
|
||||
podsObject.cpuRequest = std::stoi(valuePodsPodsItem["CpuRequest"].asString());
|
||||
if(!valuePodsPodsItem["GpuRequest"].isNull())
|
||||
podsObject.gpuRequest = std::stoi(valuePodsPodsItem["GpuRequest"].asString());
|
||||
if(!valuePodsPodsItem["MemoryRquest"].isNull())
|
||||
podsObject.memoryRquest = std::stoi(valuePodsPodsItem["MemoryRquest"].asString());
|
||||
if(!valuePodsPodsItem["CpuLimit"].isNull())
|
||||
podsObject.cpuLimit = std::stoi(valuePodsPodsItem["CpuLimit"].asString());
|
||||
if(!valuePodsPodsItem["GpuLimit"].isNull())
|
||||
podsObject.gpuLimit = std::stoi(valuePodsPodsItem["GpuLimit"].asString());
|
||||
if(!valuePodsPodsItem["MemoryLimit"].isNull())
|
||||
podsObject.memoryLimit = std::stoi(valuePodsPodsItem["MemoryLimit"].asString());
|
||||
if(!valuePodsPodsItem["RestartCount"].isNull())
|
||||
podsObject.restartCount = std::stoi(valuePodsPodsItem["RestartCount"].asString());
|
||||
if(!valuePodsPodsItem["StartTime"].isNull())
|
||||
podsObject.startTime = valuePodsPodsItem["StartTime"].asString();
|
||||
pods_.push_back(podsObject);
|
||||
}
|
||||
if(!value["PageNumber"].isNull())
|
||||
pageNumber_ = std::stoi(value["PageNumber"].asString());
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stoi(value["PageSize"].asString());
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stoi(value["TotalCount"].asString());
|
||||
|
||||
}
|
||||
|
||||
int ListResourceInstanceWorkerResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
int ListResourceInstanceWorkerResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
int ListResourceInstanceWorkerResult::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
std::vector<ListResourceInstanceWorkerResult::PodsItem> ListResourceInstanceWorkerResult::getPods()const
|
||||
{
|
||||
return pods_;
|
||||
}
|
||||
|
||||
73
eas/src/model/ListResourceInstancesRequest.cc
Normal file
73
eas/src/model/ListResourceInstancesRequest.cc
Normal file
@@ -0,0 +1,73 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/eas/model/ListResourceInstancesRequest.h>
|
||||
|
||||
using AlibabaCloud::Eas::Model::ListResourceInstancesRequest;
|
||||
|
||||
ListResourceInstancesRequest::ListResourceInstancesRequest()
|
||||
: RoaServiceRequest("eas", "2021-07-01") {
|
||||
setResourcePath("/api/v2/resources/[ClusterId]/[ResourceId]/instances"};
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
ListResourceInstancesRequest::~ListResourceInstancesRequest() {}
|
||||
|
||||
string ListResourceInstancesRequest::getResourceId() const {
|
||||
return resourceId_;
|
||||
}
|
||||
|
||||
void ListResourceInstancesRequest::setResourceId(string resourceId) {
|
||||
resourceId_ = resourceId;
|
||||
setParameter(std::string("ResourceId"), std::to_string(resourceId));
|
||||
}
|
||||
|
||||
integer ListResourceInstancesRequest::getPageSize() const {
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void ListResourceInstancesRequest::setPageSize(integer pageSize) {
|
||||
pageSize_ = pageSize;
|
||||
setParameter(std::string("PageSize"), std::to_string(pageSize));
|
||||
}
|
||||
|
||||
string ListResourceInstancesRequest::getClusterId() const {
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void ListResourceInstancesRequest::setClusterId(string clusterId) {
|
||||
clusterId_ = clusterId;
|
||||
setParameter(std::string("ClusterId"), std::to_string(clusterId));
|
||||
}
|
||||
|
||||
string ListResourceInstancesRequest::getChargeType() const {
|
||||
return chargeType_;
|
||||
}
|
||||
|
||||
void ListResourceInstancesRequest::setChargeType(string chargeType) {
|
||||
chargeType_ = chargeType;
|
||||
setParameter(std::string("ChargeType"), std::to_string(chargeType));
|
||||
}
|
||||
|
||||
integer ListResourceInstancesRequest::getPageNumber() const {
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
void ListResourceInstancesRequest::setPageNumber(integer pageNumber) {
|
||||
pageNumber_ = pageNumber;
|
||||
setParameter(std::string("PageNumber"), std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
106
eas/src/model/ListResourceInstancesResult.cc
Normal file
106
eas/src/model/ListResourceInstancesResult.cc
Normal file
@@ -0,0 +1,106 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/eas/model/ListResourceInstancesResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Eas;
|
||||
using namespace AlibabaCloud::Eas::Model;
|
||||
|
||||
ListResourceInstancesResult::ListResourceInstancesResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListResourceInstancesResult::ListResourceInstancesResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListResourceInstancesResult::~ListResourceInstancesResult()
|
||||
{}
|
||||
|
||||
void ListResourceInstancesResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allInstancesNode = value["Instances"]["InstancesItem"];
|
||||
for (auto valueInstancesInstancesItem : allInstancesNode)
|
||||
{
|
||||
InstancesItem instancesObject;
|
||||
if(!valueInstancesInstancesItem["InstanceId"].isNull())
|
||||
instancesObject.instanceId = valueInstancesInstancesItem["InstanceId"].asString();
|
||||
if(!valueInstancesInstancesItem["InstanceName"].isNull())
|
||||
instancesObject.instanceName = valueInstancesInstancesItem["InstanceName"].asString();
|
||||
if(!valueInstancesInstancesItem["InstanceIp"].isNull())
|
||||
instancesObject.instanceIp = valueInstancesInstancesItem["InstanceIp"].asString();
|
||||
if(!valueInstancesInstancesItem["InstanceStatus"].isNull())
|
||||
instancesObject.instanceStatus = valueInstancesInstancesItem["InstanceStatus"].asString();
|
||||
if(!valueInstancesInstancesItem["InstanceCpuCount"].isNull())
|
||||
instancesObject.instanceCpuCount = std::stoi(valueInstancesInstancesItem["InstanceCpuCount"].asString());
|
||||
if(!valueInstancesInstancesItem["InstanceGpuCount"].isNull())
|
||||
instancesObject.instanceGpuCount = std::stoi(valueInstancesInstancesItem["InstanceGpuCount"].asString());
|
||||
if(!valueInstancesInstancesItem["InstanceMemory"].isNull())
|
||||
instancesObject.instanceMemory = valueInstancesInstancesItem["InstanceMemory"].asString();
|
||||
if(!valueInstancesInstancesItem["InstanceUsedCpu"].isNull())
|
||||
instancesObject.instanceUsedCpu = std::stof(valueInstancesInstancesItem["InstanceUsedCpu"].asString());
|
||||
if(!valueInstancesInstancesItem["InstanceUsedGpu"].isNull())
|
||||
instancesObject.instanceUsedGpu = std::stoi(valueInstancesInstancesItem["InstanceUsedGpu"].asString());
|
||||
if(!valueInstancesInstancesItem["InstanceUsedMemory"].isNull())
|
||||
instancesObject.instanceUsedMemory = valueInstancesInstancesItem["InstanceUsedMemory"].asString();
|
||||
if(!valueInstancesInstancesItem["InstanceType"].isNull())
|
||||
instancesObject.instanceType = valueInstancesInstancesItem["InstanceType"].asString();
|
||||
if(!valueInstancesInstancesItem["CreateTime"].isNull())
|
||||
instancesObject.createTime = valueInstancesInstancesItem["CreateTime"].asString();
|
||||
if(!valueInstancesInstancesItem["ChargeType"].isNull())
|
||||
instancesObject.chargeType = valueInstancesInstancesItem["ChargeType"].asString();
|
||||
if(!valueInstancesInstancesItem["ExpiredTime"].isNull())
|
||||
instancesObject.expiredTime = valueInstancesInstancesItem["ExpiredTime"].asString();
|
||||
if(!valueInstancesInstancesItem["AutoRenewal"].isNull())
|
||||
instancesObject.autoRenewal = valueInstancesInstancesItem["AutoRenewal"].asString() == "true";
|
||||
instances_.push_back(instancesObject);
|
||||
}
|
||||
if(!value["PageNumber"].isNull())
|
||||
pageNumber_ = std::stoi(value["PageNumber"].asString());
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stoi(value["PageSize"].asString());
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stoi(value["TotalCount"].asString());
|
||||
|
||||
}
|
||||
|
||||
std::vector<ListResourceInstancesResult::InstancesItem> ListResourceInstancesResult::getInstances()const
|
||||
{
|
||||
return instances_;
|
||||
}
|
||||
|
||||
int ListResourceInstancesResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
int ListResourceInstancesResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
int ListResourceInstancesResult::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
64
eas/src/model/ListResourceServicesRequest.cc
Normal file
64
eas/src/model/ListResourceServicesRequest.cc
Normal file
@@ -0,0 +1,64 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/eas/model/ListResourceServicesRequest.h>
|
||||
|
||||
using AlibabaCloud::Eas::Model::ListResourceServicesRequest;
|
||||
|
||||
ListResourceServicesRequest::ListResourceServicesRequest()
|
||||
: RoaServiceRequest("eas", "2021-07-01") {
|
||||
setResourcePath("/api/v2/resources/[ClusterId]/[ResourceId]/services"};
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
ListResourceServicesRequest::~ListResourceServicesRequest() {}
|
||||
|
||||
string ListResourceServicesRequest::getResourceId() const {
|
||||
return resourceId_;
|
||||
}
|
||||
|
||||
void ListResourceServicesRequest::setResourceId(string resourceId) {
|
||||
resourceId_ = resourceId;
|
||||
setParameter(std::string("ResourceId"), std::to_string(resourceId));
|
||||
}
|
||||
|
||||
integer ListResourceServicesRequest::getPageSize() const {
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void ListResourceServicesRequest::setPageSize(integer pageSize) {
|
||||
pageSize_ = pageSize;
|
||||
setParameter(std::string("PageSize"), std::to_string(pageSize));
|
||||
}
|
||||
|
||||
string ListResourceServicesRequest::getClusterId() const {
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void ListResourceServicesRequest::setClusterId(string clusterId) {
|
||||
clusterId_ = clusterId;
|
||||
setParameter(std::string("ClusterId"), std::to_string(clusterId));
|
||||
}
|
||||
|
||||
integer ListResourceServicesRequest::getPageNumber() const {
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
void ListResourceServicesRequest::setPageNumber(integer pageNumber) {
|
||||
pageNumber_ = pageNumber;
|
||||
setParameter(std::string("PageNumber"), std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
132
eas/src/model/ListResourceServicesResult.cc
Normal file
132
eas/src/model/ListResourceServicesResult.cc
Normal file
@@ -0,0 +1,132 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/eas/model/ListResourceServicesResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Eas;
|
||||
using namespace AlibabaCloud::Eas::Model;
|
||||
|
||||
ListResourceServicesResult::ListResourceServicesResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListResourceServicesResult::ListResourceServicesResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListResourceServicesResult::~ListResourceServicesResult()
|
||||
{}
|
||||
|
||||
void ListResourceServicesResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allServicesNode = value["Services"]["ServicesItem"];
|
||||
for (auto valueServicesServicesItem : allServicesNode)
|
||||
{
|
||||
ServicesItem servicesObject;
|
||||
if(!valueServicesServicesItem["RequestId"].isNull())
|
||||
servicesObject.requestId = valueServicesServicesItem["RequestId"].asString();
|
||||
if(!valueServicesServicesItem["Region"].isNull())
|
||||
servicesObject.region = valueServicesServicesItem["Region"].asString();
|
||||
if(!valueServicesServicesItem["CallerUid"].isNull())
|
||||
servicesObject.callerUid = valueServicesServicesItem["CallerUid"].asString();
|
||||
if(!valueServicesServicesItem["ParentUid"].isNull())
|
||||
servicesObject.parentUid = valueServicesServicesItem["ParentUid"].asString();
|
||||
if(!valueServicesServicesItem["CurrentVersion"].isNull())
|
||||
servicesObject.currentVersion = std::stoi(valueServicesServicesItem["CurrentVersion"].asString());
|
||||
if(!valueServicesServicesItem["Cpu"].isNull())
|
||||
servicesObject.cpu = std::stoi(valueServicesServicesItem["Cpu"].asString());
|
||||
if(!valueServicesServicesItem["Gpu"].isNull())
|
||||
servicesObject.gpu = std::stoi(valueServicesServicesItem["Gpu"].asString());
|
||||
if(!valueServicesServicesItem["Image"].isNull())
|
||||
servicesObject.image = valueServicesServicesItem["Image"].asString();
|
||||
if(!valueServicesServicesItem["PendingInstance"].isNull())
|
||||
servicesObject.pendingInstance = std::stoi(valueServicesServicesItem["PendingInstance"].asString());
|
||||
if(!valueServicesServicesItem["RunningInstance"].isNull())
|
||||
servicesObject.runningInstance = std::stoi(valueServicesServicesItem["RunningInstance"].asString());
|
||||
if(!valueServicesServicesItem["TotalInstance"].isNull())
|
||||
servicesObject.totalInstance = std::stoi(valueServicesServicesItem["TotalInstance"].asString());
|
||||
if(!valueServicesServicesItem["InternetEndpoint"].isNull())
|
||||
servicesObject.internetEndpoint = valueServicesServicesItem["InternetEndpoint"].asString();
|
||||
if(!valueServicesServicesItem["IntranetEndpoint"].isNull())
|
||||
servicesObject.intranetEndpoint = valueServicesServicesItem["IntranetEndpoint"].asString();
|
||||
if(!valueServicesServicesItem["LatestVersion"].isNull())
|
||||
servicesObject.latestVersion = std::stoi(valueServicesServicesItem["LatestVersion"].asString());
|
||||
if(!valueServicesServicesItem["Memory"].isNull())
|
||||
servicesObject.memory = std::stoi(valueServicesServicesItem["Memory"].asString());
|
||||
if(!valueServicesServicesItem["Message"].isNull())
|
||||
servicesObject.message = valueServicesServicesItem["Message"].asString();
|
||||
if(!valueServicesServicesItem["Namespace"].isNull())
|
||||
servicesObject._namespace = valueServicesServicesItem["Namespace"].asString();
|
||||
if(!valueServicesServicesItem["Reason"].isNull())
|
||||
servicesObject.reason = valueServicesServicesItem["Reason"].asString();
|
||||
if(!valueServicesServicesItem["Resource"].isNull())
|
||||
servicesObject.resource = valueServicesServicesItem["Resource"].asString();
|
||||
if(!valueServicesServicesItem["ServiceConfig"].isNull())
|
||||
servicesObject.serviceConfig = valueServicesServicesItem["ServiceConfig"].asString();
|
||||
if(!valueServicesServicesItem["ServiceName"].isNull())
|
||||
servicesObject.serviceName = valueServicesServicesItem["ServiceName"].asString();
|
||||
if(!valueServicesServicesItem["Status"].isNull())
|
||||
servicesObject.status = valueServicesServicesItem["Status"].asString();
|
||||
if(!valueServicesServicesItem["CreateTime"].isNull())
|
||||
servicesObject.createTime = valueServicesServicesItem["CreateTime"].asString();
|
||||
if(!valueServicesServicesItem["UpdateTime"].isNull())
|
||||
servicesObject.updateTime = valueServicesServicesItem["UpdateTime"].asString();
|
||||
if(!valueServicesServicesItem["Weight"].isNull())
|
||||
servicesObject.weight = std::stoi(valueServicesServicesItem["Weight"].asString());
|
||||
if(!valueServicesServicesItem["ServiceId"].isNull())
|
||||
servicesObject.serviceId = valueServicesServicesItem["ServiceId"].asString();
|
||||
if(!valueServicesServicesItem["AccessToken"].isNull())
|
||||
servicesObject.accessToken = valueServicesServicesItem["AccessToken"].asString();
|
||||
if(!valueServicesServicesItem["Source"].isNull())
|
||||
servicesObject.source = valueServicesServicesItem["Source"].asString();
|
||||
services_.push_back(servicesObject);
|
||||
}
|
||||
if(!value["PageNumber"].isNull())
|
||||
pageNumber_ = std::stoi(value["PageNumber"].asString());
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stoi(value["PageSize"].asString());
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stoi(value["TotalCount"].asString());
|
||||
|
||||
}
|
||||
|
||||
std::vector<ListResourceServicesResult::ServicesItem> ListResourceServicesResult::getServices()const
|
||||
{
|
||||
return services_;
|
||||
}
|
||||
|
||||
int ListResourceServicesResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
int ListResourceServicesResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
int ListResourceServicesResult::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
46
eas/src/model/ListResourcesRequest.cc
Normal file
46
eas/src/model/ListResourcesRequest.cc
Normal file
@@ -0,0 +1,46 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/eas/model/ListResourcesRequest.h>
|
||||
|
||||
using AlibabaCloud::Eas::Model::ListResourcesRequest;
|
||||
|
||||
ListResourcesRequest::ListResourcesRequest()
|
||||
: RoaServiceRequest("eas", "2021-07-01") {
|
||||
setResourcePath("/api/v2/resources"};
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
ListResourcesRequest::~ListResourcesRequest() {}
|
||||
|
||||
integer ListResourcesRequest::getPageSize() const {
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void ListResourcesRequest::setPageSize(integer pageSize) {
|
||||
pageSize_ = pageSize;
|
||||
setParameter(std::string("PageSize"), std::to_string(pageSize));
|
||||
}
|
||||
|
||||
integer ListResourcesRequest::getPageNumber() const {
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
void ListResourcesRequest::setPageNumber(integer pageNumber) {
|
||||
pageNumber_ = pageNumber;
|
||||
setParameter(std::string("PageNumber"), std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
102
eas/src/model/ListResourcesResult.cc
Normal file
102
eas/src/model/ListResourcesResult.cc
Normal file
@@ -0,0 +1,102 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/eas/model/ListResourcesResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Eas;
|
||||
using namespace AlibabaCloud::Eas::Model;
|
||||
|
||||
ListResourcesResult::ListResourcesResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListResourcesResult::ListResourcesResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListResourcesResult::~ListResourcesResult()
|
||||
{}
|
||||
|
||||
void ListResourcesResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allResourcesNode = value["Resources"]["ResourcesItem"];
|
||||
for (auto valueResourcesResourcesItem : allResourcesNode)
|
||||
{
|
||||
ResourcesItem resourcesObject;
|
||||
if(!valueResourcesResourcesItem["ResourceId"].isNull())
|
||||
resourcesObject.resourceId = valueResourcesResourcesItem["ResourceId"].asString();
|
||||
if(!valueResourcesResourcesItem["ResourceName"].isNull())
|
||||
resourcesObject.resourceName = valueResourcesResourcesItem["ResourceName"].asString();
|
||||
if(!valueResourcesResourcesItem["ClusterId"].isNull())
|
||||
resourcesObject.clusterId = valueResourcesResourcesItem["ClusterId"].asString();
|
||||
if(!valueResourcesResourcesItem["CreateTime"].isNull())
|
||||
resourcesObject.createTime = valueResourcesResourcesItem["CreateTime"].asString();
|
||||
if(!valueResourcesResourcesItem["UpdateTime"].isNull())
|
||||
resourcesObject.updateTime = valueResourcesResourcesItem["UpdateTime"].asString();
|
||||
if(!valueResourcesResourcesItem["InstanceCount"].isNull())
|
||||
resourcesObject.instanceCount = std::stoi(valueResourcesResourcesItem["InstanceCount"].asString());
|
||||
if(!valueResourcesResourcesItem["PrePaidInstanceCount"].isNull())
|
||||
resourcesObject.prePaidInstanceCount = std::stoi(valueResourcesResourcesItem["PrePaidInstanceCount"].asString());
|
||||
if(!valueResourcesResourcesItem["PostPaidInstanceCount"].isNull())
|
||||
resourcesObject.postPaidInstanceCount = std::stoi(valueResourcesResourcesItem["PostPaidInstanceCount"].asString());
|
||||
if(!valueResourcesResourcesItem["CpuCount"].isNull())
|
||||
resourcesObject.cpuCount = std::stoi(valueResourcesResourcesItem["CpuCount"].asString());
|
||||
if(!valueResourcesResourcesItem["GpuCount"].isNull())
|
||||
resourcesObject.gpuCount = std::stoi(valueResourcesResourcesItem["GpuCount"].asString());
|
||||
if(!valueResourcesResourcesItem["Status"].isNull())
|
||||
resourcesObject.status = valueResourcesResourcesItem["Status"].asString();
|
||||
if(!valueResourcesResourcesItem["Message"].isNull())
|
||||
resourcesObject.message = valueResourcesResourcesItem["Message"].asString();
|
||||
if(!valueResourcesResourcesItem["ExtraData"].isNull())
|
||||
resourcesObject.extraData = valueResourcesResourcesItem["ExtraData"].asString();
|
||||
resources_.push_back(resourcesObject);
|
||||
}
|
||||
if(!value["PageNumber"].isNull())
|
||||
pageNumber_ = std::stoi(value["PageNumber"].asString());
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stoi(value["PageSize"].asString());
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stoi(value["TotalCount"].asString());
|
||||
|
||||
}
|
||||
|
||||
int ListResourcesResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
int ListResourcesResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
int ListResourcesResult::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
std::vector<ListResourcesResult::ResourcesItem> ListResourcesResult::getResources()const
|
||||
{
|
||||
return resources_;
|
||||
}
|
||||
|
||||
64
eas/src/model/ListServiceInstancesRequest.cc
Normal file
64
eas/src/model/ListServiceInstancesRequest.cc
Normal file
@@ -0,0 +1,64 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/eas/model/ListServiceInstancesRequest.h>
|
||||
|
||||
using AlibabaCloud::Eas::Model::ListServiceInstancesRequest;
|
||||
|
||||
ListServiceInstancesRequest::ListServiceInstancesRequest()
|
||||
: RoaServiceRequest("eas", "2021-07-01") {
|
||||
setResourcePath("/api/v2/services/[ClusterId]/[ServiceName]/instances"};
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
ListServiceInstancesRequest::~ListServiceInstancesRequest() {}
|
||||
|
||||
integer ListServiceInstancesRequest::getPageSize() const {
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void ListServiceInstancesRequest::setPageSize(integer pageSize) {
|
||||
pageSize_ = pageSize;
|
||||
setParameter(std::string("PageSize"), std::to_string(pageSize));
|
||||
}
|
||||
|
||||
string ListServiceInstancesRequest::getServiceName() const {
|
||||
return serviceName_;
|
||||
}
|
||||
|
||||
void ListServiceInstancesRequest::setServiceName(string serviceName) {
|
||||
serviceName_ = serviceName;
|
||||
setParameter(std::string("ServiceName"), std::to_string(serviceName));
|
||||
}
|
||||
|
||||
string ListServiceInstancesRequest::getClusterId() const {
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void ListServiceInstancesRequest::setClusterId(string clusterId) {
|
||||
clusterId_ = clusterId;
|
||||
setParameter(std::string("ClusterId"), std::to_string(clusterId));
|
||||
}
|
||||
|
||||
integer ListServiceInstancesRequest::getPageNumber() const {
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
void ListServiceInstancesRequest::setPageNumber(integer pageNumber) {
|
||||
pageNumber_ = pageNumber;
|
||||
setParameter(std::string("PageNumber"), std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
103
eas/src/model/ListServiceInstancesResult.cc
Normal file
103
eas/src/model/ListServiceInstancesResult.cc
Normal file
@@ -0,0 +1,103 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/eas/model/ListServiceInstancesResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Eas;
|
||||
using namespace AlibabaCloud::Eas::Model;
|
||||
|
||||
ListServiceInstancesResult::ListServiceInstancesResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListServiceInstancesResult::ListServiceInstancesResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListServiceInstancesResult::~ListServiceInstancesResult()
|
||||
{}
|
||||
|
||||
void ListServiceInstancesResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allInstancesNode = value["Instances"]["InstancesItem"];
|
||||
for (auto valueInstancesInstancesItem : allInstancesNode)
|
||||
{
|
||||
InstancesItem instancesObject;
|
||||
if(!valueInstancesInstancesItem["HostIP"].isNull())
|
||||
instancesObject.hostIP = valueInstancesInstancesItem["HostIP"].asString();
|
||||
if(!valueInstancesInstancesItem["HostName"].isNull())
|
||||
instancesObject.hostName = valueInstancesInstancesItem["HostName"].asString();
|
||||
if(!valueInstancesInstancesItem["InnerIP"].isNull())
|
||||
instancesObject.innerIP = valueInstancesInstancesItem["InnerIP"].asString();
|
||||
if(!valueInstancesInstancesItem["InstanceName"].isNull())
|
||||
instancesObject.instanceName = valueInstancesInstancesItem["InstanceName"].asString();
|
||||
if(!valueInstancesInstancesItem["InstancePort"].isNull())
|
||||
instancesObject.instancePort = std::stoi(valueInstancesInstancesItem["InstancePort"].asString());
|
||||
if(!valueInstancesInstancesItem["Namespace"].isNull())
|
||||
instancesObject._namespace = valueInstancesInstancesItem["Namespace"].asString();
|
||||
if(!valueInstancesInstancesItem["Reason"].isNull())
|
||||
instancesObject.reason = valueInstancesInstancesItem["Reason"].asString();
|
||||
if(!valueInstancesInstancesItem["RestartCount"].isNull())
|
||||
instancesObject.restartCount = std::stoi(valueInstancesInstancesItem["RestartCount"].asString());
|
||||
if(!valueInstancesInstancesItem["Status"].isNull())
|
||||
instancesObject.status = valueInstancesInstancesItem["Status"].asString();
|
||||
if(!valueInstancesInstancesItem["TotalProcesses"].isNull())
|
||||
instancesObject.totalProcesses = std::stoi(valueInstancesInstancesItem["TotalProcesses"].asString());
|
||||
if(!valueInstancesInstancesItem["ReadyProcesses"].isNull())
|
||||
instancesObject.readyProcesses = std::stoi(valueInstancesInstancesItem["ReadyProcesses"].asString());
|
||||
if(!valueInstancesInstancesItem["StartAt"].isNull())
|
||||
instancesObject.startAt = valueInstancesInstancesItem["StartAt"].asString();
|
||||
auto allLastState = value["LastState"]["null"];
|
||||
for (auto value : allLastState)
|
||||
instancesObject.lastState.push_back(value.asString());
|
||||
instances_.push_back(instancesObject);
|
||||
}
|
||||
if(!value["PageNumber"].isNull())
|
||||
pageNumber_ = std::stoi(value["PageNumber"].asString());
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stoi(value["PageSize"].asString());
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stoi(value["TotalCount"].asString());
|
||||
|
||||
}
|
||||
|
||||
std::vector<ListServiceInstancesResult::InstancesItem> ListServiceInstancesResult::getInstances()const
|
||||
{
|
||||
return instances_;
|
||||
}
|
||||
|
||||
int ListServiceInstancesResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
int ListServiceInstancesResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
int ListServiceInstancesResult::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
@@ -1,52 +1,73 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/eas/model/ListServicesRequest.h>
|
||||
|
||||
using AlibabaCloud::Eas::Model::ListServicesRequest;
|
||||
|
||||
ListServicesRequest::ListServicesRequest() :
|
||||
RoaServiceRequest("eas", "2018-05-22")
|
||||
{
|
||||
setResourcePath("/api/services");
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
ListServicesRequest::~ListServicesRequest()
|
||||
{}
|
||||
|
||||
std::string ListServicesRequest::getFilter()const
|
||||
{
|
||||
return filter_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/eas/model/ListServicesRequest.h>
|
||||
|
||||
using AlibabaCloud::Eas::Model::ListServicesRequest;
|
||||
|
||||
ListServicesRequest::ListServicesRequest()
|
||||
: RoaServiceRequest("eas", "2021-07-01") {
|
||||
setResourcePath("/api/v2/services"};
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
void ListServicesRequest::setFilter(const std::string& filter)
|
||||
{
|
||||
filter_ = filter;
|
||||
setParameter("Filter", filter);
|
||||
ListServicesRequest::~ListServicesRequest() {}
|
||||
|
||||
string ListServicesRequest::getFilter() const {
|
||||
return filter_;
|
||||
}
|
||||
|
||||
std::string ListServicesRequest::getSort()const
|
||||
{
|
||||
return sort_;
|
||||
void ListServicesRequest::setFilter(string filter) {
|
||||
filter_ = filter;
|
||||
setParameter(std::string("Filter"), std::to_string(filter));
|
||||
}
|
||||
|
||||
void ListServicesRequest::setSort(const std::string& sort)
|
||||
{
|
||||
sort_ = sort;
|
||||
setParameter("Sort", sort);
|
||||
integer ListServicesRequest::getPageSize() const {
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void ListServicesRequest::setPageSize(integer pageSize) {
|
||||
pageSize_ = pageSize;
|
||||
setParameter(std::string("PageSize"), std::to_string(pageSize));
|
||||
}
|
||||
|
||||
string ListServicesRequest::getSort() const {
|
||||
return sort_;
|
||||
}
|
||||
|
||||
void ListServicesRequest::setSort(string sort) {
|
||||
sort_ = sort;
|
||||
setParameter(std::string("Sort"), std::to_string(sort));
|
||||
}
|
||||
|
||||
integer ListServicesRequest::getPageNumber() const {
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
void ListServicesRequest::setPageNumber(integer pageNumber) {
|
||||
pageNumber_ = pageNumber;
|
||||
setParameter(std::string("PageNumber"), std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
string ListServicesRequest::getOrder() const {
|
||||
return order_;
|
||||
}
|
||||
|
||||
void ListServicesRequest::setOrder(string order) {
|
||||
order_ = order;
|
||||
setParameter(std::string("Order"), std::to_string(order));
|
||||
}
|
||||
|
||||
|
||||
@@ -39,6 +39,94 @@ void ListServicesResult::parse(const std::string &payload)
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allServicesNode = value["Services"]["ServicesItem"];
|
||||
for (auto valueServicesServicesItem : allServicesNode)
|
||||
{
|
||||
ServicesItem servicesObject;
|
||||
if(!valueServicesServicesItem["RequestId"].isNull())
|
||||
servicesObject.requestId = valueServicesServicesItem["RequestId"].asString();
|
||||
if(!valueServicesServicesItem["Region"].isNull())
|
||||
servicesObject.region = valueServicesServicesItem["Region"].asString();
|
||||
if(!valueServicesServicesItem["CallerUid"].isNull())
|
||||
servicesObject.callerUid = valueServicesServicesItem["CallerUid"].asString();
|
||||
if(!valueServicesServicesItem["ParentUid"].isNull())
|
||||
servicesObject.parentUid = valueServicesServicesItem["ParentUid"].asString();
|
||||
if(!valueServicesServicesItem["CurrentVersion"].isNull())
|
||||
servicesObject.currentVersion = std::stoi(valueServicesServicesItem["CurrentVersion"].asString());
|
||||
if(!valueServicesServicesItem["Cpu"].isNull())
|
||||
servicesObject.cpu = std::stoi(valueServicesServicesItem["Cpu"].asString());
|
||||
if(!valueServicesServicesItem["Gpu"].isNull())
|
||||
servicesObject.gpu = std::stoi(valueServicesServicesItem["Gpu"].asString());
|
||||
if(!valueServicesServicesItem["Image"].isNull())
|
||||
servicesObject.image = valueServicesServicesItem["Image"].asString();
|
||||
if(!valueServicesServicesItem["PendingInstance"].isNull())
|
||||
servicesObject.pendingInstance = std::stoi(valueServicesServicesItem["PendingInstance"].asString());
|
||||
if(!valueServicesServicesItem["RunningInstance"].isNull())
|
||||
servicesObject.runningInstance = std::stoi(valueServicesServicesItem["RunningInstance"].asString());
|
||||
if(!valueServicesServicesItem["TotalInstance"].isNull())
|
||||
servicesObject.totalInstance = std::stoi(valueServicesServicesItem["TotalInstance"].asString());
|
||||
if(!valueServicesServicesItem["InternetEndpoint"].isNull())
|
||||
servicesObject.internetEndpoint = valueServicesServicesItem["InternetEndpoint"].asString();
|
||||
if(!valueServicesServicesItem["IntranetEndpoint"].isNull())
|
||||
servicesObject.intranetEndpoint = valueServicesServicesItem["IntranetEndpoint"].asString();
|
||||
if(!valueServicesServicesItem["LatestVersion"].isNull())
|
||||
servicesObject.latestVersion = std::stoi(valueServicesServicesItem["LatestVersion"].asString());
|
||||
if(!valueServicesServicesItem["Memory"].isNull())
|
||||
servicesObject.memory = std::stoi(valueServicesServicesItem["Memory"].asString());
|
||||
if(!valueServicesServicesItem["Message"].isNull())
|
||||
servicesObject.message = valueServicesServicesItem["Message"].asString();
|
||||
if(!valueServicesServicesItem["Namespace"].isNull())
|
||||
servicesObject._namespace = valueServicesServicesItem["Namespace"].asString();
|
||||
if(!valueServicesServicesItem["Reason"].isNull())
|
||||
servicesObject.reason = valueServicesServicesItem["Reason"].asString();
|
||||
if(!valueServicesServicesItem["Resource"].isNull())
|
||||
servicesObject.resource = valueServicesServicesItem["Resource"].asString();
|
||||
if(!valueServicesServicesItem["ServiceConfig"].isNull())
|
||||
servicesObject.serviceConfig = valueServicesServicesItem["ServiceConfig"].asString();
|
||||
if(!valueServicesServicesItem["ServiceName"].isNull())
|
||||
servicesObject.serviceName = valueServicesServicesItem["ServiceName"].asString();
|
||||
if(!valueServicesServicesItem["Status"].isNull())
|
||||
servicesObject.status = valueServicesServicesItem["Status"].asString();
|
||||
if(!valueServicesServicesItem["CreateTime"].isNull())
|
||||
servicesObject.createTime = valueServicesServicesItem["CreateTime"].asString();
|
||||
if(!valueServicesServicesItem["UpdateTime"].isNull())
|
||||
servicesObject.updateTime = valueServicesServicesItem["UpdateTime"].asString();
|
||||
if(!valueServicesServicesItem["Weight"].isNull())
|
||||
servicesObject.weight = std::stoi(valueServicesServicesItem["Weight"].asString());
|
||||
if(!valueServicesServicesItem["ServiceId"].isNull())
|
||||
servicesObject.serviceId = valueServicesServicesItem["ServiceId"].asString();
|
||||
if(!valueServicesServicesItem["AccessToken"].isNull())
|
||||
servicesObject.accessToken = valueServicesServicesItem["AccessToken"].asString();
|
||||
if(!valueServicesServicesItem["Source"].isNull())
|
||||
servicesObject.source = valueServicesServicesItem["Source"].asString();
|
||||
services_.push_back(servicesObject);
|
||||
}
|
||||
if(!value["PageNumber"].isNull())
|
||||
pageNumber_ = std::stoi(value["PageNumber"].asString());
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stoi(value["PageSize"].asString());
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stoi(value["TotalCount"].asString());
|
||||
|
||||
}
|
||||
|
||||
std::vector<ListServicesResult::ServicesItem> ListServicesResult::getServices()const
|
||||
{
|
||||
return services_;
|
||||
}
|
||||
|
||||
int ListServicesResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
int ListServicesResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
int ListServicesResult::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
|
||||
@@ -1,74 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/eas/model/ListTasksRequest.h>
|
||||
|
||||
using AlibabaCloud::Eas::Model::ListTasksRequest;
|
||||
|
||||
ListTasksRequest::ListTasksRequest() :
|
||||
RoaServiceRequest("eas", "2018-05-22")
|
||||
{
|
||||
setResourcePath("/api/tasks");
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
ListTasksRequest::~ListTasksRequest()
|
||||
{}
|
||||
|
||||
std::string ListTasksRequest::getFilter()const
|
||||
{
|
||||
return filter_;
|
||||
}
|
||||
|
||||
void ListTasksRequest::setFilter(const std::string& filter)
|
||||
{
|
||||
filter_ = filter;
|
||||
setParameter("Filter", filter);
|
||||
}
|
||||
|
||||
std::string ListTasksRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void ListTasksRequest::setPageSize(const std::string& pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", pageSize);
|
||||
}
|
||||
|
||||
std::string ListTasksRequest::getSort()const
|
||||
{
|
||||
return sort_;
|
||||
}
|
||||
|
||||
void ListTasksRequest::setSort(const std::string& sort)
|
||||
{
|
||||
sort_ = sort;
|
||||
setParameter("Sort", sort);
|
||||
}
|
||||
|
||||
std::string ListTasksRequest::getPageNum()const
|
||||
{
|
||||
return pageNum_;
|
||||
}
|
||||
|
||||
void ListTasksRequest::setPageNum(const std::string& pageNum)
|
||||
{
|
||||
pageNum_ = pageNum;
|
||||
setParameter("PageNum", pageNum);
|
||||
}
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user