Compare commits

..

10 Commits

Author SHA1 Message Date
sdk-team
5c65a87e3a Generated 2019-10-30 for aliyuncvc. 2019-11-21 10:40:11 +08:00
sdk-team
acd143c294 Update Nlp Automl SDK. 2019-11-20 22:03:43 +08:00
sdk-team
ec00b5d969 Add new OpenAPI. 2019-11-20 20:36:20 +08:00
sdk-team
18e5c75e02 Add new pop api. 2019-11-20 19:55:20 +08:00
sdk-team
0db2a87588 Generated 2014-05-26 for Ecs. 2019-11-20 19:32:48 +08:00
sdk-team
973d0d3250 Generated 2018-04-12 for EHPC. 2019-11-20 19:32:05 +08:00
sdk-team
8936a9504e Supported ecsDemand CreateDemand, ModifyDemand, DeleteDemand API. 2019-11-20 19:27:27 +08:00
sdk-team
22a5112af0 Generated 2019-01-01 for HBase. 2019-11-20 17:24:05 +08:00
sdk-team
99ae87ba10 Add API ReportVoipProblems. 2019-11-20 10:45:49 +08:00
sdk-team
b0c5f8414d Nlp Automl SDK. 2019-11-15 22:31:16 +08:00
576 changed files with 14150 additions and 1020 deletions

View File

@@ -1,3 +1,35 @@
2019-11-21 Version 1.36.192
- Generated 2019-10-30 for `aliyuncvc`.
2019-11-20 Version 1.36.191
- Update Nlp Automl SDK.
2019-11-20 Version 1.36.190
- Add new OpenAPI.
2019-11-20 Version 1.36.189
- Add new pop api.
2019-11-20 Version 1.36.188
- Generated 2014-05-26 for `Ecs`.
2019-11-20 Version 1.36.187
- Generated 2018-04-12 for `EHPC`.
2019-11-20 Version 1.36.186
- Supported ecsDemand CreateDemand, ModifyDemand, DeleteDemand API.
- Modify ecsDemand DescribesDemands API.
2019-11-20 Version 1.36.185
- Generated 2019-01-01 for `HBase`.
2019-11-20 Version 1.36.184
- Add API ReportVoipProblems.
- Add API QueryVoipNumberBindINfos.
2019-11-15 Version 1.36.183
- Nlp Automl SDK.
2019-11-15 Version 1.36.182
- Sync cdn APIs.

View File

@@ -1 +1 @@
1.36.182
1.36.192

View File

@@ -23,6 +23,10 @@ set(dypnsapi_public_header
set(dypnsapi_public_header_model
include/alibabacloud/dypnsapi/model/CreateVerifySchemeRequest.h
include/alibabacloud/dypnsapi/model/CreateVerifySchemeResult.h
include/alibabacloud/dypnsapi/model/DeleteVerifySchemeRequest.h
include/alibabacloud/dypnsapi/model/DeleteVerifySchemeResult.h
include/alibabacloud/dypnsapi/model/DescribeVerifySchemeRequest.h
include/alibabacloud/dypnsapi/model/DescribeVerifySchemeResult.h
include/alibabacloud/dypnsapi/model/GetMobileRequest.h
include/alibabacloud/dypnsapi/model/GetMobileResult.h
include/alibabacloud/dypnsapi/model/TwiceTelVerifyRequest.h
@@ -34,6 +38,10 @@ set(dypnsapi_src
src/DypnsapiClient.cc
src/model/CreateVerifySchemeRequest.cc
src/model/CreateVerifySchemeResult.cc
src/model/DeleteVerifySchemeRequest.cc
src/model/DeleteVerifySchemeResult.cc
src/model/DescribeVerifySchemeRequest.cc
src/model/DescribeVerifySchemeResult.cc
src/model/GetMobileRequest.cc
src/model/GetMobileResult.cc
src/model/TwiceTelVerifyRequest.cc

View File

@@ -24,6 +24,10 @@
#include "DypnsapiExport.h"
#include "model/CreateVerifySchemeRequest.h"
#include "model/CreateVerifySchemeResult.h"
#include "model/DeleteVerifySchemeRequest.h"
#include "model/DeleteVerifySchemeResult.h"
#include "model/DescribeVerifySchemeRequest.h"
#include "model/DescribeVerifySchemeResult.h"
#include "model/GetMobileRequest.h"
#include "model/GetMobileResult.h"
#include "model/TwiceTelVerifyRequest.h"
@@ -42,6 +46,12 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::CreateVerifySchemeResult> CreateVerifySchemeOutcome;
typedef std::future<CreateVerifySchemeOutcome> CreateVerifySchemeOutcomeCallable;
typedef std::function<void(const DypnsapiClient*, const Model::CreateVerifySchemeRequest&, const CreateVerifySchemeOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateVerifySchemeAsyncHandler;
typedef Outcome<Error, Model::DeleteVerifySchemeResult> DeleteVerifySchemeOutcome;
typedef std::future<DeleteVerifySchemeOutcome> DeleteVerifySchemeOutcomeCallable;
typedef std::function<void(const DypnsapiClient*, const Model::DeleteVerifySchemeRequest&, const DeleteVerifySchemeOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteVerifySchemeAsyncHandler;
typedef Outcome<Error, Model::DescribeVerifySchemeResult> DescribeVerifySchemeOutcome;
typedef std::future<DescribeVerifySchemeOutcome> DescribeVerifySchemeOutcomeCallable;
typedef std::function<void(const DypnsapiClient*, const Model::DescribeVerifySchemeRequest&, const DescribeVerifySchemeOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeVerifySchemeAsyncHandler;
typedef Outcome<Error, Model::GetMobileResult> GetMobileOutcome;
typedef std::future<GetMobileOutcome> GetMobileOutcomeCallable;
typedef std::function<void(const DypnsapiClient*, const Model::GetMobileRequest&, const GetMobileOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetMobileAsyncHandler;
@@ -59,6 +69,12 @@ namespace AlibabaCloud
CreateVerifySchemeOutcome createVerifyScheme(const Model::CreateVerifySchemeRequest &request)const;
void createVerifySchemeAsync(const Model::CreateVerifySchemeRequest& request, const CreateVerifySchemeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
CreateVerifySchemeOutcomeCallable createVerifySchemeCallable(const Model::CreateVerifySchemeRequest& request) const;
DeleteVerifySchemeOutcome deleteVerifyScheme(const Model::DeleteVerifySchemeRequest &request)const;
void deleteVerifySchemeAsync(const Model::DeleteVerifySchemeRequest& request, const DeleteVerifySchemeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DeleteVerifySchemeOutcomeCallable deleteVerifySchemeCallable(const Model::DeleteVerifySchemeRequest& request) const;
DescribeVerifySchemeOutcome describeVerifyScheme(const Model::DescribeVerifySchemeRequest &request)const;
void describeVerifySchemeAsync(const Model::DescribeVerifySchemeRequest& request, const DescribeVerifySchemeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeVerifySchemeOutcomeCallable describeVerifySchemeCallable(const Model::DescribeVerifySchemeRequest& request) const;
GetMobileOutcome getMobile(const Model::GetMobileRequest &request)const;
void getMobileAsync(const Model::GetMobileRequest& request, const GetMobileAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetMobileOutcomeCallable getMobileCallable(const Model::GetMobileRequest& request) const;

View File

@@ -0,0 +1,63 @@
/*
* 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.
*/
#ifndef ALIBABACLOUD_DYPNSAPI_MODEL_DELETEVERIFYSCHEMEREQUEST_H_
#define ALIBABACLOUD_DYPNSAPI_MODEL_DELETEVERIFYSCHEMEREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/dypnsapi/DypnsapiExport.h>
namespace AlibabaCloud
{
namespace Dypnsapi
{
namespace Model
{
class ALIBABACLOUD_DYPNSAPI_EXPORT DeleteVerifySchemeRequest : public RpcServiceRequest
{
public:
DeleteVerifySchemeRequest();
~DeleteVerifySchemeRequest();
long getResourceOwnerId()const;
void setResourceOwnerId(long resourceOwnerId);
std::string getResourceOwnerAccount()const;
void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
long getOwnerId()const;
void setOwnerId(long ownerId);
std::string getAccessKeyId()const;
void setAccessKeyId(const std::string& accessKeyId);
std::string getSchemeCode()const;
void setSchemeCode(const std::string& schemeCode);
long getCustomerId()const;
void setCustomerId(long customerId);
private:
long resourceOwnerId_;
std::string resourceOwnerAccount_;
long ownerId_;
std::string accessKeyId_;
std::string schemeCode_;
long customerId_;
};
}
}
}
#endif // !ALIBABACLOUD_DYPNSAPI_MODEL_DELETEVERIFYSCHEMEREQUEST_H_

View 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.
*/
#ifndef ALIBABACLOUD_DYPNSAPI_MODEL_DELETEVERIFYSCHEMERESULT_H_
#define ALIBABACLOUD_DYPNSAPI_MODEL_DELETEVERIFYSCHEMERESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/dypnsapi/DypnsapiExport.h>
namespace AlibabaCloud
{
namespace Dypnsapi
{
namespace Model
{
class ALIBABACLOUD_DYPNSAPI_EXPORT DeleteVerifySchemeResult : public ServiceResult
{
public:
DeleteVerifySchemeResult();
explicit DeleteVerifySchemeResult(const std::string &payload);
~DeleteVerifySchemeResult();
std::string getMessage()const;
std::string getCode()const;
bool getResult()const;
protected:
void parse(const std::string &payload);
private:
std::string message_;
std::string code_;
bool result_;
};
}
}
}
#endif // !ALIBABACLOUD_DYPNSAPI_MODEL_DELETEVERIFYSCHEMERESULT_H_

View File

@@ -0,0 +1,63 @@
/*
* 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.
*/
#ifndef ALIBABACLOUD_DYPNSAPI_MODEL_DESCRIBEVERIFYSCHEMEREQUEST_H_
#define ALIBABACLOUD_DYPNSAPI_MODEL_DESCRIBEVERIFYSCHEMEREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/dypnsapi/DypnsapiExport.h>
namespace AlibabaCloud
{
namespace Dypnsapi
{
namespace Model
{
class ALIBABACLOUD_DYPNSAPI_EXPORT DescribeVerifySchemeRequest : public RpcServiceRequest
{
public:
DescribeVerifySchemeRequest();
~DescribeVerifySchemeRequest();
long getResourceOwnerId()const;
void setResourceOwnerId(long resourceOwnerId);
std::string getResourceOwnerAccount()const;
void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
long getOwnerId()const;
void setOwnerId(long ownerId);
std::string getAccessKeyId()const;
void setAccessKeyId(const std::string& accessKeyId);
std::string getSchemeCode()const;
void setSchemeCode(const std::string& schemeCode);
long getCustomerId()const;
void setCustomerId(long customerId);
private:
long resourceOwnerId_;
std::string resourceOwnerAccount_;
long ownerId_;
std::string accessKeyId_;
std::string schemeCode_;
long customerId_;
};
}
}
}
#endif // !ALIBABACLOUD_DYPNSAPI_MODEL_DESCRIBEVERIFYSCHEMEREQUEST_H_

View File

@@ -0,0 +1,59 @@
/*
* 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.
*/
#ifndef ALIBABACLOUD_DYPNSAPI_MODEL_DESCRIBEVERIFYSCHEMERESULT_H_
#define ALIBABACLOUD_DYPNSAPI_MODEL_DESCRIBEVERIFYSCHEMERESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/dypnsapi/DypnsapiExport.h>
namespace AlibabaCloud
{
namespace Dypnsapi
{
namespace Model
{
class ALIBABACLOUD_DYPNSAPI_EXPORT DescribeVerifySchemeResult : public ServiceResult
{
public:
struct SchemeQueryResultDTO
{
std::string appEncryptInfo;
};
DescribeVerifySchemeResult();
explicit DescribeVerifySchemeResult(const std::string &payload);
~DescribeVerifySchemeResult();
std::string getMessage()const;
std::string getCode()const;
SchemeQueryResultDTO getSchemeQueryResultDTO()const;
protected:
void parse(const std::string &payload);
private:
std::string message_;
std::string code_;
SchemeQueryResultDTO schemeQueryResultDTO_;
};
}
}
}
#endif // !ALIBABACLOUD_DYPNSAPI_MODEL_DESCRIBEVERIFYSCHEMERESULT_H_

View File

@@ -31,21 +31,21 @@ DypnsapiClient::DypnsapiClient(const Credentials &credentials, const ClientConfi
RpcServiceClient(SERVICE_NAME, std::make_shared<SimpleCredentialsProvider>(credentials), configuration)
{
auto locationClient = std::make_shared<LocationClient>(credentials, configuration);
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "dypnsapi");
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "dypns");
}
DypnsapiClient::DypnsapiClient(const std::shared_ptr<CredentialsProvider>& credentialsProvider, const ClientConfiguration & configuration) :
RpcServiceClient(SERVICE_NAME, credentialsProvider, configuration)
{
auto locationClient = std::make_shared<LocationClient>(credentialsProvider, configuration);
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "dypnsapi");
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "dypns");
}
DypnsapiClient::DypnsapiClient(const std::string & accessKeyId, const std::string & accessKeySecret, const ClientConfiguration & configuration) :
RpcServiceClient(SERVICE_NAME, std::make_shared<SimpleCredentialsProvider>(accessKeyId, accessKeySecret), configuration)
{
auto locationClient = std::make_shared<LocationClient>(accessKeyId, accessKeySecret, configuration);
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "dypnsapi");
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "dypns");
}
DypnsapiClient::~DypnsapiClient()
@@ -87,6 +87,78 @@ DypnsapiClient::CreateVerifySchemeOutcomeCallable DypnsapiClient::createVerifySc
return task->get_future();
}
DypnsapiClient::DeleteVerifySchemeOutcome DypnsapiClient::deleteVerifyScheme(const DeleteVerifySchemeRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DeleteVerifySchemeOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DeleteVerifySchemeOutcome(DeleteVerifySchemeResult(outcome.result()));
else
return DeleteVerifySchemeOutcome(outcome.error());
}
void DypnsapiClient::deleteVerifySchemeAsync(const DeleteVerifySchemeRequest& request, const DeleteVerifySchemeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, deleteVerifyScheme(request), context);
};
asyncExecute(new Runnable(fn));
}
DypnsapiClient::DeleteVerifySchemeOutcomeCallable DypnsapiClient::deleteVerifySchemeCallable(const DeleteVerifySchemeRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DeleteVerifySchemeOutcome()>>(
[this, request]()
{
return this->deleteVerifyScheme(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
DypnsapiClient::DescribeVerifySchemeOutcome DypnsapiClient::describeVerifyScheme(const DescribeVerifySchemeRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DescribeVerifySchemeOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DescribeVerifySchemeOutcome(DescribeVerifySchemeResult(outcome.result()));
else
return DescribeVerifySchemeOutcome(outcome.error());
}
void DypnsapiClient::describeVerifySchemeAsync(const DescribeVerifySchemeRequest& request, const DescribeVerifySchemeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, describeVerifyScheme(request), context);
};
asyncExecute(new Runnable(fn));
}
DypnsapiClient::DescribeVerifySchemeOutcomeCallable DypnsapiClient::describeVerifySchemeCallable(const DescribeVerifySchemeRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DescribeVerifySchemeOutcome()>>(
[this, request]()
{
return this->describeVerifyScheme(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
DypnsapiClient::GetMobileOutcome DypnsapiClient::getMobile(const GetMobileRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();

View File

@@ -20,7 +20,9 @@ using AlibabaCloud::Dypnsapi::Model::CreateVerifySchemeRequest;
CreateVerifySchemeRequest::CreateVerifySchemeRequest() :
RpcServiceRequest("dypnsapi", "2017-05-25", "CreateVerifyScheme")
{}
{
setMethod(HttpRequest::Method::Post);
}
CreateVerifySchemeRequest::~CreateVerifySchemeRequest()
{}

View File

@@ -0,0 +1,95 @@
/*
* 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/dypnsapi/model/DeleteVerifySchemeRequest.h>
using AlibabaCloud::Dypnsapi::Model::DeleteVerifySchemeRequest;
DeleteVerifySchemeRequest::DeleteVerifySchemeRequest() :
RpcServiceRequest("dypnsapi", "2017-05-25", "DeleteVerifyScheme")
{
setMethod(HttpRequest::Method::Post);
}
DeleteVerifySchemeRequest::~DeleteVerifySchemeRequest()
{}
long DeleteVerifySchemeRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void DeleteVerifySchemeRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string DeleteVerifySchemeRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void DeleteVerifySchemeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
long DeleteVerifySchemeRequest::getOwnerId()const
{
return ownerId_;
}
void DeleteVerifySchemeRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setCoreParameter("OwnerId", std::to_string(ownerId));
}
std::string DeleteVerifySchemeRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void DeleteVerifySchemeRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setCoreParameter("AccessKeyId", accessKeyId);
}
std::string DeleteVerifySchemeRequest::getSchemeCode()const
{
return schemeCode_;
}
void DeleteVerifySchemeRequest::setSchemeCode(const std::string& schemeCode)
{
schemeCode_ = schemeCode;
setCoreParameter("SchemeCode", schemeCode);
}
long DeleteVerifySchemeRequest::getCustomerId()const
{
return customerId_;
}
void DeleteVerifySchemeRequest::setCustomerId(long customerId)
{
customerId_ = customerId;
setCoreParameter("CustomerId", std::to_string(customerId));
}

View 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/dypnsapi/model/DeleteVerifySchemeResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Dypnsapi;
using namespace AlibabaCloud::Dypnsapi::Model;
DeleteVerifySchemeResult::DeleteVerifySchemeResult() :
ServiceResult()
{}
DeleteVerifySchemeResult::DeleteVerifySchemeResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DeleteVerifySchemeResult::~DeleteVerifySchemeResult()
{}
void DeleteVerifySchemeResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["Result"].isNull())
result_ = value["Result"].asString() == "true";
}
std::string DeleteVerifySchemeResult::getMessage()const
{
return message_;
}
std::string DeleteVerifySchemeResult::getCode()const
{
return code_;
}
bool DeleteVerifySchemeResult::getResult()const
{
return result_;
}

View File

@@ -0,0 +1,95 @@
/*
* 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/dypnsapi/model/DescribeVerifySchemeRequest.h>
using AlibabaCloud::Dypnsapi::Model::DescribeVerifySchemeRequest;
DescribeVerifySchemeRequest::DescribeVerifySchemeRequest() :
RpcServiceRequest("dypnsapi", "2017-05-25", "DescribeVerifyScheme")
{
setMethod(HttpRequest::Method::Post);
}
DescribeVerifySchemeRequest::~DescribeVerifySchemeRequest()
{}
long DescribeVerifySchemeRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void DescribeVerifySchemeRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string DescribeVerifySchemeRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void DescribeVerifySchemeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
long DescribeVerifySchemeRequest::getOwnerId()const
{
return ownerId_;
}
void DescribeVerifySchemeRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setCoreParameter("OwnerId", std::to_string(ownerId));
}
std::string DescribeVerifySchemeRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void DescribeVerifySchemeRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setCoreParameter("AccessKeyId", accessKeyId);
}
std::string DescribeVerifySchemeRequest::getSchemeCode()const
{
return schemeCode_;
}
void DescribeVerifySchemeRequest::setSchemeCode(const std::string& schemeCode)
{
schemeCode_ = schemeCode;
setCoreParameter("SchemeCode", schemeCode);
}
long DescribeVerifySchemeRequest::getCustomerId()const
{
return customerId_;
}
void DescribeVerifySchemeRequest::setCustomerId(long customerId)
{
customerId_ = customerId;
setCoreParameter("CustomerId", std::to_string(customerId));
}

View File

@@ -0,0 +1,66 @@
/*
* 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/dypnsapi/model/DescribeVerifySchemeResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Dypnsapi;
using namespace AlibabaCloud::Dypnsapi::Model;
DescribeVerifySchemeResult::DescribeVerifySchemeResult() :
ServiceResult()
{}
DescribeVerifySchemeResult::DescribeVerifySchemeResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeVerifySchemeResult::~DescribeVerifySchemeResult()
{}
void DescribeVerifySchemeResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto schemeQueryResultDTONode = value["SchemeQueryResultDTO"];
if(!schemeQueryResultDTONode["AppEncryptInfo"].isNull())
schemeQueryResultDTO_.appEncryptInfo = schemeQueryResultDTONode["AppEncryptInfo"].asString();
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
}
std::string DescribeVerifySchemeResult::getMessage()const
{
return message_;
}
std::string DescribeVerifySchemeResult::getCode()const
{
return code_;
}
DescribeVerifySchemeResult::SchemeQueryResultDTO DescribeVerifySchemeResult::getSchemeQueryResultDTO()const
{
return schemeQueryResultDTO_;
}

View File

@@ -20,7 +20,9 @@ using AlibabaCloud::Dypnsapi::Model::GetMobileRequest;
GetMobileRequest::GetMobileRequest() :
RpcServiceRequest("dypnsapi", "2017-05-25", "GetMobile")
{}
{
setMethod(HttpRequest::Method::Post);
}
GetMobileRequest::~GetMobileRequest()
{}

View File

@@ -20,7 +20,9 @@ using AlibabaCloud::Dypnsapi::Model::TwiceTelVerifyRequest;
TwiceTelVerifyRequest::TwiceTelVerifyRequest() :
RpcServiceRequest("dypnsapi", "2017-05-25", "TwiceTelVerify")
{}
{
setMethod(HttpRequest::Method::Post);
}
TwiceTelVerifyRequest::~TwiceTelVerifyRequest()
{}

View File

@@ -20,7 +20,9 @@ using AlibabaCloud::Dypnsapi::Model::VerifyMobileRequest;
VerifyMobileRequest::VerifyMobileRequest() :
RpcServiceRequest("dypnsapi", "2017-05-25", "VerifyMobile")
{}
{
setMethod(HttpRequest::Method::Post);
}
VerifyMobileRequest::~VerifyMobileRequest()
{}

View File

@@ -59,6 +59,10 @@ set(dyvmsapi_public_header_model
include/alibabacloud/dyvmsapi/model/QueryRobotTaskListResult.h
include/alibabacloud/dyvmsapi/model/QueryRobotv2AllListRequest.h
include/alibabacloud/dyvmsapi/model/QueryRobotv2AllListResult.h
include/alibabacloud/dyvmsapi/model/QueryVoipNumberBindInfosRequest.h
include/alibabacloud/dyvmsapi/model/QueryVoipNumberBindInfosResult.h
include/alibabacloud/dyvmsapi/model/ReportVoipProblemsRequest.h
include/alibabacloud/dyvmsapi/model/ReportVoipProblemsResult.h
include/alibabacloud/dyvmsapi/model/SingleCallByTtsRequest.h
include/alibabacloud/dyvmsapi/model/SingleCallByTtsResult.h
include/alibabacloud/dyvmsapi/model/SingleCallByVoiceRequest.h
@@ -120,6 +124,10 @@ set(dyvmsapi_src
src/model/QueryRobotTaskListResult.cc
src/model/QueryRobotv2AllListRequest.cc
src/model/QueryRobotv2AllListResult.cc
src/model/QueryVoipNumberBindInfosRequest.cc
src/model/QueryVoipNumberBindInfosResult.cc
src/model/ReportVoipProblemsRequest.cc
src/model/ReportVoipProblemsResult.cc
src/model/SingleCallByTtsRequest.cc
src/model/SingleCallByTtsResult.cc
src/model/SingleCallByVoiceRequest.cc

View File

@@ -60,6 +60,10 @@
#include "model/QueryRobotTaskListResult.h"
#include "model/QueryRobotv2AllListRequest.h"
#include "model/QueryRobotv2AllListResult.h"
#include "model/QueryVoipNumberBindInfosRequest.h"
#include "model/QueryVoipNumberBindInfosResult.h"
#include "model/ReportVoipProblemsRequest.h"
#include "model/ReportVoipProblemsResult.h"
#include "model/SingleCallByTtsRequest.h"
#include "model/SingleCallByTtsResult.h"
#include "model/SingleCallByVoiceRequest.h"
@@ -146,6 +150,12 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::QueryRobotv2AllListResult> QueryRobotv2AllListOutcome;
typedef std::future<QueryRobotv2AllListOutcome> QueryRobotv2AllListOutcomeCallable;
typedef std::function<void(const DyvmsapiClient*, const Model::QueryRobotv2AllListRequest&, const QueryRobotv2AllListOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QueryRobotv2AllListAsyncHandler;
typedef Outcome<Error, Model::QueryVoipNumberBindInfosResult> QueryVoipNumberBindInfosOutcome;
typedef std::future<QueryVoipNumberBindInfosOutcome> QueryVoipNumberBindInfosOutcomeCallable;
typedef std::function<void(const DyvmsapiClient*, const Model::QueryVoipNumberBindInfosRequest&, const QueryVoipNumberBindInfosOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QueryVoipNumberBindInfosAsyncHandler;
typedef Outcome<Error, Model::ReportVoipProblemsResult> ReportVoipProblemsOutcome;
typedef std::future<ReportVoipProblemsOutcome> ReportVoipProblemsOutcomeCallable;
typedef std::function<void(const DyvmsapiClient*, const Model::ReportVoipProblemsRequest&, const ReportVoipProblemsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ReportVoipProblemsAsyncHandler;
typedef Outcome<Error, Model::SingleCallByTtsResult> SingleCallByTtsOutcome;
typedef std::future<SingleCallByTtsOutcome> SingleCallByTtsOutcomeCallable;
typedef std::function<void(const DyvmsapiClient*, const Model::SingleCallByTtsRequest&, const SingleCallByTtsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SingleCallByTtsAsyncHandler;
@@ -238,6 +248,12 @@ namespace AlibabaCloud
QueryRobotv2AllListOutcome queryRobotv2AllList(const Model::QueryRobotv2AllListRequest &request)const;
void queryRobotv2AllListAsync(const Model::QueryRobotv2AllListRequest& request, const QueryRobotv2AllListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
QueryRobotv2AllListOutcomeCallable queryRobotv2AllListCallable(const Model::QueryRobotv2AllListRequest& request) const;
QueryVoipNumberBindInfosOutcome queryVoipNumberBindInfos(const Model::QueryVoipNumberBindInfosRequest &request)const;
void queryVoipNumberBindInfosAsync(const Model::QueryVoipNumberBindInfosRequest& request, const QueryVoipNumberBindInfosAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
QueryVoipNumberBindInfosOutcomeCallable queryVoipNumberBindInfosCallable(const Model::QueryVoipNumberBindInfosRequest& request) const;
ReportVoipProblemsOutcome reportVoipProblems(const Model::ReportVoipProblemsRequest &request)const;
void reportVoipProblemsAsync(const Model::ReportVoipProblemsRequest& request, const ReportVoipProblemsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ReportVoipProblemsOutcomeCallable reportVoipProblemsCallable(const Model::ReportVoipProblemsRequest& request) const;
SingleCallByTtsOutcome singleCallByTts(const Model::SingleCallByTtsRequest &request)const;
void singleCallByTtsAsync(const Model::SingleCallByTtsRequest& request, const SingleCallByTtsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
SingleCallByTtsOutcomeCallable singleCallByTtsCallable(const Model::SingleCallByTtsRequest& request) const;

View File

@@ -0,0 +1,63 @@
/*
* 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.
*/
#ifndef ALIBABACLOUD_DYVMSAPI_MODEL_QUERYVOIPNUMBERBINDINFOSREQUEST_H_
#define ALIBABACLOUD_DYVMSAPI_MODEL_QUERYVOIPNUMBERBINDINFOSREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/dyvmsapi/DyvmsapiExport.h>
namespace AlibabaCloud
{
namespace Dyvmsapi
{
namespace Model
{
class ALIBABACLOUD_DYVMSAPI_EXPORT QueryVoipNumberBindInfosRequest : public RpcServiceRequest
{
public:
QueryVoipNumberBindInfosRequest();
~QueryVoipNumberBindInfosRequest();
long getResourceOwnerId()const;
void setResourceOwnerId(long resourceOwnerId);
std::string getResourceOwnerAccount()const;
void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
std::string getPhoneNumber()const;
void setPhoneNumber(const std::string& phoneNumber);
long getOwnerId()const;
void setOwnerId(long ownerId);
std::string getAccessKeyId()const;
void setAccessKeyId(const std::string& accessKeyId);
std::string getVoipId()const;
void setVoipId(const std::string& voipId);
private:
long resourceOwnerId_;
std::string resourceOwnerAccount_;
std::string phoneNumber_;
long ownerId_;
std::string accessKeyId_;
std::string voipId_;
};
}
}
}
#endif // !ALIBABACLOUD_DYVMSAPI_MODEL_QUERYVOIPNUMBERBINDINFOSREQUEST_H_

View 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.
*/
#ifndef ALIBABACLOUD_DYVMSAPI_MODEL_QUERYVOIPNUMBERBINDINFOSRESULT_H_
#define ALIBABACLOUD_DYVMSAPI_MODEL_QUERYVOIPNUMBERBINDINFOSRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/dyvmsapi/DyvmsapiExport.h>
namespace AlibabaCloud
{
namespace Dyvmsapi
{
namespace Model
{
class ALIBABACLOUD_DYVMSAPI_EXPORT QueryVoipNumberBindInfosResult : public ServiceResult
{
public:
QueryVoipNumberBindInfosResult();
explicit QueryVoipNumberBindInfosResult(const std::string &payload);
~QueryVoipNumberBindInfosResult();
std::string getMessage()const;
std::string getModule()const;
std::string getCode()const;
protected:
void parse(const std::string &payload);
private:
std::string message_;
std::string module_;
std::string code_;
};
}
}
}
#endif // !ALIBABACLOUD_DYVMSAPI_MODEL_QUERYVOIPNUMBERBINDINFOSRESULT_H_

View File

@@ -0,0 +1,69 @@
/*
* 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.
*/
#ifndef ALIBABACLOUD_DYVMSAPI_MODEL_REPORTVOIPPROBLEMSREQUEST_H_
#define ALIBABACLOUD_DYVMSAPI_MODEL_REPORTVOIPPROBLEMSREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/dyvmsapi/DyvmsapiExport.h>
namespace AlibabaCloud
{
namespace Dyvmsapi
{
namespace Model
{
class ALIBABACLOUD_DYVMSAPI_EXPORT ReportVoipProblemsRequest : public RpcServiceRequest
{
public:
ReportVoipProblemsRequest();
~ReportVoipProblemsRequest();
long getResourceOwnerId()const;
void setResourceOwnerId(long resourceOwnerId);
std::string getTitle()const;
void setTitle(const std::string& title);
std::string getAccessKeyId()const;
void setAccessKeyId(const std::string& accessKeyId);
std::string getVoipId()const;
void setVoipId(const std::string& voipId);
std::string getResourceOwnerAccount()const;
void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
long getOwnerId()const;
void setOwnerId(long ownerId);
std::string getChannelId()const;
void setChannelId(const std::string& channelId);
std::string getDesc()const;
void setDesc(const std::string& desc);
private:
long resourceOwnerId_;
std::string title_;
std::string accessKeyId_;
std::string voipId_;
std::string resourceOwnerAccount_;
long ownerId_;
std::string channelId_;
std::string desc_;
};
}
}
}
#endif // !ALIBABACLOUD_DYVMSAPI_MODEL_REPORTVOIPPROBLEMSREQUEST_H_

View 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.
*/
#ifndef ALIBABACLOUD_DYVMSAPI_MODEL_REPORTVOIPPROBLEMSRESULT_H_
#define ALIBABACLOUD_DYVMSAPI_MODEL_REPORTVOIPPROBLEMSRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/dyvmsapi/DyvmsapiExport.h>
namespace AlibabaCloud
{
namespace Dyvmsapi
{
namespace Model
{
class ALIBABACLOUD_DYVMSAPI_EXPORT ReportVoipProblemsResult : public ServiceResult
{
public:
ReportVoipProblemsResult();
explicit ReportVoipProblemsResult(const std::string &payload);
~ReportVoipProblemsResult();
std::string getMessage()const;
std::string getModule()const;
std::string getCode()const;
protected:
void parse(const std::string &payload);
private:
std::string message_;
std::string module_;
std::string code_;
};
}
}
}
#endif // !ALIBABACLOUD_DYVMSAPI_MODEL_REPORTVOIPPROBLEMSRESULT_H_

View File

@@ -31,21 +31,21 @@ DyvmsapiClient::DyvmsapiClient(const Credentials &credentials, const ClientConfi
RpcServiceClient(SERVICE_NAME, std::make_shared<SimpleCredentialsProvider>(credentials), configuration)
{
auto locationClient = std::make_shared<LocationClient>(credentials, configuration);
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "");
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "dyvms");
}
DyvmsapiClient::DyvmsapiClient(const std::shared_ptr<CredentialsProvider>& credentialsProvider, const ClientConfiguration & configuration) :
RpcServiceClient(SERVICE_NAME, credentialsProvider, configuration)
{
auto locationClient = std::make_shared<LocationClient>(credentialsProvider, configuration);
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "");
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "dyvms");
}
DyvmsapiClient::DyvmsapiClient(const std::string & accessKeyId, const std::string & accessKeySecret, const ClientConfiguration & configuration) :
RpcServiceClient(SERVICE_NAME, std::make_shared<SimpleCredentialsProvider>(accessKeyId, accessKeySecret), configuration)
{
auto locationClient = std::make_shared<LocationClient>(accessKeyId, accessKeySecret, configuration);
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "");
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "dyvms");
}
DyvmsapiClient::~DyvmsapiClient()
@@ -735,6 +735,78 @@ DyvmsapiClient::QueryRobotv2AllListOutcomeCallable DyvmsapiClient::queryRobotv2A
return task->get_future();
}
DyvmsapiClient::QueryVoipNumberBindInfosOutcome DyvmsapiClient::queryVoipNumberBindInfos(const QueryVoipNumberBindInfosRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return QueryVoipNumberBindInfosOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return QueryVoipNumberBindInfosOutcome(QueryVoipNumberBindInfosResult(outcome.result()));
else
return QueryVoipNumberBindInfosOutcome(outcome.error());
}
void DyvmsapiClient::queryVoipNumberBindInfosAsync(const QueryVoipNumberBindInfosRequest& request, const QueryVoipNumberBindInfosAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, queryVoipNumberBindInfos(request), context);
};
asyncExecute(new Runnable(fn));
}
DyvmsapiClient::QueryVoipNumberBindInfosOutcomeCallable DyvmsapiClient::queryVoipNumberBindInfosCallable(const QueryVoipNumberBindInfosRequest &request) const
{
auto task = std::make_shared<std::packaged_task<QueryVoipNumberBindInfosOutcome()>>(
[this, request]()
{
return this->queryVoipNumberBindInfos(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
DyvmsapiClient::ReportVoipProblemsOutcome DyvmsapiClient::reportVoipProblems(const ReportVoipProblemsRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return ReportVoipProblemsOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return ReportVoipProblemsOutcome(ReportVoipProblemsResult(outcome.result()));
else
return ReportVoipProblemsOutcome(outcome.error());
}
void DyvmsapiClient::reportVoipProblemsAsync(const ReportVoipProblemsRequest& request, const ReportVoipProblemsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, reportVoipProblems(request), context);
};
asyncExecute(new Runnable(fn));
}
DyvmsapiClient::ReportVoipProblemsOutcomeCallable DyvmsapiClient::reportVoipProblemsCallable(const ReportVoipProblemsRequest &request) const
{
auto task = std::make_shared<std::packaged_task<ReportVoipProblemsOutcome()>>(
[this, request]()
{
return this->reportVoipProblems(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
DyvmsapiClient::SingleCallByTtsOutcome DyvmsapiClient::singleCallByTts(const SingleCallByTtsRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();

View File

@@ -0,0 +1,95 @@
/*
* 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/dyvmsapi/model/QueryVoipNumberBindInfosRequest.h>
using AlibabaCloud::Dyvmsapi::Model::QueryVoipNumberBindInfosRequest;
QueryVoipNumberBindInfosRequest::QueryVoipNumberBindInfosRequest() :
RpcServiceRequest("dyvmsapi", "2017-05-25", "QueryVoipNumberBindInfos")
{
setMethod(HttpRequest::Method::Post);
}
QueryVoipNumberBindInfosRequest::~QueryVoipNumberBindInfosRequest()
{}
long QueryVoipNumberBindInfosRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void QueryVoipNumberBindInfosRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string QueryVoipNumberBindInfosRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void QueryVoipNumberBindInfosRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string QueryVoipNumberBindInfosRequest::getPhoneNumber()const
{
return phoneNumber_;
}
void QueryVoipNumberBindInfosRequest::setPhoneNumber(const std::string& phoneNumber)
{
phoneNumber_ = phoneNumber;
setCoreParameter("PhoneNumber", phoneNumber);
}
long QueryVoipNumberBindInfosRequest::getOwnerId()const
{
return ownerId_;
}
void QueryVoipNumberBindInfosRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setCoreParameter("OwnerId", std::to_string(ownerId));
}
std::string QueryVoipNumberBindInfosRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void QueryVoipNumberBindInfosRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setCoreParameter("AccessKeyId", accessKeyId);
}
std::string QueryVoipNumberBindInfosRequest::getVoipId()const
{
return voipId_;
}
void QueryVoipNumberBindInfosRequest::setVoipId(const std::string& voipId)
{
voipId_ = voipId;
setCoreParameter("VoipId", voipId);
}

View 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/dyvmsapi/model/QueryVoipNumberBindInfosResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Dyvmsapi;
using namespace AlibabaCloud::Dyvmsapi::Model;
QueryVoipNumberBindInfosResult::QueryVoipNumberBindInfosResult() :
ServiceResult()
{}
QueryVoipNumberBindInfosResult::QueryVoipNumberBindInfosResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
QueryVoipNumberBindInfosResult::~QueryVoipNumberBindInfosResult()
{}
void QueryVoipNumberBindInfosResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Module"].isNull())
module_ = value["Module"].asString();
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
}
std::string QueryVoipNumberBindInfosResult::getMessage()const
{
return message_;
}
std::string QueryVoipNumberBindInfosResult::getModule()const
{
return module_;
}
std::string QueryVoipNumberBindInfosResult::getCode()const
{
return code_;
}

View File

@@ -0,0 +1,117 @@
/*
* 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/dyvmsapi/model/ReportVoipProblemsRequest.h>
using AlibabaCloud::Dyvmsapi::Model::ReportVoipProblemsRequest;
ReportVoipProblemsRequest::ReportVoipProblemsRequest() :
RpcServiceRequest("dyvmsapi", "2017-05-25", "ReportVoipProblems")
{
setMethod(HttpRequest::Method::Post);
}
ReportVoipProblemsRequest::~ReportVoipProblemsRequest()
{}
long ReportVoipProblemsRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void ReportVoipProblemsRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string ReportVoipProblemsRequest::getTitle()const
{
return title_;
}
void ReportVoipProblemsRequest::setTitle(const std::string& title)
{
title_ = title;
setCoreParameter("Title", title);
}
std::string ReportVoipProblemsRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void ReportVoipProblemsRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setCoreParameter("AccessKeyId", accessKeyId);
}
std::string ReportVoipProblemsRequest::getVoipId()const
{
return voipId_;
}
void ReportVoipProblemsRequest::setVoipId(const std::string& voipId)
{
voipId_ = voipId;
setCoreParameter("VoipId", voipId);
}
std::string ReportVoipProblemsRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void ReportVoipProblemsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
long ReportVoipProblemsRequest::getOwnerId()const
{
return ownerId_;
}
void ReportVoipProblemsRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setCoreParameter("OwnerId", std::to_string(ownerId));
}
std::string ReportVoipProblemsRequest::getChannelId()const
{
return channelId_;
}
void ReportVoipProblemsRequest::setChannelId(const std::string& channelId)
{
channelId_ = channelId;
setCoreParameter("ChannelId", channelId);
}
std::string ReportVoipProblemsRequest::getDesc()const
{
return desc_;
}
void ReportVoipProblemsRequest::setDesc(const std::string& desc)
{
desc_ = desc;
setCoreParameter("Desc", desc);
}

View 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/dyvmsapi/model/ReportVoipProblemsResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Dyvmsapi;
using namespace AlibabaCloud::Dyvmsapi::Model;
ReportVoipProblemsResult::ReportVoipProblemsResult() :
ServiceResult()
{}
ReportVoipProblemsResult::ReportVoipProblemsResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ReportVoipProblemsResult::~ReportVoipProblemsResult()
{}
void ReportVoipProblemsResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Module"].isNull())
module_ = value["Module"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
}
std::string ReportVoipProblemsResult::getMessage()const
{
return message_;
}
std::string ReportVoipProblemsResult::getModule()const
{
return module_;
}
std::string ReportVoipProblemsResult::getCode()const
{
return code_;
}

View File

@@ -81,6 +81,8 @@ set(ecs_public_header_model
include/alibabacloud/ecs/model/CreateAutoSnapshotPolicyResult.h
include/alibabacloud/ecs/model/CreateCommandRequest.h
include/alibabacloud/ecs/model/CreateCommandResult.h
include/alibabacloud/ecs/model/CreateDemandRequest.h
include/alibabacloud/ecs/model/CreateDemandResult.h
include/alibabacloud/ecs/model/CreateDeploymentSetRequest.h
include/alibabacloud/ecs/model/CreateDeploymentSetResult.h
include/alibabacloud/ecs/model/CreateDiskRequest.h
@@ -137,6 +139,8 @@ set(ecs_public_header_model
include/alibabacloud/ecs/model/DeleteBandwidthPackageResult.h
include/alibabacloud/ecs/model/DeleteCommandRequest.h
include/alibabacloud/ecs/model/DeleteCommandResult.h
include/alibabacloud/ecs/model/DeleteDemandRequest.h
include/alibabacloud/ecs/model/DeleteDemandResult.h
include/alibabacloud/ecs/model/DeleteDeploymentSetRequest.h
include/alibabacloud/ecs/model/DeleteDeploymentSetResult.h
include/alibabacloud/ecs/model/DeleteDiskRequest.h
@@ -413,6 +417,8 @@ set(ecs_public_header_model
include/alibabacloud/ecs/model/ModifyDedicatedHostAutoReleaseTimeResult.h
include/alibabacloud/ecs/model/ModifyDedicatedHostAutoRenewAttributeRequest.h
include/alibabacloud/ecs/model/ModifyDedicatedHostAutoRenewAttributeResult.h
include/alibabacloud/ecs/model/ModifyDemandRequest.h
include/alibabacloud/ecs/model/ModifyDemandResult.h
include/alibabacloud/ecs/model/ModifyDeploymentSetAttributeRequest.h
include/alibabacloud/ecs/model/ModifyDeploymentSetAttributeResult.h
include/alibabacloud/ecs/model/ModifyDiskAttributeRequest.h
@@ -618,6 +624,8 @@ set(ecs_src
src/model/CreateAutoSnapshotPolicyResult.cc
src/model/CreateCommandRequest.cc
src/model/CreateCommandResult.cc
src/model/CreateDemandRequest.cc
src/model/CreateDemandResult.cc
src/model/CreateDeploymentSetRequest.cc
src/model/CreateDeploymentSetResult.cc
src/model/CreateDiskRequest.cc
@@ -674,6 +682,8 @@ set(ecs_src
src/model/DeleteBandwidthPackageResult.cc
src/model/DeleteCommandRequest.cc
src/model/DeleteCommandResult.cc
src/model/DeleteDemandRequest.cc
src/model/DeleteDemandResult.cc
src/model/DeleteDeploymentSetRequest.cc
src/model/DeleteDeploymentSetResult.cc
src/model/DeleteDiskRequest.cc
@@ -950,6 +960,8 @@ set(ecs_src
src/model/ModifyDedicatedHostAutoReleaseTimeResult.cc
src/model/ModifyDedicatedHostAutoRenewAttributeRequest.cc
src/model/ModifyDedicatedHostAutoRenewAttributeResult.cc
src/model/ModifyDemandRequest.cc
src/model/ModifyDemandResult.cc
src/model/ModifyDeploymentSetAttributeRequest.cc
src/model/ModifyDeploymentSetAttributeResult.cc
src/model/ModifyDiskAttributeRequest.cc

View File

@@ -82,6 +82,8 @@
#include "model/CreateAutoSnapshotPolicyResult.h"
#include "model/CreateCommandRequest.h"
#include "model/CreateCommandResult.h"
#include "model/CreateDemandRequest.h"
#include "model/CreateDemandResult.h"
#include "model/CreateDeploymentSetRequest.h"
#include "model/CreateDeploymentSetResult.h"
#include "model/CreateDiskRequest.h"
@@ -138,6 +140,8 @@
#include "model/DeleteBandwidthPackageResult.h"
#include "model/DeleteCommandRequest.h"
#include "model/DeleteCommandResult.h"
#include "model/DeleteDemandRequest.h"
#include "model/DeleteDemandResult.h"
#include "model/DeleteDeploymentSetRequest.h"
#include "model/DeleteDeploymentSetResult.h"
#include "model/DeleteDiskRequest.h"
@@ -414,6 +418,8 @@
#include "model/ModifyDedicatedHostAutoReleaseTimeResult.h"
#include "model/ModifyDedicatedHostAutoRenewAttributeRequest.h"
#include "model/ModifyDedicatedHostAutoRenewAttributeResult.h"
#include "model/ModifyDemandRequest.h"
#include "model/ModifyDemandResult.h"
#include "model/ModifyDeploymentSetAttributeRequest.h"
#include "model/ModifyDeploymentSetAttributeResult.h"
#include "model/ModifyDiskAttributeRequest.h"
@@ -655,6 +661,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::CreateCommandResult> CreateCommandOutcome;
typedef std::future<CreateCommandOutcome> CreateCommandOutcomeCallable;
typedef std::function<void(const EcsClient*, const Model::CreateCommandRequest&, const CreateCommandOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateCommandAsyncHandler;
typedef Outcome<Error, Model::CreateDemandResult> CreateDemandOutcome;
typedef std::future<CreateDemandOutcome> CreateDemandOutcomeCallable;
typedef std::function<void(const EcsClient*, const Model::CreateDemandRequest&, const CreateDemandOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateDemandAsyncHandler;
typedef Outcome<Error, Model::CreateDeploymentSetResult> CreateDeploymentSetOutcome;
typedef std::future<CreateDeploymentSetOutcome> CreateDeploymentSetOutcomeCallable;
typedef std::function<void(const EcsClient*, const Model::CreateDeploymentSetRequest&, const CreateDeploymentSetOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateDeploymentSetAsyncHandler;
@@ -739,6 +748,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::DeleteCommandResult> DeleteCommandOutcome;
typedef std::future<DeleteCommandOutcome> DeleteCommandOutcomeCallable;
typedef std::function<void(const EcsClient*, const Model::DeleteCommandRequest&, const DeleteCommandOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteCommandAsyncHandler;
typedef Outcome<Error, Model::DeleteDemandResult> DeleteDemandOutcome;
typedef std::future<DeleteDemandOutcome> DeleteDemandOutcomeCallable;
typedef std::function<void(const EcsClient*, const Model::DeleteDemandRequest&, const DeleteDemandOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteDemandAsyncHandler;
typedef Outcome<Error, Model::DeleteDeploymentSetResult> DeleteDeploymentSetOutcome;
typedef std::future<DeleteDeploymentSetOutcome> DeleteDeploymentSetOutcomeCallable;
typedef std::function<void(const EcsClient*, const Model::DeleteDeploymentSetRequest&, const DeleteDeploymentSetOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteDeploymentSetAsyncHandler;
@@ -1153,6 +1165,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::ModifyDedicatedHostAutoRenewAttributeResult> ModifyDedicatedHostAutoRenewAttributeOutcome;
typedef std::future<ModifyDedicatedHostAutoRenewAttributeOutcome> ModifyDedicatedHostAutoRenewAttributeOutcomeCallable;
typedef std::function<void(const EcsClient*, const Model::ModifyDedicatedHostAutoRenewAttributeRequest&, const ModifyDedicatedHostAutoRenewAttributeOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifyDedicatedHostAutoRenewAttributeAsyncHandler;
typedef Outcome<Error, Model::ModifyDemandResult> ModifyDemandOutcome;
typedef std::future<ModifyDemandOutcome> ModifyDemandOutcomeCallable;
typedef std::function<void(const EcsClient*, const Model::ModifyDemandRequest&, const ModifyDemandOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifyDemandAsyncHandler;
typedef Outcome<Error, Model::ModifyDeploymentSetAttributeResult> ModifyDeploymentSetAttributeOutcome;
typedef std::future<ModifyDeploymentSetAttributeOutcome> ModifyDeploymentSetAttributeOutcomeCallable;
typedef std::function<void(const EcsClient*, const Model::ModifyDeploymentSetAttributeRequest&, const ModifyDeploymentSetAttributeOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifyDeploymentSetAttributeAsyncHandler;
@@ -1461,6 +1476,9 @@ namespace AlibabaCloud
CreateCommandOutcome createCommand(const Model::CreateCommandRequest &request)const;
void createCommandAsync(const Model::CreateCommandRequest& request, const CreateCommandAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
CreateCommandOutcomeCallable createCommandCallable(const Model::CreateCommandRequest& request) const;
CreateDemandOutcome createDemand(const Model::CreateDemandRequest &request)const;
void createDemandAsync(const Model::CreateDemandRequest& request, const CreateDemandAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
CreateDemandOutcomeCallable createDemandCallable(const Model::CreateDemandRequest& request) const;
CreateDeploymentSetOutcome createDeploymentSet(const Model::CreateDeploymentSetRequest &request)const;
void createDeploymentSetAsync(const Model::CreateDeploymentSetRequest& request, const CreateDeploymentSetAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
CreateDeploymentSetOutcomeCallable createDeploymentSetCallable(const Model::CreateDeploymentSetRequest& request) const;
@@ -1545,6 +1563,9 @@ namespace AlibabaCloud
DeleteCommandOutcome deleteCommand(const Model::DeleteCommandRequest &request)const;
void deleteCommandAsync(const Model::DeleteCommandRequest& request, const DeleteCommandAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DeleteCommandOutcomeCallable deleteCommandCallable(const Model::DeleteCommandRequest& request) const;
DeleteDemandOutcome deleteDemand(const Model::DeleteDemandRequest &request)const;
void deleteDemandAsync(const Model::DeleteDemandRequest& request, const DeleteDemandAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DeleteDemandOutcomeCallable deleteDemandCallable(const Model::DeleteDemandRequest& request) const;
DeleteDeploymentSetOutcome deleteDeploymentSet(const Model::DeleteDeploymentSetRequest &request)const;
void deleteDeploymentSetAsync(const Model::DeleteDeploymentSetRequest& request, const DeleteDeploymentSetAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DeleteDeploymentSetOutcomeCallable deleteDeploymentSetCallable(const Model::DeleteDeploymentSetRequest& request) const;
@@ -1959,6 +1980,9 @@ namespace AlibabaCloud
ModifyDedicatedHostAutoRenewAttributeOutcome modifyDedicatedHostAutoRenewAttribute(const Model::ModifyDedicatedHostAutoRenewAttributeRequest &request)const;
void modifyDedicatedHostAutoRenewAttributeAsync(const Model::ModifyDedicatedHostAutoRenewAttributeRequest& request, const ModifyDedicatedHostAutoRenewAttributeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ModifyDedicatedHostAutoRenewAttributeOutcomeCallable modifyDedicatedHostAutoRenewAttributeCallable(const Model::ModifyDedicatedHostAutoRenewAttributeRequest& request) const;
ModifyDemandOutcome modifyDemand(const Model::ModifyDemandRequest &request)const;
void modifyDemandAsync(const Model::ModifyDemandRequest& request, const ModifyDemandAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ModifyDemandOutcomeCallable modifyDemandCallable(const Model::ModifyDemandRequest& request) const;
ModifyDeploymentSetAttributeOutcome modifyDeploymentSetAttribute(const Model::ModifyDeploymentSetAttributeRequest &request)const;
void modifyDeploymentSetAttributeAsync(const Model::ModifyDeploymentSetAttributeRequest& request, const ModifyDeploymentSetAttributeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ModifyDeploymentSetAttributeOutcomeCallable modifyDeploymentSetAttributeCallable(const Model::ModifyDeploymentSetAttributeRequest& request) const;

View File

@@ -0,0 +1,93 @@
/*
* 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.
*/
#ifndef ALIBABACLOUD_ECS_MODEL_CREATEDEMANDREQUEST_H_
#define ALIBABACLOUD_ECS_MODEL_CREATEDEMANDREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/ecs/EcsExport.h>
namespace AlibabaCloud
{
namespace Ecs
{
namespace Model
{
class ALIBABACLOUD_ECS_EXPORT CreateDemandRequest : public RpcServiceRequest
{
public:
CreateDemandRequest();
~CreateDemandRequest();
long getResourceOwnerId()const;
void setResourceOwnerId(long resourceOwnerId);
std::string getClientToken()const;
void setClientToken(const std::string& clientToken);
std::string getStartTime()const;
void setStartTime(const std::string& startTime);
std::string getDemandDescription()const;
void setDemandDescription(const std::string& demandDescription);
std::string getRegionId()const;
void setRegionId(const std::string& regionId);
std::string getInstanceType()const;
void setInstanceType(const std::string& instanceType);
std::string getInstanceChargeType()const;
void setInstanceChargeType(const std::string& instanceChargeType);
std::string getDemandName()const;
void setDemandName(const std::string& demandName);
int getAmount()const;
void setAmount(int amount);
int getPeriod()const;
void setPeriod(int period);
std::string getResourceOwnerAccount()const;
void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
std::string getOwnerAccount()const;
void setOwnerAccount(const std::string& ownerAccount);
std::string getEndTime()const;
void setEndTime(const std::string& endTime);
long getOwnerId()const;
void setOwnerId(long ownerId);
std::string getPeriodUnit()const;
void setPeriodUnit(const std::string& periodUnit);
std::string getZoneId()const;
void setZoneId(const std::string& zoneId);
private:
long resourceOwnerId_;
std::string clientToken_;
std::string startTime_;
std::string demandDescription_;
std::string regionId_;
std::string instanceType_;
std::string instanceChargeType_;
std::string demandName_;
int amount_;
int period_;
std::string resourceOwnerAccount_;
std::string ownerAccount_;
std::string endTime_;
long ownerId_;
std::string periodUnit_;
std::string zoneId_;
};
}
}
}
#endif // !ALIBABACLOUD_ECS_MODEL_CREATEDEMANDREQUEST_H_

View 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.
*/
#ifndef ALIBABACLOUD_ECS_MODEL_CREATEDEMANDRESULT_H_
#define ALIBABACLOUD_ECS_MODEL_CREATEDEMANDRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/ecs/EcsExport.h>
namespace AlibabaCloud
{
namespace Ecs
{
namespace Model
{
class ALIBABACLOUD_ECS_EXPORT CreateDemandResult : public ServiceResult
{
public:
CreateDemandResult();
explicit CreateDemandResult(const std::string &payload);
~CreateDemandResult();
std::string getDemandId()const;
protected:
void parse(const std::string &payload);
private:
std::string demandId_;
};
}
}
}
#endif // !ALIBABACLOUD_ECS_MODEL_CREATEDEMANDRESULT_H_

View File

@@ -0,0 +1,69 @@
/*
* 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.
*/
#ifndef ALIBABACLOUD_ECS_MODEL_DELETEDEMANDREQUEST_H_
#define ALIBABACLOUD_ECS_MODEL_DELETEDEMANDREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/ecs/EcsExport.h>
namespace AlibabaCloud
{
namespace Ecs
{
namespace Model
{
class ALIBABACLOUD_ECS_EXPORT DeleteDemandRequest : public RpcServiceRequest
{
public:
DeleteDemandRequest();
~DeleteDemandRequest();
std::string getReason()const;
void setReason(const std::string& reason);
long getResourceOwnerId()const;
void setResourceOwnerId(long resourceOwnerId);
std::string getClientToken()const;
void setClientToken(const std::string& clientToken);
std::string getRegionId()const;
void setRegionId(const std::string& regionId);
std::string getResourceOwnerAccount()const;
void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
std::string getOwnerAccount()const;
void setOwnerAccount(const std::string& ownerAccount);
long getOwnerId()const;
void setOwnerId(long ownerId);
std::string getDemandId()const;
void setDemandId(const std::string& demandId);
private:
std::string reason_;
long resourceOwnerId_;
std::string clientToken_;
std::string regionId_;
std::string resourceOwnerAccount_;
std::string ownerAccount_;
long ownerId_;
std::string demandId_;
};
}
}
}
#endif // !ALIBABACLOUD_ECS_MODEL_DELETEDEMANDREQUEST_H_

View File

@@ -0,0 +1,49 @@
/*
* 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.
*/
#ifndef ALIBABACLOUD_ECS_MODEL_DELETEDEMANDRESULT_H_
#define ALIBABACLOUD_ECS_MODEL_DELETEDEMANDRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/ecs/EcsExport.h>
namespace AlibabaCloud
{
namespace Ecs
{
namespace Model
{
class ALIBABACLOUD_ECS_EXPORT DeleteDemandResult : public ServiceResult
{
public:
DeleteDemandResult();
explicit DeleteDemandResult(const std::string &payload);
~DeleteDemandResult();
protected:
void parse(const std::string &payload);
private:
};
}
}
}
#endif // !ALIBABACLOUD_ECS_MODEL_DELETEDEMANDRESULT_H_

View File

@@ -34,6 +34,7 @@ namespace AlibabaCloud
public:
struct InstanceCloudAssistantStatus
{
std::string cloudAssistantVersion;
std::string instanceId;
std::string cloudAssistantStatus;
};

View File

@@ -66,8 +66,12 @@ namespace AlibabaCloud
void setOwnerId(long ownerId);
std::vector<std::string> getDemandStatus()const;
void setDemandStatus(const std::vector<std::string>& demandStatus);
std::string getDemandId()const;
void setDemandId(const std::string& demandId);
std::string getZoneId()const;
void setZoneId(const std::string& zoneId);
std::string getDemandType()const;
void setDemandType(const std::string& demandType);
private:
long resourceOwnerId_;
@@ -83,7 +87,9 @@ namespace AlibabaCloud
std::string instanceTypeFamily_;
long ownerId_;
std::vector<std::string> demandStatus_;
std::string demandId_;
std::string zoneId_;
std::string demandType_;
};
}

View File

@@ -41,6 +41,7 @@ namespace AlibabaCloud
int amount;
std::string supplyEndTime;
};
std::string demandDescription;
std::string zoneId;
std::string demandTime;
std::string endTime;
@@ -48,9 +49,11 @@ namespace AlibabaCloud
std::string instanceChargeType;
std::vector<Demand::SupplyInfo> supplyInfos;
std::string startTime;
std::string demandId;
int period;
int availableAmount;
int totalAmount;
std::string demandName;
int usedAmount;
int deliveringAmount;
std::string instanceType;

View File

@@ -57,6 +57,7 @@ namespace AlibabaCloud
ExtendedAttribute extendedAttribute;
std::string eventId;
std::string notBefore;
std::string reason;
};

View File

@@ -67,6 +67,7 @@ namespace AlibabaCloud
ExtendedAttribute extendedAttribute;
std::string eventId;
std::string notBefore;
std::string reason;
};
Status status;
std::string instanceId;

View File

@@ -64,6 +64,12 @@ namespace AlibabaCloud
std::string tenancy;
std::string affinity;
};
struct CpuOptions
{
int threadsPerCore;
std::string numa;
int coreCount;
};
struct NetworkInterface
{
std::string primaryIpAddress;
@@ -96,6 +102,7 @@ namespace AlibabaCloud
std::string status;
std::string instanceId;
std::string stoppedMode;
CpuOptions cpuOptions;
std::string startTime;
bool deletionProtection;
VpcAttributes vpcAttributes;

View File

@@ -77,6 +77,8 @@ namespace AlibabaCloud
void setSpotStrategy(const std::string& spotStrategy);
std::string getPriorityStrategy()const;
void setPriorityStrategy(const std::string& priorityStrategy);
std::string getInstanceFamilyLevel()const;
void setInstanceFamilyLevel(const std::string& instanceFamilyLevel);
std::string getZoneId()const;
void setZoneId(const std::string& zoneId);
@@ -102,6 +104,7 @@ namespace AlibabaCloud
long ownerId_;
std::string spotStrategy_;
std::string priorityStrategy_;
std::string instanceFamilyLevel_;
std::string zoneId_;
};

View File

@@ -35,6 +35,11 @@ namespace AlibabaCloud
std::string key;
std::string value;
};
struct TagFilter
{
std::string tagKey;
std::vector<std::string> tagValues;
};
public:
ListTagResourcesRequest();
@@ -56,6 +61,8 @@ namespace AlibabaCloud
void setOwnerAccount(const std::string& ownerAccount);
long getOwnerId()const;
void setOwnerId(long ownerId);
std::vector<TagFilter> getTagFilter()const;
void setTagFilter(const std::vector<TagFilter>& tagFilter);
std::string getResourceType()const;
void setResourceType(const std::string& resourceType);
@@ -68,6 +75,7 @@ namespace AlibabaCloud
std::string resourceOwnerAccount_;
std::string ownerAccount_;
long ownerId_;
std::vector<TagFilter> tagFilter_;
std::string resourceType_;
};

View File

@@ -0,0 +1,96 @@
/*
* 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.
*/
#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYDEMANDREQUEST_H_
#define ALIBABACLOUD_ECS_MODEL_MODIFYDEMANDREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/ecs/EcsExport.h>
namespace AlibabaCloud
{
namespace Ecs
{
namespace Model
{
class ALIBABACLOUD_ECS_EXPORT ModifyDemandRequest : public RpcServiceRequest
{
public:
ModifyDemandRequest();
~ModifyDemandRequest();
long getResourceOwnerId()const;
void setResourceOwnerId(long resourceOwnerId);
std::string getClientToken()const;
void setClientToken(const std::string& clientToken);
std::string getStartTime()const;
void setStartTime(const std::string& startTime);
std::string getDemandDescription()const;
void setDemandDescription(const std::string& demandDescription);
std::string getRegionId()const;
void setRegionId(const std::string& regionId);
std::string getInstanceType()const;
void setInstanceType(const std::string& instanceType);
std::string getInstanceChargeType()const;
void setInstanceChargeType(const std::string& instanceChargeType);
std::string getDemandName()const;
void setDemandName(const std::string& demandName);
int getAmount()const;
void setAmount(int amount);
int getPeriod()const;
void setPeriod(int period);
std::string getResourceOwnerAccount()const;
void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
std::string getOwnerAccount()const;
void setOwnerAccount(const std::string& ownerAccount);
std::string getEndTime()const;
void setEndTime(const std::string& endTime);
long getOwnerId()const;
void setOwnerId(long ownerId);
std::string getPeriodUnit()const;
void setPeriodUnit(const std::string& periodUnit);
std::string getDemandId()const;
void setDemandId(const std::string& demandId);
std::string getZoneId()const;
void setZoneId(const std::string& zoneId);
private:
long resourceOwnerId_;
std::string clientToken_;
std::string startTime_;
std::string demandDescription_;
std::string regionId_;
std::string instanceType_;
std::string instanceChargeType_;
std::string demandName_;
int amount_;
int period_;
std::string resourceOwnerAccount_;
std::string ownerAccount_;
std::string endTime_;
long ownerId_;
std::string periodUnit_;
std::string demandId_;
std::string zoneId_;
};
}
}
}
#endif // !ALIBABACLOUD_ECS_MODEL_MODIFYDEMANDREQUEST_H_

View File

@@ -0,0 +1,49 @@
/*
* 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.
*/
#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYDEMANDRESULT_H_
#define ALIBABACLOUD_ECS_MODEL_MODIFYDEMANDRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/ecs/EcsExport.h>
namespace AlibabaCloud
{
namespace Ecs
{
namespace Model
{
class ALIBABACLOUD_ECS_EXPORT ModifyDemandResult : public ServiceResult
{
public:
ModifyDemandResult();
explicit ModifyDemandResult(const std::string &payload);
~ModifyDemandResult();
protected:
void parse(const std::string &payload);
private:
};
}
}
}
#endif // !ALIBABACLOUD_ECS_MODEL_MODIFYDEMANDRESULT_H_

View File

@@ -94,6 +94,8 @@ namespace AlibabaCloud
void setSystemDiskAutoSnapshotPolicyId(const std::string& systemDiskAutoSnapshotPolicyId);
int getAutoRenewPeriod()const;
void setAutoRenewPeriod(int autoRenewPeriod);
int getCpuOptionsCore()const;
void setCpuOptionsCore(int cpuOptionsCore);
int getPeriod()const;
void setPeriod(int period);
bool getDryRun()const;
@@ -102,6 +104,8 @@ namespace AlibabaCloud
void setLaunchTemplateId(const std::string& launchTemplateId);
int getIpv6AddressCount()const;
void setIpv6AddressCount(int ipv6AddressCount);
std::string getCpuOptionsNuma()const;
void setCpuOptionsNuma(const std::string& cpuOptionsNuma);
long getOwnerId()const;
void setOwnerId(long ownerId);
std::string getCapacityReservationPreference()const;
@@ -142,6 +146,8 @@ namespace AlibabaCloud
void setInternetMaxBandwidthOut(int internetMaxBandwidthOut);
std::string getDescription()const;
void setDescription(const std::string& description);
int getCpuOptionsThreadsPerCore()const;
void setCpuOptionsThreadsPerCore(int cpuOptionsThreadsPerCore);
std::string getSystemDiskCategory()const;
void setSystemDiskCategory(const std::string& systemDiskCategory);
std::string getCapacityReservationId()const;
@@ -214,10 +220,12 @@ namespace AlibabaCloud
std::vector<Tag> tag_;
std::string systemDiskAutoSnapshotPolicyId_;
int autoRenewPeriod_;
int cpuOptionsCore_;
int period_;
bool dryRun_;
std::string launchTemplateId_;
int ipv6AddressCount_;
std::string cpuOptionsNuma_;
long ownerId_;
std::string capacityReservationPreference_;
std::string vSwitchId_;
@@ -238,6 +246,7 @@ namespace AlibabaCloud
std::string securityGroupId_;
int internetMaxBandwidthOut_;
std::string description_;
int cpuOptionsThreadsPerCore_;
std::string systemDiskCategory_;
std::string capacityReservationId_;
std::string systemDiskPerformanceLevel_;

View File

@@ -1131,6 +1131,42 @@ EcsClient::CreateCommandOutcomeCallable EcsClient::createCommandCallable(const C
return task->get_future();
}
EcsClient::CreateDemandOutcome EcsClient::createDemand(const CreateDemandRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return CreateDemandOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return CreateDemandOutcome(CreateDemandResult(outcome.result()));
else
return CreateDemandOutcome(outcome.error());
}
void EcsClient::createDemandAsync(const CreateDemandRequest& request, const CreateDemandAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, createDemand(request), context);
};
asyncExecute(new Runnable(fn));
}
EcsClient::CreateDemandOutcomeCallable EcsClient::createDemandCallable(const CreateDemandRequest &request) const
{
auto task = std::make_shared<std::packaged_task<CreateDemandOutcome()>>(
[this, request]()
{
return this->createDemand(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
EcsClient::CreateDeploymentSetOutcome EcsClient::createDeploymentSet(const CreateDeploymentSetRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -2139,6 +2175,42 @@ EcsClient::DeleteCommandOutcomeCallable EcsClient::deleteCommandCallable(const D
return task->get_future();
}
EcsClient::DeleteDemandOutcome EcsClient::deleteDemand(const DeleteDemandRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DeleteDemandOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DeleteDemandOutcome(DeleteDemandResult(outcome.result()));
else
return DeleteDemandOutcome(outcome.error());
}
void EcsClient::deleteDemandAsync(const DeleteDemandRequest& request, const DeleteDemandAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, deleteDemand(request), context);
};
asyncExecute(new Runnable(fn));
}
EcsClient::DeleteDemandOutcomeCallable EcsClient::deleteDemandCallable(const DeleteDemandRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DeleteDemandOutcome()>>(
[this, request]()
{
return this->deleteDemand(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
EcsClient::DeleteDeploymentSetOutcome EcsClient::deleteDeploymentSet(const DeleteDeploymentSetRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -7107,6 +7179,42 @@ EcsClient::ModifyDedicatedHostAutoRenewAttributeOutcomeCallable EcsClient::modif
return task->get_future();
}
EcsClient::ModifyDemandOutcome EcsClient::modifyDemand(const ModifyDemandRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return ModifyDemandOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return ModifyDemandOutcome(ModifyDemandResult(outcome.result()));
else
return ModifyDemandOutcome(outcome.error());
}
void EcsClient::modifyDemandAsync(const ModifyDemandRequest& request, const ModifyDemandAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, modifyDemand(request), context);
};
asyncExecute(new Runnable(fn));
}
EcsClient::ModifyDemandOutcomeCallable EcsClient::modifyDemandCallable(const ModifyDemandRequest &request) const
{
auto task = std::make_shared<std::packaged_task<ModifyDemandOutcome()>>(
[this, request]()
{
return this->modifyDemand(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
EcsClient::ModifyDeploymentSetAttributeOutcome EcsClient::modifyDeploymentSetAttribute(const ModifyDeploymentSetAttributeRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();

View File

@@ -20,7 +20,9 @@ using AlibabaCloud::Ecs::Model::AcceptInquiredSystemEventRequest;
AcceptInquiredSystemEventRequest::AcceptInquiredSystemEventRequest() :
RpcServiceRequest("ecs", "2014-05-26", "AcceptInquiredSystemEvent")
{}
{
setMethod(HttpRequest::Method::Post);
}
AcceptInquiredSystemEventRequest::~AcceptInquiredSystemEventRequest()
{}

View File

@@ -20,7 +20,9 @@ using AlibabaCloud::Ecs::Model::ActivateRouterInterfaceRequest;
ActivateRouterInterfaceRequest::ActivateRouterInterfaceRequest() :
RpcServiceRequest("ecs", "2014-05-26", "ActivateRouterInterface")
{}
{
setMethod(HttpRequest::Method::Post);
}
ActivateRouterInterfaceRequest::~ActivateRouterInterfaceRequest()
{}

View File

@@ -20,7 +20,9 @@ using AlibabaCloud::Ecs::Model::AddBandwidthPackageIpsRequest;
AddBandwidthPackageIpsRequest::AddBandwidthPackageIpsRequest() :
RpcServiceRequest("ecs", "2014-05-26", "AddBandwidthPackageIps")
{}
{
setMethod(HttpRequest::Method::Post);
}
AddBandwidthPackageIpsRequest::~AddBandwidthPackageIpsRequest()
{}

View File

@@ -20,7 +20,9 @@ using AlibabaCloud::Ecs::Model::AddTagsRequest;
AddTagsRequest::AddTagsRequest() :
RpcServiceRequest("ecs", "2014-05-26", "AddTags")
{}
{
setMethod(HttpRequest::Method::Post);
}
AddTagsRequest::~AddTagsRequest()
{}
@@ -55,12 +57,11 @@ std::vector<AddTagsRequest::Tag> AddTagsRequest::getTag()const
void AddTagsRequest::setTag(const std::vector<Tag>& tag)
{
tag_ = tag;
int i = 0;
for(int i = 0; i!= tag.size(); i++) {
auto obj = tag.at(i);
std::string str ="Tag."+ std::to_string(i);
setCoreParameter(str + ".Value", obj.value);
setCoreParameter(str + ".Key", obj.key);
for(int dep1 = 0; dep1!= tag.size(); dep1++) {
auto tagObj = tag.at(dep1);
std::string tagObjStr = "Tag." + std::to_string(dep1);
setCoreParameter(tagObjStr + ".Value", tagObj.value);
setCoreParameter(tagObjStr + ".Key", tagObj.key);
}
}

View File

@@ -20,7 +20,9 @@ using AlibabaCloud::Ecs::Model::AllocateDedicatedHostsRequest;
AllocateDedicatedHostsRequest::AllocateDedicatedHostsRequest() :
RpcServiceRequest("ecs", "2014-05-26", "AllocateDedicatedHosts")
{}
{
setMethod(HttpRequest::Method::Post);
}
AllocateDedicatedHostsRequest::~AllocateDedicatedHostsRequest()
{}
@@ -99,12 +101,11 @@ std::vector<AllocateDedicatedHostsRequest::Tag> AllocateDedicatedHostsRequest::g
void AllocateDedicatedHostsRequest::setTag(const std::vector<Tag>& tag)
{
tag_ = tag;
int i = 0;
for(int i = 0; i!= tag.size(); i++) {
auto obj = tag.at(i);
std::string str ="Tag."+ std::to_string(i);
setCoreParameter(str + ".Key", obj.key);
setCoreParameter(str + ".Value", obj.value);
for(int dep1 = 0; dep1!= tag.size(); dep1++) {
auto tagObj = tag.at(dep1);
std::string tagObjStr = "Tag." + std::to_string(dep1);
setCoreParameter(tagObjStr + ".Key", tagObj.key);
setCoreParameter(tagObjStr + ".Value", tagObj.value);
}
}

View File

@@ -20,7 +20,9 @@ using AlibabaCloud::Ecs::Model::AllocateEipAddressRequest;
AllocateEipAddressRequest::AllocateEipAddressRequest() :
RpcServiceRequest("ecs", "2014-05-26", "AllocateEipAddress")
{}
{
setMethod(HttpRequest::Method::Post);
}
AllocateEipAddressRequest::~AllocateEipAddressRequest()
{}

View File

@@ -20,7 +20,9 @@ using AlibabaCloud::Ecs::Model::AllocatePublicIpAddressRequest;
AllocatePublicIpAddressRequest::AllocatePublicIpAddressRequest() :
RpcServiceRequest("ecs", "2014-05-26", "AllocatePublicIpAddress")
{}
{
setMethod(HttpRequest::Method::Post);
}
AllocatePublicIpAddressRequest::~AllocatePublicIpAddressRequest()
{}

View File

@@ -20,7 +20,9 @@ using AlibabaCloud::Ecs::Model::ApplyAutoSnapshotPolicyRequest;
ApplyAutoSnapshotPolicyRequest::ApplyAutoSnapshotPolicyRequest() :
RpcServiceRequest("ecs", "2014-05-26", "ApplyAutoSnapshotPolicy")
{}
{
setMethod(HttpRequest::Method::Post);
}
ApplyAutoSnapshotPolicyRequest::~ApplyAutoSnapshotPolicyRequest()
{}

View File

@@ -20,7 +20,9 @@ using AlibabaCloud::Ecs::Model::AssignIpv6AddressesRequest;
AssignIpv6AddressesRequest::AssignIpv6AddressesRequest() :
RpcServiceRequest("ecs", "2014-05-26", "AssignIpv6Addresses")
{}
{
setMethod(HttpRequest::Method::Post);
}
AssignIpv6AddressesRequest::~AssignIpv6AddressesRequest()
{}
@@ -110,7 +112,8 @@ std::vector<std::string> AssignIpv6AddressesRequest::getIpv6Address()const
void AssignIpv6AddressesRequest::setIpv6Address(const std::vector<std::string>& ipv6Address)
{
ipv6Address_ = ipv6Address;
for(int i = 0; i!= ipv6Address.size(); i++)
setCoreParameter("Ipv6Address."+ std::to_string(i), ipv6Address.at(i));
for(int dep1 = 0; dep1!= ipv6Address.size(); dep1++) {
setCoreParameter("Ipv6Address."+ std::to_string(dep1), ipv6Address.at(dep1));
}
}

View File

@@ -20,7 +20,9 @@ using AlibabaCloud::Ecs::Model::AssignPrivateIpAddressesRequest;
AssignPrivateIpAddressesRequest::AssignPrivateIpAddressesRequest() :
RpcServiceRequest("ecs", "2014-05-26", "AssignPrivateIpAddresses")
{}
{
setMethod(HttpRequest::Method::Post);
}
AssignPrivateIpAddressesRequest::~AssignPrivateIpAddressesRequest()
{}
@@ -99,8 +101,9 @@ std::vector<std::string> AssignPrivateIpAddressesRequest::getPrivateIpAddress()c
void AssignPrivateIpAddressesRequest::setPrivateIpAddress(const std::vector<std::string>& privateIpAddress)
{
privateIpAddress_ = privateIpAddress;
for(int i = 0; i!= privateIpAddress.size(); i++)
setCoreParameter("PrivateIpAddress."+ std::to_string(i), privateIpAddress.at(i));
for(int dep1 = 0; dep1!= privateIpAddress.size(); dep1++) {
setCoreParameter("PrivateIpAddress."+ std::to_string(dep1), privateIpAddress.at(dep1));
}
}
std::string AssignPrivateIpAddressesRequest::getNetworkInterfaceId()const

View File

@@ -20,7 +20,9 @@ using AlibabaCloud::Ecs::Model::AssociateEipAddressRequest;
AssociateEipAddressRequest::AssociateEipAddressRequest() :
RpcServiceRequest("ecs", "2014-05-26", "AssociateEipAddress")
{}
{
setMethod(HttpRequest::Method::Post);
}
AssociateEipAddressRequest::~AssociateEipAddressRequest()
{}

View File

@@ -20,7 +20,9 @@ using AlibabaCloud::Ecs::Model::AssociateHaVipRequest;
AssociateHaVipRequest::AssociateHaVipRequest() :
RpcServiceRequest("ecs", "2014-05-26", "AssociateHaVip")
{}
{
setMethod(HttpRequest::Method::Post);
}
AssociateHaVipRequest::~AssociateHaVipRequest()
{}

View File

@@ -20,7 +20,9 @@ using AlibabaCloud::Ecs::Model::AttachClassicLinkVpcRequest;
AttachClassicLinkVpcRequest::AttachClassicLinkVpcRequest() :
RpcServiceRequest("ecs", "2014-05-26", "AttachClassicLinkVpc")
{}
{
setMethod(HttpRequest::Method::Post);
}
AttachClassicLinkVpcRequest::~AttachClassicLinkVpcRequest()
{}

View File

@@ -20,7 +20,9 @@ using AlibabaCloud::Ecs::Model::AttachDiskRequest;
AttachDiskRequest::AttachDiskRequest() :
RpcServiceRequest("ecs", "2014-05-26", "AttachDisk")
{}
{
setMethod(HttpRequest::Method::Post);
}
AttachDiskRequest::~AttachDiskRequest()
{}

View File

@@ -20,7 +20,9 @@ using AlibabaCloud::Ecs::Model::AttachInstanceRamRoleRequest;
AttachInstanceRamRoleRequest::AttachInstanceRamRoleRequest() :
RpcServiceRequest("ecs", "2014-05-26", "AttachInstanceRamRole")
{}
{
setMethod(HttpRequest::Method::Post);
}
AttachInstanceRamRoleRequest::~AttachInstanceRamRoleRequest()
{}

View File

@@ -20,7 +20,9 @@ using AlibabaCloud::Ecs::Model::AttachKeyPairRequest;
AttachKeyPairRequest::AttachKeyPairRequest() :
RpcServiceRequest("ecs", "2014-05-26", "AttachKeyPair")
{}
{
setMethod(HttpRequest::Method::Post);
}
AttachKeyPairRequest::~AttachKeyPairRequest()
{}

View File

@@ -20,7 +20,9 @@ using AlibabaCloud::Ecs::Model::AttachNetworkInterfaceRequest;
AttachNetworkInterfaceRequest::AttachNetworkInterfaceRequest() :
RpcServiceRequest("ecs", "2014-05-26", "AttachNetworkInterface")
{}
{
setMethod(HttpRequest::Method::Post);
}
AttachNetworkInterfaceRequest::~AttachNetworkInterfaceRequest()
{}

View File

@@ -20,7 +20,9 @@ using AlibabaCloud::Ecs::Model::AuthorizeSecurityGroupEgressRequest;
AuthorizeSecurityGroupEgressRequest::AuthorizeSecurityGroupEgressRequest() :
RpcServiceRequest("ecs", "2014-05-26", "AuthorizeSecurityGroupEgress")
{}
{
setMethod(HttpRequest::Method::Post);
}
AuthorizeSecurityGroupEgressRequest::~AuthorizeSecurityGroupEgressRequest()
{}

View File

@@ -20,7 +20,9 @@ using AlibabaCloud::Ecs::Model::AuthorizeSecurityGroupRequest;
AuthorizeSecurityGroupRequest::AuthorizeSecurityGroupRequest() :
RpcServiceRequest("ecs", "2014-05-26", "AuthorizeSecurityGroup")
{}
{
setMethod(HttpRequest::Method::Post);
}
AuthorizeSecurityGroupRequest::~AuthorizeSecurityGroupRequest()
{}

View File

@@ -20,7 +20,9 @@ using AlibabaCloud::Ecs::Model::CancelAutoSnapshotPolicyRequest;
CancelAutoSnapshotPolicyRequest::CancelAutoSnapshotPolicyRequest() :
RpcServiceRequest("ecs", "2014-05-26", "CancelAutoSnapshotPolicy")
{}
{
setMethod(HttpRequest::Method::Post);
}
CancelAutoSnapshotPolicyRequest::~CancelAutoSnapshotPolicyRequest()
{}

View File

@@ -20,7 +20,9 @@ using AlibabaCloud::Ecs::Model::CancelCopyImageRequest;
CancelCopyImageRequest::CancelCopyImageRequest() :
RpcServiceRequest("ecs", "2014-05-26", "CancelCopyImage")
{}
{
setMethod(HttpRequest::Method::Post);
}
CancelCopyImageRequest::~CancelCopyImageRequest()
{}

View File

@@ -20,7 +20,9 @@ using AlibabaCloud::Ecs::Model::CancelPhysicalConnectionRequest;
CancelPhysicalConnectionRequest::CancelPhysicalConnectionRequest() :
RpcServiceRequest("ecs", "2014-05-26", "CancelPhysicalConnection")
{}
{
setMethod(HttpRequest::Method::Post);
}
CancelPhysicalConnectionRequest::~CancelPhysicalConnectionRequest()
{}

View File

@@ -20,7 +20,9 @@ using AlibabaCloud::Ecs::Model::CancelSimulatedSystemEventsRequest;
CancelSimulatedSystemEventsRequest::CancelSimulatedSystemEventsRequest() :
RpcServiceRequest("ecs", "2014-05-26", "CancelSimulatedSystemEvents")
{}
{
setMethod(HttpRequest::Method::Post);
}
CancelSimulatedSystemEventsRequest::~CancelSimulatedSystemEventsRequest()
{}
@@ -33,8 +35,9 @@ std::vector<std::string> CancelSimulatedSystemEventsRequest::getEventId()const
void CancelSimulatedSystemEventsRequest::setEventId(const std::vector<std::string>& eventId)
{
eventId_ = eventId;
for(int i = 0; i!= eventId.size(); i++)
setCoreParameter("EventId."+ std::to_string(i), eventId.at(i));
for(int dep1 = 0; dep1!= eventId.size(); dep1++) {
setCoreParameter("EventId."+ std::to_string(dep1), eventId.at(dep1));
}
}
long CancelSimulatedSystemEventsRequest::getResourceOwnerId()const

View File

@@ -20,7 +20,9 @@ using AlibabaCloud::Ecs::Model::CancelTaskRequest;
CancelTaskRequest::CancelTaskRequest() :
RpcServiceRequest("ecs", "2014-05-26", "CancelTask")
{}
{
setMethod(HttpRequest::Method::Post);
}
CancelTaskRequest::~CancelTaskRequest()
{}

View File

@@ -20,7 +20,9 @@ using AlibabaCloud::Ecs::Model::ConnectRouterInterfaceRequest;
ConnectRouterInterfaceRequest::ConnectRouterInterfaceRequest() :
RpcServiceRequest("ecs", "2014-05-26", "ConnectRouterInterface")
{}
{
setMethod(HttpRequest::Method::Post);
}
ConnectRouterInterfaceRequest::~ConnectRouterInterfaceRequest()
{}

View File

@@ -20,7 +20,9 @@ using AlibabaCloud::Ecs::Model::ConvertNatPublicIpToEipRequest;
ConvertNatPublicIpToEipRequest::ConvertNatPublicIpToEipRequest() :
RpcServiceRequest("ecs", "2014-05-26", "ConvertNatPublicIpToEip")
{}
{
setMethod(HttpRequest::Method::Post);
}
ConvertNatPublicIpToEipRequest::~ConvertNatPublicIpToEipRequest()
{}

View File

@@ -20,7 +20,9 @@ using AlibabaCloud::Ecs::Model::CopyImageRequest;
CopyImageRequest::CopyImageRequest() :
RpcServiceRequest("ecs", "2014-05-26", "CopyImage")
{}
{
setMethod(HttpRequest::Method::Post);
}
CopyImageRequest::~CopyImageRequest()
{}
@@ -77,12 +79,11 @@ std::vector<CopyImageRequest::Tag> CopyImageRequest::getTag()const
void CopyImageRequest::setTag(const std::vector<Tag>& tag)
{
tag_ = tag;
int i = 0;
for(int i = 0; i!= tag.size(); i++) {
auto obj = tag.at(i);
std::string str ="Tag."+ std::to_string(i);
setCoreParameter(str + ".Value", obj.value);
setCoreParameter(str + ".Key", obj.key);
for(int dep1 = 0; dep1!= tag.size(); dep1++) {
auto tagObj = tag.at(dep1);
std::string tagObjStr = "Tag." + std::to_string(dep1);
setCoreParameter(tagObjStr + ".Value", tagObj.value);
setCoreParameter(tagObjStr + ".Key", tagObj.key);
}
}

View File

@@ -20,7 +20,9 @@ using AlibabaCloud::Ecs::Model::CreateAutoProvisioningGroupRequest;
CreateAutoProvisioningGroupRequest::CreateAutoProvisioningGroupRequest() :
RpcServiceRequest("ecs", "2014-05-26", "CreateAutoProvisioningGroup")
{}
{
setMethod(HttpRequest::Method::Post);
}
CreateAutoProvisioningGroupRequest::~CreateAutoProvisioningGroupRequest()
{}
@@ -154,15 +156,14 @@ std::vector<CreateAutoProvisioningGroupRequest::LaunchTemplateConfig> CreateAuto
void CreateAutoProvisioningGroupRequest::setLaunchTemplateConfig(const std::vector<LaunchTemplateConfig>& launchTemplateConfig)
{
launchTemplateConfig_ = launchTemplateConfig;
int i = 0;
for(int i = 0; i!= launchTemplateConfig.size(); i++) {
auto obj = launchTemplateConfig.at(i);
std::string str ="LaunchTemplateConfig."+ std::to_string(i);
setCoreParameter(str + ".InstanceType", obj.instanceType);
setCoreParameter(str + ".MaxPrice", std::to_string(obj.maxPrice));
setCoreParameter(str + ".VSwitchId", obj.vSwitchId);
setCoreParameter(str + ".WeightedCapacity", std::to_string(obj.weightedCapacity));
setCoreParameter(str + ".Priority", std::to_string(obj.priority));
for(int dep1 = 0; dep1!= launchTemplateConfig.size(); dep1++) {
auto launchTemplateConfigObj = launchTemplateConfig.at(dep1);
std::string launchTemplateConfigObjStr = "LaunchTemplateConfig." + std::to_string(dep1);
setCoreParameter(launchTemplateConfigObjStr + ".InstanceType", launchTemplateConfigObj.instanceType);
setCoreParameter(launchTemplateConfigObjStr + ".MaxPrice", std::to_string(launchTemplateConfigObj.maxPrice));
setCoreParameter(launchTemplateConfigObjStr + ".VSwitchId", launchTemplateConfigObj.vSwitchId);
setCoreParameter(launchTemplateConfigObjStr + ".WeightedCapacity", std::to_string(launchTemplateConfigObj.weightedCapacity));
setCoreParameter(launchTemplateConfigObjStr + ".Priority", std::to_string(launchTemplateConfigObj.priority));
}
}

View File

@@ -20,7 +20,9 @@ using AlibabaCloud::Ecs::Model::CreateAutoSnapshotPolicyRequest;
CreateAutoSnapshotPolicyRequest::CreateAutoSnapshotPolicyRequest() :
RpcServiceRequest("ecs", "2014-05-26", "CreateAutoSnapshotPolicy")
{}
{
setMethod(HttpRequest::Method::Post);
}
CreateAutoSnapshotPolicyRequest::~CreateAutoSnapshotPolicyRequest()
{}

View File

@@ -20,7 +20,9 @@ using AlibabaCloud::Ecs::Model::CreateCommandRequest;
CreateCommandRequest::CreateCommandRequest() :
RpcServiceRequest("ecs", "2014-05-26", "CreateCommand")
{}
{
setMethod(HttpRequest::Method::Post);
}
CreateCommandRequest::~CreateCommandRequest()
{}

View File

@@ -0,0 +1,205 @@
/*
* 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/ecs/model/CreateDemandRequest.h>
using AlibabaCloud::Ecs::Model::CreateDemandRequest;
CreateDemandRequest::CreateDemandRequest() :
RpcServiceRequest("ecs", "2014-05-26", "CreateDemand")
{
setMethod(HttpRequest::Method::Post);
}
CreateDemandRequest::~CreateDemandRequest()
{}
long CreateDemandRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void CreateDemandRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string CreateDemandRequest::getClientToken()const
{
return clientToken_;
}
void CreateDemandRequest::setClientToken(const std::string& clientToken)
{
clientToken_ = clientToken;
setCoreParameter("ClientToken", clientToken);
}
std::string CreateDemandRequest::getStartTime()const
{
return startTime_;
}
void CreateDemandRequest::setStartTime(const std::string& startTime)
{
startTime_ = startTime;
setCoreParameter("StartTime", startTime);
}
std::string CreateDemandRequest::getDemandDescription()const
{
return demandDescription_;
}
void CreateDemandRequest::setDemandDescription(const std::string& demandDescription)
{
demandDescription_ = demandDescription;
setCoreParameter("DemandDescription", demandDescription);
}
std::string CreateDemandRequest::getRegionId()const
{
return regionId_;
}
void CreateDemandRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setCoreParameter("RegionId", regionId);
}
std::string CreateDemandRequest::getInstanceType()const
{
return instanceType_;
}
void CreateDemandRequest::setInstanceType(const std::string& instanceType)
{
instanceType_ = instanceType;
setCoreParameter("InstanceType", instanceType);
}
std::string CreateDemandRequest::getInstanceChargeType()const
{
return instanceChargeType_;
}
void CreateDemandRequest::setInstanceChargeType(const std::string& instanceChargeType)
{
instanceChargeType_ = instanceChargeType;
setCoreParameter("InstanceChargeType", instanceChargeType);
}
std::string CreateDemandRequest::getDemandName()const
{
return demandName_;
}
void CreateDemandRequest::setDemandName(const std::string& demandName)
{
demandName_ = demandName;
setCoreParameter("DemandName", demandName);
}
int CreateDemandRequest::getAmount()const
{
return amount_;
}
void CreateDemandRequest::setAmount(int amount)
{
amount_ = amount;
setCoreParameter("Amount", std::to_string(amount));
}
int CreateDemandRequest::getPeriod()const
{
return period_;
}
void CreateDemandRequest::setPeriod(int period)
{
period_ = period;
setCoreParameter("Period", std::to_string(period));
}
std::string CreateDemandRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void CreateDemandRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string CreateDemandRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void CreateDemandRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setCoreParameter("OwnerAccount", ownerAccount);
}
std::string CreateDemandRequest::getEndTime()const
{
return endTime_;
}
void CreateDemandRequest::setEndTime(const std::string& endTime)
{
endTime_ = endTime;
setCoreParameter("EndTime", endTime);
}
long CreateDemandRequest::getOwnerId()const
{
return ownerId_;
}
void CreateDemandRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setCoreParameter("OwnerId", std::to_string(ownerId));
}
std::string CreateDemandRequest::getPeriodUnit()const
{
return periodUnit_;
}
void CreateDemandRequest::setPeriodUnit(const std::string& periodUnit)
{
periodUnit_ = periodUnit;
setCoreParameter("PeriodUnit", periodUnit);
}
std::string CreateDemandRequest::getZoneId()const
{
return zoneId_;
}
void CreateDemandRequest::setZoneId(const std::string& zoneId)
{
zoneId_ = zoneId;
setCoreParameter("ZoneId", zoneId);
}

View 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/ecs/model/CreateDemandResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ecs;
using namespace AlibabaCloud::Ecs::Model;
CreateDemandResult::CreateDemandResult() :
ServiceResult()
{}
CreateDemandResult::CreateDemandResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateDemandResult::~CreateDemandResult()
{}
void CreateDemandResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["DemandId"].isNull())
demandId_ = value["DemandId"].asString();
}
std::string CreateDemandResult::getDemandId()const
{
return demandId_;
}

View File

@@ -20,7 +20,9 @@ using AlibabaCloud::Ecs::Model::CreateDeploymentSetRequest;
CreateDeploymentSetRequest::CreateDeploymentSetRequest() :
RpcServiceRequest("ecs", "2014-05-26", "CreateDeploymentSet")
{}
{
setMethod(HttpRequest::Method::Post);
}
CreateDeploymentSetRequest::~CreateDeploymentSetRequest()
{}

View File

@@ -20,7 +20,9 @@ using AlibabaCloud::Ecs::Model::CreateDiskRequest;
CreateDiskRequest::CreateDiskRequest() :
RpcServiceRequest("ecs", "2014-05-26", "CreateDisk")
{}
{
setMethod(HttpRequest::Method::Post);
}
CreateDiskRequest::~CreateDiskRequest()
{}
@@ -132,12 +134,11 @@ std::vector<CreateDiskRequest::Tag> CreateDiskRequest::getTag()const
void CreateDiskRequest::setTag(const std::vector<Tag>& tag)
{
tag_ = tag;
int i = 0;
for(int i = 0; i!= tag.size(); i++) {
auto obj = tag.at(i);
std::string str ="Tag."+ std::to_string(i);
setCoreParameter(str + ".Value", obj.value);
setCoreParameter(str + ".Key", obj.key);
for(int dep1 = 0; dep1!= tag.size(); dep1++) {
auto tagObj = tag.at(dep1);
std::string tagObjStr = "Tag." + std::to_string(dep1);
setCoreParameter(tagObjStr + ".Value", tagObj.value);
setCoreParameter(tagObjStr + ".Key", tagObj.key);
}
}
@@ -149,13 +150,12 @@ std::vector<CreateDiskRequest::Arn> CreateDiskRequest::getArn()const
void CreateDiskRequest::setArn(const std::vector<Arn>& arn)
{
arn_ = arn;
int i = 0;
for(int i = 0; i!= arn.size(); i++) {
auto obj = arn.at(i);
std::string str ="Arn."+ std::to_string(i);
setCoreParameter(str + ".Rolearn", obj.rolearn);
setCoreParameter(str + ".RoleType", obj.roleType);
setCoreParameter(str + ".AssumeRoleFor", std::to_string(obj.assumeRoleFor));
for(int dep1 = 0; dep1!= arn.size(); dep1++) {
auto arnObj = arn.at(dep1);
std::string arnObjStr = "Arn." + std::to_string(dep1);
setCoreParameter(arnObjStr + ".Rolearn", arnObj.rolearn);
setCoreParameter(arnObjStr + ".RoleType", arnObj.roleType);
setCoreParameter(arnObjStr + ".AssumeRoleFor", std::to_string(arnObj.assumeRoleFor));
}
}

View File

@@ -20,7 +20,9 @@ using AlibabaCloud::Ecs::Model::CreateForwardEntryRequest;
CreateForwardEntryRequest::CreateForwardEntryRequest() :
RpcServiceRequest("ecs", "2014-05-26", "CreateForwardEntry")
{}
{
setMethod(HttpRequest::Method::Post);
}
CreateForwardEntryRequest::~CreateForwardEntryRequest()
{}

View File

@@ -20,7 +20,9 @@ using AlibabaCloud::Ecs::Model::CreateHaVipRequest;
CreateHaVipRequest::CreateHaVipRequest() :
RpcServiceRequest("ecs", "2014-05-26", "CreateHaVip")
{}
{
setMethod(HttpRequest::Method::Post);
}
CreateHaVipRequest::~CreateHaVipRequest()
{}

View File

@@ -20,7 +20,9 @@ using AlibabaCloud::Ecs::Model::CreateHpcClusterRequest;
CreateHpcClusterRequest::CreateHpcClusterRequest() :
RpcServiceRequest("ecs", "2014-05-26", "CreateHpcCluster")
{}
{
setMethod(HttpRequest::Method::Post);
}
CreateHpcClusterRequest::~CreateHpcClusterRequest()
{}

View File

@@ -20,7 +20,9 @@ using AlibabaCloud::Ecs::Model::CreateImageRequest;
CreateImageRequest::CreateImageRequest() :
RpcServiceRequest("ecs", "2014-05-26", "CreateImage")
{}
{
setMethod(HttpRequest::Method::Post);
}
CreateImageRequest::~CreateImageRequest()
{}
@@ -33,14 +35,13 @@ std::vector<CreateImageRequest::DiskDeviceMapping> CreateImageRequest::getDiskDe
void CreateImageRequest::setDiskDeviceMapping(const std::vector<DiskDeviceMapping>& diskDeviceMapping)
{
diskDeviceMapping_ = diskDeviceMapping;
int i = 0;
for(int i = 0; i!= diskDeviceMapping.size(); i++) {
auto obj = diskDeviceMapping.at(i);
std::string str ="DiskDeviceMapping."+ std::to_string(i);
setCoreParameter(str + ".SnapshotId", obj.snapshotId);
setCoreParameter(str + ".Size", std::to_string(obj.size));
setCoreParameter(str + ".DiskType", obj.diskType);
setCoreParameter(str + ".Device", obj.device);
for(int dep1 = 0; dep1!= diskDeviceMapping.size(); dep1++) {
auto diskDeviceMappingObj = diskDeviceMapping.at(dep1);
std::string diskDeviceMappingObjStr = "DiskDeviceMapping." + std::to_string(dep1);
setCoreParameter(diskDeviceMappingObjStr + ".SnapshotId", diskDeviceMappingObj.snapshotId);
setCoreParameter(diskDeviceMappingObjStr + ".Size", std::to_string(diskDeviceMappingObj.size));
setCoreParameter(diskDeviceMappingObjStr + ".DiskType", diskDeviceMappingObj.diskType);
setCoreParameter(diskDeviceMappingObjStr + ".Device", diskDeviceMappingObj.device);
}
}
@@ -140,12 +141,11 @@ std::vector<CreateImageRequest::Tag> CreateImageRequest::getTag()const
void CreateImageRequest::setTag(const std::vector<Tag>& tag)
{
tag_ = tag;
int i = 0;
for(int i = 0; i!= tag.size(); i++) {
auto obj = tag.at(i);
std::string str ="Tag."+ std::to_string(i);
setCoreParameter(str + ".Value", obj.value);
setCoreParameter(str + ".Key", obj.key);
for(int dep1 = 0; dep1!= tag.size(); dep1++) {
auto tagObj = tag.at(dep1);
std::string tagObjStr = "Tag." + std::to_string(dep1);
setCoreParameter(tagObjStr + ".Value", tagObj.value);
setCoreParameter(tagObjStr + ".Key", tagObj.key);
}
}

View File

@@ -20,7 +20,9 @@ using AlibabaCloud::Ecs::Model::CreateInstanceRequest;
CreateInstanceRequest::CreateInstanceRequest() :
RpcServiceRequest("ecs", "2014-05-26", "CreateInstance")
{}
{
setMethod(HttpRequest::Method::Post);
}
CreateInstanceRequest::~CreateInstanceRequest()
{}
@@ -143,12 +145,11 @@ std::vector<CreateInstanceRequest::Tag> CreateInstanceRequest::getTag()const
void CreateInstanceRequest::setTag(const std::vector<Tag>& tag)
{
tag_ = tag;
int i = 0;
for(int i = 0; i!= tag.size(); i++) {
auto obj = tag.at(i);
std::string str ="Tag."+ std::to_string(i);
setCoreParameter(str + ".Value", obj.value);
setCoreParameter(str + ".Key", obj.key);
for(int dep1 = 0; dep1!= tag.size(); dep1++) {
auto tagObj = tag.at(dep1);
std::string tagObjStr = "Tag." + std::to_string(dep1);
setCoreParameter(tagObjStr + ".Value", tagObj.value);
setCoreParameter(tagObjStr + ".Key", tagObj.key);
}
}
@@ -512,13 +513,12 @@ std::vector<CreateInstanceRequest::Arn> CreateInstanceRequest::getArn()const
void CreateInstanceRequest::setArn(const std::vector<Arn>& arn)
{
arn_ = arn;
int i = 0;
for(int i = 0; i!= arn.size(); i++) {
auto obj = arn.at(i);
std::string str ="Arn."+ std::to_string(i);
setCoreParameter(str + ".Rolearn", obj.rolearn);
setCoreParameter(str + ".RoleType", obj.roleType);
setCoreParameter(str + ".AssumeRoleFor", std::to_string(obj.assumeRoleFor));
for(int dep1 = 0; dep1!= arn.size(); dep1++) {
auto arnObj = arn.at(dep1);
std::string arnObjStr = "Arn." + std::to_string(dep1);
setCoreParameter(arnObjStr + ".Rolearn", arnObj.rolearn);
setCoreParameter(arnObjStr + ".RoleType", arnObj.roleType);
setCoreParameter(arnObjStr + ".AssumeRoleFor", std::to_string(arnObj.assumeRoleFor));
}
}
@@ -662,20 +662,19 @@ std::vector<CreateInstanceRequest::DataDisk> CreateInstanceRequest::getDataDisk(
void CreateInstanceRequest::setDataDisk(const std::vector<DataDisk>& dataDisk)
{
dataDisk_ = dataDisk;
int i = 0;
for(int i = 0; i!= dataDisk.size(); i++) {
auto obj = dataDisk.at(i);
std::string str ="DataDisk."+ std::to_string(i);
setCoreParameter(str + ".DiskName", obj.diskName);
setCoreParameter(str + ".SnapshotId", obj.snapshotId);
setCoreParameter(str + ".Size", std::to_string(obj.size));
setCoreParameter(str + ".Encrypted", obj.encrypted ? "true" : "false");
setCoreParameter(str + ".PerformanceLevel", obj.performanceLevel);
setCoreParameter(str + ".Description", obj.description);
setCoreParameter(str + ".Category", obj.category);
setCoreParameter(str + ".KMSKeyId", obj.kMSKeyId);
setCoreParameter(str + ".Device", obj.device);
setCoreParameter(str + ".DeleteWithInstance", obj.deleteWithInstance ? "true" : "false");
for(int dep1 = 0; dep1!= dataDisk.size(); dep1++) {
auto dataDiskObj = dataDisk.at(dep1);
std::string dataDiskObjStr = "DataDisk." + std::to_string(dep1);
setCoreParameter(dataDiskObjStr + ".DiskName", dataDiskObj.diskName);
setCoreParameter(dataDiskObjStr + ".SnapshotId", dataDiskObj.snapshotId);
setCoreParameter(dataDiskObjStr + ".Size", std::to_string(dataDiskObj.size));
setCoreParameter(dataDiskObjStr + ".Encrypted", dataDiskObj.encrypted ? "true" : "false");
setCoreParameter(dataDiskObjStr + ".PerformanceLevel", dataDiskObj.performanceLevel);
setCoreParameter(dataDiskObjStr + ".Description", dataDiskObj.description);
setCoreParameter(dataDiskObjStr + ".Category", dataDiskObj.category);
setCoreParameter(dataDiskObjStr + ".KMSKeyId", dataDiskObj.kMSKeyId);
setCoreParameter(dataDiskObjStr + ".Device", dataDiskObj.device);
setCoreParameter(dataDiskObjStr + ".DeleteWithInstance", dataDiskObj.deleteWithInstance ? "true" : "false");
}
}

View File

@@ -20,7 +20,9 @@ using AlibabaCloud::Ecs::Model::CreateKeyPairRequest;
CreateKeyPairRequest::CreateKeyPairRequest() :
RpcServiceRequest("ecs", "2014-05-26", "CreateKeyPair")
{}
{
setMethod(HttpRequest::Method::Post);
}
CreateKeyPairRequest::~CreateKeyPairRequest()
{}
@@ -77,12 +79,11 @@ std::vector<CreateKeyPairRequest::Tag> CreateKeyPairRequest::getTag()const
void CreateKeyPairRequest::setTag(const std::vector<Tag>& tag)
{
tag_ = tag;
int i = 0;
for(int i = 0; i!= tag.size(); i++) {
auto obj = tag.at(i);
std::string str ="Tag."+ std::to_string(i);
setCoreParameter(str + ".Value", obj.value);
setCoreParameter(str + ".Key", obj.key);
for(int dep1 = 0; dep1!= tag.size(); dep1++) {
auto tagObj = tag.at(dep1);
std::string tagObjStr = "Tag." + std::to_string(dep1);
setCoreParameter(tagObjStr + ".Value", tagObj.value);
setCoreParameter(tagObjStr + ".Key", tagObj.key);
}
}

View File

@@ -20,7 +20,9 @@ using AlibabaCloud::Ecs::Model::CreateLaunchTemplateRequest;
CreateLaunchTemplateRequest::CreateLaunchTemplateRequest() :
RpcServiceRequest("ecs", "2014-05-26", "CreateLaunchTemplate")
{}
{
setMethod(HttpRequest::Method::Post);
}
CreateLaunchTemplateRequest::~CreateLaunchTemplateRequest()
{}
@@ -143,12 +145,11 @@ std::vector<CreateLaunchTemplateRequest::TemplateTag> CreateLaunchTemplateReques
void CreateLaunchTemplateRequest::setTemplateTag(const std::vector<TemplateTag>& templateTag)
{
templateTag_ = templateTag;
int i = 0;
for(int i = 0; i!= templateTag.size(); i++) {
auto obj = templateTag.at(i);
std::string str ="TemplateTag."+ std::to_string(i);
setCoreParameter(str + ".Key", obj.key);
setCoreParameter(str + ".Value", obj.value);
for(int dep1 = 0; dep1!= templateTag.size(); dep1++) {
auto templateTagObj = templateTag.at(dep1);
std::string templateTagObjStr = "TemplateTag." + std::to_string(dep1);
setCoreParameter(templateTagObjStr + ".Key", templateTagObj.key);
setCoreParameter(templateTagObjStr + ".Value", templateTagObj.value);
}
}
@@ -160,12 +161,11 @@ std::vector<CreateLaunchTemplateRequest::Tag> CreateLaunchTemplateRequest::getTa
void CreateLaunchTemplateRequest::setTag(const std::vector<Tag>& tag)
{
tag_ = tag;
int i = 0;
for(int i = 0; i!= tag.size(); i++) {
auto obj = tag.at(i);
std::string str ="Tag."+ std::to_string(i);
setCoreParameter(str + ".Key", obj.key);
setCoreParameter(str + ".Value", obj.value);
for(int dep1 = 0; dep1!= tag.size(); dep1++) {
auto tagObj = tag.at(dep1);
std::string tagObjStr = "Tag." + std::to_string(dep1);
setCoreParameter(tagObjStr + ".Key", tagObj.key);
setCoreParameter(tagObjStr + ".Value", tagObj.value);
}
}
@@ -419,15 +419,14 @@ std::vector<CreateLaunchTemplateRequest::NetworkInterface> CreateLaunchTemplateR
void CreateLaunchTemplateRequest::setNetworkInterface(const std::vector<NetworkInterface>& networkInterface)
{
networkInterface_ = networkInterface;
int i = 0;
for(int i = 0; i!= networkInterface.size(); i++) {
auto obj = networkInterface.at(i);
std::string str ="NetworkInterface."+ std::to_string(i);
setCoreParameter(str + ".PrimaryIpAddress", obj.primaryIpAddress);
setCoreParameter(str + ".VSwitchId", obj.vSwitchId);
setCoreParameter(str + ".SecurityGroupId", obj.securityGroupId);
setCoreParameter(str + ".NetworkInterfaceName", obj.networkInterfaceName);
setCoreParameter(str + ".Description", obj.description);
for(int dep1 = 0; dep1!= networkInterface.size(); dep1++) {
auto networkInterfaceObj = networkInterface.at(dep1);
std::string networkInterfaceObjStr = "NetworkInterface." + std::to_string(dep1);
setCoreParameter(networkInterfaceObjStr + ".PrimaryIpAddress", networkInterfaceObj.primaryIpAddress);
setCoreParameter(networkInterfaceObjStr + ".VSwitchId", networkInterfaceObj.vSwitchId);
setCoreParameter(networkInterfaceObjStr + ".SecurityGroupId", networkInterfaceObj.securityGroupId);
setCoreParameter(networkInterfaceObjStr + ".NetworkInterfaceName", networkInterfaceObj.networkInterfaceName);
setCoreParameter(networkInterfaceObjStr + ".Description", networkInterfaceObj.description);
}
}
@@ -505,18 +504,17 @@ std::vector<CreateLaunchTemplateRequest::DataDisk> CreateLaunchTemplateRequest::
void CreateLaunchTemplateRequest::setDataDisk(const std::vector<DataDisk>& dataDisk)
{
dataDisk_ = dataDisk;
int i = 0;
for(int i = 0; i!= dataDisk.size(); i++) {
auto obj = dataDisk.at(i);
std::string str ="DataDisk."+ std::to_string(i);
setCoreParameter(str + ".Size", std::to_string(obj.size));
setCoreParameter(str + ".SnapshotId", obj.snapshotId);
setCoreParameter(str + ".Category", obj.category);
setCoreParameter(str + ".Encrypted", obj.encrypted);
setCoreParameter(str + ".DiskName", obj.diskName);
setCoreParameter(str + ".Description", obj.description);
setCoreParameter(str + ".DeleteWithInstance", obj.deleteWithInstance ? "true" : "false");
setCoreParameter(str + ".Device", obj.device);
for(int dep1 = 0; dep1!= dataDisk.size(); dep1++) {
auto dataDiskObj = dataDisk.at(dep1);
std::string dataDiskObjStr = "DataDisk." + std::to_string(dep1);
setCoreParameter(dataDiskObjStr + ".Size", std::to_string(dataDiskObj.size));
setCoreParameter(dataDiskObjStr + ".SnapshotId", dataDiskObj.snapshotId);
setCoreParameter(dataDiskObjStr + ".Category", dataDiskObj.category);
setCoreParameter(dataDiskObjStr + ".Encrypted", dataDiskObj.encrypted);
setCoreParameter(dataDiskObjStr + ".DiskName", dataDiskObj.diskName);
setCoreParameter(dataDiskObjStr + ".Description", dataDiskObj.description);
setCoreParameter(dataDiskObjStr + ".DeleteWithInstance", dataDiskObj.deleteWithInstance ? "true" : "false");
setCoreParameter(dataDiskObjStr + ".Device", dataDiskObj.device);
}
}

View File

@@ -20,7 +20,9 @@ using AlibabaCloud::Ecs::Model::CreateLaunchTemplateVersionRequest;
CreateLaunchTemplateVersionRequest::CreateLaunchTemplateVersionRequest() :
RpcServiceRequest("ecs", "2014-05-26", "CreateLaunchTemplateVersion")
{}
{
setMethod(HttpRequest::Method::Post);
}
CreateLaunchTemplateVersionRequest::~CreateLaunchTemplateVersionRequest()
{}
@@ -143,12 +145,11 @@ std::vector<CreateLaunchTemplateVersionRequest::Tag> CreateLaunchTemplateVersion
void CreateLaunchTemplateVersionRequest::setTag(const std::vector<Tag>& tag)
{
tag_ = tag;
int i = 0;
for(int i = 0; i!= tag.size(); i++) {
auto obj = tag.at(i);
std::string str ="Tag."+ std::to_string(i);
setCoreParameter(str + ".Key", obj.key);
setCoreParameter(str + ".Value", obj.value);
for(int dep1 = 0; dep1!= tag.size(); dep1++) {
auto tagObj = tag.at(dep1);
std::string tagObjStr = "Tag." + std::to_string(dep1);
setCoreParameter(tagObjStr + ".Key", tagObj.key);
setCoreParameter(tagObjStr + ".Value", tagObj.value);
}
}
@@ -402,15 +403,14 @@ std::vector<CreateLaunchTemplateVersionRequest::NetworkInterface> CreateLaunchTe
void CreateLaunchTemplateVersionRequest::setNetworkInterface(const std::vector<NetworkInterface>& networkInterface)
{
networkInterface_ = networkInterface;
int i = 0;
for(int i = 0; i!= networkInterface.size(); i++) {
auto obj = networkInterface.at(i);
std::string str ="NetworkInterface."+ std::to_string(i);
setCoreParameter(str + ".PrimaryIpAddress", obj.primaryIpAddress);
setCoreParameter(str + ".VSwitchId", obj.vSwitchId);
setCoreParameter(str + ".SecurityGroupId", obj.securityGroupId);
setCoreParameter(str + ".NetworkInterfaceName", obj.networkInterfaceName);
setCoreParameter(str + ".Description", obj.description);
for(int dep1 = 0; dep1!= networkInterface.size(); dep1++) {
auto networkInterfaceObj = networkInterface.at(dep1);
std::string networkInterfaceObjStr = "NetworkInterface." + std::to_string(dep1);
setCoreParameter(networkInterfaceObjStr + ".PrimaryIpAddress", networkInterfaceObj.primaryIpAddress);
setCoreParameter(networkInterfaceObjStr + ".VSwitchId", networkInterfaceObj.vSwitchId);
setCoreParameter(networkInterfaceObjStr + ".SecurityGroupId", networkInterfaceObj.securityGroupId);
setCoreParameter(networkInterfaceObjStr + ".NetworkInterfaceName", networkInterfaceObj.networkInterfaceName);
setCoreParameter(networkInterfaceObjStr + ".Description", networkInterfaceObj.description);
}
}
@@ -488,18 +488,17 @@ std::vector<CreateLaunchTemplateVersionRequest::DataDisk> CreateLaunchTemplateVe
void CreateLaunchTemplateVersionRequest::setDataDisk(const std::vector<DataDisk>& dataDisk)
{
dataDisk_ = dataDisk;
int i = 0;
for(int i = 0; i!= dataDisk.size(); i++) {
auto obj = dataDisk.at(i);
std::string str ="DataDisk."+ std::to_string(i);
setCoreParameter(str + ".Size", std::to_string(obj.size));
setCoreParameter(str + ".SnapshotId", obj.snapshotId);
setCoreParameter(str + ".Category", obj.category);
setCoreParameter(str + ".Encrypted", obj.encrypted);
setCoreParameter(str + ".DiskName", obj.diskName);
setCoreParameter(str + ".Description", obj.description);
setCoreParameter(str + ".DeleteWithInstance", obj.deleteWithInstance ? "true" : "false");
setCoreParameter(str + ".Device", obj.device);
for(int dep1 = 0; dep1!= dataDisk.size(); dep1++) {
auto dataDiskObj = dataDisk.at(dep1);
std::string dataDiskObjStr = "DataDisk." + std::to_string(dep1);
setCoreParameter(dataDiskObjStr + ".Size", std::to_string(dataDiskObj.size));
setCoreParameter(dataDiskObjStr + ".SnapshotId", dataDiskObj.snapshotId);
setCoreParameter(dataDiskObjStr + ".Category", dataDiskObj.category);
setCoreParameter(dataDiskObjStr + ".Encrypted", dataDiskObj.encrypted);
setCoreParameter(dataDiskObjStr + ".DiskName", dataDiskObj.diskName);
setCoreParameter(dataDiskObjStr + ".Description", dataDiskObj.description);
setCoreParameter(dataDiskObjStr + ".DeleteWithInstance", dataDiskObj.deleteWithInstance ? "true" : "false");
setCoreParameter(dataDiskObjStr + ".Device", dataDiskObj.device);
}
}

View File

@@ -20,7 +20,9 @@ using AlibabaCloud::Ecs::Model::CreateNatGatewayRequest;
CreateNatGatewayRequest::CreateNatGatewayRequest() :
RpcServiceRequest("ecs", "2014-05-26", "CreateNatGateway")
{}
{
setMethod(HttpRequest::Method::Post);
}
CreateNatGatewayRequest::~CreateNatGatewayRequest()
{}
@@ -77,13 +79,12 @@ std::vector<CreateNatGatewayRequest::BandwidthPackage> CreateNatGatewayRequest::
void CreateNatGatewayRequest::setBandwidthPackage(const std::vector<BandwidthPackage>& bandwidthPackage)
{
bandwidthPackage_ = bandwidthPackage;
int i = 0;
for(int i = 0; i!= bandwidthPackage.size(); i++) {
auto obj = bandwidthPackage.at(i);
std::string str ="BandwidthPackage."+ std::to_string(i);
setCoreParameter(str + ".Bandwidth", std::to_string(obj.bandwidth));
setCoreParameter(str + ".Zone", obj.zone);
setCoreParameter(str + ".IpCount", std::to_string(obj.ipCount));
for(int dep1 = 0; dep1!= bandwidthPackage.size(); dep1++) {
auto bandwidthPackageObj = bandwidthPackage.at(dep1);
std::string bandwidthPackageObjStr = "BandwidthPackage." + std::to_string(dep1);
setCoreParameter(bandwidthPackageObjStr + ".Bandwidth", std::to_string(bandwidthPackageObj.bandwidth));
setCoreParameter(bandwidthPackageObjStr + ".Zone", bandwidthPackageObj.zone);
setCoreParameter(bandwidthPackageObjStr + ".IpCount", std::to_string(bandwidthPackageObj.ipCount));
}
}

View File

@@ -20,7 +20,9 @@ using AlibabaCloud::Ecs::Model::CreateNetworkInterfacePermissionRequest;
CreateNetworkInterfacePermissionRequest::CreateNetworkInterfacePermissionRequest() :
RpcServiceRequest("ecs", "2014-05-26", "CreateNetworkInterfacePermission")
{}
{
setMethod(HttpRequest::Method::Post);
}
CreateNetworkInterfacePermissionRequest::~CreateNetworkInterfacePermissionRequest()
{}

View File

@@ -20,7 +20,9 @@ using AlibabaCloud::Ecs::Model::CreateNetworkInterfaceRequest;
CreateNetworkInterfaceRequest::CreateNetworkInterfaceRequest() :
RpcServiceRequest("ecs", "2014-05-26", "CreateNetworkInterface")
{}
{
setMethod(HttpRequest::Method::Post);
}
CreateNetworkInterfaceRequest::~CreateNetworkInterfaceRequest()
{}
@@ -110,12 +112,11 @@ std::vector<CreateNetworkInterfaceRequest::Tag> CreateNetworkInterfaceRequest::g
void CreateNetworkInterfaceRequest::setTag(const std::vector<Tag>& tag)
{
tag_ = tag;
int i = 0;
for(int i = 0; i!= tag.size(); i++) {
auto obj = tag.at(i);
std::string str ="Tag."+ std::to_string(i);
setCoreParameter(str + ".Key", obj.key);
setCoreParameter(str + ".Value", obj.value);
for(int dep1 = 0; dep1!= tag.size(); dep1++) {
auto tagObj = tag.at(dep1);
std::string tagObjStr = "Tag." + std::to_string(dep1);
setCoreParameter(tagObjStr + ".Key", tagObj.key);
setCoreParameter(tagObjStr + ".Value", tagObj.value);
}
}

View File

@@ -20,7 +20,9 @@ using AlibabaCloud::Ecs::Model::CreatePhysicalConnectionRequest;
CreatePhysicalConnectionRequest::CreatePhysicalConnectionRequest() :
RpcServiceRequest("ecs", "2014-05-26", "CreatePhysicalConnection")
{}
{
setMethod(HttpRequest::Method::Post);
}
CreatePhysicalConnectionRequest::~CreatePhysicalConnectionRequest()
{}

View File

@@ -20,7 +20,9 @@ using AlibabaCloud::Ecs::Model::CreateRouteEntryRequest;
CreateRouteEntryRequest::CreateRouteEntryRequest() :
RpcServiceRequest("ecs", "2014-05-26", "CreateRouteEntry")
{}
{
setMethod(HttpRequest::Method::Post);
}
CreateRouteEntryRequest::~CreateRouteEntryRequest()
{}
@@ -143,12 +145,11 @@ std::vector<CreateRouteEntryRequest::NextHopList> CreateRouteEntryRequest::getNe
void CreateRouteEntryRequest::setNextHopList(const std::vector<NextHopList>& nextHopList)
{
nextHopList_ = nextHopList;
int i = 0;
for(int i = 0; i!= nextHopList.size(); i++) {
auto obj = nextHopList.at(i);
std::string str ="NextHopList."+ std::to_string(i);
setCoreParameter(str + ".NextHopId", obj.nextHopId);
setCoreParameter(str + ".NextHopType", obj.nextHopType);
for(int dep1 = 0; dep1!= nextHopList.size(); dep1++) {
auto nextHopListObj = nextHopList.at(dep1);
std::string nextHopListObjStr = "NextHopList." + std::to_string(dep1);
setCoreParameter(nextHopListObjStr + ".NextHopId", nextHopListObj.nextHopId);
setCoreParameter(nextHopListObjStr + ".NextHopType", nextHopListObj.nextHopType);
}
}

View File

@@ -20,7 +20,9 @@ using AlibabaCloud::Ecs::Model::CreateRouterInterfaceRequest;
CreateRouterInterfaceRequest::CreateRouterInterfaceRequest() :
RpcServiceRequest("ecs", "2014-05-26", "CreateRouterInterface")
{}
{
setMethod(HttpRequest::Method::Post);
}
CreateRouterInterfaceRequest::~CreateRouterInterfaceRequest()
{}

View File

@@ -20,7 +20,9 @@ using AlibabaCloud::Ecs::Model::CreateSecurityGroupRequest;
CreateSecurityGroupRequest::CreateSecurityGroupRequest() :
RpcServiceRequest("ecs", "2014-05-26", "CreateSecurityGroup")
{}
{
setMethod(HttpRequest::Method::Post);
}
CreateSecurityGroupRequest::~CreateSecurityGroupRequest()
{}
@@ -99,12 +101,11 @@ std::vector<CreateSecurityGroupRequest::Tag> CreateSecurityGroupRequest::getTag(
void CreateSecurityGroupRequest::setTag(const std::vector<Tag>& tag)
{
tag_ = tag;
int i = 0;
for(int i = 0; i!= tag.size(); i++) {
auto obj = tag.at(i);
std::string str ="Tag."+ std::to_string(i);
setCoreParameter(str + ".Value", obj.value);
setCoreParameter(str + ".Key", obj.key);
for(int dep1 = 0; dep1!= tag.size(); dep1++) {
auto tagObj = tag.at(dep1);
std::string tagObjStr = "Tag." + std::to_string(dep1);
setCoreParameter(tagObjStr + ".Value", tagObj.value);
setCoreParameter(tagObjStr + ".Key", tagObj.key);
}
}

View File

@@ -20,7 +20,9 @@ using AlibabaCloud::Ecs::Model::CreateSimulatedSystemEventsRequest;
CreateSimulatedSystemEventsRequest::CreateSimulatedSystemEventsRequest() :
RpcServiceRequest("ecs", "2014-05-26", "CreateSimulatedSystemEvents")
{}
{
setMethod(HttpRequest::Method::Post);
}
CreateSimulatedSystemEventsRequest::~CreateSimulatedSystemEventsRequest()
{}
@@ -99,8 +101,9 @@ std::vector<std::string> CreateSimulatedSystemEventsRequest::getInstanceId()cons
void CreateSimulatedSystemEventsRequest::setInstanceId(const std::vector<std::string>& instanceId)
{
instanceId_ = instanceId;
for(int i = 0; i!= instanceId.size(); i++)
setCoreParameter("InstanceId."+ std::to_string(i), instanceId.at(i));
for(int dep1 = 0; dep1!= instanceId.size(); dep1++) {
setCoreParameter("InstanceId."+ std::to_string(dep1), instanceId.at(dep1));
}
}
std::string CreateSimulatedSystemEventsRequest::getEventType()const

View File

@@ -20,7 +20,9 @@ using AlibabaCloud::Ecs::Model::CreateSnapshotRequest;
CreateSnapshotRequest::CreateSnapshotRequest() :
RpcServiceRequest("ecs", "2014-05-26", "CreateSnapshot")
{}
{
setMethod(HttpRequest::Method::Post);
}
CreateSnapshotRequest::~CreateSnapshotRequest()
{}
@@ -88,12 +90,11 @@ std::vector<CreateSnapshotRequest::Tag> CreateSnapshotRequest::getTag()const
void CreateSnapshotRequest::setTag(const std::vector<Tag>& tag)
{
tag_ = tag;
int i = 0;
for(int i = 0; i!= tag.size(); i++) {
auto obj = tag.at(i);
std::string str ="Tag."+ std::to_string(i);
setCoreParameter(str + ".Value", obj.value);
setCoreParameter(str + ".Key", obj.key);
for(int dep1 = 0; dep1!= tag.size(); dep1++) {
auto tagObj = tag.at(dep1);
std::string tagObjStr = "Tag." + std::to_string(dep1);
setCoreParameter(tagObjStr + ".Value", tagObj.value);
setCoreParameter(tagObjStr + ".Key", tagObj.key);
}
}

View File

@@ -20,7 +20,9 @@ using AlibabaCloud::Ecs::Model::CreateStorageSetRequest;
CreateStorageSetRequest::CreateStorageSetRequest() :
RpcServiceRequest("ecs", "2014-05-26", "CreateStorageSet")
{}
{
setMethod(HttpRequest::Method::Post);
}
CreateStorageSetRequest::~CreateStorageSetRequest()
{}

View File

@@ -20,7 +20,9 @@ using AlibabaCloud::Ecs::Model::CreateVSwitchRequest;
CreateVSwitchRequest::CreateVSwitchRequest() :
RpcServiceRequest("ecs", "2014-05-26", "CreateVSwitch")
{}
{
setMethod(HttpRequest::Method::Post);
}
CreateVSwitchRequest::~CreateVSwitchRequest()
{}

View File

@@ -20,7 +20,9 @@ using AlibabaCloud::Ecs::Model::CreateVirtualBorderRouterRequest;
CreateVirtualBorderRouterRequest::CreateVirtualBorderRouterRequest() :
RpcServiceRequest("ecs", "2014-05-26", "CreateVirtualBorderRouter")
{}
{
setMethod(HttpRequest::Method::Post);
}
CreateVirtualBorderRouterRequest::~CreateVirtualBorderRouterRequest()
{}

Some files were not shown because too many files have changed in this diff Show More