Add new apis.
This commit is contained in:
@@ -159,6 +159,78 @@ SWAS_OPENClient::CreateFirewallRuleOutcomeCallable SWAS_OPENClient::createFirewa
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
SWAS_OPENClient::CreateFirewallRulesOutcome SWAS_OPENClient::createFirewallRules(const CreateFirewallRulesRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return CreateFirewallRulesOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return CreateFirewallRulesOutcome(CreateFirewallRulesResult(outcome.result()));
|
||||
else
|
||||
return CreateFirewallRulesOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void SWAS_OPENClient::createFirewallRulesAsync(const CreateFirewallRulesRequest& request, const CreateFirewallRulesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, createFirewallRules(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
SWAS_OPENClient::CreateFirewallRulesOutcomeCallable SWAS_OPENClient::createFirewallRulesCallable(const CreateFirewallRulesRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<CreateFirewallRulesOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->createFirewallRules(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
SWAS_OPENClient::CreateInstanceKeyPairOutcome SWAS_OPENClient::createInstanceKeyPair(const CreateInstanceKeyPairRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return CreateInstanceKeyPairOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return CreateInstanceKeyPairOutcome(CreateInstanceKeyPairResult(outcome.result()));
|
||||
else
|
||||
return CreateInstanceKeyPairOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void SWAS_OPENClient::createInstanceKeyPairAsync(const CreateInstanceKeyPairRequest& request, const CreateInstanceKeyPairAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, createInstanceKeyPair(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
SWAS_OPENClient::CreateInstanceKeyPairOutcomeCallable SWAS_OPENClient::createInstanceKeyPairCallable(const CreateInstanceKeyPairRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<CreateInstanceKeyPairOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->createInstanceKeyPair(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
SWAS_OPENClient::CreateInstancesOutcome SWAS_OPENClient::createInstances(const CreateInstancesRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -303,6 +375,42 @@ SWAS_OPENClient::DeleteFirewallRuleOutcomeCallable SWAS_OPENClient::deleteFirewa
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
SWAS_OPENClient::DeleteInstanceKeyPairOutcome SWAS_OPENClient::deleteInstanceKeyPair(const DeleteInstanceKeyPairRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DeleteInstanceKeyPairOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DeleteInstanceKeyPairOutcome(DeleteInstanceKeyPairResult(outcome.result()));
|
||||
else
|
||||
return DeleteInstanceKeyPairOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void SWAS_OPENClient::deleteInstanceKeyPairAsync(const DeleteInstanceKeyPairRequest& request, const DeleteInstanceKeyPairAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, deleteInstanceKeyPair(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
SWAS_OPENClient::DeleteInstanceKeyPairOutcomeCallable SWAS_OPENClient::deleteInstanceKeyPairCallable(const DeleteInstanceKeyPairRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DeleteInstanceKeyPairOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->deleteInstanceKeyPair(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
SWAS_OPENClient::DeleteSnapshotOutcome SWAS_OPENClient::deleteSnapshot(const DeleteSnapshotRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -339,6 +447,42 @@ SWAS_OPENClient::DeleteSnapshotOutcomeCallable SWAS_OPENClient::deleteSnapshotCa
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
SWAS_OPENClient::DeleteSnapshotsOutcome SWAS_OPENClient::deleteSnapshots(const DeleteSnapshotsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DeleteSnapshotsOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DeleteSnapshotsOutcome(DeleteSnapshotsResult(outcome.result()));
|
||||
else
|
||||
return DeleteSnapshotsOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void SWAS_OPENClient::deleteSnapshotsAsync(const DeleteSnapshotsRequest& request, const DeleteSnapshotsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, deleteSnapshots(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
SWAS_OPENClient::DeleteSnapshotsOutcomeCallable SWAS_OPENClient::deleteSnapshotsCallable(const DeleteSnapshotsRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DeleteSnapshotsOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->deleteSnapshots(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
SWAS_OPENClient::DescribeCloudAssistantStatusOutcome SWAS_OPENClient::describeCloudAssistantStatus(const DescribeCloudAssistantStatusRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -375,6 +519,42 @@ SWAS_OPENClient::DescribeCloudAssistantStatusOutcomeCallable SWAS_OPENClient::de
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
SWAS_OPENClient::DescribeCloudMonitorAgentStatusesOutcome SWAS_OPENClient::describeCloudMonitorAgentStatuses(const DescribeCloudMonitorAgentStatusesRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeCloudMonitorAgentStatusesOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeCloudMonitorAgentStatusesOutcome(DescribeCloudMonitorAgentStatusesResult(outcome.result()));
|
||||
else
|
||||
return DescribeCloudMonitorAgentStatusesOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void SWAS_OPENClient::describeCloudMonitorAgentStatusesAsync(const DescribeCloudMonitorAgentStatusesRequest& request, const DescribeCloudMonitorAgentStatusesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeCloudMonitorAgentStatuses(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
SWAS_OPENClient::DescribeCloudMonitorAgentStatusesOutcomeCallable SWAS_OPENClient::describeCloudMonitorAgentStatusesCallable(const DescribeCloudMonitorAgentStatusesRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeCloudMonitorAgentStatusesOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeCloudMonitorAgentStatuses(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
SWAS_OPENClient::DescribeDatabaseErrorLogsOutcome SWAS_OPENClient::describeDatabaseErrorLogs(const DescribeDatabaseErrorLogsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -555,6 +735,114 @@ SWAS_OPENClient::DescribeDatabaseSlowLogRecordsOutcomeCallable SWAS_OPENClient::
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
SWAS_OPENClient::DescribeInstanceKeyPairOutcome SWAS_OPENClient::describeInstanceKeyPair(const DescribeInstanceKeyPairRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeInstanceKeyPairOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeInstanceKeyPairOutcome(DescribeInstanceKeyPairResult(outcome.result()));
|
||||
else
|
||||
return DescribeInstanceKeyPairOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void SWAS_OPENClient::describeInstanceKeyPairAsync(const DescribeInstanceKeyPairRequest& request, const DescribeInstanceKeyPairAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeInstanceKeyPair(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
SWAS_OPENClient::DescribeInstanceKeyPairOutcomeCallable SWAS_OPENClient::describeInstanceKeyPairCallable(const DescribeInstanceKeyPairRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeInstanceKeyPairOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeInstanceKeyPair(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
SWAS_OPENClient::DescribeInstancePasswordsSettingOutcome SWAS_OPENClient::describeInstancePasswordsSetting(const DescribeInstancePasswordsSettingRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeInstancePasswordsSettingOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeInstancePasswordsSettingOutcome(DescribeInstancePasswordsSettingResult(outcome.result()));
|
||||
else
|
||||
return DescribeInstancePasswordsSettingOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void SWAS_OPENClient::describeInstancePasswordsSettingAsync(const DescribeInstancePasswordsSettingRequest& request, const DescribeInstancePasswordsSettingAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeInstancePasswordsSetting(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
SWAS_OPENClient::DescribeInstancePasswordsSettingOutcomeCallable SWAS_OPENClient::describeInstancePasswordsSettingCallable(const DescribeInstancePasswordsSettingRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeInstancePasswordsSettingOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeInstancePasswordsSetting(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
SWAS_OPENClient::DescribeInstanceVncUrlOutcome SWAS_OPENClient::describeInstanceVncUrl(const DescribeInstanceVncUrlRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeInstanceVncUrlOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeInstanceVncUrlOutcome(DescribeInstanceVncUrlResult(outcome.result()));
|
||||
else
|
||||
return DescribeInstanceVncUrlOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void SWAS_OPENClient::describeInstanceVncUrlAsync(const DescribeInstanceVncUrlRequest& request, const DescribeInstanceVncUrlAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeInstanceVncUrl(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
SWAS_OPENClient::DescribeInstanceVncUrlOutcomeCallable SWAS_OPENClient::describeInstanceVncUrlCallable(const DescribeInstanceVncUrlRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeInstanceVncUrlOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeInstanceVncUrl(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
SWAS_OPENClient::DescribeInvocationResultOutcome SWAS_OPENClient::describeInvocationResult(const DescribeInvocationResultRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -627,6 +915,150 @@ SWAS_OPENClient::DescribeInvocationsOutcomeCallable SWAS_OPENClient::describeInv
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
SWAS_OPENClient::DescribeMonitorDataOutcome SWAS_OPENClient::describeMonitorData(const DescribeMonitorDataRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeMonitorDataOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeMonitorDataOutcome(DescribeMonitorDataResult(outcome.result()));
|
||||
else
|
||||
return DescribeMonitorDataOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void SWAS_OPENClient::describeMonitorDataAsync(const DescribeMonitorDataRequest& request, const DescribeMonitorDataAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeMonitorData(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
SWAS_OPENClient::DescribeMonitorDataOutcomeCallable SWAS_OPENClient::describeMonitorDataCallable(const DescribeMonitorDataRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeMonitorDataOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeMonitorData(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
SWAS_OPENClient::DescribeSecurityAgentStatusOutcome SWAS_OPENClient::describeSecurityAgentStatus(const DescribeSecurityAgentStatusRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeSecurityAgentStatusOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeSecurityAgentStatusOutcome(DescribeSecurityAgentStatusResult(outcome.result()));
|
||||
else
|
||||
return DescribeSecurityAgentStatusOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void SWAS_OPENClient::describeSecurityAgentStatusAsync(const DescribeSecurityAgentStatusRequest& request, const DescribeSecurityAgentStatusAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeSecurityAgentStatus(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
SWAS_OPENClient::DescribeSecurityAgentStatusOutcomeCallable SWAS_OPENClient::describeSecurityAgentStatusCallable(const DescribeSecurityAgentStatusRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeSecurityAgentStatusOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeSecurityAgentStatus(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
SWAS_OPENClient::DisableFirewallRuleOutcome SWAS_OPENClient::disableFirewallRule(const DisableFirewallRuleRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DisableFirewallRuleOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DisableFirewallRuleOutcome(DisableFirewallRuleResult(outcome.result()));
|
||||
else
|
||||
return DisableFirewallRuleOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void SWAS_OPENClient::disableFirewallRuleAsync(const DisableFirewallRuleRequest& request, const DisableFirewallRuleAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, disableFirewallRule(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
SWAS_OPENClient::DisableFirewallRuleOutcomeCallable SWAS_OPENClient::disableFirewallRuleCallable(const DisableFirewallRuleRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DisableFirewallRuleOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->disableFirewallRule(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
SWAS_OPENClient::EnableFirewallRuleOutcome SWAS_OPENClient::enableFirewallRule(const EnableFirewallRuleRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return EnableFirewallRuleOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return EnableFirewallRuleOutcome(EnableFirewallRuleResult(outcome.result()));
|
||||
else
|
||||
return EnableFirewallRuleOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void SWAS_OPENClient::enableFirewallRuleAsync(const EnableFirewallRuleRequest& request, const EnableFirewallRuleAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, enableFirewallRule(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
SWAS_OPENClient::EnableFirewallRuleOutcomeCallable SWAS_OPENClient::enableFirewallRuleCallable(const EnableFirewallRuleRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<EnableFirewallRuleOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->enableFirewallRule(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
SWAS_OPENClient::InstallCloudAssistantOutcome SWAS_OPENClient::installCloudAssistant(const InstallCloudAssistantRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -663,6 +1095,78 @@ SWAS_OPENClient::InstallCloudAssistantOutcomeCallable SWAS_OPENClient::installCl
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
SWAS_OPENClient::InstallCloudMonitorAgentOutcome SWAS_OPENClient::installCloudMonitorAgent(const InstallCloudMonitorAgentRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return InstallCloudMonitorAgentOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return InstallCloudMonitorAgentOutcome(InstallCloudMonitorAgentResult(outcome.result()));
|
||||
else
|
||||
return InstallCloudMonitorAgentOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void SWAS_OPENClient::installCloudMonitorAgentAsync(const InstallCloudMonitorAgentRequest& request, const InstallCloudMonitorAgentAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, installCloudMonitorAgent(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
SWAS_OPENClient::InstallCloudMonitorAgentOutcomeCallable SWAS_OPENClient::installCloudMonitorAgentCallable(const InstallCloudMonitorAgentRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<InstallCloudMonitorAgentOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->installCloudMonitorAgent(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
SWAS_OPENClient::ListCustomImagesOutcome SWAS_OPENClient::listCustomImages(const ListCustomImagesRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ListCustomImagesOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ListCustomImagesOutcome(ListCustomImagesResult(outcome.result()));
|
||||
else
|
||||
return ListCustomImagesOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void SWAS_OPENClient::listCustomImagesAsync(const ListCustomImagesRequest& request, const ListCustomImagesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, listCustomImages(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
SWAS_OPENClient::ListCustomImagesOutcomeCallable SWAS_OPENClient::listCustomImagesCallable(const ListCustomImagesRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ListCustomImagesOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->listCustomImages(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
SWAS_OPENClient::ListDisksOutcome SWAS_OPENClient::listDisks(const ListDisksRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -807,6 +1311,42 @@ SWAS_OPENClient::ListInstancePlansModificationOutcomeCallable SWAS_OPENClient::l
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
SWAS_OPENClient::ListInstanceStatusOutcome SWAS_OPENClient::listInstanceStatus(const ListInstanceStatusRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ListInstanceStatusOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ListInstanceStatusOutcome(ListInstanceStatusResult(outcome.result()));
|
||||
else
|
||||
return ListInstanceStatusOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void SWAS_OPENClient::listInstanceStatusAsync(const ListInstanceStatusRequest& request, const ListInstanceStatusAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, listInstanceStatus(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
SWAS_OPENClient::ListInstanceStatusOutcomeCallable SWAS_OPENClient::listInstanceStatusCallable(const ListInstanceStatusRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ListInstanceStatusOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->listInstanceStatus(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
SWAS_OPENClient::ListInstancesOutcome SWAS_OPENClient::listInstances(const ListInstancesRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -1095,6 +1635,42 @@ SWAS_OPENClient::ModifyDatabaseInstanceParameterOutcomeCallable SWAS_OPENClient:
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
SWAS_OPENClient::ModifyFirewallRuleOutcome SWAS_OPENClient::modifyFirewallRule(const ModifyFirewallRuleRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ModifyFirewallRuleOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ModifyFirewallRuleOutcome(ModifyFirewallRuleResult(outcome.result()));
|
||||
else
|
||||
return ModifyFirewallRuleOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void SWAS_OPENClient::modifyFirewallRuleAsync(const ModifyFirewallRuleRequest& request, const ModifyFirewallRuleAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, modifyFirewallRule(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
SWAS_OPENClient::ModifyFirewallRuleOutcomeCallable SWAS_OPENClient::modifyFirewallRuleCallable(const ModifyFirewallRuleRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ModifyFirewallRuleOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->modifyFirewallRule(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
SWAS_OPENClient::ModifyImageShareStatusOutcome SWAS_OPENClient::modifyImageShareStatus(const ModifyImageShareStatusRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -1131,6 +1707,42 @@ SWAS_OPENClient::ModifyImageShareStatusOutcomeCallable SWAS_OPENClient::modifyIm
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
SWAS_OPENClient::ModifyInstanceVncPasswordOutcome SWAS_OPENClient::modifyInstanceVncPassword(const ModifyInstanceVncPasswordRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ModifyInstanceVncPasswordOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ModifyInstanceVncPasswordOutcome(ModifyInstanceVncPasswordResult(outcome.result()));
|
||||
else
|
||||
return ModifyInstanceVncPasswordOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void SWAS_OPENClient::modifyInstanceVncPasswordAsync(const ModifyInstanceVncPasswordRequest& request, const ModifyInstanceVncPasswordAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, modifyInstanceVncPassword(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
SWAS_OPENClient::ModifyInstanceVncPasswordOutcomeCallable SWAS_OPENClient::modifyInstanceVncPasswordCallable(const ModifyInstanceVncPasswordRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ModifyInstanceVncPasswordOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->modifyInstanceVncPassword(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
SWAS_OPENClient::RebootInstanceOutcome SWAS_OPENClient::rebootInstance(const RebootInstanceRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -1167,6 +1779,42 @@ SWAS_OPENClient::RebootInstanceOutcomeCallable SWAS_OPENClient::rebootInstanceCa
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
SWAS_OPENClient::RebootInstancesOutcome SWAS_OPENClient::rebootInstances(const RebootInstancesRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return RebootInstancesOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return RebootInstancesOutcome(RebootInstancesResult(outcome.result()));
|
||||
else
|
||||
return RebootInstancesOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void SWAS_OPENClient::rebootInstancesAsync(const RebootInstancesRequest& request, const RebootInstancesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, rebootInstances(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
SWAS_OPENClient::RebootInstancesOutcomeCallable SWAS_OPENClient::rebootInstancesCallable(const RebootInstancesRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<RebootInstancesOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->rebootInstances(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
SWAS_OPENClient::ReleasePublicConnectionOutcome SWAS_OPENClient::releasePublicConnection(const ReleasePublicConnectionRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -1491,6 +2139,42 @@ SWAS_OPENClient::StartInstanceOutcomeCallable SWAS_OPENClient::startInstanceCall
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
SWAS_OPENClient::StartInstancesOutcome SWAS_OPENClient::startInstances(const StartInstancesRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return StartInstancesOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return StartInstancesOutcome(StartInstancesResult(outcome.result()));
|
||||
else
|
||||
return StartInstancesOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void SWAS_OPENClient::startInstancesAsync(const StartInstancesRequest& request, const StartInstancesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, startInstances(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
SWAS_OPENClient::StartInstancesOutcomeCallable SWAS_OPENClient::startInstancesCallable(const StartInstancesRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<StartInstancesOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->startInstances(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
SWAS_OPENClient::StopDatabaseInstanceOutcome SWAS_OPENClient::stopDatabaseInstance(const StopDatabaseInstanceRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -1563,6 +2247,78 @@ SWAS_OPENClient::StopInstanceOutcomeCallable SWAS_OPENClient::stopInstanceCallab
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
SWAS_OPENClient::StopInstancesOutcome SWAS_OPENClient::stopInstances(const StopInstancesRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return StopInstancesOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return StopInstancesOutcome(StopInstancesResult(outcome.result()));
|
||||
else
|
||||
return StopInstancesOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void SWAS_OPENClient::stopInstancesAsync(const StopInstancesRequest& request, const StopInstancesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, stopInstances(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
SWAS_OPENClient::StopInstancesOutcomeCallable SWAS_OPENClient::stopInstancesCallable(const StopInstancesRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<StopInstancesOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->stopInstances(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
SWAS_OPENClient::UpdateDiskAttributeOutcome SWAS_OPENClient::updateDiskAttribute(const UpdateDiskAttributeRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return UpdateDiskAttributeOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return UpdateDiskAttributeOutcome(UpdateDiskAttributeResult(outcome.result()));
|
||||
else
|
||||
return UpdateDiskAttributeOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void SWAS_OPENClient::updateDiskAttributeAsync(const UpdateDiskAttributeRequest& request, const UpdateDiskAttributeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, updateDiskAttribute(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
SWAS_OPENClient::UpdateDiskAttributeOutcomeCallable SWAS_OPENClient::updateDiskAttributeCallable(const UpdateDiskAttributeRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<UpdateDiskAttributeOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->updateDiskAttribute(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
SWAS_OPENClient::UpdateInstanceAttributeOutcome SWAS_OPENClient::updateInstanceAttribute(const UpdateInstanceAttributeRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -1599,6 +2355,42 @@ SWAS_OPENClient::UpdateInstanceAttributeOutcomeCallable SWAS_OPENClient::updateI
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
SWAS_OPENClient::UpdateSnapshotAttributeOutcome SWAS_OPENClient::updateSnapshotAttribute(const UpdateSnapshotAttributeRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return UpdateSnapshotAttributeOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return UpdateSnapshotAttributeOutcome(UpdateSnapshotAttributeResult(outcome.result()));
|
||||
else
|
||||
return UpdateSnapshotAttributeOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void SWAS_OPENClient::updateSnapshotAttributeAsync(const UpdateSnapshotAttributeRequest& request, const UpdateSnapshotAttributeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, updateSnapshotAttribute(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
SWAS_OPENClient::UpdateSnapshotAttributeOutcomeCallable SWAS_OPENClient::updateSnapshotAttributeCallable(const UpdateSnapshotAttributeRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<UpdateSnapshotAttributeOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->updateSnapshotAttribute(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
SWAS_OPENClient::UpgradeInstanceOutcome SWAS_OPENClient::upgradeInstance(const UpgradeInstanceRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -1635,3 +2427,39 @@ SWAS_OPENClient::UpgradeInstanceOutcomeCallable SWAS_OPENClient::upgradeInstance
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
SWAS_OPENClient::UploadInstanceKeyPairOutcome SWAS_OPENClient::uploadInstanceKeyPair(const UploadInstanceKeyPairRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return UploadInstanceKeyPairOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return UploadInstanceKeyPairOutcome(UploadInstanceKeyPairResult(outcome.result()));
|
||||
else
|
||||
return UploadInstanceKeyPairOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void SWAS_OPENClient::uploadInstanceKeyPairAsync(const UploadInstanceKeyPairRequest& request, const UploadInstanceKeyPairAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, uploadInstanceKeyPair(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
SWAS_OPENClient::UploadInstanceKeyPairOutcomeCallable SWAS_OPENClient::uploadInstanceKeyPairCallable(const UploadInstanceKeyPairRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<UploadInstanceKeyPairOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->uploadInstanceKeyPair(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
|
||||
68
swas-open/src/model/CreateFirewallRulesRequest.cc
Normal file
68
swas-open/src/model/CreateFirewallRulesRequest.cc
Normal file
@@ -0,0 +1,68 @@
|
||||
/*
|
||||
* 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/CreateFirewallRulesRequest.h>
|
||||
|
||||
using AlibabaCloud::SWAS_OPEN::Model::CreateFirewallRulesRequest;
|
||||
|
||||
CreateFirewallRulesRequest::CreateFirewallRulesRequest()
|
||||
: RpcServiceRequest("swas-open", "2020-06-01", "CreateFirewallRules") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateFirewallRulesRequest::~CreateFirewallRulesRequest() {}
|
||||
|
||||
std::string CreateFirewallRulesRequest::getClientToken() const {
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
void CreateFirewallRulesRequest::setClientToken(const std::string &clientToken) {
|
||||
clientToken_ = clientToken;
|
||||
setParameter(std::string("ClientToken"), clientToken);
|
||||
}
|
||||
|
||||
std::string CreateFirewallRulesRequest::getInstanceId() const {
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void CreateFirewallRulesRequest::setInstanceId(const std::string &instanceId) {
|
||||
instanceId_ = instanceId;
|
||||
setParameter(std::string("InstanceId"), instanceId);
|
||||
}
|
||||
|
||||
std::string CreateFirewallRulesRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void CreateFirewallRulesRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
std::vector<CreateFirewallRulesRequest::FirewallRules> CreateFirewallRulesRequest::getFirewallRules() const {
|
||||
return firewallRules_;
|
||||
}
|
||||
|
||||
void CreateFirewallRulesRequest::setFirewallRules(const std::vector<CreateFirewallRulesRequest::FirewallRules> &firewallRules) {
|
||||
firewallRules_ = firewallRules;
|
||||
for(int dep1 = 0; dep1 != firewallRules.size(); dep1++) {
|
||||
setParameter(std::string("FirewallRules") + "." + std::to_string(dep1 + 1) + ".RuleProtocol", firewallRules[dep1].ruleProtocol);
|
||||
setParameter(std::string("FirewallRules") + "." + std::to_string(dep1 + 1) + ".Port", firewallRules[dep1].port);
|
||||
setParameter(std::string("FirewallRules") + "." + std::to_string(dep1 + 1) + ".SourceCidrIp", firewallRules[dep1].sourceCidrIp);
|
||||
setParameter(std::string("FirewallRules") + "." + std::to_string(dep1 + 1) + ".Remark", firewallRules[dep1].remark);
|
||||
}
|
||||
}
|
||||
|
||||
44
swas-open/src/model/CreateFirewallRulesResult.cc
Normal file
44
swas-open/src/model/CreateFirewallRulesResult.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/CreateFirewallRulesResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::SWAS_OPEN;
|
||||
using namespace AlibabaCloud::SWAS_OPEN::Model;
|
||||
|
||||
CreateFirewallRulesResult::CreateFirewallRulesResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateFirewallRulesResult::CreateFirewallRulesResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateFirewallRulesResult::~CreateFirewallRulesResult()
|
||||
{}
|
||||
|
||||
void CreateFirewallRulesResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
63
swas-open/src/model/CreateInstanceKeyPairRequest.cc
Normal file
63
swas-open/src/model/CreateInstanceKeyPairRequest.cc
Normal 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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/swas-open/model/CreateInstanceKeyPairRequest.h>
|
||||
|
||||
using AlibabaCloud::SWAS_OPEN::Model::CreateInstanceKeyPairRequest;
|
||||
|
||||
CreateInstanceKeyPairRequest::CreateInstanceKeyPairRequest()
|
||||
: RpcServiceRequest("swas-open", "2020-06-01", "CreateInstanceKeyPair") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateInstanceKeyPairRequest::~CreateInstanceKeyPairRequest() {}
|
||||
|
||||
std::string CreateInstanceKeyPairRequest::getClientToken() const {
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
void CreateInstanceKeyPairRequest::setClientToken(const std::string &clientToken) {
|
||||
clientToken_ = clientToken;
|
||||
setParameter(std::string("ClientToken"), clientToken);
|
||||
}
|
||||
|
||||
std::string CreateInstanceKeyPairRequest::getKeyPairName() const {
|
||||
return keyPairName_;
|
||||
}
|
||||
|
||||
void CreateInstanceKeyPairRequest::setKeyPairName(const std::string &keyPairName) {
|
||||
keyPairName_ = keyPairName;
|
||||
setParameter(std::string("KeyPairName"), keyPairName);
|
||||
}
|
||||
|
||||
std::string CreateInstanceKeyPairRequest::getInstanceId() const {
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void CreateInstanceKeyPairRequest::setInstanceId(const std::string &instanceId) {
|
||||
instanceId_ = instanceId;
|
||||
setParameter(std::string("InstanceId"), instanceId);
|
||||
}
|
||||
|
||||
std::string CreateInstanceKeyPairRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void CreateInstanceKeyPairRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
65
swas-open/src/model/CreateInstanceKeyPairResult.cc
Normal file
65
swas-open/src/model/CreateInstanceKeyPairResult.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/CreateInstanceKeyPairResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::SWAS_OPEN;
|
||||
using namespace AlibabaCloud::SWAS_OPEN::Model;
|
||||
|
||||
CreateInstanceKeyPairResult::CreateInstanceKeyPairResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateInstanceKeyPairResult::CreateInstanceKeyPairResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateInstanceKeyPairResult::~CreateInstanceKeyPairResult()
|
||||
{}
|
||||
|
||||
void CreateInstanceKeyPairResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["KeyPairName"].isNull())
|
||||
keyPairName_ = value["KeyPairName"].asString();
|
||||
if(!value["Fingerprint"].isNull())
|
||||
fingerprint_ = value["Fingerprint"].asString();
|
||||
if(!value["PrivateKey"].isNull())
|
||||
privateKey_ = value["PrivateKey"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CreateInstanceKeyPairResult::getKeyPairName()const
|
||||
{
|
||||
return keyPairName_;
|
||||
}
|
||||
|
||||
std::string CreateInstanceKeyPairResult::getFingerprint()const
|
||||
{
|
||||
return fingerprint_;
|
||||
}
|
||||
|
||||
std::string CreateInstanceKeyPairResult::getPrivateKey()const
|
||||
{
|
||||
return privateKey_;
|
||||
}
|
||||
|
||||
54
swas-open/src/model/DeleteInstanceKeyPairRequest.cc
Normal file
54
swas-open/src/model/DeleteInstanceKeyPairRequest.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/DeleteInstanceKeyPairRequest.h>
|
||||
|
||||
using AlibabaCloud::SWAS_OPEN::Model::DeleteInstanceKeyPairRequest;
|
||||
|
||||
DeleteInstanceKeyPairRequest::DeleteInstanceKeyPairRequest()
|
||||
: RpcServiceRequest("swas-open", "2020-06-01", "DeleteInstanceKeyPair") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteInstanceKeyPairRequest::~DeleteInstanceKeyPairRequest() {}
|
||||
|
||||
std::string DeleteInstanceKeyPairRequest::getClientToken() const {
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
void DeleteInstanceKeyPairRequest::setClientToken(const std::string &clientToken) {
|
||||
clientToken_ = clientToken;
|
||||
setParameter(std::string("ClientToken"), clientToken);
|
||||
}
|
||||
|
||||
std::string DeleteInstanceKeyPairRequest::getInstanceId() const {
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void DeleteInstanceKeyPairRequest::setInstanceId(const std::string &instanceId) {
|
||||
instanceId_ = instanceId;
|
||||
setParameter(std::string("InstanceId"), instanceId);
|
||||
}
|
||||
|
||||
std::string DeleteInstanceKeyPairRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DeleteInstanceKeyPairRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
44
swas-open/src/model/DeleteInstanceKeyPairResult.cc
Normal file
44
swas-open/src/model/DeleteInstanceKeyPairResult.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/DeleteInstanceKeyPairResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::SWAS_OPEN;
|
||||
using namespace AlibabaCloud::SWAS_OPEN::Model;
|
||||
|
||||
DeleteInstanceKeyPairResult::DeleteInstanceKeyPairResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteInstanceKeyPairResult::DeleteInstanceKeyPairResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteInstanceKeyPairResult::~DeleteInstanceKeyPairResult()
|
||||
{}
|
||||
|
||||
void DeleteInstanceKeyPairResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
54
swas-open/src/model/DeleteSnapshotsRequest.cc
Normal file
54
swas-open/src/model/DeleteSnapshotsRequest.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/DeleteSnapshotsRequest.h>
|
||||
|
||||
using AlibabaCloud::SWAS_OPEN::Model::DeleteSnapshotsRequest;
|
||||
|
||||
DeleteSnapshotsRequest::DeleteSnapshotsRequest()
|
||||
: RpcServiceRequest("swas-open", "2020-06-01", "DeleteSnapshots") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteSnapshotsRequest::~DeleteSnapshotsRequest() {}
|
||||
|
||||
std::string DeleteSnapshotsRequest::getClientToken() const {
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
void DeleteSnapshotsRequest::setClientToken(const std::string &clientToken) {
|
||||
clientToken_ = clientToken;
|
||||
setParameter(std::string("ClientToken"), clientToken);
|
||||
}
|
||||
|
||||
std::string DeleteSnapshotsRequest::getSnapshotIds() const {
|
||||
return snapshotIds_;
|
||||
}
|
||||
|
||||
void DeleteSnapshotsRequest::setSnapshotIds(const std::string &snapshotIds) {
|
||||
snapshotIds_ = snapshotIds;
|
||||
setParameter(std::string("SnapshotIds"), snapshotIds);
|
||||
}
|
||||
|
||||
std::string DeleteSnapshotsRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DeleteSnapshotsRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
44
swas-open/src/model/DeleteSnapshotsResult.cc
Normal file
44
swas-open/src/model/DeleteSnapshotsResult.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/DeleteSnapshotsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::SWAS_OPEN;
|
||||
using namespace AlibabaCloud::SWAS_OPEN::Model;
|
||||
|
||||
DeleteSnapshotsResult::DeleteSnapshotsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteSnapshotsResult::DeleteSnapshotsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteSnapshotsResult::~DeleteSnapshotsResult()
|
||||
{}
|
||||
|
||||
void DeleteSnapshotsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
@@ -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/DescribeCloudMonitorAgentStatusesRequest.h>
|
||||
|
||||
using AlibabaCloud::SWAS_OPEN::Model::DescribeCloudMonitorAgentStatusesRequest;
|
||||
|
||||
DescribeCloudMonitorAgentStatusesRequest::DescribeCloudMonitorAgentStatusesRequest()
|
||||
: RpcServiceRequest("swas-open", "2020-06-01", "DescribeCloudMonitorAgentStatuses") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeCloudMonitorAgentStatusesRequest::~DescribeCloudMonitorAgentStatusesRequest() {}
|
||||
|
||||
std::string DescribeCloudMonitorAgentStatusesRequest::getClientToken() const {
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
void DescribeCloudMonitorAgentStatusesRequest::setClientToken(const std::string &clientToken) {
|
||||
clientToken_ = clientToken;
|
||||
setParameter(std::string("ClientToken"), clientToken);
|
||||
}
|
||||
|
||||
std::string DescribeCloudMonitorAgentStatusesRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DescribeCloudMonitorAgentStatusesRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
std::string DescribeCloudMonitorAgentStatusesRequest::getInstanceIds() const {
|
||||
return instanceIds_;
|
||||
}
|
||||
|
||||
void DescribeCloudMonitorAgentStatusesRequest::setInstanceIds(const std::string &instanceIds) {
|
||||
instanceIds_ = instanceIds;
|
||||
setParameter(std::string("InstanceIds"), instanceIds);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,61 @@
|
||||
/*
|
||||
* 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/DescribeCloudMonitorAgentStatusesResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::SWAS_OPEN;
|
||||
using namespace AlibabaCloud::SWAS_OPEN::Model;
|
||||
|
||||
DescribeCloudMonitorAgentStatusesResult::DescribeCloudMonitorAgentStatusesResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeCloudMonitorAgentStatusesResult::DescribeCloudMonitorAgentStatusesResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeCloudMonitorAgentStatusesResult::~DescribeCloudMonitorAgentStatusesResult()
|
||||
{}
|
||||
|
||||
void DescribeCloudMonitorAgentStatusesResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allInstanceStatusListNode = value["InstanceStatusList"]["InstanceStatus"];
|
||||
for (auto valueInstanceStatusListInstanceStatus : allInstanceStatusListNode)
|
||||
{
|
||||
InstanceStatus instanceStatusListObject;
|
||||
if(!valueInstanceStatusListInstanceStatus["Status"].isNull())
|
||||
instanceStatusListObject.status = valueInstanceStatusListInstanceStatus["Status"].asString();
|
||||
if(!valueInstanceStatusListInstanceStatus["InstanceId"].isNull())
|
||||
instanceStatusListObject.instanceId = valueInstanceStatusListInstanceStatus["InstanceId"].asString();
|
||||
if(!valueInstanceStatusListInstanceStatus["AutoInstall"].isNull())
|
||||
instanceStatusListObject.autoInstall = valueInstanceStatusListInstanceStatus["AutoInstall"].asString() == "true";
|
||||
instanceStatusList_.push_back(instanceStatusListObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
std::vector<DescribeCloudMonitorAgentStatusesResult::InstanceStatus> DescribeCloudMonitorAgentStatusesResult::getInstanceStatusList()const
|
||||
{
|
||||
return instanceStatusList_;
|
||||
}
|
||||
|
||||
54
swas-open/src/model/DescribeInstanceKeyPairRequest.cc
Normal file
54
swas-open/src/model/DescribeInstanceKeyPairRequest.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/DescribeInstanceKeyPairRequest.h>
|
||||
|
||||
using AlibabaCloud::SWAS_OPEN::Model::DescribeInstanceKeyPairRequest;
|
||||
|
||||
DescribeInstanceKeyPairRequest::DescribeInstanceKeyPairRequest()
|
||||
: RpcServiceRequest("swas-open", "2020-06-01", "DescribeInstanceKeyPair") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeInstanceKeyPairRequest::~DescribeInstanceKeyPairRequest() {}
|
||||
|
||||
std::string DescribeInstanceKeyPairRequest::getClientToken() const {
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
void DescribeInstanceKeyPairRequest::setClientToken(const std::string &clientToken) {
|
||||
clientToken_ = clientToken;
|
||||
setParameter(std::string("ClientToken"), clientToken);
|
||||
}
|
||||
|
||||
std::string DescribeInstanceKeyPairRequest::getInstanceId() const {
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void DescribeInstanceKeyPairRequest::setInstanceId(const std::string &instanceId) {
|
||||
instanceId_ = instanceId;
|
||||
setParameter(std::string("InstanceId"), instanceId);
|
||||
}
|
||||
|
||||
std::string DescribeInstanceKeyPairRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DescribeInstanceKeyPairRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
58
swas-open/src/model/DescribeInstanceKeyPairResult.cc
Normal file
58
swas-open/src/model/DescribeInstanceKeyPairResult.cc
Normal file
@@ -0,0 +1,58 @@
|
||||
/*
|
||||
* 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/DescribeInstanceKeyPairResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::SWAS_OPEN;
|
||||
using namespace AlibabaCloud::SWAS_OPEN::Model;
|
||||
|
||||
DescribeInstanceKeyPairResult::DescribeInstanceKeyPairResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeInstanceKeyPairResult::DescribeInstanceKeyPairResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeInstanceKeyPairResult::~DescribeInstanceKeyPairResult()
|
||||
{}
|
||||
|
||||
void DescribeInstanceKeyPairResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["KeyPairName"].isNull())
|
||||
keyPairName_ = value["KeyPairName"].asString();
|
||||
if(!value["Fingerprint"].isNull())
|
||||
fingerprint_ = value["Fingerprint"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DescribeInstanceKeyPairResult::getKeyPairName()const
|
||||
{
|
||||
return keyPairName_;
|
||||
}
|
||||
|
||||
std::string DescribeInstanceKeyPairResult::getFingerprint()const
|
||||
{
|
||||
return fingerprint_;
|
||||
}
|
||||
|
||||
@@ -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/DescribeInstancePasswordsSettingRequest.h>
|
||||
|
||||
using AlibabaCloud::SWAS_OPEN::Model::DescribeInstancePasswordsSettingRequest;
|
||||
|
||||
DescribeInstancePasswordsSettingRequest::DescribeInstancePasswordsSettingRequest()
|
||||
: RpcServiceRequest("swas-open", "2020-06-01", "DescribeInstancePasswordsSetting") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeInstancePasswordsSettingRequest::~DescribeInstancePasswordsSettingRequest() {}
|
||||
|
||||
std::string DescribeInstancePasswordsSettingRequest::getClientToken() const {
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
void DescribeInstancePasswordsSettingRequest::setClientToken(const std::string &clientToken) {
|
||||
clientToken_ = clientToken;
|
||||
setParameter(std::string("ClientToken"), clientToken);
|
||||
}
|
||||
|
||||
std::string DescribeInstancePasswordsSettingRequest::getInstanceId() const {
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void DescribeInstancePasswordsSettingRequest::setInstanceId(const std::string &instanceId) {
|
||||
instanceId_ = instanceId;
|
||||
setParameter(std::string("InstanceId"), instanceId);
|
||||
}
|
||||
|
||||
std::string DescribeInstancePasswordsSettingRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DescribeInstancePasswordsSettingRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,58 @@
|
||||
/*
|
||||
* 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/DescribeInstancePasswordsSettingResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::SWAS_OPEN;
|
||||
using namespace AlibabaCloud::SWAS_OPEN::Model;
|
||||
|
||||
DescribeInstancePasswordsSettingResult::DescribeInstancePasswordsSettingResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeInstancePasswordsSettingResult::DescribeInstancePasswordsSettingResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeInstancePasswordsSettingResult::~DescribeInstancePasswordsSettingResult()
|
||||
{}
|
||||
|
||||
void DescribeInstancePasswordsSettingResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["VncPasswordSetting"].isNull())
|
||||
vncPasswordSetting_ = value["VncPasswordSetting"].asString() == "true";
|
||||
if(!value["InstancePasswordSetting"].isNull())
|
||||
instancePasswordSetting_ = value["InstancePasswordSetting"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
bool DescribeInstancePasswordsSettingResult::getVncPasswordSetting()const
|
||||
{
|
||||
return vncPasswordSetting_;
|
||||
}
|
||||
|
||||
bool DescribeInstancePasswordsSettingResult::getInstancePasswordSetting()const
|
||||
{
|
||||
return instancePasswordSetting_;
|
||||
}
|
||||
|
||||
54
swas-open/src/model/DescribeInstanceVncUrlRequest.cc
Normal file
54
swas-open/src/model/DescribeInstanceVncUrlRequest.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/DescribeInstanceVncUrlRequest.h>
|
||||
|
||||
using AlibabaCloud::SWAS_OPEN::Model::DescribeInstanceVncUrlRequest;
|
||||
|
||||
DescribeInstanceVncUrlRequest::DescribeInstanceVncUrlRequest()
|
||||
: RpcServiceRequest("swas-open", "2020-06-01", "DescribeInstanceVncUrl") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeInstanceVncUrlRequest::~DescribeInstanceVncUrlRequest() {}
|
||||
|
||||
std::string DescribeInstanceVncUrlRequest::getClientToken() const {
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
void DescribeInstanceVncUrlRequest::setClientToken(const std::string &clientToken) {
|
||||
clientToken_ = clientToken;
|
||||
setParameter(std::string("ClientToken"), clientToken);
|
||||
}
|
||||
|
||||
std::string DescribeInstanceVncUrlRequest::getInstanceId() const {
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void DescribeInstanceVncUrlRequest::setInstanceId(const std::string &instanceId) {
|
||||
instanceId_ = instanceId;
|
||||
setParameter(std::string("InstanceId"), instanceId);
|
||||
}
|
||||
|
||||
std::string DescribeInstanceVncUrlRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DescribeInstanceVncUrlRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
51
swas-open/src/model/DescribeInstanceVncUrlResult.cc
Normal file
51
swas-open/src/model/DescribeInstanceVncUrlResult.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/swas-open/model/DescribeInstanceVncUrlResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::SWAS_OPEN;
|
||||
using namespace AlibabaCloud::SWAS_OPEN::Model;
|
||||
|
||||
DescribeInstanceVncUrlResult::DescribeInstanceVncUrlResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeInstanceVncUrlResult::DescribeInstanceVncUrlResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeInstanceVncUrlResult::~DescribeInstanceVncUrlResult()
|
||||
{}
|
||||
|
||||
void DescribeInstanceVncUrlResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["VncUrl"].isNull())
|
||||
vncUrl_ = value["VncUrl"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DescribeInstanceVncUrlResult::getVncUrl()const
|
||||
{
|
||||
return vncUrl_;
|
||||
}
|
||||
|
||||
108
swas-open/src/model/DescribeMonitorDataRequest.cc
Normal file
108
swas-open/src/model/DescribeMonitorDataRequest.cc
Normal file
@@ -0,0 +1,108 @@
|
||||
/*
|
||||
* 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/DescribeMonitorDataRequest.h>
|
||||
|
||||
using AlibabaCloud::SWAS_OPEN::Model::DescribeMonitorDataRequest;
|
||||
|
||||
DescribeMonitorDataRequest::DescribeMonitorDataRequest()
|
||||
: RpcServiceRequest("swas-open", "2020-06-01", "DescribeMonitorData") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeMonitorDataRequest::~DescribeMonitorDataRequest() {}
|
||||
|
||||
std::string DescribeMonitorDataRequest::getClientToken() const {
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
void DescribeMonitorDataRequest::setClientToken(const std::string &clientToken) {
|
||||
clientToken_ = clientToken;
|
||||
setParameter(std::string("ClientToken"), clientToken);
|
||||
}
|
||||
|
||||
std::string DescribeMonitorDataRequest::getStartTime() const {
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
void DescribeMonitorDataRequest::setStartTime(const std::string &startTime) {
|
||||
startTime_ = startTime;
|
||||
setParameter(std::string("StartTime"), startTime);
|
||||
}
|
||||
|
||||
std::string DescribeMonitorDataRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DescribeMonitorDataRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
std::string DescribeMonitorDataRequest::getNextToken() const {
|
||||
return nextToken_;
|
||||
}
|
||||
|
||||
void DescribeMonitorDataRequest::setNextToken(const std::string &nextToken) {
|
||||
nextToken_ = nextToken;
|
||||
setParameter(std::string("NextToken"), nextToken);
|
||||
}
|
||||
|
||||
std::string DescribeMonitorDataRequest::getMetricName() const {
|
||||
return metricName_;
|
||||
}
|
||||
|
||||
void DescribeMonitorDataRequest::setMetricName(const std::string &metricName) {
|
||||
metricName_ = metricName;
|
||||
setParameter(std::string("MetricName"), metricName);
|
||||
}
|
||||
|
||||
std::string DescribeMonitorDataRequest::getPeriod() const {
|
||||
return period_;
|
||||
}
|
||||
|
||||
void DescribeMonitorDataRequest::setPeriod(const std::string &period) {
|
||||
period_ = period;
|
||||
setParameter(std::string("Period"), period);
|
||||
}
|
||||
|
||||
std::string DescribeMonitorDataRequest::getLength() const {
|
||||
return length_;
|
||||
}
|
||||
|
||||
void DescribeMonitorDataRequest::setLength(const std::string &length) {
|
||||
length_ = length;
|
||||
setParameter(std::string("Length"), length);
|
||||
}
|
||||
|
||||
std::string DescribeMonitorDataRequest::getEndTime() const {
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
void DescribeMonitorDataRequest::setEndTime(const std::string &endTime) {
|
||||
endTime_ = endTime;
|
||||
setParameter(std::string("EndTime"), endTime);
|
||||
}
|
||||
|
||||
std::string DescribeMonitorDataRequest::getInstanceId() const {
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void DescribeMonitorDataRequest::setInstanceId(const std::string &instanceId) {
|
||||
instanceId_ = instanceId;
|
||||
setParameter(std::string("InstanceId"), instanceId);
|
||||
}
|
||||
|
||||
65
swas-open/src/model/DescribeMonitorDataResult.cc
Normal file
65
swas-open/src/model/DescribeMonitorDataResult.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/DescribeMonitorDataResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::SWAS_OPEN;
|
||||
using namespace AlibabaCloud::SWAS_OPEN::Model;
|
||||
|
||||
DescribeMonitorDataResult::DescribeMonitorDataResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeMonitorDataResult::DescribeMonitorDataResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeMonitorDataResult::~DescribeMonitorDataResult()
|
||||
{}
|
||||
|
||||
void DescribeMonitorDataResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Datapoints"].isNull())
|
||||
datapoints_ = value["Datapoints"].asString();
|
||||
if(!value["Period"].isNull())
|
||||
period_ = value["Period"].asString();
|
||||
if(!value["NextToken"].isNull())
|
||||
nextToken_ = value["NextToken"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DescribeMonitorDataResult::getNextToken()const
|
||||
{
|
||||
return nextToken_;
|
||||
}
|
||||
|
||||
std::string DescribeMonitorDataResult::getPeriod()const
|
||||
{
|
||||
return period_;
|
||||
}
|
||||
|
||||
std::string DescribeMonitorDataResult::getDatapoints()const
|
||||
{
|
||||
return datapoints_;
|
||||
}
|
||||
|
||||
54
swas-open/src/model/DescribeSecurityAgentStatusRequest.cc
Normal file
54
swas-open/src/model/DescribeSecurityAgentStatusRequest.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/DescribeSecurityAgentStatusRequest.h>
|
||||
|
||||
using AlibabaCloud::SWAS_OPEN::Model::DescribeSecurityAgentStatusRequest;
|
||||
|
||||
DescribeSecurityAgentStatusRequest::DescribeSecurityAgentStatusRequest()
|
||||
: RpcServiceRequest("swas-open", "2020-06-01", "DescribeSecurityAgentStatus") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeSecurityAgentStatusRequest::~DescribeSecurityAgentStatusRequest() {}
|
||||
|
||||
std::string DescribeSecurityAgentStatusRequest::getClientToken() const {
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
void DescribeSecurityAgentStatusRequest::setClientToken(const std::string &clientToken) {
|
||||
clientToken_ = clientToken;
|
||||
setParameter(std::string("ClientToken"), clientToken);
|
||||
}
|
||||
|
||||
std::string DescribeSecurityAgentStatusRequest::getInstanceId() const {
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void DescribeSecurityAgentStatusRequest::setInstanceId(const std::string &instanceId) {
|
||||
instanceId_ = instanceId;
|
||||
setParameter(std::string("InstanceId"), instanceId);
|
||||
}
|
||||
|
||||
std::string DescribeSecurityAgentStatusRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DescribeSecurityAgentStatusRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
51
swas-open/src/model/DescribeSecurityAgentStatusResult.cc
Normal file
51
swas-open/src/model/DescribeSecurityAgentStatusResult.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/swas-open/model/DescribeSecurityAgentStatusResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::SWAS_OPEN;
|
||||
using namespace AlibabaCloud::SWAS_OPEN::Model;
|
||||
|
||||
DescribeSecurityAgentStatusResult::DescribeSecurityAgentStatusResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeSecurityAgentStatusResult::DescribeSecurityAgentStatusResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeSecurityAgentStatusResult::~DescribeSecurityAgentStatusResult()
|
||||
{}
|
||||
|
||||
void DescribeSecurityAgentStatusResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["ClientStatus"].isNull())
|
||||
clientStatus_ = value["ClientStatus"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DescribeSecurityAgentStatusResult::getClientStatus()const
|
||||
{
|
||||
return clientStatus_;
|
||||
}
|
||||
|
||||
72
swas-open/src/model/DisableFirewallRuleRequest.cc
Normal file
72
swas-open/src/model/DisableFirewallRuleRequest.cc
Normal file
@@ -0,0 +1,72 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/swas-open/model/DisableFirewallRuleRequest.h>
|
||||
|
||||
using AlibabaCloud::SWAS_OPEN::Model::DisableFirewallRuleRequest;
|
||||
|
||||
DisableFirewallRuleRequest::DisableFirewallRuleRequest()
|
||||
: RpcServiceRequest("swas-open", "2020-06-01", "DisableFirewallRule") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DisableFirewallRuleRequest::~DisableFirewallRuleRequest() {}
|
||||
|
||||
std::string DisableFirewallRuleRequest::getClientToken() const {
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
void DisableFirewallRuleRequest::setClientToken(const std::string &clientToken) {
|
||||
clientToken_ = clientToken;
|
||||
setParameter(std::string("ClientToken"), clientToken);
|
||||
}
|
||||
|
||||
std::string DisableFirewallRuleRequest::getRemark() const {
|
||||
return remark_;
|
||||
}
|
||||
|
||||
void DisableFirewallRuleRequest::setRemark(const std::string &remark) {
|
||||
remark_ = remark;
|
||||
setParameter(std::string("Remark"), remark);
|
||||
}
|
||||
|
||||
std::string DisableFirewallRuleRequest::getInstanceId() const {
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void DisableFirewallRuleRequest::setInstanceId(const std::string &instanceId) {
|
||||
instanceId_ = instanceId;
|
||||
setParameter(std::string("InstanceId"), instanceId);
|
||||
}
|
||||
|
||||
std::string DisableFirewallRuleRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DisableFirewallRuleRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
std::string DisableFirewallRuleRequest::getRuleId() const {
|
||||
return ruleId_;
|
||||
}
|
||||
|
||||
void DisableFirewallRuleRequest::setRuleId(const std::string &ruleId) {
|
||||
ruleId_ = ruleId;
|
||||
setParameter(std::string("RuleId"), ruleId);
|
||||
}
|
||||
|
||||
44
swas-open/src/model/DisableFirewallRuleResult.cc
Normal file
44
swas-open/src/model/DisableFirewallRuleResult.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/DisableFirewallRuleResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::SWAS_OPEN;
|
||||
using namespace AlibabaCloud::SWAS_OPEN::Model;
|
||||
|
||||
DisableFirewallRuleResult::DisableFirewallRuleResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DisableFirewallRuleResult::DisableFirewallRuleResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DisableFirewallRuleResult::~DisableFirewallRuleResult()
|
||||
{}
|
||||
|
||||
void DisableFirewallRuleResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
81
swas-open/src/model/EnableFirewallRuleRequest.cc
Normal file
81
swas-open/src/model/EnableFirewallRuleRequest.cc
Normal file
@@ -0,0 +1,81 @@
|
||||
/*
|
||||
* 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/EnableFirewallRuleRequest.h>
|
||||
|
||||
using AlibabaCloud::SWAS_OPEN::Model::EnableFirewallRuleRequest;
|
||||
|
||||
EnableFirewallRuleRequest::EnableFirewallRuleRequest()
|
||||
: RpcServiceRequest("swas-open", "2020-06-01", "EnableFirewallRule") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
EnableFirewallRuleRequest::~EnableFirewallRuleRequest() {}
|
||||
|
||||
std::string EnableFirewallRuleRequest::getClientToken() const {
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
void EnableFirewallRuleRequest::setClientToken(const std::string &clientToken) {
|
||||
clientToken_ = clientToken;
|
||||
setParameter(std::string("ClientToken"), clientToken);
|
||||
}
|
||||
|
||||
std::string EnableFirewallRuleRequest::getSourceCidrIp() const {
|
||||
return sourceCidrIp_;
|
||||
}
|
||||
|
||||
void EnableFirewallRuleRequest::setSourceCidrIp(const std::string &sourceCidrIp) {
|
||||
sourceCidrIp_ = sourceCidrIp;
|
||||
setParameter(std::string("SourceCidrIp"), sourceCidrIp);
|
||||
}
|
||||
|
||||
std::string EnableFirewallRuleRequest::getRemark() const {
|
||||
return remark_;
|
||||
}
|
||||
|
||||
void EnableFirewallRuleRequest::setRemark(const std::string &remark) {
|
||||
remark_ = remark;
|
||||
setParameter(std::string("Remark"), remark);
|
||||
}
|
||||
|
||||
std::string EnableFirewallRuleRequest::getInstanceId() const {
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void EnableFirewallRuleRequest::setInstanceId(const std::string &instanceId) {
|
||||
instanceId_ = instanceId;
|
||||
setParameter(std::string("InstanceId"), instanceId);
|
||||
}
|
||||
|
||||
std::string EnableFirewallRuleRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void EnableFirewallRuleRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
std::string EnableFirewallRuleRequest::getRuleId() const {
|
||||
return ruleId_;
|
||||
}
|
||||
|
||||
void EnableFirewallRuleRequest::setRuleId(const std::string &ruleId) {
|
||||
ruleId_ = ruleId;
|
||||
setParameter(std::string("RuleId"), ruleId);
|
||||
}
|
||||
|
||||
44
swas-open/src/model/EnableFirewallRuleResult.cc
Normal file
44
swas-open/src/model/EnableFirewallRuleResult.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/EnableFirewallRuleResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::SWAS_OPEN;
|
||||
using namespace AlibabaCloud::SWAS_OPEN::Model;
|
||||
|
||||
EnableFirewallRuleResult::EnableFirewallRuleResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
EnableFirewallRuleResult::EnableFirewallRuleResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
EnableFirewallRuleResult::~EnableFirewallRuleResult()
|
||||
{}
|
||||
|
||||
void EnableFirewallRuleResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
63
swas-open/src/model/InstallCloudMonitorAgentRequest.cc
Normal file
63
swas-open/src/model/InstallCloudMonitorAgentRequest.cc
Normal 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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/swas-open/model/InstallCloudMonitorAgentRequest.h>
|
||||
|
||||
using AlibabaCloud::SWAS_OPEN::Model::InstallCloudMonitorAgentRequest;
|
||||
|
||||
InstallCloudMonitorAgentRequest::InstallCloudMonitorAgentRequest()
|
||||
: RpcServiceRequest("swas-open", "2020-06-01", "InstallCloudMonitorAgent") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
InstallCloudMonitorAgentRequest::~InstallCloudMonitorAgentRequest() {}
|
||||
|
||||
std::string InstallCloudMonitorAgentRequest::getClientToken() const {
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
void InstallCloudMonitorAgentRequest::setClientToken(const std::string &clientToken) {
|
||||
clientToken_ = clientToken;
|
||||
setParameter(std::string("ClientToken"), clientToken);
|
||||
}
|
||||
|
||||
std::string InstallCloudMonitorAgentRequest::getInstanceId() const {
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void InstallCloudMonitorAgentRequest::setInstanceId(const std::string &instanceId) {
|
||||
instanceId_ = instanceId;
|
||||
setParameter(std::string("InstanceId"), instanceId);
|
||||
}
|
||||
|
||||
std::string InstallCloudMonitorAgentRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void InstallCloudMonitorAgentRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
bool InstallCloudMonitorAgentRequest::getForce() const {
|
||||
return force_;
|
||||
}
|
||||
|
||||
void InstallCloudMonitorAgentRequest::setForce(bool force) {
|
||||
force_ = force;
|
||||
setParameter(std::string("Force"), force ? "true" : "false");
|
||||
}
|
||||
|
||||
44
swas-open/src/model/InstallCloudMonitorAgentResult.cc
Normal file
44
swas-open/src/model/InstallCloudMonitorAgentResult.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/InstallCloudMonitorAgentResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::SWAS_OPEN;
|
||||
using namespace AlibabaCloud::SWAS_OPEN::Model;
|
||||
|
||||
InstallCloudMonitorAgentResult::InstallCloudMonitorAgentResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
InstallCloudMonitorAgentResult::InstallCloudMonitorAgentResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
InstallCloudMonitorAgentResult::~InstallCloudMonitorAgentResult()
|
||||
{}
|
||||
|
||||
void InstallCloudMonitorAgentResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
99
swas-open/src/model/ListCustomImagesRequest.cc
Normal file
99
swas-open/src/model/ListCustomImagesRequest.cc
Normal file
@@ -0,0 +1,99 @@
|
||||
/*
|
||||
* 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/ListCustomImagesRequest.h>
|
||||
|
||||
using AlibabaCloud::SWAS_OPEN::Model::ListCustomImagesRequest;
|
||||
|
||||
ListCustomImagesRequest::ListCustomImagesRequest()
|
||||
: RpcServiceRequest("swas-open", "2020-06-01", "ListCustomImages") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ListCustomImagesRequest::~ListCustomImagesRequest() {}
|
||||
|
||||
std::string ListCustomImagesRequest::getSystemSnapshotId() const {
|
||||
return systemSnapshotId_;
|
||||
}
|
||||
|
||||
void ListCustomImagesRequest::setSystemSnapshotId(const std::string &systemSnapshotId) {
|
||||
systemSnapshotId_ = systemSnapshotId;
|
||||
setParameter(std::string("SystemSnapshotId"), systemSnapshotId);
|
||||
}
|
||||
|
||||
std::string ListCustomImagesRequest::getDataSnapshotId() const {
|
||||
return dataSnapshotId_;
|
||||
}
|
||||
|
||||
void ListCustomImagesRequest::setDataSnapshotId(const std::string &dataSnapshotId) {
|
||||
dataSnapshotId_ = dataSnapshotId;
|
||||
setParameter(std::string("DataSnapshotId"), dataSnapshotId);
|
||||
}
|
||||
|
||||
std::string ListCustomImagesRequest::getClientToken() const {
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
void ListCustomImagesRequest::setClientToken(const std::string &clientToken) {
|
||||
clientToken_ = clientToken;
|
||||
setParameter(std::string("ClientToken"), clientToken);
|
||||
}
|
||||
|
||||
std::string ListCustomImagesRequest::getImageNames() const {
|
||||
return imageNames_;
|
||||
}
|
||||
|
||||
void ListCustomImagesRequest::setImageNames(const std::string &imageNames) {
|
||||
imageNames_ = imageNames;
|
||||
setParameter(std::string("ImageNames"), imageNames);
|
||||
}
|
||||
|
||||
int ListCustomImagesRequest::getPageNumber() const {
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
void ListCustomImagesRequest::setPageNumber(int pageNumber) {
|
||||
pageNumber_ = pageNumber;
|
||||
setParameter(std::string("PageNumber"), std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
std::string ListCustomImagesRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void ListCustomImagesRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
int ListCustomImagesRequest::getPageSize() const {
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void ListCustomImagesRequest::setPageSize(int pageSize) {
|
||||
pageSize_ = pageSize;
|
||||
setParameter(std::string("PageSize"), std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string ListCustomImagesRequest::getImageIds() const {
|
||||
return imageIds_;
|
||||
}
|
||||
|
||||
void ListCustomImagesRequest::setImageIds(const std::string &imageIds) {
|
||||
imageIds_ = imageIds;
|
||||
setParameter(std::string("ImageIds"), imageIds);
|
||||
}
|
||||
|
||||
102
swas-open/src/model/ListCustomImagesResult.cc
Normal file
102
swas-open/src/model/ListCustomImagesResult.cc
Normal file
@@ -0,0 +1,102 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/swas-open/model/ListCustomImagesResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::SWAS_OPEN;
|
||||
using namespace AlibabaCloud::SWAS_OPEN::Model;
|
||||
|
||||
ListCustomImagesResult::ListCustomImagesResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListCustomImagesResult::ListCustomImagesResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListCustomImagesResult::~ListCustomImagesResult()
|
||||
{}
|
||||
|
||||
void ListCustomImagesResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allCustomImagesNode = value["CustomImages"]["CustomImage"];
|
||||
for (auto valueCustomImagesCustomImage : allCustomImagesNode)
|
||||
{
|
||||
CustomImage customImagesObject;
|
||||
if(!valueCustomImagesCustomImage["CreationTime"].isNull())
|
||||
customImagesObject.creationTime = valueCustomImagesCustomImage["CreationTime"].asString();
|
||||
if(!valueCustomImagesCustomImage["DataSnapshotName"].isNull())
|
||||
customImagesObject.dataSnapshotName = valueCustomImagesCustomImage["DataSnapshotName"].asString();
|
||||
if(!valueCustomImagesCustomImage["SystemSnapshotId"].isNull())
|
||||
customImagesObject.systemSnapshotId = valueCustomImagesCustomImage["SystemSnapshotId"].asString();
|
||||
if(!valueCustomImagesCustomImage["InShare"].isNull())
|
||||
customImagesObject.inShare = valueCustomImagesCustomImage["InShare"].asString() == "true";
|
||||
if(!valueCustomImagesCustomImage["InstanceId"].isNull())
|
||||
customImagesObject.instanceId = valueCustomImagesCustomImage["InstanceId"].asString();
|
||||
if(!valueCustomImagesCustomImage["DataSnapshotId"].isNull())
|
||||
customImagesObject.dataSnapshotId = valueCustomImagesCustomImage["DataSnapshotId"].asString();
|
||||
if(!valueCustomImagesCustomImage["RegionId"].isNull())
|
||||
customImagesObject.regionId = valueCustomImagesCustomImage["RegionId"].asString();
|
||||
if(!valueCustomImagesCustomImage["SystemSnapshotName"].isNull())
|
||||
customImagesObject.systemSnapshotName = valueCustomImagesCustomImage["SystemSnapshotName"].asString();
|
||||
if(!valueCustomImagesCustomImage["Description"].isNull())
|
||||
customImagesObject.description = valueCustomImagesCustomImage["Description"].asString();
|
||||
if(!valueCustomImagesCustomImage["Name"].isNull())
|
||||
customImagesObject.name = valueCustomImagesCustomImage["Name"].asString();
|
||||
if(!valueCustomImagesCustomImage["ImageId"].isNull())
|
||||
customImagesObject.imageId = valueCustomImagesCustomImage["ImageId"].asString();
|
||||
if(!valueCustomImagesCustomImage["Status"].isNull())
|
||||
customImagesObject.status = valueCustomImagesCustomImage["Status"].asString();
|
||||
if(!valueCustomImagesCustomImage["InstanceName"].isNull())
|
||||
customImagesObject.instanceName = valueCustomImagesCustomImage["InstanceName"].asString();
|
||||
customImages_.push_back(customImagesObject);
|
||||
}
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = value["TotalCount"].asString();
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = value["PageSize"].asString();
|
||||
if(!value["PageNumber"].isNull())
|
||||
pageNumber_ = value["PageNumber"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string ListCustomImagesResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
std::vector<ListCustomImagesResult::CustomImage> ListCustomImagesResult::getCustomImages()const
|
||||
{
|
||||
return customImages_;
|
||||
}
|
||||
|
||||
std::string ListCustomImagesResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
std::string ListCustomImagesResult::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
@@ -25,6 +25,15 @@ ListDisksRequest::ListDisksRequest()
|
||||
|
||||
ListDisksRequest::~ListDisksRequest() {}
|
||||
|
||||
std::string ListDisksRequest::getDiskType() const {
|
||||
return diskType_;
|
||||
}
|
||||
|
||||
void ListDisksRequest::setDiskType(const std::string &diskType) {
|
||||
diskType_ = diskType;
|
||||
setParameter(std::string("DiskType"), diskType);
|
||||
}
|
||||
|
||||
int ListDisksRequest::getPageNumber() const {
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
@@ -65,6 +65,10 @@ void ListDisksResult::parse(const std::string &payload)
|
||||
disksObject.instanceId = valueDisksDisk["InstanceId"].asString();
|
||||
if(!valueDisksDisk["RegionId"].isNull())
|
||||
disksObject.regionId = valueDisksDisk["RegionId"].asString();
|
||||
if(!valueDisksDisk["Remark"].isNull())
|
||||
disksObject.remark = valueDisksDisk["Remark"].asString();
|
||||
if(!valueDisksDisk["InstanceName"].isNull())
|
||||
disksObject.instanceName = valueDisksDisk["InstanceName"].asString();
|
||||
disks_.push_back(disksObject);
|
||||
}
|
||||
if(!value["TotalCount"].isNull())
|
||||
|
||||
@@ -51,6 +51,10 @@ void ListFirewallRulesResult::parse(const std::string &payload)
|
||||
firewallRulesObject.ruleId = valueFirewallRulesFirewallRule["RuleId"].asString();
|
||||
if(!valueFirewallRulesFirewallRule["RuleProtocol"].isNull())
|
||||
firewallRulesObject.ruleProtocol = valueFirewallRulesFirewallRule["RuleProtocol"].asString();
|
||||
if(!valueFirewallRulesFirewallRule["Policy"].isNull())
|
||||
firewallRulesObject.policy = valueFirewallRulesFirewallRule["Policy"].asString();
|
||||
if(!valueFirewallRulesFirewallRule["SourceCidrIp"].isNull())
|
||||
firewallRulesObject.sourceCidrIp = valueFirewallRulesFirewallRule["SourceCidrIp"].asString();
|
||||
firewallRules_.push_back(firewallRulesObject);
|
||||
}
|
||||
if(!value["TotalCount"].isNull())
|
||||
|
||||
63
swas-open/src/model/ListInstanceStatusRequest.cc
Normal file
63
swas-open/src/model/ListInstanceStatusRequest.cc
Normal 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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/swas-open/model/ListInstanceStatusRequest.h>
|
||||
|
||||
using AlibabaCloud::SWAS_OPEN::Model::ListInstanceStatusRequest;
|
||||
|
||||
ListInstanceStatusRequest::ListInstanceStatusRequest()
|
||||
: RpcServiceRequest("swas-open", "2020-06-01", "ListInstanceStatus") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ListInstanceStatusRequest::~ListInstanceStatusRequest() {}
|
||||
|
||||
int ListInstanceStatusRequest::getPageNumber() const {
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
void ListInstanceStatusRequest::setPageNumber(int pageNumber) {
|
||||
pageNumber_ = pageNumber;
|
||||
setParameter(std::string("PageNumber"), std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
std::string ListInstanceStatusRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void ListInstanceStatusRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
std::string ListInstanceStatusRequest::getInstanceIds() const {
|
||||
return instanceIds_;
|
||||
}
|
||||
|
||||
void ListInstanceStatusRequest::setInstanceIds(const std::string &instanceIds) {
|
||||
instanceIds_ = instanceIds;
|
||||
setParameter(std::string("InstanceIds"), instanceIds);
|
||||
}
|
||||
|
||||
int ListInstanceStatusRequest::getPageSize() const {
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void ListInstanceStatusRequest::setPageSize(int pageSize) {
|
||||
pageSize_ = pageSize;
|
||||
setParameter(std::string("PageSize"), std::to_string(pageSize));
|
||||
}
|
||||
|
||||
80
swas-open/src/model/ListInstanceStatusResult.cc
Normal file
80
swas-open/src/model/ListInstanceStatusResult.cc
Normal file
@@ -0,0 +1,80 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/swas-open/model/ListInstanceStatusResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::SWAS_OPEN;
|
||||
using namespace AlibabaCloud::SWAS_OPEN::Model;
|
||||
|
||||
ListInstanceStatusResult::ListInstanceStatusResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListInstanceStatusResult::ListInstanceStatusResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListInstanceStatusResult::~ListInstanceStatusResult()
|
||||
{}
|
||||
|
||||
void ListInstanceStatusResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allInstanceStatusesNode = value["InstanceStatuses"]["InstanceStatuse"];
|
||||
for (auto valueInstanceStatusesInstanceStatuse : allInstanceStatusesNode)
|
||||
{
|
||||
InstanceStatuse instanceStatusesObject;
|
||||
if(!valueInstanceStatusesInstanceStatuse["Status"].isNull())
|
||||
instanceStatusesObject.status = valueInstanceStatusesInstanceStatuse["Status"].asString();
|
||||
if(!valueInstanceStatusesInstanceStatuse["InstanceId"].isNull())
|
||||
instanceStatusesObject.instanceId = valueInstanceStatusesInstanceStatuse["InstanceId"].asString();
|
||||
instanceStatuses_.push_back(instanceStatusesObject);
|
||||
}
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stoi(value["PageSize"].asString());
|
||||
if(!value["PageNumber"].isNull())
|
||||
pageNumber_ = std::stoi(value["PageNumber"].asString());
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stoi(value["TotalCount"].asString());
|
||||
|
||||
}
|
||||
|
||||
int ListInstanceStatusResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
int ListInstanceStatusResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
int ListInstanceStatusResult::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
std::vector<ListInstanceStatusResult::InstanceStatuse> ListInstanceStatusResult::getInstanceStatuses()const
|
||||
{
|
||||
return instanceStatuses_;
|
||||
}
|
||||
|
||||
@@ -69,6 +69,40 @@ void ListInstancesResult::parse(const std::string &payload)
|
||||
instancesObject.ddosStatus = valueInstancesInstance["DdosStatus"].asString();
|
||||
if(!valueInstancesInstance["ImageId"].isNull())
|
||||
instancesObject.imageId = valueInstancesInstance["ImageId"].asString();
|
||||
if(!valueInstancesInstance["DisableReason"].isNull())
|
||||
instancesObject.disableReason = valueInstancesInstance["DisableReason"].asString();
|
||||
if(!valueInstancesInstance["Combination"].isNull())
|
||||
instancesObject.combination = valueInstancesInstance["Combination"].asString() == "true";
|
||||
if(!valueInstancesInstance["CombinationInstanceId"].isNull())
|
||||
instancesObject.combinationInstanceId = valueInstancesInstance["CombinationInstanceId"].asString();
|
||||
if(!valueInstancesInstance["Uuid"].isNull())
|
||||
instancesObject.uuid = valueInstancesInstance["Uuid"].asString();
|
||||
auto resourceSpecNode = value["ResourceSpec"];
|
||||
if(!resourceSpecNode["DiskCategory"].isNull())
|
||||
instancesObject.resourceSpec.diskCategory = resourceSpecNode["DiskCategory"].asString();
|
||||
if(!resourceSpecNode["Cpu"].isNull())
|
||||
instancesObject.resourceSpec.cpu = std::stoi(resourceSpecNode["Cpu"].asString());
|
||||
if(!resourceSpecNode["Bandwidth"].isNull())
|
||||
instancesObject.resourceSpec.bandwidth = std::stoi(resourceSpecNode["Bandwidth"].asString());
|
||||
if(!resourceSpecNode["DiskSize"].isNull())
|
||||
instancesObject.resourceSpec.diskSize = std::stoi(resourceSpecNode["DiskSize"].asString());
|
||||
if(!resourceSpecNode["Memory"].isNull())
|
||||
instancesObject.resourceSpec.memory = resourceSpecNode["Memory"].asString();
|
||||
if(!resourceSpecNode["Flow"].isNull())
|
||||
instancesObject.resourceSpec.flow = resourceSpecNode["Flow"].asString();
|
||||
auto imageNode = value["Image"];
|
||||
if(!imageNode["OsType"].isNull())
|
||||
instancesObject.image.osType = imageNode["OsType"].asString();
|
||||
if(!imageNode["ImageName"].isNull())
|
||||
instancesObject.image.imageName = imageNode["ImageName"].asString();
|
||||
if(!imageNode["ImageVersion"].isNull())
|
||||
instancesObject.image.imageVersion = imageNode["ImageVersion"].asString();
|
||||
if(!imageNode["ImageType"].isNull())
|
||||
instancesObject.image.imageType = imageNode["ImageType"].asString();
|
||||
if(!imageNode["ImageIconUrl"].isNull())
|
||||
instancesObject.image.imageIconUrl = imageNode["ImageIconUrl"].asString();
|
||||
if(!imageNode["ImageContact"].isNull())
|
||||
instancesObject.image.imageContact = imageNode["ImageContact"].asString();
|
||||
instances_.push_back(instancesObject);
|
||||
}
|
||||
if(!value["TotalCount"].isNull())
|
||||
|
||||
@@ -34,6 +34,15 @@ void ListSnapshotsRequest::setSnapshotIds(const std::string &snapshotIds) {
|
||||
setParameter(std::string("SnapshotIds"), snapshotIds);
|
||||
}
|
||||
|
||||
std::string ListSnapshotsRequest::getSourceDiskType() const {
|
||||
return sourceDiskType_;
|
||||
}
|
||||
|
||||
void ListSnapshotsRequest::setSourceDiskType(const std::string &sourceDiskType) {
|
||||
sourceDiskType_ = sourceDiskType;
|
||||
setParameter(std::string("SourceDiskType"), sourceDiskType);
|
||||
}
|
||||
|
||||
int ListSnapshotsRequest::getPageNumber() const {
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
@@ -61,6 +61,10 @@ void ListSnapshotsResult::parse(const std::string &payload)
|
||||
snapshotsObject.sourceDiskType = valueSnapshotsSnapshot["SourceDiskType"].asString();
|
||||
if(!valueSnapshotsSnapshot["RegionId"].isNull())
|
||||
snapshotsObject.regionId = valueSnapshotsSnapshot["RegionId"].asString();
|
||||
if(!valueSnapshotsSnapshot["InstanceId"].isNull())
|
||||
snapshotsObject.instanceId = valueSnapshotsSnapshot["InstanceId"].asString();
|
||||
if(!valueSnapshotsSnapshot["RollbackTime"].isNull())
|
||||
snapshotsObject.rollbackTime = valueSnapshotsSnapshot["RollbackTime"].asString();
|
||||
snapshots_.push_back(snapshotsObject);
|
||||
}
|
||||
if(!value["TotalCount"].isNull())
|
||||
|
||||
99
swas-open/src/model/ModifyFirewallRuleRequest.cc
Normal file
99
swas-open/src/model/ModifyFirewallRuleRequest.cc
Normal file
@@ -0,0 +1,99 @@
|
||||
/*
|
||||
* 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/ModifyFirewallRuleRequest.h>
|
||||
|
||||
using AlibabaCloud::SWAS_OPEN::Model::ModifyFirewallRuleRequest;
|
||||
|
||||
ModifyFirewallRuleRequest::ModifyFirewallRuleRequest()
|
||||
: RpcServiceRequest("swas-open", "2020-06-01", "ModifyFirewallRule") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ModifyFirewallRuleRequest::~ModifyFirewallRuleRequest() {}
|
||||
|
||||
std::string ModifyFirewallRuleRequest::getClientToken() const {
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
void ModifyFirewallRuleRequest::setClientToken(const std::string &clientToken) {
|
||||
clientToken_ = clientToken;
|
||||
setParameter(std::string("ClientToken"), clientToken);
|
||||
}
|
||||
|
||||
std::string ModifyFirewallRuleRequest::getSourceCidrIp() const {
|
||||
return sourceCidrIp_;
|
||||
}
|
||||
|
||||
void ModifyFirewallRuleRequest::setSourceCidrIp(const std::string &sourceCidrIp) {
|
||||
sourceCidrIp_ = sourceCidrIp;
|
||||
setParameter(std::string("SourceCidrIp"), sourceCidrIp);
|
||||
}
|
||||
|
||||
std::string ModifyFirewallRuleRequest::getRemark() const {
|
||||
return remark_;
|
||||
}
|
||||
|
||||
void ModifyFirewallRuleRequest::setRemark(const std::string &remark) {
|
||||
remark_ = remark;
|
||||
setParameter(std::string("Remark"), remark);
|
||||
}
|
||||
|
||||
std::string ModifyFirewallRuleRequest::getInstanceId() const {
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void ModifyFirewallRuleRequest::setInstanceId(const std::string &instanceId) {
|
||||
instanceId_ = instanceId;
|
||||
setParameter(std::string("InstanceId"), instanceId);
|
||||
}
|
||||
|
||||
std::string ModifyFirewallRuleRequest::getRuleProtocol() const {
|
||||
return ruleProtocol_;
|
||||
}
|
||||
|
||||
void ModifyFirewallRuleRequest::setRuleProtocol(const std::string &ruleProtocol) {
|
||||
ruleProtocol_ = ruleProtocol;
|
||||
setParameter(std::string("RuleProtocol"), ruleProtocol);
|
||||
}
|
||||
|
||||
std::string ModifyFirewallRuleRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void ModifyFirewallRuleRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
std::string ModifyFirewallRuleRequest::getPort() const {
|
||||
return port_;
|
||||
}
|
||||
|
||||
void ModifyFirewallRuleRequest::setPort(const std::string &port) {
|
||||
port_ = port;
|
||||
setParameter(std::string("Port"), port);
|
||||
}
|
||||
|
||||
std::string ModifyFirewallRuleRequest::getRuleId() const {
|
||||
return ruleId_;
|
||||
}
|
||||
|
||||
void ModifyFirewallRuleRequest::setRuleId(const std::string &ruleId) {
|
||||
ruleId_ = ruleId;
|
||||
setParameter(std::string("RuleId"), ruleId);
|
||||
}
|
||||
|
||||
44
swas-open/src/model/ModifyFirewallRuleResult.cc
Normal file
44
swas-open/src/model/ModifyFirewallRuleResult.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/ModifyFirewallRuleResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::SWAS_OPEN;
|
||||
using namespace AlibabaCloud::SWAS_OPEN::Model;
|
||||
|
||||
ModifyFirewallRuleResult::ModifyFirewallRuleResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ModifyFirewallRuleResult::ModifyFirewallRuleResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ModifyFirewallRuleResult::~ModifyFirewallRuleResult()
|
||||
{}
|
||||
|
||||
void ModifyFirewallRuleResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
63
swas-open/src/model/ModifyInstanceVncPasswordRequest.cc
Normal file
63
swas-open/src/model/ModifyInstanceVncPasswordRequest.cc
Normal 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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/swas-open/model/ModifyInstanceVncPasswordRequest.h>
|
||||
|
||||
using AlibabaCloud::SWAS_OPEN::Model::ModifyInstanceVncPasswordRequest;
|
||||
|
||||
ModifyInstanceVncPasswordRequest::ModifyInstanceVncPasswordRequest()
|
||||
: RpcServiceRequest("swas-open", "2020-06-01", "ModifyInstanceVncPassword") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ModifyInstanceVncPasswordRequest::~ModifyInstanceVncPasswordRequest() {}
|
||||
|
||||
std::string ModifyInstanceVncPasswordRequest::getClientToken() const {
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
void ModifyInstanceVncPasswordRequest::setClientToken(const std::string &clientToken) {
|
||||
clientToken_ = clientToken;
|
||||
setParameter(std::string("ClientToken"), clientToken);
|
||||
}
|
||||
|
||||
std::string ModifyInstanceVncPasswordRequest::getInstanceId() const {
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void ModifyInstanceVncPasswordRequest::setInstanceId(const std::string &instanceId) {
|
||||
instanceId_ = instanceId;
|
||||
setParameter(std::string("InstanceId"), instanceId);
|
||||
}
|
||||
|
||||
std::string ModifyInstanceVncPasswordRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void ModifyInstanceVncPasswordRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
std::string ModifyInstanceVncPasswordRequest::getVncPassword() const {
|
||||
return vncPassword_;
|
||||
}
|
||||
|
||||
void ModifyInstanceVncPasswordRequest::setVncPassword(const std::string &vncPassword) {
|
||||
vncPassword_ = vncPassword;
|
||||
setParameter(std::string("VncPassword"), vncPassword);
|
||||
}
|
||||
|
||||
44
swas-open/src/model/ModifyInstanceVncPasswordResult.cc
Normal file
44
swas-open/src/model/ModifyInstanceVncPasswordResult.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/ModifyInstanceVncPasswordResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::SWAS_OPEN;
|
||||
using namespace AlibabaCloud::SWAS_OPEN::Model;
|
||||
|
||||
ModifyInstanceVncPasswordResult::ModifyInstanceVncPasswordResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ModifyInstanceVncPasswordResult::ModifyInstanceVncPasswordResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ModifyInstanceVncPasswordResult::~ModifyInstanceVncPasswordResult()
|
||||
{}
|
||||
|
||||
void ModifyInstanceVncPasswordResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
63
swas-open/src/model/RebootInstancesRequest.cc
Normal file
63
swas-open/src/model/RebootInstancesRequest.cc
Normal 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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/swas-open/model/RebootInstancesRequest.h>
|
||||
|
||||
using AlibabaCloud::SWAS_OPEN::Model::RebootInstancesRequest;
|
||||
|
||||
RebootInstancesRequest::RebootInstancesRequest()
|
||||
: RpcServiceRequest("swas-open", "2020-06-01", "RebootInstances") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
RebootInstancesRequest::~RebootInstancesRequest() {}
|
||||
|
||||
std::string RebootInstancesRequest::getClientToken() const {
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
void RebootInstancesRequest::setClientToken(const std::string &clientToken) {
|
||||
clientToken_ = clientToken;
|
||||
setParameter(std::string("ClientToken"), clientToken);
|
||||
}
|
||||
|
||||
bool RebootInstancesRequest::getForceReboot() const {
|
||||
return forceReboot_;
|
||||
}
|
||||
|
||||
void RebootInstancesRequest::setForceReboot(bool forceReboot) {
|
||||
forceReboot_ = forceReboot;
|
||||
setParameter(std::string("ForceReboot"), forceReboot ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string RebootInstancesRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void RebootInstancesRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
std::string RebootInstancesRequest::getInstanceIds() const {
|
||||
return instanceIds_;
|
||||
}
|
||||
|
||||
void RebootInstancesRequest::setInstanceIds(const std::string &instanceIds) {
|
||||
instanceIds_ = instanceIds;
|
||||
setParameter(std::string("InstanceIds"), instanceIds);
|
||||
}
|
||||
|
||||
44
swas-open/src/model/RebootInstancesResult.cc
Normal file
44
swas-open/src/model/RebootInstancesResult.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/RebootInstancesResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::SWAS_OPEN;
|
||||
using namespace AlibabaCloud::SWAS_OPEN::Model;
|
||||
|
||||
RebootInstancesResult::RebootInstancesResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
RebootInstancesResult::RebootInstancesResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
RebootInstancesResult::~RebootInstancesResult()
|
||||
{}
|
||||
|
||||
void RebootInstancesResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
54
swas-open/src/model/StartInstancesRequest.cc
Normal file
54
swas-open/src/model/StartInstancesRequest.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/StartInstancesRequest.h>
|
||||
|
||||
using AlibabaCloud::SWAS_OPEN::Model::StartInstancesRequest;
|
||||
|
||||
StartInstancesRequest::StartInstancesRequest()
|
||||
: RpcServiceRequest("swas-open", "2020-06-01", "StartInstances") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
StartInstancesRequest::~StartInstancesRequest() {}
|
||||
|
||||
std::string StartInstancesRequest::getClientToken() const {
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
void StartInstancesRequest::setClientToken(const std::string &clientToken) {
|
||||
clientToken_ = clientToken;
|
||||
setParameter(std::string("ClientToken"), clientToken);
|
||||
}
|
||||
|
||||
std::string StartInstancesRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void StartInstancesRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
std::string StartInstancesRequest::getInstanceIds() const {
|
||||
return instanceIds_;
|
||||
}
|
||||
|
||||
void StartInstancesRequest::setInstanceIds(const std::string &instanceIds) {
|
||||
instanceIds_ = instanceIds;
|
||||
setParameter(std::string("InstanceIds"), instanceIds);
|
||||
}
|
||||
|
||||
44
swas-open/src/model/StartInstancesResult.cc
Normal file
44
swas-open/src/model/StartInstancesResult.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/StartInstancesResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::SWAS_OPEN;
|
||||
using namespace AlibabaCloud::SWAS_OPEN::Model;
|
||||
|
||||
StartInstancesResult::StartInstancesResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
StartInstancesResult::StartInstancesResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
StartInstancesResult::~StartInstancesResult()
|
||||
{}
|
||||
|
||||
void StartInstancesResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
63
swas-open/src/model/StopInstancesRequest.cc
Normal file
63
swas-open/src/model/StopInstancesRequest.cc
Normal 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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/swas-open/model/StopInstancesRequest.h>
|
||||
|
||||
using AlibabaCloud::SWAS_OPEN::Model::StopInstancesRequest;
|
||||
|
||||
StopInstancesRequest::StopInstancesRequest()
|
||||
: RpcServiceRequest("swas-open", "2020-06-01", "StopInstances") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
StopInstancesRequest::~StopInstancesRequest() {}
|
||||
|
||||
std::string StopInstancesRequest::getClientToken() const {
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
void StopInstancesRequest::setClientToken(const std::string &clientToken) {
|
||||
clientToken_ = clientToken;
|
||||
setParameter(std::string("ClientToken"), clientToken);
|
||||
}
|
||||
|
||||
bool StopInstancesRequest::getForceStop() const {
|
||||
return forceStop_;
|
||||
}
|
||||
|
||||
void StopInstancesRequest::setForceStop(bool forceStop) {
|
||||
forceStop_ = forceStop;
|
||||
setParameter(std::string("ForceStop"), forceStop ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string StopInstancesRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void StopInstancesRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
std::string StopInstancesRequest::getInstanceIds() const {
|
||||
return instanceIds_;
|
||||
}
|
||||
|
||||
void StopInstancesRequest::setInstanceIds(const std::string &instanceIds) {
|
||||
instanceIds_ = instanceIds;
|
||||
setParameter(std::string("InstanceIds"), instanceIds);
|
||||
}
|
||||
|
||||
44
swas-open/src/model/StopInstancesResult.cc
Normal file
44
swas-open/src/model/StopInstancesResult.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/StopInstancesResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::SWAS_OPEN;
|
||||
using namespace AlibabaCloud::SWAS_OPEN::Model;
|
||||
|
||||
StopInstancesResult::StopInstancesResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
StopInstancesResult::StopInstancesResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
StopInstancesResult::~StopInstancesResult()
|
||||
{}
|
||||
|
||||
void StopInstancesResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
63
swas-open/src/model/UpdateDiskAttributeRequest.cc
Normal file
63
swas-open/src/model/UpdateDiskAttributeRequest.cc
Normal 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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/swas-open/model/UpdateDiskAttributeRequest.h>
|
||||
|
||||
using AlibabaCloud::SWAS_OPEN::Model::UpdateDiskAttributeRequest;
|
||||
|
||||
UpdateDiskAttributeRequest::UpdateDiskAttributeRequest()
|
||||
: RpcServiceRequest("swas-open", "2020-06-01", "UpdateDiskAttribute") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
UpdateDiskAttributeRequest::~UpdateDiskAttributeRequest() {}
|
||||
|
||||
std::string UpdateDiskAttributeRequest::getClientToken() const {
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
void UpdateDiskAttributeRequest::setClientToken(const std::string &clientToken) {
|
||||
clientToken_ = clientToken;
|
||||
setParameter(std::string("ClientToken"), clientToken);
|
||||
}
|
||||
|
||||
std::string UpdateDiskAttributeRequest::getRemark() const {
|
||||
return remark_;
|
||||
}
|
||||
|
||||
void UpdateDiskAttributeRequest::setRemark(const std::string &remark) {
|
||||
remark_ = remark;
|
||||
setParameter(std::string("Remark"), remark);
|
||||
}
|
||||
|
||||
std::string UpdateDiskAttributeRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void UpdateDiskAttributeRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
std::string UpdateDiskAttributeRequest::getDiskId() const {
|
||||
return diskId_;
|
||||
}
|
||||
|
||||
void UpdateDiskAttributeRequest::setDiskId(const std::string &diskId) {
|
||||
diskId_ = diskId;
|
||||
setParameter(std::string("DiskId"), diskId);
|
||||
}
|
||||
|
||||
44
swas-open/src/model/UpdateDiskAttributeResult.cc
Normal file
44
swas-open/src/model/UpdateDiskAttributeResult.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/UpdateDiskAttributeResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::SWAS_OPEN;
|
||||
using namespace AlibabaCloud::SWAS_OPEN::Model;
|
||||
|
||||
UpdateDiskAttributeResult::UpdateDiskAttributeResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
UpdateDiskAttributeResult::UpdateDiskAttributeResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
UpdateDiskAttributeResult::~UpdateDiskAttributeResult()
|
||||
{}
|
||||
|
||||
void UpdateDiskAttributeResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
63
swas-open/src/model/UpdateSnapshotAttributeRequest.cc
Normal file
63
swas-open/src/model/UpdateSnapshotAttributeRequest.cc
Normal 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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/swas-open/model/UpdateSnapshotAttributeRequest.h>
|
||||
|
||||
using AlibabaCloud::SWAS_OPEN::Model::UpdateSnapshotAttributeRequest;
|
||||
|
||||
UpdateSnapshotAttributeRequest::UpdateSnapshotAttributeRequest()
|
||||
: RpcServiceRequest("swas-open", "2020-06-01", "UpdateSnapshotAttribute") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
UpdateSnapshotAttributeRequest::~UpdateSnapshotAttributeRequest() {}
|
||||
|
||||
std::string UpdateSnapshotAttributeRequest::getSnapshotId() const {
|
||||
return snapshotId_;
|
||||
}
|
||||
|
||||
void UpdateSnapshotAttributeRequest::setSnapshotId(const std::string &snapshotId) {
|
||||
snapshotId_ = snapshotId;
|
||||
setParameter(std::string("SnapshotId"), snapshotId);
|
||||
}
|
||||
|
||||
std::string UpdateSnapshotAttributeRequest::getClientToken() const {
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
void UpdateSnapshotAttributeRequest::setClientToken(const std::string &clientToken) {
|
||||
clientToken_ = clientToken;
|
||||
setParameter(std::string("ClientToken"), clientToken);
|
||||
}
|
||||
|
||||
std::string UpdateSnapshotAttributeRequest::getRemark() const {
|
||||
return remark_;
|
||||
}
|
||||
|
||||
void UpdateSnapshotAttributeRequest::setRemark(const std::string &remark) {
|
||||
remark_ = remark;
|
||||
setParameter(std::string("Remark"), remark);
|
||||
}
|
||||
|
||||
std::string UpdateSnapshotAttributeRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void UpdateSnapshotAttributeRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
44
swas-open/src/model/UpdateSnapshotAttributeResult.cc
Normal file
44
swas-open/src/model/UpdateSnapshotAttributeResult.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/UpdateSnapshotAttributeResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::SWAS_OPEN;
|
||||
using namespace AlibabaCloud::SWAS_OPEN::Model;
|
||||
|
||||
UpdateSnapshotAttributeResult::UpdateSnapshotAttributeResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
UpdateSnapshotAttributeResult::UpdateSnapshotAttributeResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
UpdateSnapshotAttributeResult::~UpdateSnapshotAttributeResult()
|
||||
{}
|
||||
|
||||
void UpdateSnapshotAttributeResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
72
swas-open/src/model/UploadInstanceKeyPairRequest.cc
Normal file
72
swas-open/src/model/UploadInstanceKeyPairRequest.cc
Normal file
@@ -0,0 +1,72 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/swas-open/model/UploadInstanceKeyPairRequest.h>
|
||||
|
||||
using AlibabaCloud::SWAS_OPEN::Model::UploadInstanceKeyPairRequest;
|
||||
|
||||
UploadInstanceKeyPairRequest::UploadInstanceKeyPairRequest()
|
||||
: RpcServiceRequest("swas-open", "2020-06-01", "UploadInstanceKeyPair") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
UploadInstanceKeyPairRequest::~UploadInstanceKeyPairRequest() {}
|
||||
|
||||
std::string UploadInstanceKeyPairRequest::getClientToken() const {
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
void UploadInstanceKeyPairRequest::setClientToken(const std::string &clientToken) {
|
||||
clientToken_ = clientToken;
|
||||
setParameter(std::string("ClientToken"), clientToken);
|
||||
}
|
||||
|
||||
std::string UploadInstanceKeyPairRequest::getPublicKey() const {
|
||||
return publicKey_;
|
||||
}
|
||||
|
||||
void UploadInstanceKeyPairRequest::setPublicKey(const std::string &publicKey) {
|
||||
publicKey_ = publicKey;
|
||||
setParameter(std::string("PublicKey"), publicKey);
|
||||
}
|
||||
|
||||
std::string UploadInstanceKeyPairRequest::getKeyPairName() const {
|
||||
return keyPairName_;
|
||||
}
|
||||
|
||||
void UploadInstanceKeyPairRequest::setKeyPairName(const std::string &keyPairName) {
|
||||
keyPairName_ = keyPairName;
|
||||
setParameter(std::string("KeyPairName"), keyPairName);
|
||||
}
|
||||
|
||||
std::string UploadInstanceKeyPairRequest::getInstanceId() const {
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void UploadInstanceKeyPairRequest::setInstanceId(const std::string &instanceId) {
|
||||
instanceId_ = instanceId;
|
||||
setParameter(std::string("InstanceId"), instanceId);
|
||||
}
|
||||
|
||||
std::string UploadInstanceKeyPairRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void UploadInstanceKeyPairRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
44
swas-open/src/model/UploadInstanceKeyPairResult.cc
Normal file
44
swas-open/src/model/UploadInstanceKeyPairResult.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/UploadInstanceKeyPairResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::SWAS_OPEN;
|
||||
using namespace AlibabaCloud::SWAS_OPEN::Model;
|
||||
|
||||
UploadInstanceKeyPairResult::UploadInstanceKeyPairResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
UploadInstanceKeyPairResult::UploadInstanceKeyPairResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
UploadInstanceKeyPairResult::~UploadInstanceKeyPairResult()
|
||||
{}
|
||||
|
||||
void UploadInstanceKeyPairResult::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