Add support for secret.
This commit is contained in:
@@ -447,6 +447,42 @@ SaeClient::CreateIngressOutcomeCallable SaeClient::createIngressCallable(const C
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
SaeClient::CreateJobOutcome SaeClient::createJob(const CreateJobRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return CreateJobOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return CreateJobOutcome(CreateJobResult(outcome.result()));
|
||||
else
|
||||
return CreateJobOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void SaeClient::createJobAsync(const CreateJobRequest& request, const CreateJobAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, createJob(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
SaeClient::CreateJobOutcomeCallable SaeClient::createJobCallable(const CreateJobRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<CreateJobOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->createJob(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
SaeClient::CreateNamespaceOutcome SaeClient::createNamespace(const CreateNamespaceRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -483,6 +519,42 @@ SaeClient::CreateNamespaceOutcomeCallable SaeClient::createNamespaceCallable(con
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
SaeClient::CreateSecretOutcome SaeClient::createSecret(const CreateSecretRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return CreateSecretOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return CreateSecretOutcome(CreateSecretResult(outcome.result()));
|
||||
else
|
||||
return CreateSecretOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void SaeClient::createSecretAsync(const CreateSecretRequest& request, const CreateSecretAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, createSecret(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
SaeClient::CreateSecretOutcomeCallable SaeClient::createSecretCallable(const CreateSecretRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<CreateSecretOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->createSecret(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
SaeClient::DeleteApplicationOutcome SaeClient::deleteApplication(const DeleteApplicationRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -627,6 +699,42 @@ SaeClient::DeleteGreyTagRouteOutcomeCallable SaeClient::deleteGreyTagRouteCallab
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
SaeClient::DeleteHistoryJobOutcome SaeClient::deleteHistoryJob(const DeleteHistoryJobRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DeleteHistoryJobOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DeleteHistoryJobOutcome(DeleteHistoryJobResult(outcome.result()));
|
||||
else
|
||||
return DeleteHistoryJobOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void SaeClient::deleteHistoryJobAsync(const DeleteHistoryJobRequest& request, const DeleteHistoryJobAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, deleteHistoryJob(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
SaeClient::DeleteHistoryJobOutcomeCallable SaeClient::deleteHistoryJobCallable(const DeleteHistoryJobRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DeleteHistoryJobOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->deleteHistoryJob(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
SaeClient::DeleteIngressOutcome SaeClient::deleteIngress(const DeleteIngressRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -663,6 +771,42 @@ SaeClient::DeleteIngressOutcomeCallable SaeClient::deleteIngressCallable(const D
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
SaeClient::DeleteJobOutcome SaeClient::deleteJob(const DeleteJobRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DeleteJobOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DeleteJobOutcome(DeleteJobResult(outcome.result()));
|
||||
else
|
||||
return DeleteJobOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void SaeClient::deleteJobAsync(const DeleteJobRequest& request, const DeleteJobAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, deleteJob(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
SaeClient::DeleteJobOutcomeCallable SaeClient::deleteJobCallable(const DeleteJobRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DeleteJobOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->deleteJob(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
SaeClient::DeleteNamespaceOutcome SaeClient::deleteNamespace(const DeleteNamespaceRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -699,6 +843,42 @@ SaeClient::DeleteNamespaceOutcomeCallable SaeClient::deleteNamespaceCallable(con
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
SaeClient::DeleteSecretOutcome SaeClient::deleteSecret(const DeleteSecretRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DeleteSecretOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DeleteSecretOutcome(DeleteSecretResult(outcome.result()));
|
||||
else
|
||||
return DeleteSecretOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void SaeClient::deleteSecretAsync(const DeleteSecretRequest& request, const DeleteSecretAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, deleteSecret(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
SaeClient::DeleteSecretOutcomeCallable SaeClient::deleteSecretCallable(const DeleteSecretRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DeleteSecretOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->deleteSecret(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
SaeClient::DeployApplicationOutcome SaeClient::deployApplication(const DeployApplicationRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -1383,6 +1563,114 @@ SaeClient::DescribeInstanceSpecificationsOutcomeCallable SaeClient::describeInst
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
SaeClient::DescribeJobOutcome SaeClient::describeJob(const DescribeJobRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeJobOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeJobOutcome(DescribeJobResult(outcome.result()));
|
||||
else
|
||||
return DescribeJobOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void SaeClient::describeJobAsync(const DescribeJobRequest& request, const DescribeJobAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeJob(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
SaeClient::DescribeJobOutcomeCallable SaeClient::describeJobCallable(const DescribeJobRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeJobOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeJob(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
SaeClient::DescribeJobHistoryOutcome SaeClient::describeJobHistory(const DescribeJobHistoryRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeJobHistoryOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeJobHistoryOutcome(DescribeJobHistoryResult(outcome.result()));
|
||||
else
|
||||
return DescribeJobHistoryOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void SaeClient::describeJobHistoryAsync(const DescribeJobHistoryRequest& request, const DescribeJobHistoryAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeJobHistory(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
SaeClient::DescribeJobHistoryOutcomeCallable SaeClient::describeJobHistoryCallable(const DescribeJobHistoryRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeJobHistoryOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeJobHistory(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
SaeClient::DescribeJobStatusOutcome SaeClient::describeJobStatus(const DescribeJobStatusRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeJobStatusOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeJobStatusOutcome(DescribeJobStatusResult(outcome.result()));
|
||||
else
|
||||
return DescribeJobStatusOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void SaeClient::describeJobStatusAsync(const DescribeJobStatusRequest& request, const DescribeJobStatusAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeJobStatus(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
SaeClient::DescribeJobStatusOutcomeCallable SaeClient::describeJobStatusCallable(const DescribeJobStatusRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeJobStatusOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeJobStatus(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
SaeClient::DescribeNamespaceOutcome SaeClient::describeNamespace(const DescribeNamespaceRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -1599,6 +1887,42 @@ SaeClient::DescribeRegionsOutcomeCallable SaeClient::describeRegionsCallable(con
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
SaeClient::DescribeSecretOutcome SaeClient::describeSecret(const DescribeSecretRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeSecretOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeSecretOutcome(DescribeSecretResult(outcome.result()));
|
||||
else
|
||||
return DescribeSecretOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void SaeClient::describeSecretAsync(const DescribeSecretRequest& request, const DescribeSecretAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeSecret(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
SaeClient::DescribeSecretOutcomeCallable SaeClient::describeSecretCallable(const DescribeSecretRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeSecretOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeSecret(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
SaeClient::DisableApplicationScalingRuleOutcome SaeClient::disableApplicationScalingRule(const DisableApplicationScalingRuleRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -1671,6 +1995,42 @@ SaeClient::EnableApplicationScalingRuleOutcomeCallable SaeClient::enableApplicat
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
SaeClient::ExecJobOutcome SaeClient::execJob(const ExecJobRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ExecJobOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ExecJobOutcome(ExecJobResult(outcome.result()));
|
||||
else
|
||||
return ExecJobOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void SaeClient::execJobAsync(const ExecJobRequest& request, const ExecJobAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, execJob(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
SaeClient::ExecJobOutcomeCallable SaeClient::execJobCallable(const ExecJobRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ExecJobOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->execJob(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
SaeClient::ListAppEventsOutcome SaeClient::listAppEvents(const ListAppEventsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -1959,6 +2319,42 @@ SaeClient::ListIngressesOutcomeCallable SaeClient::listIngressesCallable(const L
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
SaeClient::ListJobsOutcome SaeClient::listJobs(const ListJobsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ListJobsOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ListJobsOutcome(ListJobsResult(outcome.result()));
|
||||
else
|
||||
return ListJobsOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void SaeClient::listJobsAsync(const ListJobsRequest& request, const ListJobsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, listJobs(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
SaeClient::ListJobsOutcomeCallable SaeClient::listJobsCallable(const ListJobsRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ListJobsOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->listJobs(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
SaeClient::ListLogConfigsOutcome SaeClient::listLogConfigs(const ListLogConfigsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -2103,6 +2499,42 @@ SaeClient::ListPublishedServicesOutcomeCallable SaeClient::listPublishedServices
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
SaeClient::ListSecretsOutcome SaeClient::listSecrets(const ListSecretsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ListSecretsOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ListSecretsOutcome(ListSecretsResult(outcome.result()));
|
||||
else
|
||||
return ListSecretsOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void SaeClient::listSecretsAsync(const ListSecretsRequest& request, const ListSecretsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, listSecrets(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
SaeClient::ListSecretsOutcomeCallable SaeClient::listSecretsCallable(const ListSecretsRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ListSecretsOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->listSecrets(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
SaeClient::ListTagResourcesOutcome SaeClient::listTagResources(const ListTagResourcesRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -2499,6 +2931,42 @@ SaeClient::StopApplicationOutcomeCallable SaeClient::stopApplicationCallable(con
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
SaeClient::SuspendJobOutcome SaeClient::suspendJob(const SuspendJobRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return SuspendJobOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return SuspendJobOutcome(SuspendJobResult(outcome.result()));
|
||||
else
|
||||
return SuspendJobOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void SaeClient::suspendJobAsync(const SuspendJobRequest& request, const SuspendJobAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, suspendJob(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
SaeClient::SuspendJobOutcomeCallable SaeClient::suspendJobCallable(const SuspendJobRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<SuspendJobOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->suspendJob(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
SaeClient::TagResourcesOutcome SaeClient::tagResources(const TagResourcesRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -2859,6 +3327,42 @@ SaeClient::UpdateIngressOutcomeCallable SaeClient::updateIngressCallable(const U
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
SaeClient::UpdateJobOutcome SaeClient::updateJob(const UpdateJobRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return UpdateJobOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return UpdateJobOutcome(UpdateJobResult(outcome.result()));
|
||||
else
|
||||
return UpdateJobOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void SaeClient::updateJobAsync(const UpdateJobRequest& request, const UpdateJobAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, updateJob(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
SaeClient::UpdateJobOutcomeCallable SaeClient::updateJobCallable(const UpdateJobRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<UpdateJobOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->updateJob(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
SaeClient::UpdateNamespaceOutcome SaeClient::updateNamespace(const UpdateNamespaceRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -2931,3 +3435,39 @@ SaeClient::UpdateNamespaceVpcOutcomeCallable SaeClient::updateNamespaceVpcCallab
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
SaeClient::UpdateSecretOutcome SaeClient::updateSecret(const UpdateSecretRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return UpdateSecretOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return UpdateSecretOutcome(UpdateSecretResult(outcome.result()));
|
||||
else
|
||||
return UpdateSecretOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void SaeClient::updateSecretAsync(const UpdateSecretRequest& request, const UpdateSecretAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, updateSecret(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
SaeClient::UpdateSecretOutcomeCallable SaeClient::updateSecretCallable(const UpdateSecretRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<UpdateSecretOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->updateSecret(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
|
||||
@@ -53,6 +53,15 @@ void CreateApplicationRequest::setOssAkSecret(const std::string &ossAkSecret) {
|
||||
setBodyParameter(std::string("OssAkSecret"), ossAkSecret);
|
||||
}
|
||||
|
||||
std::string CreateApplicationRequest::getNasConfigs() const {
|
||||
return nasConfigs_;
|
||||
}
|
||||
|
||||
void CreateApplicationRequest::setNasConfigs(const std::string &nasConfigs) {
|
||||
nasConfigs_ = nasConfigs;
|
||||
setParameter(std::string("NasConfigs"), nasConfigs);
|
||||
}
|
||||
|
||||
std::string CreateApplicationRequest::getMountHost() const {
|
||||
return mountHost_;
|
||||
}
|
||||
@@ -80,15 +89,6 @@ void CreateApplicationRequest::setEnvs(const std::string &envs) {
|
||||
setParameter(std::string("Envs"), envs);
|
||||
}
|
||||
|
||||
std::string CreateApplicationRequest::getKafkaInstanceId() const {
|
||||
return kafkaInstanceId_;
|
||||
}
|
||||
|
||||
void CreateApplicationRequest::setKafkaInstanceId(const std::string &kafkaInstanceId) {
|
||||
kafkaInstanceId_ = kafkaInstanceId;
|
||||
setParameter(std::string("KafkaInstanceId"), kafkaInstanceId);
|
||||
}
|
||||
|
||||
std::string CreateApplicationRequest::getPhpPECLExtensions() const {
|
||||
return phpPECLExtensions_;
|
||||
}
|
||||
@@ -170,6 +170,15 @@ void CreateApplicationRequest::setPurchaseEip(bool purchaseEip) {
|
||||
setParameter(std::string("PurchaseEip"), purchaseEip ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string CreateApplicationRequest::getPvtzDiscoverySvc() const {
|
||||
return pvtzDiscoverySvc_;
|
||||
}
|
||||
|
||||
void CreateApplicationRequest::setPvtzDiscoverySvc(const std::string &pvtzDiscoverySvc) {
|
||||
pvtzDiscoverySvc_ = pvtzDiscoverySvc;
|
||||
setParameter(std::string("PvtzDiscoverySvc"), pvtzDiscoverySvc);
|
||||
}
|
||||
|
||||
std::string CreateApplicationRequest::getConfigMapMountDesc() const {
|
||||
return configMapMountDesc_;
|
||||
}
|
||||
@@ -188,13 +197,13 @@ void CreateApplicationRequest::setOssMountDescs(const std::string &ossMountDescs
|
||||
setBodyParameter(std::string("OssMountDescs"), ossMountDescs);
|
||||
}
|
||||
|
||||
std::string CreateApplicationRequest::getKafkaEndpoint() const {
|
||||
return kafkaEndpoint_;
|
||||
std::string CreateApplicationRequest::getImagePullSecrets() const {
|
||||
return imagePullSecrets_;
|
||||
}
|
||||
|
||||
void CreateApplicationRequest::setKafkaEndpoint(const std::string &kafkaEndpoint) {
|
||||
kafkaEndpoint_ = kafkaEndpoint;
|
||||
setParameter(std::string("KafkaEndpoint"), kafkaEndpoint);
|
||||
void CreateApplicationRequest::setImagePullSecrets(const std::string &imagePullSecrets) {
|
||||
imagePullSecrets_ = imagePullSecrets;
|
||||
setParameter(std::string("ImagePullSecrets"), imagePullSecrets);
|
||||
}
|
||||
|
||||
std::string CreateApplicationRequest::getPreStop() const {
|
||||
@@ -206,6 +215,15 @@ void CreateApplicationRequest::setPreStop(const std::string &preStop) {
|
||||
setParameter(std::string("PreStop"), preStop);
|
||||
}
|
||||
|
||||
std::string CreateApplicationRequest::getPython() const {
|
||||
return python_;
|
||||
}
|
||||
|
||||
void CreateApplicationRequest::setPython(const std::string &python) {
|
||||
python_ = python;
|
||||
setParameter(std::string("Python"), python);
|
||||
}
|
||||
|
||||
int CreateApplicationRequest::getCpu() const {
|
||||
return cpu_;
|
||||
}
|
||||
@@ -296,15 +314,6 @@ void CreateApplicationRequest::setKafkaConfigs(const std::string &kafkaConfigs)
|
||||
setParameter(std::string("KafkaConfigs"), kafkaConfigs);
|
||||
}
|
||||
|
||||
bool CreateApplicationRequest::getOpenCollectToKafka() const {
|
||||
return openCollectToKafka_;
|
||||
}
|
||||
|
||||
void CreateApplicationRequest::setOpenCollectToKafka(bool openCollectToKafka) {
|
||||
openCollectToKafka_ = openCollectToKafka;
|
||||
setParameter(std::string("OpenCollectToKafka"), openCollectToKafka ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string CreateApplicationRequest::getCommandArgs() const {
|
||||
return commandArgs_;
|
||||
}
|
||||
@@ -395,6 +404,15 @@ void CreateApplicationRequest::setWarStartOptions(const std::string &warStartOpt
|
||||
setParameter(std::string("WarStartOptions"), warStartOptions);
|
||||
}
|
||||
|
||||
std::string CreateApplicationRequest::getPackageRuntimeCustomBuild() const {
|
||||
return packageRuntimeCustomBuild_;
|
||||
}
|
||||
|
||||
void CreateApplicationRequest::setPackageRuntimeCustomBuild(const std::string &packageRuntimeCustomBuild) {
|
||||
packageRuntimeCustomBuild_ = packageRuntimeCustomBuild;
|
||||
setBodyParameter(std::string("PackageRuntimeCustomBuild"), packageRuntimeCustomBuild);
|
||||
}
|
||||
|
||||
std::string CreateApplicationRequest::getEdasContainerVersion() const {
|
||||
return edasContainerVersion_;
|
||||
}
|
||||
@@ -431,6 +449,24 @@ void CreateApplicationRequest::setPhpConfig(const std::string &phpConfig) {
|
||||
setBodyParameter(std::string("PhpConfig"), phpConfig);
|
||||
}
|
||||
|
||||
bool CreateApplicationRequest::getEnableImageAccl() const {
|
||||
return enableImageAccl_;
|
||||
}
|
||||
|
||||
void CreateApplicationRequest::setEnableImageAccl(bool enableImageAccl) {
|
||||
enableImageAccl_ = enableImageAccl;
|
||||
setBodyParameter(std::string("EnableImageAccl"), enableImageAccl ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string CreateApplicationRequest::getMicroRegistration() const {
|
||||
return microRegistration_;
|
||||
}
|
||||
|
||||
void CreateApplicationRequest::setMicroRegistration(const std::string µRegistration) {
|
||||
microRegistration_ = microRegistration;
|
||||
setParameter(std::string("MicroRegistration"), microRegistration);
|
||||
}
|
||||
|
||||
int CreateApplicationRequest::getReplicas() const {
|
||||
return replicas_;
|
||||
}
|
||||
@@ -476,15 +512,6 @@ void CreateApplicationRequest::setAppDescription(const std::string &appDescripti
|
||||
setParameter(std::string("AppDescription"), appDescription);
|
||||
}
|
||||
|
||||
std::string CreateApplicationRequest::getKafkaLogfileConfig() const {
|
||||
return kafkaLogfileConfig_;
|
||||
}
|
||||
|
||||
void CreateApplicationRequest::setKafkaLogfileConfig(const std::string &kafkaLogfileConfig) {
|
||||
kafkaLogfileConfig_ = kafkaLogfileConfig;
|
||||
setParameter(std::string("KafkaLogfileConfig"), kafkaLogfileConfig);
|
||||
}
|
||||
|
||||
std::string CreateApplicationRequest::getAcrInstanceId() const {
|
||||
return acrInstanceId_;
|
||||
}
|
||||
@@ -521,6 +548,15 @@ void CreateApplicationRequest::setPhp(const std::string &php) {
|
||||
setBodyParameter(std::string("Php"), php);
|
||||
}
|
||||
|
||||
std::string CreateApplicationRequest::getPythonModules() const {
|
||||
return pythonModules_;
|
||||
}
|
||||
|
||||
void CreateApplicationRequest::setPythonModules(const std::string &pythonModules) {
|
||||
pythonModules_ = pythonModules;
|
||||
setParameter(std::string("PythonModules"), pythonModules);
|
||||
}
|
||||
|
||||
std::string CreateApplicationRequest::getPhpConfigLocation() const {
|
||||
return phpConfigLocation_;
|
||||
}
|
||||
|
||||
@@ -89,6 +89,15 @@ void CreateIngressRequest::setCertId(const std::string &certId) {
|
||||
setParameter(std::string("CertId"), certId);
|
||||
}
|
||||
|
||||
std::string CreateIngressRequest::getCertIds() const {
|
||||
return certIds_;
|
||||
}
|
||||
|
||||
void CreateIngressRequest::setCertIds(const std::string &certIds) {
|
||||
certIds_ = certIds;
|
||||
setParameter(std::string("CertIds"), certIds);
|
||||
}
|
||||
|
||||
std::string CreateIngressRequest::getListenerProtocol() const {
|
||||
return listenerProtocol_;
|
||||
}
|
||||
|
||||
595
sae/src/model/CreateJobRequest.cc
Normal file
595
sae/src/model/CreateJobRequest.cc
Normal file
@@ -0,0 +1,595 @@
|
||||
/*
|
||||
* 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/sae/model/CreateJobRequest.h>
|
||||
|
||||
using AlibabaCloud::Sae::Model::CreateJobRequest;
|
||||
|
||||
CreateJobRequest::CreateJobRequest()
|
||||
: RoaServiceRequest("sae", "2019-05-06") {
|
||||
setResourcePath("/pop/v1/sam/job/createJob"};
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateJobRequest::~CreateJobRequest() {}
|
||||
|
||||
std::string CreateJobRequest::getNasId() const {
|
||||
return nasId_;
|
||||
}
|
||||
|
||||
void CreateJobRequest::setNasId(const std::string &nasId) {
|
||||
nasId_ = nasId;
|
||||
setParameter(std::string("NasId"), nasId);
|
||||
}
|
||||
|
||||
std::string CreateJobRequest::getJarStartArgs() const {
|
||||
return jarStartArgs_;
|
||||
}
|
||||
|
||||
void CreateJobRequest::setJarStartArgs(const std::string &jarStartArgs) {
|
||||
jarStartArgs_ = jarStartArgs;
|
||||
setParameter(std::string("JarStartArgs"), jarStartArgs);
|
||||
}
|
||||
|
||||
std::string CreateJobRequest::getConcurrencyPolicy() const {
|
||||
return concurrencyPolicy_;
|
||||
}
|
||||
|
||||
void CreateJobRequest::setConcurrencyPolicy(const std::string &concurrencyPolicy) {
|
||||
concurrencyPolicy_ = concurrencyPolicy;
|
||||
setParameter(std::string("ConcurrencyPolicy"), concurrencyPolicy);
|
||||
}
|
||||
|
||||
std::string CreateJobRequest::getTriggerConfig() const {
|
||||
return triggerConfig_;
|
||||
}
|
||||
|
||||
void CreateJobRequest::setTriggerConfig(const std::string &triggerConfig) {
|
||||
triggerConfig_ = triggerConfig;
|
||||
setParameter(std::string("TriggerConfig"), triggerConfig);
|
||||
}
|
||||
|
||||
std::string CreateJobRequest::getOssAkSecret() const {
|
||||
return ossAkSecret_;
|
||||
}
|
||||
|
||||
void CreateJobRequest::setOssAkSecret(const std::string &ossAkSecret) {
|
||||
ossAkSecret_ = ossAkSecret;
|
||||
setBodyParameter(std::string("OssAkSecret"), ossAkSecret);
|
||||
}
|
||||
|
||||
std::string CreateJobRequest::getMountHost() const {
|
||||
return mountHost_;
|
||||
}
|
||||
|
||||
void CreateJobRequest::setMountHost(const std::string &mountHost) {
|
||||
mountHost_ = mountHost;
|
||||
setParameter(std::string("MountHost"), mountHost);
|
||||
}
|
||||
|
||||
bool CreateJobRequest::getAutoConfig() const {
|
||||
return autoConfig_;
|
||||
}
|
||||
|
||||
void CreateJobRequest::setAutoConfig(bool autoConfig) {
|
||||
autoConfig_ = autoConfig;
|
||||
setParameter(std::string("AutoConfig"), autoConfig ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string CreateJobRequest::getEnvs() const {
|
||||
return envs_;
|
||||
}
|
||||
|
||||
void CreateJobRequest::setEnvs(const std::string &envs) {
|
||||
envs_ = envs;
|
||||
setParameter(std::string("Envs"), envs);
|
||||
}
|
||||
|
||||
std::string CreateJobRequest::getPhpPECLExtensions() const {
|
||||
return phpPECLExtensions_;
|
||||
}
|
||||
|
||||
void CreateJobRequest::setPhpPECLExtensions(const std::string &phpPECLExtensions) {
|
||||
phpPECLExtensions_ = phpPECLExtensions;
|
||||
setBodyParameter(std::string("PhpPECLExtensions"), phpPECLExtensions);
|
||||
}
|
||||
|
||||
std::string CreateJobRequest::getPhpArmsConfigLocation() const {
|
||||
return phpArmsConfigLocation_;
|
||||
}
|
||||
|
||||
void CreateJobRequest::setPhpArmsConfigLocation(const std::string &phpArmsConfigLocation) {
|
||||
phpArmsConfigLocation_ = phpArmsConfigLocation;
|
||||
setParameter(std::string("PhpArmsConfigLocation"), phpArmsConfigLocation);
|
||||
}
|
||||
|
||||
std::string CreateJobRequest::getProgrammingLanguage() const {
|
||||
return programmingLanguage_;
|
||||
}
|
||||
|
||||
void CreateJobRequest::setProgrammingLanguage(const std::string &programmingLanguage) {
|
||||
programmingLanguage_ = programmingLanguage;
|
||||
setParameter(std::string("ProgrammingLanguage"), programmingLanguage);
|
||||
}
|
||||
|
||||
std::string CreateJobRequest::getCustomHostAlias() const {
|
||||
return customHostAlias_;
|
||||
}
|
||||
|
||||
void CreateJobRequest::setCustomHostAlias(const std::string &customHostAlias) {
|
||||
customHostAlias_ = customHostAlias;
|
||||
setParameter(std::string("CustomHostAlias"), customHostAlias);
|
||||
}
|
||||
|
||||
bool CreateJobRequest::getDeploy() const {
|
||||
return deploy_;
|
||||
}
|
||||
|
||||
void CreateJobRequest::setDeploy(bool deploy) {
|
||||
deploy_ = deploy;
|
||||
setParameter(std::string("Deploy"), deploy ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string CreateJobRequest::getJarStartOptions() const {
|
||||
return jarStartOptions_;
|
||||
}
|
||||
|
||||
void CreateJobRequest::setJarStartOptions(const std::string &jarStartOptions) {
|
||||
jarStartOptions_ = jarStartOptions;
|
||||
setParameter(std::string("JarStartOptions"), jarStartOptions);
|
||||
}
|
||||
|
||||
std::string CreateJobRequest::getAppName() const {
|
||||
return appName_;
|
||||
}
|
||||
|
||||
void CreateJobRequest::setAppName(const std::string &appName) {
|
||||
appName_ = appName;
|
||||
setParameter(std::string("AppName"), appName);
|
||||
}
|
||||
|
||||
std::string CreateJobRequest::getNamespaceId() const {
|
||||
return namespaceId_;
|
||||
}
|
||||
|
||||
void CreateJobRequest::setNamespaceId(const std::string &namespaceId) {
|
||||
namespaceId_ = namespaceId;
|
||||
setParameter(std::string("NamespaceId"), namespaceId);
|
||||
}
|
||||
|
||||
bool CreateJobRequest::getSlice() const {
|
||||
return slice_;
|
||||
}
|
||||
|
||||
void CreateJobRequest::setSlice(bool slice) {
|
||||
slice_ = slice;
|
||||
setParameter(std::string("Slice"), slice ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string CreateJobRequest::getConfigMapMountDesc() const {
|
||||
return configMapMountDesc_;
|
||||
}
|
||||
|
||||
void CreateJobRequest::setConfigMapMountDesc(const std::string &configMapMountDesc) {
|
||||
configMapMountDesc_ = configMapMountDesc;
|
||||
setBodyParameter(std::string("ConfigMapMountDesc"), configMapMountDesc);
|
||||
}
|
||||
|
||||
std::string CreateJobRequest::getOssMountDescs() const {
|
||||
return ossMountDescs_;
|
||||
}
|
||||
|
||||
void CreateJobRequest::setOssMountDescs(const std::string &ossMountDescs) {
|
||||
ossMountDescs_ = ossMountDescs;
|
||||
setBodyParameter(std::string("OssMountDescs"), ossMountDescs);
|
||||
}
|
||||
|
||||
std::string CreateJobRequest::getImagePullSecrets() const {
|
||||
return imagePullSecrets_;
|
||||
}
|
||||
|
||||
void CreateJobRequest::setImagePullSecrets(const std::string &imagePullSecrets) {
|
||||
imagePullSecrets_ = imagePullSecrets;
|
||||
setParameter(std::string("ImagePullSecrets"), imagePullSecrets);
|
||||
}
|
||||
|
||||
std::string CreateJobRequest::getPreStop() const {
|
||||
return preStop_;
|
||||
}
|
||||
|
||||
void CreateJobRequest::setPreStop(const std::string &preStop) {
|
||||
preStop_ = preStop;
|
||||
setParameter(std::string("PreStop"), preStop);
|
||||
}
|
||||
|
||||
std::string CreateJobRequest::getPython() const {
|
||||
return python_;
|
||||
}
|
||||
|
||||
void CreateJobRequest::setPython(const std::string &python) {
|
||||
python_ = python;
|
||||
setParameter(std::string("Python"), python);
|
||||
}
|
||||
|
||||
int CreateJobRequest::getCpu() const {
|
||||
return cpu_;
|
||||
}
|
||||
|
||||
void CreateJobRequest::setCpu(int cpu) {
|
||||
cpu_ = cpu;
|
||||
setParameter(std::string("Cpu"), std::to_string(cpu));
|
||||
}
|
||||
|
||||
long CreateJobRequest::getBackoffLimit() const {
|
||||
return backoffLimit_;
|
||||
}
|
||||
|
||||
void CreateJobRequest::setBackoffLimit(long backoffLimit) {
|
||||
backoffLimit_ = backoffLimit;
|
||||
setParameter(std::string("BackoffLimit"), std::to_string(backoffLimit));
|
||||
}
|
||||
|
||||
std::string CreateJobRequest::getVSwitchId() const {
|
||||
return vSwitchId_;
|
||||
}
|
||||
|
||||
void CreateJobRequest::setVSwitchId(const std::string &vSwitchId) {
|
||||
vSwitchId_ = vSwitchId;
|
||||
setParameter(std::string("VSwitchId"), vSwitchId);
|
||||
}
|
||||
|
||||
std::string CreateJobRequest::getPackageType() const {
|
||||
return packageType_;
|
||||
}
|
||||
|
||||
void CreateJobRequest::setPackageType(const std::string &packageType) {
|
||||
packageType_ = packageType;
|
||||
setParameter(std::string("PackageType"), packageType);
|
||||
}
|
||||
|
||||
std::string CreateJobRequest::getPostStart() const {
|
||||
return postStart_;
|
||||
}
|
||||
|
||||
void CreateJobRequest::setPostStart(const std::string &postStart) {
|
||||
postStart_ = postStart;
|
||||
setParameter(std::string("PostStart"), postStart);
|
||||
}
|
||||
|
||||
std::string CreateJobRequest::getPhpExtensions() const {
|
||||
return phpExtensions_;
|
||||
}
|
||||
|
||||
void CreateJobRequest::setPhpExtensions(const std::string &phpExtensions) {
|
||||
phpExtensions_ = phpExtensions;
|
||||
setBodyParameter(std::string("PhpExtensions"), phpExtensions);
|
||||
}
|
||||
|
||||
bool CreateJobRequest::getAssociateEip() const {
|
||||
return associateEip_;
|
||||
}
|
||||
|
||||
void CreateJobRequest::setAssociateEip(bool associateEip) {
|
||||
associateEip_ = associateEip;
|
||||
setBodyParameter(std::string("AssociateEip"), associateEip ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string CreateJobRequest::getWebContainer() const {
|
||||
return webContainer_;
|
||||
}
|
||||
|
||||
void CreateJobRequest::setWebContainer(const std::string &webContainer) {
|
||||
webContainer_ = webContainer;
|
||||
setParameter(std::string("WebContainer"), webContainer);
|
||||
}
|
||||
|
||||
int CreateJobRequest::getMemory() const {
|
||||
return memory_;
|
||||
}
|
||||
|
||||
void CreateJobRequest::setMemory(int memory) {
|
||||
memory_ = memory;
|
||||
setParameter(std::string("Memory"), std::to_string(memory));
|
||||
}
|
||||
|
||||
std::string CreateJobRequest::getSlsConfigs() const {
|
||||
return slsConfigs_;
|
||||
}
|
||||
|
||||
void CreateJobRequest::setSlsConfigs(const std::string &slsConfigs) {
|
||||
slsConfigs_ = slsConfigs;
|
||||
setParameter(std::string("SlsConfigs"), slsConfigs);
|
||||
}
|
||||
|
||||
std::string CreateJobRequest::getCommandArgs() const {
|
||||
return commandArgs_;
|
||||
}
|
||||
|
||||
void CreateJobRequest::setCommandArgs(const std::string &commandArgs) {
|
||||
commandArgs_ = commandArgs;
|
||||
setParameter(std::string("CommandArgs"), commandArgs);
|
||||
}
|
||||
|
||||
std::string CreateJobRequest::getAcrAssumeRoleArn() const {
|
||||
return acrAssumeRoleArn_;
|
||||
}
|
||||
|
||||
void CreateJobRequest::setAcrAssumeRoleArn(const std::string &acrAssumeRoleArn) {
|
||||
acrAssumeRoleArn_ = acrAssumeRoleArn;
|
||||
setParameter(std::string("AcrAssumeRoleArn"), acrAssumeRoleArn);
|
||||
}
|
||||
|
||||
std::string CreateJobRequest::getReadiness() const {
|
||||
return readiness_;
|
||||
}
|
||||
|
||||
void CreateJobRequest::setReadiness(const std::string &readiness) {
|
||||
readiness_ = readiness;
|
||||
setParameter(std::string("Readiness"), readiness);
|
||||
}
|
||||
|
||||
std::string CreateJobRequest::getTimezone() const {
|
||||
return timezone_;
|
||||
}
|
||||
|
||||
void CreateJobRequest::setTimezone(const std::string &timezone) {
|
||||
timezone_ = timezone;
|
||||
setParameter(std::string("Timezone"), timezone);
|
||||
}
|
||||
|
||||
std::string CreateJobRequest::getOssAkId() const {
|
||||
return ossAkId_;
|
||||
}
|
||||
|
||||
void CreateJobRequest::setOssAkId(const std::string &ossAkId) {
|
||||
ossAkId_ = ossAkId;
|
||||
setBodyParameter(std::string("OssAkId"), ossAkId);
|
||||
}
|
||||
|
||||
std::string CreateJobRequest::getLiveness() const {
|
||||
return liveness_;
|
||||
}
|
||||
|
||||
void CreateJobRequest::setLiveness(const std::string &liveness) {
|
||||
liveness_ = liveness;
|
||||
setParameter(std::string("Liveness"), liveness);
|
||||
}
|
||||
|
||||
std::string CreateJobRequest::getSecurityGroupId() const {
|
||||
return securityGroupId_;
|
||||
}
|
||||
|
||||
void CreateJobRequest::setSecurityGroupId(const std::string &securityGroupId) {
|
||||
securityGroupId_ = securityGroupId;
|
||||
setParameter(std::string("SecurityGroupId"), securityGroupId);
|
||||
}
|
||||
|
||||
std::string CreateJobRequest::getPackageVersion() const {
|
||||
return packageVersion_;
|
||||
}
|
||||
|
||||
void CreateJobRequest::setPackageVersion(const std::string &packageVersion) {
|
||||
packageVersion_ = packageVersion;
|
||||
setParameter(std::string("PackageVersion"), packageVersion);
|
||||
}
|
||||
|
||||
std::string CreateJobRequest::getTomcatConfig() const {
|
||||
return tomcatConfig_;
|
||||
}
|
||||
|
||||
void CreateJobRequest::setTomcatConfig(const std::string &tomcatConfig) {
|
||||
tomcatConfig_ = tomcatConfig;
|
||||
setParameter(std::string("TomcatConfig"), tomcatConfig);
|
||||
}
|
||||
|
||||
long CreateJobRequest::getTimeout() const {
|
||||
return timeout_;
|
||||
}
|
||||
|
||||
void CreateJobRequest::setTimeout(long timeout) {
|
||||
timeout_ = timeout;
|
||||
setParameter(std::string("Timeout"), std::to_string(timeout));
|
||||
}
|
||||
|
||||
std::string CreateJobRequest::getWarStartOptions() const {
|
||||
return warStartOptions_;
|
||||
}
|
||||
|
||||
void CreateJobRequest::setWarStartOptions(const std::string &warStartOptions) {
|
||||
warStartOptions_ = warStartOptions;
|
||||
setParameter(std::string("WarStartOptions"), warStartOptions);
|
||||
}
|
||||
|
||||
std::string CreateJobRequest::getPackageRuntimeCustomBuild() const {
|
||||
return packageRuntimeCustomBuild_;
|
||||
}
|
||||
|
||||
void CreateJobRequest::setPackageRuntimeCustomBuild(const std::string &packageRuntimeCustomBuild) {
|
||||
packageRuntimeCustomBuild_ = packageRuntimeCustomBuild;
|
||||
setBodyParameter(std::string("PackageRuntimeCustomBuild"), packageRuntimeCustomBuild);
|
||||
}
|
||||
|
||||
std::string CreateJobRequest::getEdasContainerVersion() const {
|
||||
return edasContainerVersion_;
|
||||
}
|
||||
|
||||
void CreateJobRequest::setEdasContainerVersion(const std::string &edasContainerVersion) {
|
||||
edasContainerVersion_ = edasContainerVersion;
|
||||
setParameter(std::string("EdasContainerVersion"), edasContainerVersion);
|
||||
}
|
||||
|
||||
std::string CreateJobRequest::getPackageUrl() const {
|
||||
return packageUrl_;
|
||||
}
|
||||
|
||||
void CreateJobRequest::setPackageUrl(const std::string &packageUrl) {
|
||||
packageUrl_ = packageUrl;
|
||||
setParameter(std::string("PackageUrl"), packageUrl);
|
||||
}
|
||||
|
||||
int CreateJobRequest::getTerminationGracePeriodSeconds() const {
|
||||
return terminationGracePeriodSeconds_;
|
||||
}
|
||||
|
||||
void CreateJobRequest::setTerminationGracePeriodSeconds(int terminationGracePeriodSeconds) {
|
||||
terminationGracePeriodSeconds_ = terminationGracePeriodSeconds;
|
||||
setParameter(std::string("TerminationGracePeriodSeconds"), std::to_string(terminationGracePeriodSeconds));
|
||||
}
|
||||
|
||||
std::string CreateJobRequest::getPhpConfig() const {
|
||||
return phpConfig_;
|
||||
}
|
||||
|
||||
void CreateJobRequest::setPhpConfig(const std::string &phpConfig) {
|
||||
phpConfig_ = phpConfig;
|
||||
setBodyParameter(std::string("PhpConfig"), phpConfig);
|
||||
}
|
||||
|
||||
std::string CreateJobRequest::getSliceEnvs() const {
|
||||
return sliceEnvs_;
|
||||
}
|
||||
|
||||
void CreateJobRequest::setSliceEnvs(const std::string &sliceEnvs) {
|
||||
sliceEnvs_ = sliceEnvs;
|
||||
setParameter(std::string("SliceEnvs"), sliceEnvs);
|
||||
}
|
||||
|
||||
bool CreateJobRequest::getEnableImageAccl() const {
|
||||
return enableImageAccl_;
|
||||
}
|
||||
|
||||
void CreateJobRequest::setEnableImageAccl(bool enableImageAccl) {
|
||||
enableImageAccl_ = enableImageAccl;
|
||||
setBodyParameter(std::string("EnableImageAccl"), enableImageAccl ? "true" : "false");
|
||||
}
|
||||
|
||||
int CreateJobRequest::getReplicas() const {
|
||||
return replicas_;
|
||||
}
|
||||
|
||||
void CreateJobRequest::setReplicas(int replicas) {
|
||||
replicas_ = replicas;
|
||||
setParameter(std::string("Replicas"), std::to_string(replicas));
|
||||
}
|
||||
|
||||
std::string CreateJobRequest::getWorkload() const {
|
||||
return workload_;
|
||||
}
|
||||
|
||||
void CreateJobRequest::setWorkload(const std::string &workload) {
|
||||
workload_ = workload;
|
||||
setParameter(std::string("Workload"), workload);
|
||||
}
|
||||
|
||||
std::string CreateJobRequest::getCommand() const {
|
||||
return command_;
|
||||
}
|
||||
|
||||
void CreateJobRequest::setCommand(const std::string &command) {
|
||||
command_ = command;
|
||||
setParameter(std::string("Command"), command);
|
||||
}
|
||||
|
||||
std::string CreateJobRequest::getMountDesc() const {
|
||||
return mountDesc_;
|
||||
}
|
||||
|
||||
void CreateJobRequest::setMountDesc(const std::string &mountDesc) {
|
||||
mountDesc_ = mountDesc;
|
||||
setParameter(std::string("MountDesc"), mountDesc);
|
||||
}
|
||||
|
||||
std::string CreateJobRequest::getJdk() const {
|
||||
return jdk_;
|
||||
}
|
||||
|
||||
void CreateJobRequest::setJdk(const std::string &jdk) {
|
||||
jdk_ = jdk;
|
||||
setParameter(std::string("Jdk"), jdk);
|
||||
}
|
||||
|
||||
std::string CreateJobRequest::getAppDescription() const {
|
||||
return appDescription_;
|
||||
}
|
||||
|
||||
void CreateJobRequest::setAppDescription(const std::string &appDescription) {
|
||||
appDescription_ = appDescription;
|
||||
setParameter(std::string("AppDescription"), appDescription);
|
||||
}
|
||||
|
||||
std::string CreateJobRequest::getAcrInstanceId() const {
|
||||
return acrInstanceId_;
|
||||
}
|
||||
|
||||
void CreateJobRequest::setAcrInstanceId(const std::string &acrInstanceId) {
|
||||
acrInstanceId_ = acrInstanceId;
|
||||
setBodyParameter(std::string("AcrInstanceId"), acrInstanceId);
|
||||
}
|
||||
|
||||
std::string CreateJobRequest::getVpcId() const {
|
||||
return vpcId_;
|
||||
}
|
||||
|
||||
void CreateJobRequest::setVpcId(const std::string &vpcId) {
|
||||
vpcId_ = vpcId;
|
||||
setParameter(std::string("VpcId"), vpcId);
|
||||
}
|
||||
|
||||
std::string CreateJobRequest::getImageUrl() const {
|
||||
return imageUrl_;
|
||||
}
|
||||
|
||||
void CreateJobRequest::setImageUrl(const std::string &imageUrl) {
|
||||
imageUrl_ = imageUrl;
|
||||
setParameter(std::string("ImageUrl"), imageUrl);
|
||||
}
|
||||
|
||||
std::string CreateJobRequest::getPhp() const {
|
||||
return php_;
|
||||
}
|
||||
|
||||
void CreateJobRequest::setPhp(const std::string &php) {
|
||||
php_ = php;
|
||||
setBodyParameter(std::string("Php"), php);
|
||||
}
|
||||
|
||||
std::string CreateJobRequest::getRefAppId() const {
|
||||
return refAppId_;
|
||||
}
|
||||
|
||||
void CreateJobRequest::setRefAppId(const std::string &refAppId) {
|
||||
refAppId_ = refAppId;
|
||||
setParameter(std::string("RefAppId"), refAppId);
|
||||
}
|
||||
|
||||
std::string CreateJobRequest::getPythonModules() const {
|
||||
return pythonModules_;
|
||||
}
|
||||
|
||||
void CreateJobRequest::setPythonModules(const std::string &pythonModules) {
|
||||
pythonModules_ = pythonModules;
|
||||
setParameter(std::string("PythonModules"), pythonModules);
|
||||
}
|
||||
|
||||
std::string CreateJobRequest::getPhpConfigLocation() const {
|
||||
return phpConfigLocation_;
|
||||
}
|
||||
|
||||
void CreateJobRequest::setPhpConfigLocation(const std::string &phpConfigLocation) {
|
||||
phpConfigLocation_ = phpConfigLocation;
|
||||
setParameter(std::string("PhpConfigLocation"), phpConfigLocation);
|
||||
}
|
||||
|
||||
89
sae/src/model/CreateJobResult.cc
Normal file
89
sae/src/model/CreateJobResult.cc
Normal file
@@ -0,0 +1,89 @@
|
||||
/*
|
||||
* 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/sae/model/CreateJobResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Sae;
|
||||
using namespace AlibabaCloud::Sae::Model;
|
||||
|
||||
CreateJobResult::CreateJobResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateJobResult::CreateJobResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateJobResult::~CreateJobResult()
|
||||
{}
|
||||
|
||||
void CreateJobResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["ChangeOrderId"].isNull())
|
||||
data_.changeOrderId = dataNode["ChangeOrderId"].asString();
|
||||
if(!dataNode["AppId"].isNull())
|
||||
data_.appId = dataNode["AppId"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["TraceId"].isNull())
|
||||
traceId_ = value["TraceId"].asString();
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
std::string CreateJobResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string CreateJobResult::getTraceId()const
|
||||
{
|
||||
return traceId_;
|
||||
}
|
||||
|
||||
CreateJobResult::Data CreateJobResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string CreateJobResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
std::string CreateJobResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool CreateJobResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
64
sae/src/model/CreateSecretRequest.cc
Normal file
64
sae/src/model/CreateSecretRequest.cc
Normal file
@@ -0,0 +1,64 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sae/model/CreateSecretRequest.h>
|
||||
|
||||
using AlibabaCloud::Sae::Model::CreateSecretRequest;
|
||||
|
||||
CreateSecretRequest::CreateSecretRequest()
|
||||
: RoaServiceRequest("sae", "2019-05-06") {
|
||||
setResourcePath("/pop/v1/sam/secret/secret"};
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateSecretRequest::~CreateSecretRequest() {}
|
||||
|
||||
std::string CreateSecretRequest::getSecretType() const {
|
||||
return secretType_;
|
||||
}
|
||||
|
||||
void CreateSecretRequest::setSecretType(const std::string &secretType) {
|
||||
secretType_ = secretType;
|
||||
setParameter(std::string("SecretType"), secretType);
|
||||
}
|
||||
|
||||
std::string CreateSecretRequest::getNamespaceId() const {
|
||||
return namespaceId_;
|
||||
}
|
||||
|
||||
void CreateSecretRequest::setNamespaceId(const std::string &namespaceId) {
|
||||
namespaceId_ = namespaceId;
|
||||
setParameter(std::string("NamespaceId"), namespaceId);
|
||||
}
|
||||
|
||||
std::string CreateSecretRequest::getSecretData() const {
|
||||
return secretData_;
|
||||
}
|
||||
|
||||
void CreateSecretRequest::setSecretData(const std::string &secretData) {
|
||||
secretData_ = secretData;
|
||||
setBodyParameter(std::string("SecretData"), secretData);
|
||||
}
|
||||
|
||||
std::string CreateSecretRequest::getSecretName() const {
|
||||
return secretName_;
|
||||
}
|
||||
|
||||
void CreateSecretRequest::setSecretName(const std::string &secretName) {
|
||||
secretName_ = secretName;
|
||||
setParameter(std::string("SecretName"), secretName);
|
||||
}
|
||||
|
||||
87
sae/src/model/CreateSecretResult.cc
Normal file
87
sae/src/model/CreateSecretResult.cc
Normal file
@@ -0,0 +1,87 @@
|
||||
/*
|
||||
* 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/sae/model/CreateSecretResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Sae;
|
||||
using namespace AlibabaCloud::Sae::Model;
|
||||
|
||||
CreateSecretResult::CreateSecretResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateSecretResult::CreateSecretResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateSecretResult::~CreateSecretResult()
|
||||
{}
|
||||
|
||||
void CreateSecretResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["SecretId"].isNull())
|
||||
data_.secretId = std::stol(dataNode["SecretId"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["TraceId"].isNull())
|
||||
traceId_ = value["TraceId"].asString();
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
std::string CreateSecretResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string CreateSecretResult::getTraceId()const
|
||||
{
|
||||
return traceId_;
|
||||
}
|
||||
|
||||
CreateSecretResult::Data CreateSecretResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string CreateSecretResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
std::string CreateSecretResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool CreateSecretResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
46
sae/src/model/DeleteHistoryJobRequest.cc
Normal file
46
sae/src/model/DeleteHistoryJobRequest.cc
Normal file
@@ -0,0 +1,46 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sae/model/DeleteHistoryJobRequest.h>
|
||||
|
||||
using AlibabaCloud::Sae::Model::DeleteHistoryJobRequest;
|
||||
|
||||
DeleteHistoryJobRequest::DeleteHistoryJobRequest()
|
||||
: RoaServiceRequest("sae", "2019-05-06") {
|
||||
setResourcePath("/pop/v1/sam/job/deleteHistoryJob"};
|
||||
setMethod(HttpRequest::Method::Delete);
|
||||
}
|
||||
|
||||
DeleteHistoryJobRequest::~DeleteHistoryJobRequest() {}
|
||||
|
||||
std::string DeleteHistoryJobRequest::getJobId() const {
|
||||
return jobId_;
|
||||
}
|
||||
|
||||
void DeleteHistoryJobRequest::setJobId(const std::string &jobId) {
|
||||
jobId_ = jobId;
|
||||
setParameter(std::string("JobId"), jobId);
|
||||
}
|
||||
|
||||
std::string DeleteHistoryJobRequest::getAppId() const {
|
||||
return appId_;
|
||||
}
|
||||
|
||||
void DeleteHistoryJobRequest::setAppId(const std::string &appId) {
|
||||
appId_ = appId;
|
||||
setParameter(std::string("AppId"), appId);
|
||||
}
|
||||
|
||||
86
sae/src/model/DeleteHistoryJobResult.cc
Normal file
86
sae/src/model/DeleteHistoryJobResult.cc
Normal file
@@ -0,0 +1,86 @@
|
||||
/*
|
||||
* 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/sae/model/DeleteHistoryJobResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Sae;
|
||||
using namespace AlibabaCloud::Sae::Model;
|
||||
|
||||
DeleteHistoryJobResult::DeleteHistoryJobResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteHistoryJobResult::DeleteHistoryJobResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteHistoryJobResult::~DeleteHistoryJobResult()
|
||||
{}
|
||||
|
||||
void DeleteHistoryJobResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["TraceId"].isNull())
|
||||
traceId_ = value["TraceId"].asString();
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString();
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
std::string DeleteHistoryJobResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string DeleteHistoryJobResult::getTraceId()const
|
||||
{
|
||||
return traceId_;
|
||||
}
|
||||
|
||||
std::string DeleteHistoryJobResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string DeleteHistoryJobResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
std::string DeleteHistoryJobResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool DeleteHistoryJobResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
37
sae/src/model/DeleteJobRequest.cc
Normal file
37
sae/src/model/DeleteJobRequest.cc
Normal file
@@ -0,0 +1,37 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sae/model/DeleteJobRequest.h>
|
||||
|
||||
using AlibabaCloud::Sae::Model::DeleteJobRequest;
|
||||
|
||||
DeleteJobRequest::DeleteJobRequest()
|
||||
: RoaServiceRequest("sae", "2019-05-06") {
|
||||
setResourcePath("/pop/v1/sam/job/deleteJob"};
|
||||
setMethod(HttpRequest::Method::Delete);
|
||||
}
|
||||
|
||||
DeleteJobRequest::~DeleteJobRequest() {}
|
||||
|
||||
std::string DeleteJobRequest::getAppId() const {
|
||||
return appId_;
|
||||
}
|
||||
|
||||
void DeleteJobRequest::setAppId(const std::string &appId) {
|
||||
appId_ = appId;
|
||||
setParameter(std::string("AppId"), appId);
|
||||
}
|
||||
|
||||
86
sae/src/model/DeleteJobResult.cc
Normal file
86
sae/src/model/DeleteJobResult.cc
Normal file
@@ -0,0 +1,86 @@
|
||||
/*
|
||||
* 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/sae/model/DeleteJobResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Sae;
|
||||
using namespace AlibabaCloud::Sae::Model;
|
||||
|
||||
DeleteJobResult::DeleteJobResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteJobResult::DeleteJobResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteJobResult::~DeleteJobResult()
|
||||
{}
|
||||
|
||||
void DeleteJobResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["TraceId"].isNull())
|
||||
traceId_ = value["TraceId"].asString();
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString();
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
std::string DeleteJobResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string DeleteJobResult::getTraceId()const
|
||||
{
|
||||
return traceId_;
|
||||
}
|
||||
|
||||
std::string DeleteJobResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string DeleteJobResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
std::string DeleteJobResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool DeleteJobResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
46
sae/src/model/DeleteSecretRequest.cc
Normal file
46
sae/src/model/DeleteSecretRequest.cc
Normal file
@@ -0,0 +1,46 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sae/model/DeleteSecretRequest.h>
|
||||
|
||||
using AlibabaCloud::Sae::Model::DeleteSecretRequest;
|
||||
|
||||
DeleteSecretRequest::DeleteSecretRequest()
|
||||
: RoaServiceRequest("sae", "2019-05-06") {
|
||||
setResourcePath("/pop/v1/sam/secret/secret"};
|
||||
setMethod(HttpRequest::Method::Delete);
|
||||
}
|
||||
|
||||
DeleteSecretRequest::~DeleteSecretRequest() {}
|
||||
|
||||
std::string DeleteSecretRequest::getNamespaceId() const {
|
||||
return namespaceId_;
|
||||
}
|
||||
|
||||
void DeleteSecretRequest::setNamespaceId(const std::string &namespaceId) {
|
||||
namespaceId_ = namespaceId;
|
||||
setParameter(std::string("NamespaceId"), namespaceId);
|
||||
}
|
||||
|
||||
long DeleteSecretRequest::getSecretId() const {
|
||||
return secretId_;
|
||||
}
|
||||
|
||||
void DeleteSecretRequest::setSecretId(long secretId) {
|
||||
secretId_ = secretId;
|
||||
setParameter(std::string("SecretId"), std::to_string(secretId));
|
||||
}
|
||||
|
||||
87
sae/src/model/DeleteSecretResult.cc
Normal file
87
sae/src/model/DeleteSecretResult.cc
Normal file
@@ -0,0 +1,87 @@
|
||||
/*
|
||||
* 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/sae/model/DeleteSecretResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Sae;
|
||||
using namespace AlibabaCloud::Sae::Model;
|
||||
|
||||
DeleteSecretResult::DeleteSecretResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteSecretResult::DeleteSecretResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteSecretResult::~DeleteSecretResult()
|
||||
{}
|
||||
|
||||
void DeleteSecretResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["SecretId"].isNull())
|
||||
data_.secretId = std::stol(dataNode["SecretId"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["TraceId"].isNull())
|
||||
traceId_ = value["TraceId"].asString();
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
std::string DeleteSecretResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string DeleteSecretResult::getTraceId()const
|
||||
{
|
||||
return traceId_;
|
||||
}
|
||||
|
||||
DeleteSecretResult::Data DeleteSecretResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string DeleteSecretResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
std::string DeleteSecretResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool DeleteSecretResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
@@ -53,6 +53,15 @@ void DeployApplicationRequest::setOssAkSecret(const std::string &ossAkSecret) {
|
||||
setBodyParameter(std::string("OssAkSecret"), ossAkSecret);
|
||||
}
|
||||
|
||||
std::string DeployApplicationRequest::getNasConfigs() const {
|
||||
return nasConfigs_;
|
||||
}
|
||||
|
||||
void DeployApplicationRequest::setNasConfigs(const std::string &nasConfigs) {
|
||||
nasConfigs_ = nasConfigs;
|
||||
setParameter(std::string("NasConfigs"), nasConfigs);
|
||||
}
|
||||
|
||||
std::string DeployApplicationRequest::getMountHost() const {
|
||||
return mountHost_;
|
||||
}
|
||||
@@ -80,15 +89,6 @@ void DeployApplicationRequest::setEnvs(const std::string &envs) {
|
||||
setParameter(std::string("Envs"), envs);
|
||||
}
|
||||
|
||||
std::string DeployApplicationRequest::getKafkaInstanceId() const {
|
||||
return kafkaInstanceId_;
|
||||
}
|
||||
|
||||
void DeployApplicationRequest::setKafkaInstanceId(const std::string &kafkaInstanceId) {
|
||||
kafkaInstanceId_ = kafkaInstanceId;
|
||||
setParameter(std::string("KafkaInstanceId"), kafkaInstanceId);
|
||||
}
|
||||
|
||||
std::string DeployApplicationRequest::getPhpPECLExtensions() const {
|
||||
return phpPECLExtensions_;
|
||||
}
|
||||
@@ -116,6 +116,15 @@ void DeployApplicationRequest::setCustomHostAlias(const std::string &customHostA
|
||||
setParameter(std::string("CustomHostAlias"), customHostAlias);
|
||||
}
|
||||
|
||||
std::string DeployApplicationRequest::getDeploy() const {
|
||||
return deploy_;
|
||||
}
|
||||
|
||||
void DeployApplicationRequest::setDeploy(const std::string &deploy) {
|
||||
deploy_ = deploy;
|
||||
setParameter(std::string("Deploy"), deploy);
|
||||
}
|
||||
|
||||
std::string DeployApplicationRequest::getJarStartOptions() const {
|
||||
return jarStartOptions_;
|
||||
}
|
||||
@@ -125,6 +134,15 @@ void DeployApplicationRequest::setJarStartOptions(const std::string &jarStartOpt
|
||||
setParameter(std::string("JarStartOptions"), jarStartOptions);
|
||||
}
|
||||
|
||||
std::string DeployApplicationRequest::getPvtzDiscoverySvc() const {
|
||||
return pvtzDiscoverySvc_;
|
||||
}
|
||||
|
||||
void DeployApplicationRequest::setPvtzDiscoverySvc(const std::string &pvtzDiscoverySvc) {
|
||||
pvtzDiscoverySvc_ = pvtzDiscoverySvc;
|
||||
setParameter(std::string("PvtzDiscoverySvc"), pvtzDiscoverySvc);
|
||||
}
|
||||
|
||||
std::string DeployApplicationRequest::getConfigMapMountDesc() const {
|
||||
return configMapMountDesc_;
|
||||
}
|
||||
@@ -143,13 +161,13 @@ void DeployApplicationRequest::setOssMountDescs(const std::string &ossMountDescs
|
||||
setBodyParameter(std::string("OssMountDescs"), ossMountDescs);
|
||||
}
|
||||
|
||||
std::string DeployApplicationRequest::getKafkaEndpoint() const {
|
||||
return kafkaEndpoint_;
|
||||
std::string DeployApplicationRequest::getImagePullSecrets() const {
|
||||
return imagePullSecrets_;
|
||||
}
|
||||
|
||||
void DeployApplicationRequest::setKafkaEndpoint(const std::string &kafkaEndpoint) {
|
||||
kafkaEndpoint_ = kafkaEndpoint;
|
||||
setParameter(std::string("KafkaEndpoint"), kafkaEndpoint);
|
||||
void DeployApplicationRequest::setImagePullSecrets(const std::string &imagePullSecrets) {
|
||||
imagePullSecrets_ = imagePullSecrets;
|
||||
setParameter(std::string("ImagePullSecrets"), imagePullSecrets);
|
||||
}
|
||||
|
||||
std::string DeployApplicationRequest::getPreStop() const {
|
||||
@@ -161,6 +179,15 @@ void DeployApplicationRequest::setPreStop(const std::string &preStop) {
|
||||
setParameter(std::string("PreStop"), preStop);
|
||||
}
|
||||
|
||||
std::string DeployApplicationRequest::getPython() const {
|
||||
return python_;
|
||||
}
|
||||
|
||||
void DeployApplicationRequest::setPython(const std::string &python) {
|
||||
python_ = python;
|
||||
setParameter(std::string("Python"), python);
|
||||
}
|
||||
|
||||
std::string DeployApplicationRequest::getUpdateStrategy() const {
|
||||
return updateStrategy_;
|
||||
}
|
||||
@@ -260,15 +287,6 @@ void DeployApplicationRequest::setKafkaConfigs(const std::string &kafkaConfigs)
|
||||
setParameter(std::string("KafkaConfigs"), kafkaConfigs);
|
||||
}
|
||||
|
||||
bool DeployApplicationRequest::getOpenCollectToKafka() const {
|
||||
return openCollectToKafka_;
|
||||
}
|
||||
|
||||
void DeployApplicationRequest::setOpenCollectToKafka(bool openCollectToKafka) {
|
||||
openCollectToKafka_ = openCollectToKafka;
|
||||
setParameter(std::string("OpenCollectToKafka"), openCollectToKafka ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string DeployApplicationRequest::getCommandArgs() const {
|
||||
return commandArgs_;
|
||||
}
|
||||
@@ -350,6 +368,15 @@ void DeployApplicationRequest::setWarStartOptions(const std::string &warStartOpt
|
||||
setParameter(std::string("WarStartOptions"), warStartOptions);
|
||||
}
|
||||
|
||||
std::string DeployApplicationRequest::getPackageRuntimeCustomBuild() const {
|
||||
return packageRuntimeCustomBuild_;
|
||||
}
|
||||
|
||||
void DeployApplicationRequest::setPackageRuntimeCustomBuild(const std::string &packageRuntimeCustomBuild) {
|
||||
packageRuntimeCustomBuild_ = packageRuntimeCustomBuild;
|
||||
setBodyParameter(std::string("PackageRuntimeCustomBuild"), packageRuntimeCustomBuild);
|
||||
}
|
||||
|
||||
std::string DeployApplicationRequest::getEdasContainerVersion() const {
|
||||
return edasContainerVersion_;
|
||||
}
|
||||
@@ -386,6 +413,24 @@ void DeployApplicationRequest::setPhpConfig(const std::string &phpConfig) {
|
||||
setBodyParameter(std::string("PhpConfig"), phpConfig);
|
||||
}
|
||||
|
||||
bool DeployApplicationRequest::getEnableImageAccl() const {
|
||||
return enableImageAccl_;
|
||||
}
|
||||
|
||||
void DeployApplicationRequest::setEnableImageAccl(bool enableImageAccl) {
|
||||
enableImageAccl_ = enableImageAccl;
|
||||
setBodyParameter(std::string("EnableImageAccl"), enableImageAccl ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string DeployApplicationRequest::getMicroRegistration() const {
|
||||
return microRegistration_;
|
||||
}
|
||||
|
||||
void DeployApplicationRequest::setMicroRegistration(const std::string µRegistration) {
|
||||
microRegistration_ = microRegistration;
|
||||
setParameter(std::string("MicroRegistration"), microRegistration);
|
||||
}
|
||||
|
||||
bool DeployApplicationRequest::getEnableGreyTagRoute() const {
|
||||
return enableGreyTagRoute_;
|
||||
}
|
||||
@@ -431,15 +476,6 @@ void DeployApplicationRequest::setMinReadyInstances(int minReadyInstances) {
|
||||
setParameter(std::string("MinReadyInstances"), std::to_string(minReadyInstances));
|
||||
}
|
||||
|
||||
std::string DeployApplicationRequest::getKafkaLogfileConfig() const {
|
||||
return kafkaLogfileConfig_;
|
||||
}
|
||||
|
||||
void DeployApplicationRequest::setKafkaLogfileConfig(const std::string &kafkaLogfileConfig) {
|
||||
kafkaLogfileConfig_ = kafkaLogfileConfig;
|
||||
setParameter(std::string("KafkaLogfileConfig"), kafkaLogfileConfig);
|
||||
}
|
||||
|
||||
std::string DeployApplicationRequest::getAcrInstanceId() const {
|
||||
return acrInstanceId_;
|
||||
}
|
||||
@@ -476,6 +512,15 @@ void DeployApplicationRequest::setPhp(const std::string &php) {
|
||||
setBodyParameter(std::string("Php"), php);
|
||||
}
|
||||
|
||||
std::string DeployApplicationRequest::getPythonModules() const {
|
||||
return pythonModules_;
|
||||
}
|
||||
|
||||
void DeployApplicationRequest::setPythonModules(const std::string &pythonModules) {
|
||||
pythonModules_ = pythonModules;
|
||||
setParameter(std::string("PythonModules"), pythonModules);
|
||||
}
|
||||
|
||||
std::string DeployApplicationRequest::getPhpConfigLocation() const {
|
||||
return phpConfigLocation_;
|
||||
}
|
||||
|
||||
@@ -60,6 +60,8 @@ void DescribeApplicationConfigResult::parse(const std::string &payload)
|
||||
data_.packageUrl = dataNode["PackageUrl"].asString();
|
||||
if(!dataNode["PackageType"].isNull())
|
||||
data_.packageType = dataNode["PackageType"].asString();
|
||||
if(!dataNode["PackageRuntimeCustomBuild"].isNull())
|
||||
data_.packageRuntimeCustomBuild = dataNode["PackageRuntimeCustomBuild"].asString();
|
||||
if(!dataNode["PreStop"].isNull())
|
||||
data_.preStop = dataNode["PreStop"].asString();
|
||||
if(!dataNode["PackageVersion"].isNull())
|
||||
@@ -144,12 +146,26 @@ void DescribeApplicationConfigResult::parse(const std::string &payload)
|
||||
data_.acrInstanceId = dataNode["AcrInstanceId"].asString();
|
||||
if(!dataNode["AcrAssumeRoleArn"].isNull())
|
||||
data_.acrAssumeRoleArn = dataNode["AcrAssumeRoleArn"].asString();
|
||||
if(!dataNode["ImagePullSecrets"].isNull())
|
||||
data_.imagePullSecrets = dataNode["ImagePullSecrets"].asString();
|
||||
if(!dataNode["EnableImageAccl"].isNull())
|
||||
data_.enableImageAccl = dataNode["EnableImageAccl"].asString() == "true";
|
||||
if(!dataNode["AssociateEip"].isNull())
|
||||
data_.associateEip = dataNode["AssociateEip"].asString() == "true";
|
||||
if(!dataNode["KafkaConfigs"].isNull())
|
||||
data_.kafkaConfigs = dataNode["KafkaConfigs"].asString();
|
||||
if(!dataNode["ProgrammingLanguage"].isNull())
|
||||
data_.programmingLanguage = dataNode["ProgrammingLanguage"].asString();
|
||||
if(!dataNode["PvtzDiscovery"].isNull())
|
||||
data_.pvtzDiscovery = dataNode["PvtzDiscovery"].asString();
|
||||
if(!dataNode["MicroRegistration"].isNull())
|
||||
data_.microRegistration = dataNode["MicroRegistration"].asString();
|
||||
if(!dataNode["NasConfigs"].isNull())
|
||||
data_.nasConfigs = dataNode["NasConfigs"].asString();
|
||||
if(!dataNode["Python"].isNull())
|
||||
data_.python = dataNode["Python"].asString();
|
||||
if(!dataNode["PythonModules"].isNull())
|
||||
data_.pythonModules = dataNode["PythonModules"].asString();
|
||||
auto allConfigMapMountDescNode = dataNode["ConfigMapMountDesc"]["ConfigMapMountDescItem"];
|
||||
for (auto dataNodeConfigMapMountDescConfigMapMountDescItem : allConfigMapMountDescNode)
|
||||
{
|
||||
|
||||
@@ -74,6 +74,8 @@ void DescribeApplicationInstancesResult::parse(const std::string &payload)
|
||||
instanceObject.eip = dataNodeInstancesInstance["Eip"].asString();
|
||||
if(!dataNodeInstancesInstance["FinishTimeStamp"].isNull())
|
||||
instanceObject.finishTimeStamp = std::stol(dataNodeInstancesInstance["FinishTimeStamp"].asString());
|
||||
if(!dataNodeInstancesInstance["DebugStatus"].isNull())
|
||||
instanceObject.debugStatus = dataNodeInstancesInstance["DebugStatus"].asString() == "true";
|
||||
data_.instances.push_back(instanceObject);
|
||||
}
|
||||
if(!value["Message"].isNull())
|
||||
|
||||
@@ -48,6 +48,10 @@ void DescribeApplicationSlbsResult::parse(const std::string &payload)
|
||||
data_.intranetSlbId = dataNode["IntranetSlbId"].asString();
|
||||
if(!dataNode["IntranetIp"].isNull())
|
||||
data_.intranetIp = dataNode["IntranetIp"].asString();
|
||||
if(!dataNode["InternetSlbExpired"].isNull())
|
||||
data_.internetSlbExpired = dataNode["InternetSlbExpired"].asString() == "true";
|
||||
if(!dataNode["IntranetSlbExpired"].isNull())
|
||||
data_.intranetSlbExpired = dataNode["IntranetSlbExpired"].asString() == "true";
|
||||
auto allIntranetNode = dataNode["Intranet"]["IntranetItem"];
|
||||
for (auto dataNodeIntranetIntranetItem : allIntranetNode)
|
||||
{
|
||||
|
||||
@@ -44,3 +44,12 @@ void DescribeConfigurationPriceRequest::setCpu(int cpu) {
|
||||
setParameter(std::string("Cpu"), std::to_string(cpu));
|
||||
}
|
||||
|
||||
std::string DescribeConfigurationPriceRequest::getWorkload() const {
|
||||
return workload_;
|
||||
}
|
||||
|
||||
void DescribeConfigurationPriceRequest::setWorkload(const std::string &workload) {
|
||||
workload_ = workload;
|
||||
setParameter(std::string("Workload"), workload);
|
||||
}
|
||||
|
||||
|
||||
@@ -52,6 +52,8 @@ void DescribeIngressResult::parse(const std::string &payload)
|
||||
data_.slbType = dataNode["SlbType"].asString();
|
||||
if(!dataNode["CertId"].isNull())
|
||||
data_.certId = dataNode["CertId"].asString();
|
||||
if(!dataNode["CertIds"].isNull())
|
||||
data_.certIds = dataNode["CertIds"].asString();
|
||||
if(!dataNode["Name"].isNull())
|
||||
data_.name = dataNode["Name"].asString();
|
||||
if(!dataNode["Id"].isNull())
|
||||
@@ -74,6 +76,8 @@ void DescribeIngressResult::parse(const std::string &payload)
|
||||
ruleObject.appId = dataNodeRulesRule["AppId"].asString();
|
||||
if(!dataNodeRulesRule["Path"].isNull())
|
||||
ruleObject.path = dataNodeRulesRule["Path"].asString();
|
||||
if(!dataNodeRulesRule["BackendProtocol"].isNull())
|
||||
ruleObject.backendProtocol = dataNodeRulesRule["BackendProtocol"].asString();
|
||||
data_.rules.push_back(ruleObject);
|
||||
}
|
||||
auto defaultRuleNode = dataNode["DefaultRule"];
|
||||
@@ -83,6 +87,8 @@ void DescribeIngressResult::parse(const std::string &payload)
|
||||
data_.defaultRule.appName = defaultRuleNode["AppName"].asString();
|
||||
if(!defaultRuleNode["AppId"].isNull())
|
||||
data_.defaultRule.appId = defaultRuleNode["AppId"].asString();
|
||||
if(!defaultRuleNode["BackendProtocol"].isNull())
|
||||
data_.defaultRule.backendProtocol = defaultRuleNode["BackendProtocol"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["TraceId"].isNull())
|
||||
|
||||
64
sae/src/model/DescribeJobHistoryRequest.cc
Normal file
64
sae/src/model/DescribeJobHistoryRequest.cc
Normal file
@@ -0,0 +1,64 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sae/model/DescribeJobHistoryRequest.h>
|
||||
|
||||
using AlibabaCloud::Sae::Model::DescribeJobHistoryRequest;
|
||||
|
||||
DescribeJobHistoryRequest::DescribeJobHistoryRequest()
|
||||
: RoaServiceRequest("sae", "2019-05-06") {
|
||||
setResourcePath("/pop/v1/sam/job/describeJobHistory"};
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
DescribeJobHistoryRequest::~DescribeJobHistoryRequest() {}
|
||||
|
||||
std::string DescribeJobHistoryRequest::getAppId() const {
|
||||
return appId_;
|
||||
}
|
||||
|
||||
void DescribeJobHistoryRequest::setAppId(const std::string &appId) {
|
||||
appId_ = appId;
|
||||
setParameter(std::string("AppId"), appId);
|
||||
}
|
||||
|
||||
long DescribeJobHistoryRequest::getPageSize() const {
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void DescribeJobHistoryRequest::setPageSize(long pageSize) {
|
||||
pageSize_ = pageSize;
|
||||
setParameter(std::string("PageSize"), std::to_string(pageSize));
|
||||
}
|
||||
|
||||
long DescribeJobHistoryRequest::getCurrentPage() const {
|
||||
return currentPage_;
|
||||
}
|
||||
|
||||
void DescribeJobHistoryRequest::setCurrentPage(long currentPage) {
|
||||
currentPage_ = currentPage;
|
||||
setParameter(std::string("CurrentPage"), std::to_string(currentPage));
|
||||
}
|
||||
|
||||
std::string DescribeJobHistoryRequest::getState() const {
|
||||
return state_;
|
||||
}
|
||||
|
||||
void DescribeJobHistoryRequest::setState(const std::string &state) {
|
||||
state_ = state;
|
||||
setParameter(std::string("State"), state);
|
||||
}
|
||||
|
||||
113
sae/src/model/DescribeJobHistoryResult.cc
Normal file
113
sae/src/model/DescribeJobHistoryResult.cc
Normal file
@@ -0,0 +1,113 @@
|
||||
/*
|
||||
* 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/sae/model/DescribeJobHistoryResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Sae;
|
||||
using namespace AlibabaCloud::Sae::Model;
|
||||
|
||||
DescribeJobHistoryResult::DescribeJobHistoryResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeJobHistoryResult::DescribeJobHistoryResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeJobHistoryResult::~DescribeJobHistoryResult()
|
||||
{}
|
||||
|
||||
void DescribeJobHistoryResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["CurrentPage"].isNull())
|
||||
data_.currentPage = std::stol(dataNode["CurrentPage"].asString());
|
||||
if(!dataNode["TotalSize"].isNull())
|
||||
data_.totalSize = std::stol(dataNode["TotalSize"].asString());
|
||||
if(!dataNode["PageSize"].isNull())
|
||||
data_.pageSize = std::stol(dataNode["PageSize"].asString());
|
||||
auto allJobsNode = dataNode["Jobs"]["job"];
|
||||
for (auto dataNodeJobsjob : allJobsNode)
|
||||
{
|
||||
Data::Job jobObject;
|
||||
if(!dataNodeJobsjob["JobId"].isNull())
|
||||
jobObject.jobId = dataNodeJobsjob["JobId"].asString();
|
||||
if(!dataNodeJobsjob["Active"].isNull())
|
||||
jobObject.active = std::stol(dataNodeJobsjob["Active"].asString());
|
||||
if(!dataNodeJobsjob["Succeeded"].isNull())
|
||||
jobObject.succeeded = std::stol(dataNodeJobsjob["Succeeded"].asString());
|
||||
if(!dataNodeJobsjob["Failed"].isNull())
|
||||
jobObject.failed = std::stol(dataNodeJobsjob["Failed"].asString());
|
||||
if(!dataNodeJobsjob["StartTime"].isNull())
|
||||
jobObject.startTime = std::stol(dataNodeJobsjob["StartTime"].asString());
|
||||
if(!dataNodeJobsjob["CompletionTime"].isNull())
|
||||
jobObject.completionTime = std::stol(dataNodeJobsjob["CompletionTime"].asString());
|
||||
if(!dataNodeJobsjob["Message"].isNull())
|
||||
jobObject.message = dataNodeJobsjob["Message"].asString();
|
||||
if(!dataNodeJobsjob["State"].isNull())
|
||||
jobObject.state = dataNodeJobsjob["State"].asString();
|
||||
data_.jobs.push_back(jobObject);
|
||||
}
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["TraceId"].isNull())
|
||||
traceId_ = value["TraceId"].asString();
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
std::string DescribeJobHistoryResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string DescribeJobHistoryResult::getTraceId()const
|
||||
{
|
||||
return traceId_;
|
||||
}
|
||||
|
||||
DescribeJobHistoryResult::Data DescribeJobHistoryResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string DescribeJobHistoryResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
std::string DescribeJobHistoryResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool DescribeJobHistoryResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
55
sae/src/model/DescribeJobRequest.cc
Normal file
55
sae/src/model/DescribeJobRequest.cc
Normal file
@@ -0,0 +1,55 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sae/model/DescribeJobRequest.h>
|
||||
|
||||
using AlibabaCloud::Sae::Model::DescribeJobRequest;
|
||||
|
||||
DescribeJobRequest::DescribeJobRequest()
|
||||
: RoaServiceRequest("sae", "2019-05-06") {
|
||||
setResourcePath("/pop/v1/sam/job/describeJob"};
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
DescribeJobRequest::~DescribeJobRequest() {}
|
||||
|
||||
std::string DescribeJobRequest::getJobId() const {
|
||||
return jobId_;
|
||||
}
|
||||
|
||||
void DescribeJobRequest::setJobId(const std::string &jobId) {
|
||||
jobId_ = jobId;
|
||||
setParameter(std::string("JobId"), jobId);
|
||||
}
|
||||
|
||||
std::string DescribeJobRequest::getVersionId() const {
|
||||
return versionId_;
|
||||
}
|
||||
|
||||
void DescribeJobRequest::setVersionId(const std::string &versionId) {
|
||||
versionId_ = versionId;
|
||||
setParameter(std::string("VersionId"), versionId);
|
||||
}
|
||||
|
||||
std::string DescribeJobRequest::getAppId() const {
|
||||
return appId_;
|
||||
}
|
||||
|
||||
void DescribeJobRequest::setAppId(const std::string &appId) {
|
||||
appId_ = appId;
|
||||
setParameter(std::string("AppId"), appId);
|
||||
}
|
||||
|
||||
274
sae/src/model/DescribeJobResult.cc
Normal file
274
sae/src/model/DescribeJobResult.cc
Normal file
@@ -0,0 +1,274 @@
|
||||
/*
|
||||
* 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/sae/model/DescribeJobResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Sae;
|
||||
using namespace AlibabaCloud::Sae::Model;
|
||||
|
||||
DescribeJobResult::DescribeJobResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeJobResult::DescribeJobResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeJobResult::~DescribeJobResult()
|
||||
{}
|
||||
|
||||
void DescribeJobResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["VpcId"].isNull())
|
||||
data_.vpcId = dataNode["VpcId"].asString();
|
||||
if(!dataNode["Readiness"].isNull())
|
||||
data_.readiness = dataNode["Readiness"].asString();
|
||||
if(!dataNode["SecurityGroupId"].isNull())
|
||||
data_.securityGroupId = dataNode["SecurityGroupId"].asString();
|
||||
if(!dataNode["BatchWaitTime"].isNull())
|
||||
data_.batchWaitTime = std::stoi(dataNode["BatchWaitTime"].asString());
|
||||
if(!dataNode["Jdk"].isNull())
|
||||
data_.jdk = dataNode["Jdk"].asString();
|
||||
if(!dataNode["ImageUrl"].isNull())
|
||||
data_.imageUrl = dataNode["ImageUrl"].asString();
|
||||
if(!dataNode["SlsConfigs"].isNull())
|
||||
data_.slsConfigs = dataNode["SlsConfigs"].asString();
|
||||
if(!dataNode["Liveness"].isNull())
|
||||
data_.liveness = dataNode["Liveness"].asString();
|
||||
if(!dataNode["PackageUrl"].isNull())
|
||||
data_.packageUrl = dataNode["PackageUrl"].asString();
|
||||
if(!dataNode["PackageType"].isNull())
|
||||
data_.packageType = dataNode["PackageType"].asString();
|
||||
if(!dataNode["PackageRuntimeCustomBuild"].isNull())
|
||||
data_.packageRuntimeCustomBuild = dataNode["PackageRuntimeCustomBuild"].asString();
|
||||
if(!dataNode["PreStop"].isNull())
|
||||
data_.preStop = dataNode["PreStop"].asString();
|
||||
if(!dataNode["PackageVersion"].isNull())
|
||||
data_.packageVersion = dataNode["PackageVersion"].asString();
|
||||
if(!dataNode["JarStartArgs"].isNull())
|
||||
data_.jarStartArgs = dataNode["JarStartArgs"].asString();
|
||||
if(!dataNode["AppName"].isNull())
|
||||
data_.appName = dataNode["AppName"].asString();
|
||||
if(!dataNode["AppId"].isNull())
|
||||
data_.appId = dataNode["AppId"].asString();
|
||||
if(!dataNode["JarStartOptions"].isNull())
|
||||
data_.jarStartOptions = dataNode["JarStartOptions"].asString();
|
||||
if(!dataNode["Replicas"].isNull())
|
||||
data_.replicas = std::stoi(dataNode["Replicas"].asString());
|
||||
if(!dataNode["MinReadyInstances"].isNull())
|
||||
data_.minReadyInstances = std::stoi(dataNode["MinReadyInstances"].asString());
|
||||
if(!dataNode["Memory"].isNull())
|
||||
data_.memory = std::stoi(dataNode["Memory"].asString());
|
||||
if(!dataNode["Php"].isNull())
|
||||
data_.php = dataNode["Php"].asString();
|
||||
if(!dataNode["PhpConfig"].isNull())
|
||||
data_.phpConfig = dataNode["PhpConfig"].asString();
|
||||
if(!dataNode["PhpConfigLocation"].isNull())
|
||||
data_.phpConfigLocation = dataNode["PhpConfigLocation"].asString();
|
||||
if(!dataNode["PhpExtensions"].isNull())
|
||||
data_.phpExtensions = dataNode["PhpExtensions"].asString();
|
||||
if(!dataNode["PhpPECLExtensions"].isNull())
|
||||
data_.phpPECLExtensions = dataNode["PhpPECLExtensions"].asString();
|
||||
if(!dataNode["PostStart"].isNull())
|
||||
data_.postStart = dataNode["PostStart"].asString();
|
||||
if(!dataNode["TerminationGracePeriodSeconds"].isNull())
|
||||
data_.terminationGracePeriodSeconds = std::stoi(dataNode["TerminationGracePeriodSeconds"].asString());
|
||||
if(!dataNode["CommandArgs"].isNull())
|
||||
data_.commandArgs = dataNode["CommandArgs"].asString();
|
||||
if(!dataNode["NamespaceId"].isNull())
|
||||
data_.namespaceId = dataNode["NamespaceId"].asString();
|
||||
if(!dataNode["MountHost"].isNull())
|
||||
data_.mountHost = dataNode["MountHost"].asString();
|
||||
if(!dataNode["TomcatConfig"].isNull())
|
||||
data_.tomcatConfig = dataNode["TomcatConfig"].asString();
|
||||
if(!dataNode["RegionId"].isNull())
|
||||
data_.regionId = dataNode["RegionId"].asString();
|
||||
if(!dataNode["VSwitchId"].isNull())
|
||||
data_.vSwitchId = dataNode["VSwitchId"].asString();
|
||||
if(!dataNode["Cpu"].isNull())
|
||||
data_.cpu = std::stoi(dataNode["Cpu"].asString());
|
||||
if(!dataNode["Envs"].isNull())
|
||||
data_.envs = dataNode["Envs"].asString();
|
||||
if(!dataNode["EnableAhas"].isNull())
|
||||
data_.enableAhas = dataNode["EnableAhas"].asString();
|
||||
if(!dataNode["CustomHostAlias"].isNull())
|
||||
data_.customHostAlias = dataNode["CustomHostAlias"].asString();
|
||||
if(!dataNode["WebContainer"].isNull())
|
||||
data_.webContainer = dataNode["WebContainer"].asString();
|
||||
if(!dataNode["Command"].isNull())
|
||||
data_.command = dataNode["Command"].asString();
|
||||
if(!dataNode["WarStartOptions"].isNull())
|
||||
data_.warStartOptions = dataNode["WarStartOptions"].asString();
|
||||
if(!dataNode["PhpArmsConfigLocation"].isNull())
|
||||
data_.phpArmsConfigLocation = dataNode["PhpArmsConfigLocation"].asString();
|
||||
if(!dataNode["NasId"].isNull())
|
||||
data_.nasId = dataNode["NasId"].asString();
|
||||
if(!dataNode["OssAkId"].isNull())
|
||||
data_.ossAkId = dataNode["OssAkId"].asString();
|
||||
if(!dataNode["OssAkSecret"].isNull())
|
||||
data_.ossAkSecret = dataNode["OssAkSecret"].asString();
|
||||
if(!dataNode["EdasContainerVersion"].isNull())
|
||||
data_.edasContainerVersion = dataNode["EdasContainerVersion"].asString();
|
||||
if(!dataNode["Timezone"].isNull())
|
||||
data_.timezone = dataNode["Timezone"].asString();
|
||||
if(!dataNode["AppDescription"].isNull())
|
||||
data_.appDescription = dataNode["AppDescription"].asString();
|
||||
if(!dataNode["EnableGreyTagRoute"].isNull())
|
||||
data_.enableGreyTagRoute = dataNode["EnableGreyTagRoute"].asString() == "true";
|
||||
if(!dataNode["MseApplicationId"].isNull())
|
||||
data_.mseApplicationId = dataNode["MseApplicationId"].asString();
|
||||
if(!dataNode["AcrInstanceId"].isNull())
|
||||
data_.acrInstanceId = dataNode["AcrInstanceId"].asString();
|
||||
if(!dataNode["AcrAssumeRoleArn"].isNull())
|
||||
data_.acrAssumeRoleArn = dataNode["AcrAssumeRoleArn"].asString();
|
||||
if(!dataNode["ImagePullSecrets"].isNull())
|
||||
data_.imagePullSecrets = dataNode["ImagePullSecrets"].asString();
|
||||
if(!dataNode["EnableImageAccl"].isNull())
|
||||
data_.enableImageAccl = dataNode["EnableImageAccl"].asString() == "true";
|
||||
if(!dataNode["AssociateEip"].isNull())
|
||||
data_.associateEip = dataNode["AssociateEip"].asString() == "true";
|
||||
if(!dataNode["TriggerConfig"].isNull())
|
||||
data_.triggerConfig = dataNode["TriggerConfig"].asString();
|
||||
if(!dataNode["ConcurrencyPolicy"].isNull())
|
||||
data_.concurrencyPolicy = dataNode["ConcurrencyPolicy"].asString();
|
||||
if(!dataNode["Suspend"].isNull())
|
||||
data_.suspend = dataNode["Suspend"].asString() == "true";
|
||||
if(!dataNode["Timeout"].isNull())
|
||||
data_.timeout = std::stol(dataNode["Timeout"].asString());
|
||||
if(!dataNode["BackoffLimit"].isNull())
|
||||
data_.backoffLimit = std::stol(dataNode["BackoffLimit"].asString());
|
||||
if(!dataNode["Slice"].isNull())
|
||||
data_.slice = dataNode["Slice"].asString() == "true";
|
||||
if(!dataNode["SliceEnvs"].isNull())
|
||||
data_.sliceEnvs = dataNode["SliceEnvs"].asString();
|
||||
if(!dataNode["RefAppId"].isNull())
|
||||
data_.refAppId = dataNode["RefAppId"].asString();
|
||||
if(!dataNode["ProgrammingLanguage"].isNull())
|
||||
data_.programmingLanguage = dataNode["ProgrammingLanguage"].asString();
|
||||
if(!dataNode["NasConfigs"].isNull())
|
||||
data_.nasConfigs = dataNode["NasConfigs"].asString();
|
||||
if(!dataNode["Python"].isNull())
|
||||
data_.python = dataNode["Python"].asString();
|
||||
if(!dataNode["PythonModules"].isNull())
|
||||
data_.pythonModules = dataNode["PythonModules"].asString();
|
||||
auto allConfigMapMountDescNode = dataNode["ConfigMapMountDesc"]["ConfigMapMountDescItem"];
|
||||
for (auto dataNodeConfigMapMountDescConfigMapMountDescItem : allConfigMapMountDescNode)
|
||||
{
|
||||
Data::ConfigMapMountDescItem configMapMountDescItemObject;
|
||||
if(!dataNodeConfigMapMountDescConfigMapMountDescItem["Key"].isNull())
|
||||
configMapMountDescItemObject.key = dataNodeConfigMapMountDescConfigMapMountDescItem["Key"].asString();
|
||||
if(!dataNodeConfigMapMountDescConfigMapMountDescItem["ConfigMapName"].isNull())
|
||||
configMapMountDescItemObject.configMapName = dataNodeConfigMapMountDescConfigMapMountDescItem["ConfigMapName"].asString();
|
||||
if(!dataNodeConfigMapMountDescConfigMapMountDescItem["MountPath"].isNull())
|
||||
configMapMountDescItemObject.mountPath = dataNodeConfigMapMountDescConfigMapMountDescItem["MountPath"].asString();
|
||||
if(!dataNodeConfigMapMountDescConfigMapMountDescItem["ConfigMapId"].isNull())
|
||||
configMapMountDescItemObject.configMapId = std::stol(dataNodeConfigMapMountDescConfigMapMountDescItem["ConfigMapId"].asString());
|
||||
data_.configMapMountDesc.push_back(configMapMountDescItemObject);
|
||||
}
|
||||
auto allTagsNode = dataNode["Tags"]["Tag"];
|
||||
for (auto dataNodeTagsTag : allTagsNode)
|
||||
{
|
||||
Data::Tag tagObject;
|
||||
if(!dataNodeTagsTag["Key"].isNull())
|
||||
tagObject.key = dataNodeTagsTag["Key"].asString();
|
||||
if(!dataNodeTagsTag["Value"].isNull())
|
||||
tagObject.value = dataNodeTagsTag["Value"].asString();
|
||||
data_.tags.push_back(tagObject);
|
||||
}
|
||||
auto allMountDescNode = dataNode["MountDesc"]["MountDescItem"];
|
||||
for (auto dataNodeMountDescMountDescItem : allMountDescNode)
|
||||
{
|
||||
Data::MountDescItem mountDescItemObject;
|
||||
if(!dataNodeMountDescMountDescItem["MountPath"].isNull())
|
||||
mountDescItemObject.mountPath = dataNodeMountDescMountDescItem["MountPath"].asString();
|
||||
if(!dataNodeMountDescMountDescItem["NasPath"].isNull())
|
||||
mountDescItemObject.nasPath = dataNodeMountDescMountDescItem["NasPath"].asString();
|
||||
data_.mountDesc.push_back(mountDescItemObject);
|
||||
}
|
||||
auto allOssMountDescsNode = dataNode["OssMountDescs"]["ossMountDesc"];
|
||||
for (auto dataNodeOssMountDescsossMountDesc : allOssMountDescsNode)
|
||||
{
|
||||
Data::OssMountDesc ossMountDescObject;
|
||||
if(!dataNodeOssMountDescsossMountDesc["bucketName"].isNull())
|
||||
ossMountDescObject.bucketName = dataNodeOssMountDescsossMountDesc["bucketName"].asString();
|
||||
if(!dataNodeOssMountDescsossMountDesc["bucketPath"].isNull())
|
||||
ossMountDescObject.bucketPath = dataNodeOssMountDescsossMountDesc["bucketPath"].asString();
|
||||
if(!dataNodeOssMountDescsossMountDesc["mountPath"].isNull())
|
||||
ossMountDescObject.mountPath = dataNodeOssMountDescsossMountDesc["mountPath"].asString();
|
||||
if(!dataNodeOssMountDescsossMountDesc["readOnly"].isNull())
|
||||
ossMountDescObject.readOnly = dataNodeOssMountDescsossMountDesc["readOnly"].asString() == "true";
|
||||
data_.ossMountDescs.push_back(ossMountDescObject);
|
||||
}
|
||||
auto allRefedAppIds = dataNode["RefedAppIds"]["appId"];
|
||||
for (auto value : allRefedAppIds)
|
||||
data_.refedAppIds.push_back(value.asString());
|
||||
auto allPublicWebHookUrls = dataNode["PublicWebHookUrls"]["publicWebHookUrl"];
|
||||
for (auto value : allPublicWebHookUrls)
|
||||
data_.publicWebHookUrls.push_back(value.asString());
|
||||
auto allVpcWebHookUrls = dataNode["VpcWebHookUrls"]["vpcWebHookUrl"];
|
||||
for (auto value : allVpcWebHookUrls)
|
||||
data_.vpcWebHookUrls.push_back(value.asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["TraceId"].isNull())
|
||||
traceId_ = value["TraceId"].asString();
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
std::string DescribeJobResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string DescribeJobResult::getTraceId()const
|
||||
{
|
||||
return traceId_;
|
||||
}
|
||||
|
||||
DescribeJobResult::Data DescribeJobResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string DescribeJobResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
std::string DescribeJobResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool DescribeJobResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
46
sae/src/model/DescribeJobStatusRequest.cc
Normal file
46
sae/src/model/DescribeJobStatusRequest.cc
Normal file
@@ -0,0 +1,46 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sae/model/DescribeJobStatusRequest.h>
|
||||
|
||||
using AlibabaCloud::Sae::Model::DescribeJobStatusRequest;
|
||||
|
||||
DescribeJobStatusRequest::DescribeJobStatusRequest()
|
||||
: RoaServiceRequest("sae", "2019-05-06") {
|
||||
setResourcePath("/pop/v1/sam/job/describeJobStatus"};
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
DescribeJobStatusRequest::~DescribeJobStatusRequest() {}
|
||||
|
||||
std::string DescribeJobStatusRequest::getJobId() const {
|
||||
return jobId_;
|
||||
}
|
||||
|
||||
void DescribeJobStatusRequest::setJobId(const std::string &jobId) {
|
||||
jobId_ = jobId;
|
||||
setParameter(std::string("JobId"), jobId);
|
||||
}
|
||||
|
||||
std::string DescribeJobStatusRequest::getAppId() const {
|
||||
return appId_;
|
||||
}
|
||||
|
||||
void DescribeJobStatusRequest::setAppId(const std::string &appId) {
|
||||
appId_ = appId;
|
||||
setParameter(std::string("AppId"), appId);
|
||||
}
|
||||
|
||||
101
sae/src/model/DescribeJobStatusResult.cc
Normal file
101
sae/src/model/DescribeJobStatusResult.cc
Normal file
@@ -0,0 +1,101 @@
|
||||
/*
|
||||
* 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/sae/model/DescribeJobStatusResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Sae;
|
||||
using namespace AlibabaCloud::Sae::Model;
|
||||
|
||||
DescribeJobStatusResult::DescribeJobStatusResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeJobStatusResult::DescribeJobStatusResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeJobStatusResult::~DescribeJobStatusResult()
|
||||
{}
|
||||
|
||||
void DescribeJobStatusResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["JobId"].isNull())
|
||||
data_.jobId = dataNode["JobId"].asString();
|
||||
if(!dataNode["Active"].isNull())
|
||||
data_.active = std::stol(dataNode["Active"].asString());
|
||||
if(!dataNode["Succeeded"].isNull())
|
||||
data_.succeeded = std::stol(dataNode["Succeeded"].asString());
|
||||
if(!dataNode["Failed"].isNull())
|
||||
data_.failed = std::stol(dataNode["Failed"].asString());
|
||||
if(!dataNode["StartTime"].isNull())
|
||||
data_.startTime = std::stol(dataNode["StartTime"].asString());
|
||||
if(!dataNode["CompletionTime"].isNull())
|
||||
data_.completionTime = std::stol(dataNode["CompletionTime"].asString());
|
||||
if(!dataNode["Message"].isNull())
|
||||
data_.message = dataNode["Message"].asString();
|
||||
if(!dataNode["State"].isNull())
|
||||
data_.state = dataNode["State"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["TraceId"].isNull())
|
||||
traceId_ = value["TraceId"].asString();
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
std::string DescribeJobStatusResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string DescribeJobStatusResult::getTraceId()const
|
||||
{
|
||||
return traceId_;
|
||||
}
|
||||
|
||||
DescribeJobStatusResult::Data DescribeJobStatusResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string DescribeJobStatusResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
std::string DescribeJobStatusResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool DescribeJobStatusResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
@@ -74,6 +74,8 @@ void DescribeNamespaceResourcesResult::parse(const std::string &payload)
|
||||
data_.tenantId = dataNode["TenantId"].asString();
|
||||
if(!dataNode["JumpServerAppId"].isNull())
|
||||
data_.jumpServerAppId = dataNode["JumpServerAppId"].asString();
|
||||
if(!dataNode["JumpServerIp"].isNull())
|
||||
data_.jumpServerIp = dataNode["JumpServerIp"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["TraceId"].isNull())
|
||||
|
||||
46
sae/src/model/DescribeSecretRequest.cc
Normal file
46
sae/src/model/DescribeSecretRequest.cc
Normal file
@@ -0,0 +1,46 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sae/model/DescribeSecretRequest.h>
|
||||
|
||||
using AlibabaCloud::Sae::Model::DescribeSecretRequest;
|
||||
|
||||
DescribeSecretRequest::DescribeSecretRequest()
|
||||
: RoaServiceRequest("sae", "2019-05-06") {
|
||||
setResourcePath("/pop/v1/sam/secret/secret"};
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
DescribeSecretRequest::~DescribeSecretRequest() {}
|
||||
|
||||
std::string DescribeSecretRequest::getNamespaceId() const {
|
||||
return namespaceId_;
|
||||
}
|
||||
|
||||
void DescribeSecretRequest::setNamespaceId(const std::string &namespaceId) {
|
||||
namespaceId_ = namespaceId;
|
||||
setParameter(std::string("NamespaceId"), namespaceId);
|
||||
}
|
||||
|
||||
long DescribeSecretRequest::getSecretId() const {
|
||||
return secretId_;
|
||||
}
|
||||
|
||||
void DescribeSecretRequest::setSecretId(long secretId) {
|
||||
secretId_ = secretId;
|
||||
setParameter(std::string("SecretId"), std::to_string(secretId));
|
||||
}
|
||||
|
||||
109
sae/src/model/DescribeSecretResult.cc
Normal file
109
sae/src/model/DescribeSecretResult.cc
Normal file
@@ -0,0 +1,109 @@
|
||||
/*
|
||||
* 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/sae/model/DescribeSecretResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Sae;
|
||||
using namespace AlibabaCloud::Sae::Model;
|
||||
|
||||
DescribeSecretResult::DescribeSecretResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeSecretResult::DescribeSecretResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeSecretResult::~DescribeSecretResult()
|
||||
{}
|
||||
|
||||
void DescribeSecretResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["NamespaceId"].isNull())
|
||||
data_.namespaceId = dataNode["NamespaceId"].asString();
|
||||
if(!dataNode["SecretId"].isNull())
|
||||
data_.secretId = std::stol(dataNode["SecretId"].asString());
|
||||
if(!dataNode["SecretName"].isNull())
|
||||
data_.secretName = dataNode["SecretName"].asString();
|
||||
if(!dataNode["SecretType"].isNull())
|
||||
data_.secretType = dataNode["SecretType"].asString();
|
||||
if(!dataNode["SecretData"].isNull())
|
||||
data_.secretData = dataNode["SecretData"].asString();
|
||||
if(!dataNode["CreateTime"].isNull())
|
||||
data_.createTime = std::stol(dataNode["CreateTime"].asString());
|
||||
if(!dataNode["UpdateTime"].isNull())
|
||||
data_.updateTime = std::stol(dataNode["UpdateTime"].asString());
|
||||
auto allRelateAppsNode = dataNode["RelateApps"]["RelateApp"];
|
||||
for (auto dataNodeRelateAppsRelateApp : allRelateAppsNode)
|
||||
{
|
||||
Data::RelateApp relateAppObject;
|
||||
if(!dataNodeRelateAppsRelateApp["AppId"].isNull())
|
||||
relateAppObject.appId = dataNodeRelateAppsRelateApp["AppId"].asString();
|
||||
if(!dataNodeRelateAppsRelateApp["AppName"].isNull())
|
||||
relateAppObject.appName = dataNodeRelateAppsRelateApp["AppName"].asString();
|
||||
data_.relateApps.push_back(relateAppObject);
|
||||
}
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["TraceId"].isNull())
|
||||
traceId_ = value["TraceId"].asString();
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
std::string DescribeSecretResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string DescribeSecretResult::getTraceId()const
|
||||
{
|
||||
return traceId_;
|
||||
}
|
||||
|
||||
DescribeSecretResult::Data DescribeSecretResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string DescribeSecretResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
std::string DescribeSecretResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool DescribeSecretResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
109
sae/src/model/ExecJobRequest.cc
Normal file
109
sae/src/model/ExecJobRequest.cc
Normal file
@@ -0,0 +1,109 @@
|
||||
/*
|
||||
* 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/sae/model/ExecJobRequest.h>
|
||||
|
||||
using AlibabaCloud::Sae::Model::ExecJobRequest;
|
||||
|
||||
ExecJobRequest::ExecJobRequest()
|
||||
: RoaServiceRequest("sae", "2019-05-06") {
|
||||
setResourcePath("/pop/v1/sam/job/execJob"};
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
ExecJobRequest::~ExecJobRequest() {}
|
||||
|
||||
std::string ExecJobRequest::getEventId() const {
|
||||
return eventId_;
|
||||
}
|
||||
|
||||
void ExecJobRequest::setEventId(const std::string &eventId) {
|
||||
eventId_ = eventId;
|
||||
setParameter(std::string("EventId"), eventId);
|
||||
}
|
||||
|
||||
std::string ExecJobRequest::getJarStartOptions() const {
|
||||
return jarStartOptions_;
|
||||
}
|
||||
|
||||
void ExecJobRequest::setJarStartOptions(const std::string &jarStartOptions) {
|
||||
jarStartOptions_ = jarStartOptions;
|
||||
setParameter(std::string("JarStartOptions"), jarStartOptions);
|
||||
}
|
||||
|
||||
std::string ExecJobRequest::getJarStartArgs() const {
|
||||
return jarStartArgs_;
|
||||
}
|
||||
|
||||
void ExecJobRequest::setJarStartArgs(const std::string &jarStartArgs) {
|
||||
jarStartArgs_ = jarStartArgs;
|
||||
setParameter(std::string("JarStartArgs"), jarStartArgs);
|
||||
}
|
||||
|
||||
std::string ExecJobRequest::getCommandArgs() const {
|
||||
return commandArgs_;
|
||||
}
|
||||
|
||||
void ExecJobRequest::setCommandArgs(const std::string &commandArgs) {
|
||||
commandArgs_ = commandArgs;
|
||||
setParameter(std::string("CommandArgs"), commandArgs);
|
||||
}
|
||||
|
||||
std::string ExecJobRequest::getAppId() const {
|
||||
return appId_;
|
||||
}
|
||||
|
||||
void ExecJobRequest::setAppId(const std::string &appId) {
|
||||
appId_ = appId;
|
||||
setParameter(std::string("AppId"), appId);
|
||||
}
|
||||
|
||||
std::string ExecJobRequest::getEnvs() const {
|
||||
return envs_;
|
||||
}
|
||||
|
||||
void ExecJobRequest::setEnvs(const std::string &envs) {
|
||||
envs_ = envs;
|
||||
setParameter(std::string("Envs"), envs);
|
||||
}
|
||||
|
||||
std::string ExecJobRequest::getTime() const {
|
||||
return time_;
|
||||
}
|
||||
|
||||
void ExecJobRequest::setTime(const std::string &time) {
|
||||
time_ = time;
|
||||
setParameter(std::string("Time"), time);
|
||||
}
|
||||
|
||||
std::string ExecJobRequest::getCommand() const {
|
||||
return command_;
|
||||
}
|
||||
|
||||
void ExecJobRequest::setCommand(const std::string &command) {
|
||||
command_ = command;
|
||||
setParameter(std::string("Command"), command);
|
||||
}
|
||||
|
||||
std::string ExecJobRequest::getWarStartOptions() const {
|
||||
return warStartOptions_;
|
||||
}
|
||||
|
||||
void ExecJobRequest::setWarStartOptions(const std::string &warStartOptions) {
|
||||
warStartOptions_ = warStartOptions;
|
||||
setParameter(std::string("WarStartOptions"), warStartOptions);
|
||||
}
|
||||
|
||||
93
sae/src/model/ExecJobResult.cc
Normal file
93
sae/src/model/ExecJobResult.cc
Normal file
@@ -0,0 +1,93 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sae/model/ExecJobResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Sae;
|
||||
using namespace AlibabaCloud::Sae::Model;
|
||||
|
||||
ExecJobResult::ExecJobResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ExecJobResult::ExecJobResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ExecJobResult::~ExecJobResult()
|
||||
{}
|
||||
|
||||
void ExecJobResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["Data"].isNull())
|
||||
data_.data = dataNode["Data"].asString();
|
||||
if(!dataNode["Msg"].isNull())
|
||||
data_.msg = dataNode["Msg"].asString();
|
||||
if(!dataNode["Success"].isNull())
|
||||
data_.success = dataNode["Success"].asString();
|
||||
if(!dataNode["Code"].isNull())
|
||||
data_.code = dataNode["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["TraceId"].isNull())
|
||||
traceId_ = value["TraceId"].asString();
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
std::string ExecJobResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string ExecJobResult::getTraceId()const
|
||||
{
|
||||
return traceId_;
|
||||
}
|
||||
|
||||
ExecJobResult::Data ExecJobResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string ExecJobResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
std::string ExecJobResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool ExecJobResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
@@ -56,6 +56,8 @@ void ListIngressesResult::parse(const std::string &payload)
|
||||
ingressObject.slbType = dataNodeIngressListIngress["SlbType"].asString();
|
||||
if(!dataNodeIngressListIngress["CertId"].isNull())
|
||||
ingressObject.certId = dataNodeIngressListIngress["CertId"].asString();
|
||||
if(!dataNodeIngressListIngress["CertIds"].isNull())
|
||||
ingressObject.certIds = dataNodeIngressListIngress["CertIds"].asString();
|
||||
if(!dataNodeIngressListIngress["Name"].isNull())
|
||||
ingressObject.name = dataNodeIngressListIngress["Name"].asString();
|
||||
if(!dataNodeIngressListIngress["Id"].isNull())
|
||||
|
||||
118
sae/src/model/ListJobsRequest.cc
Normal file
118
sae/src/model/ListJobsRequest.cc
Normal file
@@ -0,0 +1,118 @@
|
||||
/*
|
||||
* 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/sae/model/ListJobsRequest.h>
|
||||
|
||||
using AlibabaCloud::Sae::Model::ListJobsRequest;
|
||||
|
||||
ListJobsRequest::ListJobsRequest()
|
||||
: RoaServiceRequest("sae", "2019-05-06") {
|
||||
setResourcePath("/pop/v1/sam/job/listJobs"};
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
ListJobsRequest::~ListJobsRequest() {}
|
||||
|
||||
std::string ListJobsRequest::getAppName() const {
|
||||
return appName_;
|
||||
}
|
||||
|
||||
void ListJobsRequest::setAppName(const std::string &appName) {
|
||||
appName_ = appName;
|
||||
setParameter(std::string("AppName"), appName);
|
||||
}
|
||||
|
||||
std::string ListJobsRequest::getNamespaceId() const {
|
||||
return namespaceId_;
|
||||
}
|
||||
|
||||
void ListJobsRequest::setNamespaceId(const std::string &namespaceId) {
|
||||
namespaceId_ = namespaceId;
|
||||
setParameter(std::string("NamespaceId"), namespaceId);
|
||||
}
|
||||
|
||||
int ListJobsRequest::getPageSize() const {
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void ListJobsRequest::setPageSize(int pageSize) {
|
||||
pageSize_ = pageSize;
|
||||
setParameter(std::string("PageSize"), std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string ListJobsRequest::getOrderBy() const {
|
||||
return orderBy_;
|
||||
}
|
||||
|
||||
void ListJobsRequest::setOrderBy(const std::string &orderBy) {
|
||||
orderBy_ = orderBy;
|
||||
setParameter(std::string("OrderBy"), orderBy);
|
||||
}
|
||||
|
||||
std::string ListJobsRequest::getWorkload() const {
|
||||
return workload_;
|
||||
}
|
||||
|
||||
void ListJobsRequest::setWorkload(const std::string &workload) {
|
||||
workload_ = workload;
|
||||
setParameter(std::string("Workload"), workload);
|
||||
}
|
||||
|
||||
int ListJobsRequest::getCurrentPage() const {
|
||||
return currentPage_;
|
||||
}
|
||||
|
||||
void ListJobsRequest::setCurrentPage(int currentPage) {
|
||||
currentPage_ = currentPage;
|
||||
setParameter(std::string("CurrentPage"), std::to_string(currentPage));
|
||||
}
|
||||
|
||||
std::string ListJobsRequest::getFieldValue() const {
|
||||
return fieldValue_;
|
||||
}
|
||||
|
||||
void ListJobsRequest::setFieldValue(const std::string &fieldValue) {
|
||||
fieldValue_ = fieldValue;
|
||||
setParameter(std::string("FieldValue"), fieldValue);
|
||||
}
|
||||
|
||||
bool ListJobsRequest::getReverse() const {
|
||||
return reverse_;
|
||||
}
|
||||
|
||||
void ListJobsRequest::setReverse(bool reverse) {
|
||||
reverse_ = reverse;
|
||||
setParameter(std::string("Reverse"), reverse ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string ListJobsRequest::getFieldType() const {
|
||||
return fieldType_;
|
||||
}
|
||||
|
||||
void ListJobsRequest::setFieldType(const std::string &fieldType) {
|
||||
fieldType_ = fieldType;
|
||||
setParameter(std::string("FieldType"), fieldType);
|
||||
}
|
||||
|
||||
std::string ListJobsRequest::getTags() const {
|
||||
return tags_;
|
||||
}
|
||||
|
||||
void ListJobsRequest::setTags(const std::string &tags) {
|
||||
tags_ = tags;
|
||||
setParameter(std::string("Tags"), tags);
|
||||
}
|
||||
|
||||
159
sae/src/model/ListJobsResult.cc
Normal file
159
sae/src/model/ListJobsResult.cc
Normal file
@@ -0,0 +1,159 @@
|
||||
/*
|
||||
* 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/sae/model/ListJobsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Sae;
|
||||
using namespace AlibabaCloud::Sae::Model;
|
||||
|
||||
ListJobsResult::ListJobsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListJobsResult::ListJobsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListJobsResult::~ListJobsResult()
|
||||
{}
|
||||
|
||||
void ListJobsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["CurrentPage"].isNull())
|
||||
data_.currentPage = std::stoi(dataNode["CurrentPage"].asString());
|
||||
if(!dataNode["TotalSize"].isNull())
|
||||
data_.totalSize = std::stoi(dataNode["TotalSize"].asString());
|
||||
if(!dataNode["PageSize"].isNull())
|
||||
data_.pageSize = std::stoi(dataNode["PageSize"].asString());
|
||||
auto allApplicationsNode = dataNode["Applications"]["Application"];
|
||||
for (auto dataNodeApplicationsApplication : allApplicationsNode)
|
||||
{
|
||||
Data::Application applicationObject;
|
||||
if(!dataNodeApplicationsApplication["AppName"].isNull())
|
||||
applicationObject.appName = dataNodeApplicationsApplication["AppName"].asString();
|
||||
if(!dataNodeApplicationsApplication["NamespaceId"].isNull())
|
||||
applicationObject.namespaceId = dataNodeApplicationsApplication["NamespaceId"].asString();
|
||||
if(!dataNodeApplicationsApplication["AppDeletingStatus"].isNull())
|
||||
applicationObject.appDeletingStatus = dataNodeApplicationsApplication["AppDeletingStatus"].asString() == "true";
|
||||
if(!dataNodeApplicationsApplication["AppId"].isNull())
|
||||
applicationObject.appId = dataNodeApplicationsApplication["AppId"].asString();
|
||||
if(!dataNodeApplicationsApplication["ScaleRuleEnabled"].isNull())
|
||||
applicationObject.scaleRuleEnabled = dataNodeApplicationsApplication["ScaleRuleEnabled"].asString() == "true";
|
||||
if(!dataNodeApplicationsApplication["ScaleRuleType"].isNull())
|
||||
applicationObject.scaleRuleType = dataNodeApplicationsApplication["ScaleRuleType"].asString();
|
||||
if(!dataNodeApplicationsApplication["RunningInstances"].isNull())
|
||||
applicationObject.runningInstances = std::stoi(dataNodeApplicationsApplication["RunningInstances"].asString());
|
||||
if(!dataNodeApplicationsApplication["Instances"].isNull())
|
||||
applicationObject.instances = std::stoi(dataNodeApplicationsApplication["Instances"].asString());
|
||||
if(!dataNodeApplicationsApplication["RegionId"].isNull())
|
||||
applicationObject.regionId = dataNodeApplicationsApplication["RegionId"].asString();
|
||||
if(!dataNodeApplicationsApplication["AppDescription"].isNull())
|
||||
applicationObject.appDescription = dataNodeApplicationsApplication["AppDescription"].asString();
|
||||
if(!dataNodeApplicationsApplication["TriggerConfig"].isNull())
|
||||
applicationObject.triggerConfig = dataNodeApplicationsApplication["TriggerConfig"].asString();
|
||||
if(!dataNodeApplicationsApplication["Suspend"].isNull())
|
||||
applicationObject.suspend = dataNodeApplicationsApplication["Suspend"].asString() == "true";
|
||||
if(!dataNodeApplicationsApplication["Active"].isNull())
|
||||
applicationObject.active = std::stol(dataNodeApplicationsApplication["Active"].asString());
|
||||
if(!dataNodeApplicationsApplication["Succeeded"].isNull())
|
||||
applicationObject.succeeded = std::stol(dataNodeApplicationsApplication["Succeeded"].asString());
|
||||
if(!dataNodeApplicationsApplication["Failed"].isNull())
|
||||
applicationObject.failed = std::stol(dataNodeApplicationsApplication["Failed"].asString());
|
||||
if(!dataNodeApplicationsApplication["LastStartTime"].isNull())
|
||||
applicationObject.lastStartTime = std::stol(dataNodeApplicationsApplication["LastStartTime"].asString());
|
||||
if(!dataNodeApplicationsApplication["CompletionTime"].isNull())
|
||||
applicationObject.completionTime = std::stol(dataNodeApplicationsApplication["CompletionTime"].asString());
|
||||
if(!dataNodeApplicationsApplication["LastChangeorderState"].isNull())
|
||||
applicationObject.lastChangeorderState = dataNodeApplicationsApplication["LastChangeorderState"].asString();
|
||||
if(!dataNodeApplicationsApplication["LastJobState"].isNull())
|
||||
applicationObject.lastJobState = dataNodeApplicationsApplication["LastJobState"].asString();
|
||||
auto allTagsNode = dataNodeApplicationsApplication["Tags"]["TagsItem"];
|
||||
for (auto dataNodeApplicationsApplicationTagsTagsItem : allTagsNode)
|
||||
{
|
||||
Data::Application::TagsItem tagsObject;
|
||||
if(!dataNodeApplicationsApplicationTagsTagsItem["Key"].isNull())
|
||||
tagsObject.key = dataNodeApplicationsApplicationTagsTagsItem["Key"].asString();
|
||||
if(!dataNodeApplicationsApplicationTagsTagsItem["Value"].isNull())
|
||||
tagsObject.value = dataNodeApplicationsApplicationTagsTagsItem["Value"].asString();
|
||||
applicationObject.tags.push_back(tagsObject);
|
||||
}
|
||||
data_.applications.push_back(applicationObject);
|
||||
}
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["CurrentPage"].isNull())
|
||||
currentPage_ = std::stoi(value["CurrentPage"].asString());
|
||||
if(!value["TotalSize"].isNull())
|
||||
totalSize_ = std::stoi(value["TotalSize"].asString());
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stoi(value["PageSize"].asString());
|
||||
|
||||
}
|
||||
|
||||
std::string ListJobsResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int ListJobsResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
int ListJobsResult::getCurrentPage()const
|
||||
{
|
||||
return currentPage_;
|
||||
}
|
||||
|
||||
ListJobsResult::Data ListJobsResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string ListJobsResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
int ListJobsResult::getTotalSize()const
|
||||
{
|
||||
return totalSize_;
|
||||
}
|
||||
|
||||
std::string ListJobsResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool ListJobsResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
37
sae/src/model/ListSecretsRequest.cc
Normal file
37
sae/src/model/ListSecretsRequest.cc
Normal file
@@ -0,0 +1,37 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sae/model/ListSecretsRequest.h>
|
||||
|
||||
using AlibabaCloud::Sae::Model::ListSecretsRequest;
|
||||
|
||||
ListSecretsRequest::ListSecretsRequest()
|
||||
: RoaServiceRequest("sae", "2019-05-06") {
|
||||
setResourcePath("/pop/v1/sam/secret/secrets"};
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
ListSecretsRequest::~ListSecretsRequest() {}
|
||||
|
||||
std::string ListSecretsRequest::getNamespaceId() const {
|
||||
return namespaceId_;
|
||||
}
|
||||
|
||||
void ListSecretsRequest::setNamespaceId(const std::string &namespaceId) {
|
||||
namespaceId_ = namespaceId;
|
||||
setParameter(std::string("NamespaceId"), namespaceId);
|
||||
}
|
||||
|
||||
115
sae/src/model/ListSecretsResult.cc
Normal file
115
sae/src/model/ListSecretsResult.cc
Normal file
@@ -0,0 +1,115 @@
|
||||
/*
|
||||
* 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/sae/model/ListSecretsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Sae;
|
||||
using namespace AlibabaCloud::Sae::Model;
|
||||
|
||||
ListSecretsResult::ListSecretsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListSecretsResult::ListSecretsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListSecretsResult::~ListSecretsResult()
|
||||
{}
|
||||
|
||||
void ListSecretsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
auto allSecretsNode = dataNode["Secrets"]["Secret"];
|
||||
for (auto dataNodeSecretsSecret : allSecretsNode)
|
||||
{
|
||||
Data::Secret secretObject;
|
||||
if(!dataNodeSecretsSecret["NamespaceId"].isNull())
|
||||
secretObject.namespaceId = dataNodeSecretsSecret["NamespaceId"].asString();
|
||||
if(!dataNodeSecretsSecret["SecretId"].isNull())
|
||||
secretObject.secretId = std::stol(dataNodeSecretsSecret["SecretId"].asString());
|
||||
if(!dataNodeSecretsSecret["SecretName"].isNull())
|
||||
secretObject.secretName = dataNodeSecretsSecret["SecretName"].asString();
|
||||
if(!dataNodeSecretsSecret["SecretType"].isNull())
|
||||
secretObject.secretType = dataNodeSecretsSecret["SecretType"].asString();
|
||||
if(!dataNodeSecretsSecret["SecretData"].isNull())
|
||||
secretObject.secretData = dataNodeSecretsSecret["SecretData"].asString();
|
||||
if(!dataNodeSecretsSecret["CreateTime"].isNull())
|
||||
secretObject.createTime = std::stol(dataNodeSecretsSecret["CreateTime"].asString());
|
||||
if(!dataNodeSecretsSecret["UpdateTime"].isNull())
|
||||
secretObject.updateTime = std::stol(dataNodeSecretsSecret["UpdateTime"].asString());
|
||||
auto allRelateAppsNode = dataNodeSecretsSecret["RelateApps"]["RelateApp"];
|
||||
for (auto dataNodeSecretsSecretRelateAppsRelateApp : allRelateAppsNode)
|
||||
{
|
||||
Data::Secret::RelateApp relateAppsObject;
|
||||
if(!dataNodeSecretsSecretRelateAppsRelateApp["AppName"].isNull())
|
||||
relateAppsObject.appName = dataNodeSecretsSecretRelateAppsRelateApp["AppName"].asString();
|
||||
if(!dataNodeSecretsSecretRelateAppsRelateApp["AppId"].isNull())
|
||||
relateAppsObject.appId = dataNodeSecretsSecretRelateAppsRelateApp["AppId"].asString();
|
||||
secretObject.relateApps.push_back(relateAppsObject);
|
||||
}
|
||||
data_.secrets.push_back(secretObject);
|
||||
}
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["TraceId"].isNull())
|
||||
traceId_ = value["TraceId"].asString();
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
std::string ListSecretsResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string ListSecretsResult::getTraceId()const
|
||||
{
|
||||
return traceId_;
|
||||
}
|
||||
|
||||
ListSecretsResult::Data ListSecretsResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string ListSecretsResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
std::string ListSecretsResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool ListSecretsResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
46
sae/src/model/SuspendJobRequest.cc
Normal file
46
sae/src/model/SuspendJobRequest.cc
Normal file
@@ -0,0 +1,46 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sae/model/SuspendJobRequest.h>
|
||||
|
||||
using AlibabaCloud::Sae::Model::SuspendJobRequest;
|
||||
|
||||
SuspendJobRequest::SuspendJobRequest()
|
||||
: RoaServiceRequest("sae", "2019-05-06") {
|
||||
setResourcePath("/pop/v1/sam/job/suspendJob"};
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
SuspendJobRequest::~SuspendJobRequest() {}
|
||||
|
||||
bool SuspendJobRequest::getSuspend() const {
|
||||
return suspend_;
|
||||
}
|
||||
|
||||
void SuspendJobRequest::setSuspend(bool suspend) {
|
||||
suspend_ = suspend;
|
||||
setParameter(std::string("Suspend"), suspend ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string SuspendJobRequest::getAppId() const {
|
||||
return appId_;
|
||||
}
|
||||
|
||||
void SuspendJobRequest::setAppId(const std::string &appId) {
|
||||
appId_ = appId;
|
||||
setParameter(std::string("AppId"), appId);
|
||||
}
|
||||
|
||||
86
sae/src/model/SuspendJobResult.cc
Normal file
86
sae/src/model/SuspendJobResult.cc
Normal file
@@ -0,0 +1,86 @@
|
||||
/*
|
||||
* 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/sae/model/SuspendJobResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Sae;
|
||||
using namespace AlibabaCloud::Sae::Model;
|
||||
|
||||
SuspendJobResult::SuspendJobResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
SuspendJobResult::SuspendJobResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
SuspendJobResult::~SuspendJobResult()
|
||||
{}
|
||||
|
||||
void SuspendJobResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["TraceId"].isNull())
|
||||
traceId_ = value["TraceId"].asString();
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString();
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
std::string SuspendJobResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string SuspendJobResult::getTraceId()const
|
||||
{
|
||||
return traceId_;
|
||||
}
|
||||
|
||||
std::string SuspendJobResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string SuspendJobResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
std::string SuspendJobResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool SuspendJobResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
@@ -80,6 +80,15 @@ void UpdateIngressRequest::setCertId(const std::string &certId) {
|
||||
setParameter(std::string("CertId"), certId);
|
||||
}
|
||||
|
||||
std::string UpdateIngressRequest::getCertIds() const {
|
||||
return certIds_;
|
||||
}
|
||||
|
||||
void UpdateIngressRequest::setCertIds(const std::string &certIds) {
|
||||
certIds_ = certIds;
|
||||
setParameter(std::string("CertIds"), certIds);
|
||||
}
|
||||
|
||||
std::string UpdateIngressRequest::getListenerProtocol() const {
|
||||
return listenerProtocol_;
|
||||
}
|
||||
|
||||
559
sae/src/model/UpdateJobRequest.cc
Normal file
559
sae/src/model/UpdateJobRequest.cc
Normal file
@@ -0,0 +1,559 @@
|
||||
/*
|
||||
* 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/sae/model/UpdateJobRequest.h>
|
||||
|
||||
using AlibabaCloud::Sae::Model::UpdateJobRequest;
|
||||
|
||||
UpdateJobRequest::UpdateJobRequest()
|
||||
: RoaServiceRequest("sae", "2019-05-06") {
|
||||
setResourcePath("/pop/v1/sam/job/updateJob"};
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
UpdateJobRequest::~UpdateJobRequest() {}
|
||||
|
||||
std::string UpdateJobRequest::getNasId() const {
|
||||
return nasId_;
|
||||
}
|
||||
|
||||
void UpdateJobRequest::setNasId(const std::string &nasId) {
|
||||
nasId_ = nasId;
|
||||
setParameter(std::string("NasId"), nasId);
|
||||
}
|
||||
|
||||
std::string UpdateJobRequest::getJarStartArgs() const {
|
||||
return jarStartArgs_;
|
||||
}
|
||||
|
||||
void UpdateJobRequest::setJarStartArgs(const std::string &jarStartArgs) {
|
||||
jarStartArgs_ = jarStartArgs;
|
||||
setParameter(std::string("JarStartArgs"), jarStartArgs);
|
||||
}
|
||||
|
||||
std::string UpdateJobRequest::getConcurrencyPolicy() const {
|
||||
return concurrencyPolicy_;
|
||||
}
|
||||
|
||||
void UpdateJobRequest::setConcurrencyPolicy(const std::string &concurrencyPolicy) {
|
||||
concurrencyPolicy_ = concurrencyPolicy;
|
||||
setParameter(std::string("ConcurrencyPolicy"), concurrencyPolicy);
|
||||
}
|
||||
|
||||
std::string UpdateJobRequest::getTriggerConfig() const {
|
||||
return triggerConfig_;
|
||||
}
|
||||
|
||||
void UpdateJobRequest::setTriggerConfig(const std::string &triggerConfig) {
|
||||
triggerConfig_ = triggerConfig;
|
||||
setParameter(std::string("TriggerConfig"), triggerConfig);
|
||||
}
|
||||
|
||||
std::string UpdateJobRequest::getOssAkSecret() const {
|
||||
return ossAkSecret_;
|
||||
}
|
||||
|
||||
void UpdateJobRequest::setOssAkSecret(const std::string &ossAkSecret) {
|
||||
ossAkSecret_ = ossAkSecret;
|
||||
setBodyParameter(std::string("OssAkSecret"), ossAkSecret);
|
||||
}
|
||||
|
||||
std::string UpdateJobRequest::getMountHost() const {
|
||||
return mountHost_;
|
||||
}
|
||||
|
||||
void UpdateJobRequest::setMountHost(const std::string &mountHost) {
|
||||
mountHost_ = mountHost;
|
||||
setParameter(std::string("MountHost"), mountHost);
|
||||
}
|
||||
|
||||
int UpdateJobRequest::getBatchWaitTime() const {
|
||||
return batchWaitTime_;
|
||||
}
|
||||
|
||||
void UpdateJobRequest::setBatchWaitTime(int batchWaitTime) {
|
||||
batchWaitTime_ = batchWaitTime;
|
||||
setParameter(std::string("BatchWaitTime"), std::to_string(batchWaitTime));
|
||||
}
|
||||
|
||||
std::string UpdateJobRequest::getEnvs() const {
|
||||
return envs_;
|
||||
}
|
||||
|
||||
void UpdateJobRequest::setEnvs(const std::string &envs) {
|
||||
envs_ = envs;
|
||||
setParameter(std::string("Envs"), envs);
|
||||
}
|
||||
|
||||
std::string UpdateJobRequest::getPhpPECLExtensions() const {
|
||||
return phpPECLExtensions_;
|
||||
}
|
||||
|
||||
void UpdateJobRequest::setPhpPECLExtensions(const std::string &phpPECLExtensions) {
|
||||
phpPECLExtensions_ = phpPECLExtensions;
|
||||
setBodyParameter(std::string("PhpPECLExtensions"), phpPECLExtensions);
|
||||
}
|
||||
|
||||
std::string UpdateJobRequest::getPhpArmsConfigLocation() const {
|
||||
return phpArmsConfigLocation_;
|
||||
}
|
||||
|
||||
void UpdateJobRequest::setPhpArmsConfigLocation(const std::string &phpArmsConfigLocation) {
|
||||
phpArmsConfigLocation_ = phpArmsConfigLocation;
|
||||
setParameter(std::string("PhpArmsConfigLocation"), phpArmsConfigLocation);
|
||||
}
|
||||
|
||||
std::string UpdateJobRequest::getProgrammingLanguage() const {
|
||||
return programmingLanguage_;
|
||||
}
|
||||
|
||||
void UpdateJobRequest::setProgrammingLanguage(const std::string &programmingLanguage) {
|
||||
programmingLanguage_ = programmingLanguage;
|
||||
setParameter(std::string("ProgrammingLanguage"), programmingLanguage);
|
||||
}
|
||||
|
||||
std::string UpdateJobRequest::getCustomHostAlias() const {
|
||||
return customHostAlias_;
|
||||
}
|
||||
|
||||
void UpdateJobRequest::setCustomHostAlias(const std::string &customHostAlias) {
|
||||
customHostAlias_ = customHostAlias;
|
||||
setParameter(std::string("CustomHostAlias"), customHostAlias);
|
||||
}
|
||||
|
||||
std::string UpdateJobRequest::getJarStartOptions() const {
|
||||
return jarStartOptions_;
|
||||
}
|
||||
|
||||
void UpdateJobRequest::setJarStartOptions(const std::string &jarStartOptions) {
|
||||
jarStartOptions_ = jarStartOptions;
|
||||
setParameter(std::string("JarStartOptions"), jarStartOptions);
|
||||
}
|
||||
|
||||
bool UpdateJobRequest::getSlice() const {
|
||||
return slice_;
|
||||
}
|
||||
|
||||
void UpdateJobRequest::setSlice(bool slice) {
|
||||
slice_ = slice;
|
||||
setParameter(std::string("Slice"), slice ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string UpdateJobRequest::getConfigMapMountDesc() const {
|
||||
return configMapMountDesc_;
|
||||
}
|
||||
|
||||
void UpdateJobRequest::setConfigMapMountDesc(const std::string &configMapMountDesc) {
|
||||
configMapMountDesc_ = configMapMountDesc;
|
||||
setBodyParameter(std::string("ConfigMapMountDesc"), configMapMountDesc);
|
||||
}
|
||||
|
||||
std::string UpdateJobRequest::getOssMountDescs() const {
|
||||
return ossMountDescs_;
|
||||
}
|
||||
|
||||
void UpdateJobRequest::setOssMountDescs(const std::string &ossMountDescs) {
|
||||
ossMountDescs_ = ossMountDescs;
|
||||
setBodyParameter(std::string("OssMountDescs"), ossMountDescs);
|
||||
}
|
||||
|
||||
std::string UpdateJobRequest::getImagePullSecrets() const {
|
||||
return imagePullSecrets_;
|
||||
}
|
||||
|
||||
void UpdateJobRequest::setImagePullSecrets(const std::string &imagePullSecrets) {
|
||||
imagePullSecrets_ = imagePullSecrets;
|
||||
setParameter(std::string("ImagePullSecrets"), imagePullSecrets);
|
||||
}
|
||||
|
||||
std::string UpdateJobRequest::getPreStop() const {
|
||||
return preStop_;
|
||||
}
|
||||
|
||||
void UpdateJobRequest::setPreStop(const std::string &preStop) {
|
||||
preStop_ = preStop;
|
||||
setParameter(std::string("PreStop"), preStop);
|
||||
}
|
||||
|
||||
std::string UpdateJobRequest::getPython() const {
|
||||
return python_;
|
||||
}
|
||||
|
||||
void UpdateJobRequest::setPython(const std::string &python) {
|
||||
python_ = python;
|
||||
setParameter(std::string("Python"), python);
|
||||
}
|
||||
|
||||
long UpdateJobRequest::getBackoffLimit() const {
|
||||
return backoffLimit_;
|
||||
}
|
||||
|
||||
void UpdateJobRequest::setBackoffLimit(long backoffLimit) {
|
||||
backoffLimit_ = backoffLimit;
|
||||
setParameter(std::string("BackoffLimit"), std::to_string(backoffLimit));
|
||||
}
|
||||
|
||||
std::string UpdateJobRequest::getUpdateStrategy() const {
|
||||
return updateStrategy_;
|
||||
}
|
||||
|
||||
void UpdateJobRequest::setUpdateStrategy(const std::string &updateStrategy) {
|
||||
updateStrategy_ = updateStrategy;
|
||||
setParameter(std::string("UpdateStrategy"), updateStrategy);
|
||||
}
|
||||
|
||||
std::string UpdateJobRequest::getChangeOrderDesc() const {
|
||||
return changeOrderDesc_;
|
||||
}
|
||||
|
||||
void UpdateJobRequest::setChangeOrderDesc(const std::string &changeOrderDesc) {
|
||||
changeOrderDesc_ = changeOrderDesc;
|
||||
setParameter(std::string("ChangeOrderDesc"), changeOrderDesc);
|
||||
}
|
||||
|
||||
bool UpdateJobRequest::getAutoEnableApplicationScalingRule() const {
|
||||
return autoEnableApplicationScalingRule_;
|
||||
}
|
||||
|
||||
void UpdateJobRequest::setAutoEnableApplicationScalingRule(bool autoEnableApplicationScalingRule) {
|
||||
autoEnableApplicationScalingRule_ = autoEnableApplicationScalingRule;
|
||||
setParameter(std::string("AutoEnableApplicationScalingRule"), autoEnableApplicationScalingRule ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string UpdateJobRequest::getPostStart() const {
|
||||
return postStart_;
|
||||
}
|
||||
|
||||
void UpdateJobRequest::setPostStart(const std::string &postStart) {
|
||||
postStart_ = postStart;
|
||||
setParameter(std::string("PostStart"), postStart);
|
||||
}
|
||||
|
||||
std::string UpdateJobRequest::getPhpExtensions() const {
|
||||
return phpExtensions_;
|
||||
}
|
||||
|
||||
void UpdateJobRequest::setPhpExtensions(const std::string &phpExtensions) {
|
||||
phpExtensions_ = phpExtensions;
|
||||
setBodyParameter(std::string("PhpExtensions"), phpExtensions);
|
||||
}
|
||||
|
||||
bool UpdateJobRequest::getAssociateEip() const {
|
||||
return associateEip_;
|
||||
}
|
||||
|
||||
void UpdateJobRequest::setAssociateEip(bool associateEip) {
|
||||
associateEip_ = associateEip;
|
||||
setBodyParameter(std::string("AssociateEip"), associateEip ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string UpdateJobRequest::getWebContainer() const {
|
||||
return webContainer_;
|
||||
}
|
||||
|
||||
void UpdateJobRequest::setWebContainer(const std::string &webContainer) {
|
||||
webContainer_ = webContainer;
|
||||
setParameter(std::string("WebContainer"), webContainer);
|
||||
}
|
||||
|
||||
std::string UpdateJobRequest::getEnableAhas() const {
|
||||
return enableAhas_;
|
||||
}
|
||||
|
||||
void UpdateJobRequest::setEnableAhas(const std::string &enableAhas) {
|
||||
enableAhas_ = enableAhas;
|
||||
setParameter(std::string("EnableAhas"), enableAhas);
|
||||
}
|
||||
|
||||
std::string UpdateJobRequest::getSlsConfigs() const {
|
||||
return slsConfigs_;
|
||||
}
|
||||
|
||||
void UpdateJobRequest::setSlsConfigs(const std::string &slsConfigs) {
|
||||
slsConfigs_ = slsConfigs;
|
||||
setParameter(std::string("SlsConfigs"), slsConfigs);
|
||||
}
|
||||
|
||||
std::string UpdateJobRequest::getCommandArgs() const {
|
||||
return commandArgs_;
|
||||
}
|
||||
|
||||
void UpdateJobRequest::setCommandArgs(const std::string &commandArgs) {
|
||||
commandArgs_ = commandArgs;
|
||||
setParameter(std::string("CommandArgs"), commandArgs);
|
||||
}
|
||||
|
||||
std::string UpdateJobRequest::getAcrAssumeRoleArn() const {
|
||||
return acrAssumeRoleArn_;
|
||||
}
|
||||
|
||||
void UpdateJobRequest::setAcrAssumeRoleArn(const std::string &acrAssumeRoleArn) {
|
||||
acrAssumeRoleArn_ = acrAssumeRoleArn;
|
||||
setParameter(std::string("AcrAssumeRoleArn"), acrAssumeRoleArn);
|
||||
}
|
||||
|
||||
std::string UpdateJobRequest::getReadiness() const {
|
||||
return readiness_;
|
||||
}
|
||||
|
||||
void UpdateJobRequest::setReadiness(const std::string &readiness) {
|
||||
readiness_ = readiness;
|
||||
setParameter(std::string("Readiness"), readiness);
|
||||
}
|
||||
|
||||
std::string UpdateJobRequest::getTimezone() const {
|
||||
return timezone_;
|
||||
}
|
||||
|
||||
void UpdateJobRequest::setTimezone(const std::string &timezone) {
|
||||
timezone_ = timezone;
|
||||
setParameter(std::string("Timezone"), timezone);
|
||||
}
|
||||
|
||||
std::string UpdateJobRequest::getOssAkId() const {
|
||||
return ossAkId_;
|
||||
}
|
||||
|
||||
void UpdateJobRequest::setOssAkId(const std::string &ossAkId) {
|
||||
ossAkId_ = ossAkId;
|
||||
setBodyParameter(std::string("OssAkId"), ossAkId);
|
||||
}
|
||||
|
||||
std::string UpdateJobRequest::getLiveness() const {
|
||||
return liveness_;
|
||||
}
|
||||
|
||||
void UpdateJobRequest::setLiveness(const std::string &liveness) {
|
||||
liveness_ = liveness;
|
||||
setParameter(std::string("Liveness"), liveness);
|
||||
}
|
||||
|
||||
std::string UpdateJobRequest::getPackageVersion() const {
|
||||
return packageVersion_;
|
||||
}
|
||||
|
||||
void UpdateJobRequest::setPackageVersion(const std::string &packageVersion) {
|
||||
packageVersion_ = packageVersion;
|
||||
setParameter(std::string("PackageVersion"), packageVersion);
|
||||
}
|
||||
|
||||
std::string UpdateJobRequest::getTomcatConfig() const {
|
||||
return tomcatConfig_;
|
||||
}
|
||||
|
||||
void UpdateJobRequest::setTomcatConfig(const std::string &tomcatConfig) {
|
||||
tomcatConfig_ = tomcatConfig;
|
||||
setParameter(std::string("TomcatConfig"), tomcatConfig);
|
||||
}
|
||||
|
||||
long UpdateJobRequest::getTimeout() const {
|
||||
return timeout_;
|
||||
}
|
||||
|
||||
void UpdateJobRequest::setTimeout(long timeout) {
|
||||
timeout_ = timeout;
|
||||
setParameter(std::string("Timeout"), std::to_string(timeout));
|
||||
}
|
||||
|
||||
std::string UpdateJobRequest::getWarStartOptions() const {
|
||||
return warStartOptions_;
|
||||
}
|
||||
|
||||
void UpdateJobRequest::setWarStartOptions(const std::string &warStartOptions) {
|
||||
warStartOptions_ = warStartOptions;
|
||||
setParameter(std::string("WarStartOptions"), warStartOptions);
|
||||
}
|
||||
|
||||
std::string UpdateJobRequest::getPackageRuntimeCustomBuild() const {
|
||||
return packageRuntimeCustomBuild_;
|
||||
}
|
||||
|
||||
void UpdateJobRequest::setPackageRuntimeCustomBuild(const std::string &packageRuntimeCustomBuild) {
|
||||
packageRuntimeCustomBuild_ = packageRuntimeCustomBuild;
|
||||
setBodyParameter(std::string("PackageRuntimeCustomBuild"), packageRuntimeCustomBuild);
|
||||
}
|
||||
|
||||
std::string UpdateJobRequest::getEdasContainerVersion() const {
|
||||
return edasContainerVersion_;
|
||||
}
|
||||
|
||||
void UpdateJobRequest::setEdasContainerVersion(const std::string &edasContainerVersion) {
|
||||
edasContainerVersion_ = edasContainerVersion;
|
||||
setParameter(std::string("EdasContainerVersion"), edasContainerVersion);
|
||||
}
|
||||
|
||||
std::string UpdateJobRequest::getPackageUrl() const {
|
||||
return packageUrl_;
|
||||
}
|
||||
|
||||
void UpdateJobRequest::setPackageUrl(const std::string &packageUrl) {
|
||||
packageUrl_ = packageUrl;
|
||||
setParameter(std::string("PackageUrl"), packageUrl);
|
||||
}
|
||||
|
||||
int UpdateJobRequest::getTerminationGracePeriodSeconds() const {
|
||||
return terminationGracePeriodSeconds_;
|
||||
}
|
||||
|
||||
void UpdateJobRequest::setTerminationGracePeriodSeconds(int terminationGracePeriodSeconds) {
|
||||
terminationGracePeriodSeconds_ = terminationGracePeriodSeconds;
|
||||
setParameter(std::string("TerminationGracePeriodSeconds"), std::to_string(terminationGracePeriodSeconds));
|
||||
}
|
||||
|
||||
std::string UpdateJobRequest::getPhpConfig() const {
|
||||
return phpConfig_;
|
||||
}
|
||||
|
||||
void UpdateJobRequest::setPhpConfig(const std::string &phpConfig) {
|
||||
phpConfig_ = phpConfig;
|
||||
setBodyParameter(std::string("PhpConfig"), phpConfig);
|
||||
}
|
||||
|
||||
std::string UpdateJobRequest::getSliceEnvs() const {
|
||||
return sliceEnvs_;
|
||||
}
|
||||
|
||||
void UpdateJobRequest::setSliceEnvs(const std::string &sliceEnvs) {
|
||||
sliceEnvs_ = sliceEnvs;
|
||||
setParameter(std::string("SliceEnvs"), sliceEnvs);
|
||||
}
|
||||
|
||||
bool UpdateJobRequest::getEnableImageAccl() const {
|
||||
return enableImageAccl_;
|
||||
}
|
||||
|
||||
void UpdateJobRequest::setEnableImageAccl(bool enableImageAccl) {
|
||||
enableImageAccl_ = enableImageAccl;
|
||||
setBodyParameter(std::string("EnableImageAccl"), enableImageAccl ? "true" : "false");
|
||||
}
|
||||
|
||||
bool UpdateJobRequest::getEnableGreyTagRoute() const {
|
||||
return enableGreyTagRoute_;
|
||||
}
|
||||
|
||||
void UpdateJobRequest::setEnableGreyTagRoute(bool enableGreyTagRoute) {
|
||||
enableGreyTagRoute_ = enableGreyTagRoute;
|
||||
setParameter(std::string("EnableGreyTagRoute"), enableGreyTagRoute ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string UpdateJobRequest::getReplicas() const {
|
||||
return replicas_;
|
||||
}
|
||||
|
||||
void UpdateJobRequest::setReplicas(const std::string &replicas) {
|
||||
replicas_ = replicas;
|
||||
setParameter(std::string("Replicas"), replicas);
|
||||
}
|
||||
|
||||
std::string UpdateJobRequest::getCommand() const {
|
||||
return command_;
|
||||
}
|
||||
|
||||
void UpdateJobRequest::setCommand(const std::string &command) {
|
||||
command_ = command;
|
||||
setParameter(std::string("Command"), command);
|
||||
}
|
||||
|
||||
std::string UpdateJobRequest::getMountDesc() const {
|
||||
return mountDesc_;
|
||||
}
|
||||
|
||||
void UpdateJobRequest::setMountDesc(const std::string &mountDesc) {
|
||||
mountDesc_ = mountDesc;
|
||||
setParameter(std::string("MountDesc"), mountDesc);
|
||||
}
|
||||
|
||||
std::string UpdateJobRequest::getJdk() const {
|
||||
return jdk_;
|
||||
}
|
||||
|
||||
void UpdateJobRequest::setJdk(const std::string &jdk) {
|
||||
jdk_ = jdk;
|
||||
setParameter(std::string("Jdk"), jdk);
|
||||
}
|
||||
|
||||
int UpdateJobRequest::getMinReadyInstances() const {
|
||||
return minReadyInstances_;
|
||||
}
|
||||
|
||||
void UpdateJobRequest::setMinReadyInstances(int minReadyInstances) {
|
||||
minReadyInstances_ = minReadyInstances;
|
||||
setParameter(std::string("MinReadyInstances"), std::to_string(minReadyInstances));
|
||||
}
|
||||
|
||||
std::string UpdateJobRequest::getAcrInstanceId() const {
|
||||
return acrInstanceId_;
|
||||
}
|
||||
|
||||
void UpdateJobRequest::setAcrInstanceId(const std::string &acrInstanceId) {
|
||||
acrInstanceId_ = acrInstanceId;
|
||||
setBodyParameter(std::string("AcrInstanceId"), acrInstanceId);
|
||||
}
|
||||
|
||||
std::string UpdateJobRequest::getAppId() const {
|
||||
return appId_;
|
||||
}
|
||||
|
||||
void UpdateJobRequest::setAppId(const std::string &appId) {
|
||||
appId_ = appId;
|
||||
setParameter(std::string("AppId"), appId);
|
||||
}
|
||||
|
||||
std::string UpdateJobRequest::getImageUrl() const {
|
||||
return imageUrl_;
|
||||
}
|
||||
|
||||
void UpdateJobRequest::setImageUrl(const std::string &imageUrl) {
|
||||
imageUrl_ = imageUrl;
|
||||
setParameter(std::string("ImageUrl"), imageUrl);
|
||||
}
|
||||
|
||||
std::string UpdateJobRequest::getPhp() const {
|
||||
return php_;
|
||||
}
|
||||
|
||||
void UpdateJobRequest::setPhp(const std::string &php) {
|
||||
php_ = php;
|
||||
setBodyParameter(std::string("Php"), php);
|
||||
}
|
||||
|
||||
std::string UpdateJobRequest::getRefAppId() const {
|
||||
return refAppId_;
|
||||
}
|
||||
|
||||
void UpdateJobRequest::setRefAppId(const std::string &refAppId) {
|
||||
refAppId_ = refAppId;
|
||||
setParameter(std::string("RefAppId"), refAppId);
|
||||
}
|
||||
|
||||
std::string UpdateJobRequest::getPythonModules() const {
|
||||
return pythonModules_;
|
||||
}
|
||||
|
||||
void UpdateJobRequest::setPythonModules(const std::string &pythonModules) {
|
||||
pythonModules_ = pythonModules;
|
||||
setParameter(std::string("PythonModules"), pythonModules);
|
||||
}
|
||||
|
||||
std::string UpdateJobRequest::getPhpConfigLocation() const {
|
||||
return phpConfigLocation_;
|
||||
}
|
||||
|
||||
void UpdateJobRequest::setPhpConfigLocation(const std::string &phpConfigLocation) {
|
||||
phpConfigLocation_ = phpConfigLocation;
|
||||
setParameter(std::string("PhpConfigLocation"), phpConfigLocation);
|
||||
}
|
||||
|
||||
89
sae/src/model/UpdateJobResult.cc
Normal file
89
sae/src/model/UpdateJobResult.cc
Normal file
@@ -0,0 +1,89 @@
|
||||
/*
|
||||
* 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/sae/model/UpdateJobResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Sae;
|
||||
using namespace AlibabaCloud::Sae::Model;
|
||||
|
||||
UpdateJobResult::UpdateJobResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
UpdateJobResult::UpdateJobResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
UpdateJobResult::~UpdateJobResult()
|
||||
{}
|
||||
|
||||
void UpdateJobResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["ChangeOrderId"].isNull())
|
||||
data_.changeOrderId = dataNode["ChangeOrderId"].asString();
|
||||
if(!dataNode["AppId"].isNull())
|
||||
data_.appId = dataNode["AppId"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["TraceId"].isNull())
|
||||
traceId_ = value["TraceId"].asString();
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
std::string UpdateJobResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string UpdateJobResult::getTraceId()const
|
||||
{
|
||||
return traceId_;
|
||||
}
|
||||
|
||||
UpdateJobResult::Data UpdateJobResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string UpdateJobResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
std::string UpdateJobResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool UpdateJobResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
55
sae/src/model/UpdateSecretRequest.cc
Normal file
55
sae/src/model/UpdateSecretRequest.cc
Normal file
@@ -0,0 +1,55 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sae/model/UpdateSecretRequest.h>
|
||||
|
||||
using AlibabaCloud::Sae::Model::UpdateSecretRequest;
|
||||
|
||||
UpdateSecretRequest::UpdateSecretRequest()
|
||||
: RoaServiceRequest("sae", "2019-05-06") {
|
||||
setResourcePath("/pop/v1/sam/secret/secret"};
|
||||
setMethod(HttpRequest::Method::Put);
|
||||
}
|
||||
|
||||
UpdateSecretRequest::~UpdateSecretRequest() {}
|
||||
|
||||
std::string UpdateSecretRequest::getNamespaceId() const {
|
||||
return namespaceId_;
|
||||
}
|
||||
|
||||
void UpdateSecretRequest::setNamespaceId(const std::string &namespaceId) {
|
||||
namespaceId_ = namespaceId;
|
||||
setParameter(std::string("NamespaceId"), namespaceId);
|
||||
}
|
||||
|
||||
long UpdateSecretRequest::getSecretId() const {
|
||||
return secretId_;
|
||||
}
|
||||
|
||||
void UpdateSecretRequest::setSecretId(long secretId) {
|
||||
secretId_ = secretId;
|
||||
setParameter(std::string("SecretId"), std::to_string(secretId));
|
||||
}
|
||||
|
||||
std::string UpdateSecretRequest::getSecretData() const {
|
||||
return secretData_;
|
||||
}
|
||||
|
||||
void UpdateSecretRequest::setSecretData(const std::string &secretData) {
|
||||
secretData_ = secretData;
|
||||
setBodyParameter(std::string("SecretData"), secretData);
|
||||
}
|
||||
|
||||
87
sae/src/model/UpdateSecretResult.cc
Normal file
87
sae/src/model/UpdateSecretResult.cc
Normal file
@@ -0,0 +1,87 @@
|
||||
/*
|
||||
* 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/sae/model/UpdateSecretResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Sae;
|
||||
using namespace AlibabaCloud::Sae::Model;
|
||||
|
||||
UpdateSecretResult::UpdateSecretResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
UpdateSecretResult::UpdateSecretResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
UpdateSecretResult::~UpdateSecretResult()
|
||||
{}
|
||||
|
||||
void UpdateSecretResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["SecretId"].isNull())
|
||||
data_.secretId = dataNode["SecretId"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["TraceId"].isNull())
|
||||
traceId_ = value["TraceId"].asString();
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
std::string UpdateSecretResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string UpdateSecretResult::getTraceId()const
|
||||
{
|
||||
return traceId_;
|
||||
}
|
||||
|
||||
UpdateSecretResult::Data UpdateSecretResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string UpdateSecretResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
std::string UpdateSecretResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool UpdateSecretResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user