Generated 2020-06-01 for SWAS-OPEN.
This commit is contained in:
@@ -41,8 +41,12 @@ set(swas-open_public_header_model
|
||||
include/alibabacloud/swas-open/model/DeleteCommandResult.h
|
||||
include/alibabacloud/swas-open/model/DeleteCustomImageRequest.h
|
||||
include/alibabacloud/swas-open/model/DeleteCustomImageResult.h
|
||||
include/alibabacloud/swas-open/model/DeleteCustomImagesRequest.h
|
||||
include/alibabacloud/swas-open/model/DeleteCustomImagesResult.h
|
||||
include/alibabacloud/swas-open/model/DeleteFirewallRuleRequest.h
|
||||
include/alibabacloud/swas-open/model/DeleteFirewallRuleResult.h
|
||||
include/alibabacloud/swas-open/model/DeleteFirewallRulesRequest.h
|
||||
include/alibabacloud/swas-open/model/DeleteFirewallRulesResult.h
|
||||
include/alibabacloud/swas-open/model/DeleteInstanceKeyPairRequest.h
|
||||
include/alibabacloud/swas-open/model/DeleteInstanceKeyPairResult.h
|
||||
include/alibabacloud/swas-open/model/DeleteSnapshotRequest.h
|
||||
@@ -200,8 +204,12 @@ set(swas-open_src
|
||||
src/model/DeleteCommandResult.cc
|
||||
src/model/DeleteCustomImageRequest.cc
|
||||
src/model/DeleteCustomImageResult.cc
|
||||
src/model/DeleteCustomImagesRequest.cc
|
||||
src/model/DeleteCustomImagesResult.cc
|
||||
src/model/DeleteFirewallRuleRequest.cc
|
||||
src/model/DeleteFirewallRuleResult.cc
|
||||
src/model/DeleteFirewallRulesRequest.cc
|
||||
src/model/DeleteFirewallRulesResult.cc
|
||||
src/model/DeleteInstanceKeyPairRequest.cc
|
||||
src/model/DeleteInstanceKeyPairResult.cc
|
||||
src/model/DeleteSnapshotRequest.cc
|
||||
|
||||
@@ -42,8 +42,12 @@
|
||||
#include "model/DeleteCommandResult.h"
|
||||
#include "model/DeleteCustomImageRequest.h"
|
||||
#include "model/DeleteCustomImageResult.h"
|
||||
#include "model/DeleteCustomImagesRequest.h"
|
||||
#include "model/DeleteCustomImagesResult.h"
|
||||
#include "model/DeleteFirewallRuleRequest.h"
|
||||
#include "model/DeleteFirewallRuleResult.h"
|
||||
#include "model/DeleteFirewallRulesRequest.h"
|
||||
#include "model/DeleteFirewallRulesResult.h"
|
||||
#include "model/DeleteInstanceKeyPairRequest.h"
|
||||
#include "model/DeleteInstanceKeyPairResult.h"
|
||||
#include "model/DeleteSnapshotRequest.h"
|
||||
@@ -217,9 +221,15 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::DeleteCustomImageResult> DeleteCustomImageOutcome;
|
||||
typedef std::future<DeleteCustomImageOutcome> DeleteCustomImageOutcomeCallable;
|
||||
typedef std::function<void(const SWAS_OPENClient*, const Model::DeleteCustomImageRequest&, const DeleteCustomImageOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteCustomImageAsyncHandler;
|
||||
typedef Outcome<Error, Model::DeleteCustomImagesResult> DeleteCustomImagesOutcome;
|
||||
typedef std::future<DeleteCustomImagesOutcome> DeleteCustomImagesOutcomeCallable;
|
||||
typedef std::function<void(const SWAS_OPENClient*, const Model::DeleteCustomImagesRequest&, const DeleteCustomImagesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteCustomImagesAsyncHandler;
|
||||
typedef Outcome<Error, Model::DeleteFirewallRuleResult> DeleteFirewallRuleOutcome;
|
||||
typedef std::future<DeleteFirewallRuleOutcome> DeleteFirewallRuleOutcomeCallable;
|
||||
typedef std::function<void(const SWAS_OPENClient*, const Model::DeleteFirewallRuleRequest&, const DeleteFirewallRuleOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteFirewallRuleAsyncHandler;
|
||||
typedef Outcome<Error, Model::DeleteFirewallRulesResult> DeleteFirewallRulesOutcome;
|
||||
typedef std::future<DeleteFirewallRulesOutcome> DeleteFirewallRulesOutcomeCallable;
|
||||
typedef std::function<void(const SWAS_OPENClient*, const Model::DeleteFirewallRulesRequest&, const DeleteFirewallRulesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteFirewallRulesAsyncHandler;
|
||||
typedef Outcome<Error, Model::DeleteInstanceKeyPairResult> DeleteInstanceKeyPairOutcome;
|
||||
typedef std::future<DeleteInstanceKeyPairOutcome> DeleteInstanceKeyPairOutcomeCallable;
|
||||
typedef std::function<void(const SWAS_OPENClient*, const Model::DeleteInstanceKeyPairRequest&, const DeleteInstanceKeyPairOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteInstanceKeyPairAsyncHandler;
|
||||
@@ -456,9 +466,15 @@ namespace AlibabaCloud
|
||||
DeleteCustomImageOutcome deleteCustomImage(const Model::DeleteCustomImageRequest &request)const;
|
||||
void deleteCustomImageAsync(const Model::DeleteCustomImageRequest& request, const DeleteCustomImageAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DeleteCustomImageOutcomeCallable deleteCustomImageCallable(const Model::DeleteCustomImageRequest& request) const;
|
||||
DeleteCustomImagesOutcome deleteCustomImages(const Model::DeleteCustomImagesRequest &request)const;
|
||||
void deleteCustomImagesAsync(const Model::DeleteCustomImagesRequest& request, const DeleteCustomImagesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DeleteCustomImagesOutcomeCallable deleteCustomImagesCallable(const Model::DeleteCustomImagesRequest& request) const;
|
||||
DeleteFirewallRuleOutcome deleteFirewallRule(const Model::DeleteFirewallRuleRequest &request)const;
|
||||
void deleteFirewallRuleAsync(const Model::DeleteFirewallRuleRequest& request, const DeleteFirewallRuleAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DeleteFirewallRuleOutcomeCallable deleteFirewallRuleCallable(const Model::DeleteFirewallRuleRequest& request) const;
|
||||
DeleteFirewallRulesOutcome deleteFirewallRules(const Model::DeleteFirewallRulesRequest &request)const;
|
||||
void deleteFirewallRulesAsync(const Model::DeleteFirewallRulesRequest& request, const DeleteFirewallRulesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DeleteFirewallRulesOutcomeCallable deleteFirewallRulesCallable(const Model::DeleteFirewallRulesRequest& request) const;
|
||||
DeleteInstanceKeyPairOutcome deleteInstanceKeyPair(const Model::DeleteInstanceKeyPairRequest &request)const;
|
||||
void deleteInstanceKeyPairAsync(const Model::DeleteInstanceKeyPairRequest& request, const DeleteInstanceKeyPairAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DeleteInstanceKeyPairOutcomeCallable deleteInstanceKeyPairCallable(const Model::DeleteInstanceKeyPairRequest& request) const;
|
||||
|
||||
@@ -0,0 +1,48 @@
|
||||
/*
|
||||
* 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_SWAS_OPEN_MODEL_DELETECUSTOMIMAGESREQUEST_H_
|
||||
#define ALIBABACLOUD_SWAS_OPEN_MODEL_DELETECUSTOMIMAGESREQUEST_H_
|
||||
|
||||
#include <alibabacloud/swas-open/SWAS_OPENExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace SWAS_OPEN {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_SWAS_OPEN_EXPORT DeleteCustomImagesRequest : public RpcServiceRequest {
|
||||
public:
|
||||
DeleteCustomImagesRequest();
|
||||
~DeleteCustomImagesRequest();
|
||||
std::string getClientToken() const;
|
||||
void setClientToken(const std::string &clientToken);
|
||||
std::string getRegionId() const;
|
||||
void setRegionId(const std::string ®ionId);
|
||||
std::string getImageIds() const;
|
||||
void setImageIds(const std::string &imageIds);
|
||||
|
||||
private:
|
||||
std::string clientToken_;
|
||||
std::string regionId_;
|
||||
std::string imageIds_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace SWAS_OPEN
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_SWAS_OPEN_MODEL_DELETECUSTOMIMAGESREQUEST_H_
|
||||
@@ -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_SWAS_OPEN_MODEL_DELETECUSTOMIMAGESRESULT_H_
|
||||
#define ALIBABACLOUD_SWAS_OPEN_MODEL_DELETECUSTOMIMAGESRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/swas-open/SWAS_OPENExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace SWAS_OPEN
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_SWAS_OPEN_EXPORT DeleteCustomImagesResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
DeleteCustomImagesResult();
|
||||
explicit DeleteCustomImagesResult(const std::string &payload);
|
||||
~DeleteCustomImagesResult();
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_SWAS_OPEN_MODEL_DELETECUSTOMIMAGESRESULT_H_
|
||||
@@ -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_SWAS_OPEN_MODEL_DELETEFIREWALLRULESREQUEST_H_
|
||||
#define ALIBABACLOUD_SWAS_OPEN_MODEL_DELETEFIREWALLRULESREQUEST_H_
|
||||
|
||||
#include <alibabacloud/swas-open/SWAS_OPENExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace SWAS_OPEN {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_SWAS_OPEN_EXPORT DeleteFirewallRulesRequest : public RpcServiceRequest {
|
||||
public:
|
||||
DeleteFirewallRulesRequest();
|
||||
~DeleteFirewallRulesRequest();
|
||||
std::string getClientToken() const;
|
||||
void setClientToken(const std::string &clientToken);
|
||||
std::vector<std::string> getRuleIds() const;
|
||||
void setRuleIds(const std::vector<std::string> &ruleIds);
|
||||
std::string getInstanceId() const;
|
||||
void setInstanceId(const std::string &instanceId);
|
||||
std::string getRegionId() const;
|
||||
void setRegionId(const std::string ®ionId);
|
||||
|
||||
private:
|
||||
std::string clientToken_;
|
||||
std::vector<std::string> ruleIds_;
|
||||
std::string instanceId_;
|
||||
std::string regionId_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace SWAS_OPEN
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_SWAS_OPEN_MODEL_DELETEFIREWALLRULESREQUEST_H_
|
||||
@@ -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_SWAS_OPEN_MODEL_DELETEFIREWALLRULESRESULT_H_
|
||||
#define ALIBABACLOUD_SWAS_OPEN_MODEL_DELETEFIREWALLRULESRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/swas-open/SWAS_OPENExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace SWAS_OPEN
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_SWAS_OPEN_EXPORT DeleteFirewallRulesResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
DeleteFirewallRulesResult();
|
||||
explicit DeleteFirewallRulesResult(const std::string &payload);
|
||||
~DeleteFirewallRulesResult();
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_SWAS_OPEN_MODEL_DELETEFIREWALLRULESRESULT_H_
|
||||
@@ -411,6 +411,42 @@ SWAS_OPENClient::DeleteCustomImageOutcomeCallable SWAS_OPENClient::deleteCustomI
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
SWAS_OPENClient::DeleteCustomImagesOutcome SWAS_OPENClient::deleteCustomImages(const DeleteCustomImagesRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DeleteCustomImagesOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DeleteCustomImagesOutcome(DeleteCustomImagesResult(outcome.result()));
|
||||
else
|
||||
return DeleteCustomImagesOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void SWAS_OPENClient::deleteCustomImagesAsync(const DeleteCustomImagesRequest& request, const DeleteCustomImagesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, deleteCustomImages(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
SWAS_OPENClient::DeleteCustomImagesOutcomeCallable SWAS_OPENClient::deleteCustomImagesCallable(const DeleteCustomImagesRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DeleteCustomImagesOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->deleteCustomImages(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
SWAS_OPENClient::DeleteFirewallRuleOutcome SWAS_OPENClient::deleteFirewallRule(const DeleteFirewallRuleRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -447,6 +483,42 @@ SWAS_OPENClient::DeleteFirewallRuleOutcomeCallable SWAS_OPENClient::deleteFirewa
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
SWAS_OPENClient::DeleteFirewallRulesOutcome SWAS_OPENClient::deleteFirewallRules(const DeleteFirewallRulesRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DeleteFirewallRulesOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DeleteFirewallRulesOutcome(DeleteFirewallRulesResult(outcome.result()));
|
||||
else
|
||||
return DeleteFirewallRulesOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void SWAS_OPENClient::deleteFirewallRulesAsync(const DeleteFirewallRulesRequest& request, const DeleteFirewallRulesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, deleteFirewallRules(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
SWAS_OPENClient::DeleteFirewallRulesOutcomeCallable SWAS_OPENClient::deleteFirewallRulesCallable(const DeleteFirewallRulesRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DeleteFirewallRulesOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->deleteFirewallRules(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
SWAS_OPENClient::DeleteInstanceKeyPairOutcome SWAS_OPENClient::deleteInstanceKeyPair(const DeleteInstanceKeyPairRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
|
||||
54
swas-open/src/model/DeleteCustomImagesRequest.cc
Normal file
54
swas-open/src/model/DeleteCustomImagesRequest.cc
Normal file
@@ -0,0 +1,54 @@
|
||||
/*
|
||||
* 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/swas-open/model/DeleteCustomImagesRequest.h>
|
||||
|
||||
using AlibabaCloud::SWAS_OPEN::Model::DeleteCustomImagesRequest;
|
||||
|
||||
DeleteCustomImagesRequest::DeleteCustomImagesRequest()
|
||||
: RpcServiceRequest("swas-open", "2020-06-01", "DeleteCustomImages") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteCustomImagesRequest::~DeleteCustomImagesRequest() {}
|
||||
|
||||
std::string DeleteCustomImagesRequest::getClientToken() const {
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
void DeleteCustomImagesRequest::setClientToken(const std::string &clientToken) {
|
||||
clientToken_ = clientToken;
|
||||
setParameter(std::string("ClientToken"), clientToken);
|
||||
}
|
||||
|
||||
std::string DeleteCustomImagesRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DeleteCustomImagesRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
std::string DeleteCustomImagesRequest::getImageIds() const {
|
||||
return imageIds_;
|
||||
}
|
||||
|
||||
void DeleteCustomImagesRequest::setImageIds(const std::string &imageIds) {
|
||||
imageIds_ = imageIds;
|
||||
setParameter(std::string("ImageIds"), imageIds);
|
||||
}
|
||||
|
||||
44
swas-open/src/model/DeleteCustomImagesResult.cc
Normal file
44
swas-open/src/model/DeleteCustomImagesResult.cc
Normal file
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* 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/swas-open/model/DeleteCustomImagesResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::SWAS_OPEN;
|
||||
using namespace AlibabaCloud::SWAS_OPEN::Model;
|
||||
|
||||
DeleteCustomImagesResult::DeleteCustomImagesResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteCustomImagesResult::DeleteCustomImagesResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteCustomImagesResult::~DeleteCustomImagesResult()
|
||||
{}
|
||||
|
||||
void DeleteCustomImagesResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
65
swas-open/src/model/DeleteFirewallRulesRequest.cc
Normal file
65
swas-open/src/model/DeleteFirewallRulesRequest.cc
Normal file
@@ -0,0 +1,65 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/swas-open/model/DeleteFirewallRulesRequest.h>
|
||||
|
||||
using AlibabaCloud::SWAS_OPEN::Model::DeleteFirewallRulesRequest;
|
||||
|
||||
DeleteFirewallRulesRequest::DeleteFirewallRulesRequest()
|
||||
: RpcServiceRequest("swas-open", "2020-06-01", "DeleteFirewallRules") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteFirewallRulesRequest::~DeleteFirewallRulesRequest() {}
|
||||
|
||||
std::string DeleteFirewallRulesRequest::getClientToken() const {
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
void DeleteFirewallRulesRequest::setClientToken(const std::string &clientToken) {
|
||||
clientToken_ = clientToken;
|
||||
setParameter(std::string("ClientToken"), clientToken);
|
||||
}
|
||||
|
||||
std::vector<DeleteFirewallRulesRequest::std::string> DeleteFirewallRulesRequest::getRuleIds() const {
|
||||
return ruleIds_;
|
||||
}
|
||||
|
||||
void DeleteFirewallRulesRequest::setRuleIds(const std::vector<DeleteFirewallRulesRequest::std::string> &ruleIds) {
|
||||
ruleIds_ = ruleIds;
|
||||
for(int dep1 = 0; dep1 != ruleIds.size(); dep1++) {
|
||||
setParameter(std::string("RuleIds") + "." + std::to_string(dep1 + 1), ruleIds[dep1]);
|
||||
}
|
||||
}
|
||||
|
||||
std::string DeleteFirewallRulesRequest::getInstanceId() const {
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void DeleteFirewallRulesRequest::setInstanceId(const std::string &instanceId) {
|
||||
instanceId_ = instanceId;
|
||||
setParameter(std::string("InstanceId"), instanceId);
|
||||
}
|
||||
|
||||
std::string DeleteFirewallRulesRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DeleteFirewallRulesRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
44
swas-open/src/model/DeleteFirewallRulesResult.cc
Normal file
44
swas-open/src/model/DeleteFirewallRulesResult.cc
Normal file
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* 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/swas-open/model/DeleteFirewallRulesResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::SWAS_OPEN;
|
||||
using namespace AlibabaCloud::SWAS_OPEN::Model;
|
||||
|
||||
DeleteFirewallRulesResult::DeleteFirewallRulesResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteFirewallRulesResult::DeleteFirewallRulesResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteFirewallRulesResult::~DeleteFirewallRulesResult()
|
||||
{}
|
||||
|
||||
void DeleteFirewallRulesResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user