Support parameter APIs.

This commit is contained in:
sdk-team
2020-09-07 11:13:16 +00:00
parent 05e5980ef3
commit d3ce4be157
52 changed files with 4033 additions and 3 deletions

View File

@@ -31,21 +31,21 @@ OosClient::OosClient(const Credentials &credentials, const ClientConfiguration &
RpcServiceClient(SERVICE_NAME, std::make_shared<SimpleCredentialsProvider>(credentials), configuration)
{
auto locationClient = std::make_shared<LocationClient>(credentials, configuration);
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "");
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "oos");
}
OosClient::OosClient(const std::shared_ptr<CredentialsProvider>& credentialsProvider, const ClientConfiguration & configuration) :
RpcServiceClient(SERVICE_NAME, credentialsProvider, configuration)
{
auto locationClient = std::make_shared<LocationClient>(credentialsProvider, configuration);
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "");
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "oos");
}
OosClient::OosClient(const std::string & accessKeyId, const std::string & accessKeySecret, const ClientConfiguration & configuration) :
RpcServiceClient(SERVICE_NAME, std::make_shared<SimpleCredentialsProvider>(accessKeyId, accessKeySecret), configuration)
{
auto locationClient = std::make_shared<LocationClient>(accessKeyId, accessKeySecret, configuration);
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "");
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "oos");
}
OosClient::~OosClient()
@@ -87,6 +87,78 @@ OosClient::CancelExecutionOutcomeCallable OosClient::cancelExecutionCallable(con
return task->get_future();
}
OosClient::CreateParameterOutcome OosClient::createParameter(const CreateParameterRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return CreateParameterOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return CreateParameterOutcome(CreateParameterResult(outcome.result()));
else
return CreateParameterOutcome(outcome.error());
}
void OosClient::createParameterAsync(const CreateParameterRequest& request, const CreateParameterAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, createParameter(request), context);
};
asyncExecute(new Runnable(fn));
}
OosClient::CreateParameterOutcomeCallable OosClient::createParameterCallable(const CreateParameterRequest &request) const
{
auto task = std::make_shared<std::packaged_task<CreateParameterOutcome()>>(
[this, request]()
{
return this->createParameter(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
OosClient::CreateSecretParameterOutcome OosClient::createSecretParameter(const CreateSecretParameterRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return CreateSecretParameterOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return CreateSecretParameterOutcome(CreateSecretParameterResult(outcome.result()));
else
return CreateSecretParameterOutcome(outcome.error());
}
void OosClient::createSecretParameterAsync(const CreateSecretParameterRequest& request, const CreateSecretParameterAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, createSecretParameter(request), context);
};
asyncExecute(new Runnable(fn));
}
OosClient::CreateSecretParameterOutcomeCallable OosClient::createSecretParameterCallable(const CreateSecretParameterRequest &request) const
{
auto task = std::make_shared<std::packaged_task<CreateSecretParameterOutcome()>>(
[this, request]()
{
return this->createSecretParameter(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
OosClient::CreateTemplateOutcome OosClient::createTemplate(const CreateTemplateRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -159,6 +231,78 @@ OosClient::DeleteExecutionsOutcomeCallable OosClient::deleteExecutionsCallable(c
return task->get_future();
}
OosClient::DeleteParameterOutcome OosClient::deleteParameter(const DeleteParameterRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DeleteParameterOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DeleteParameterOutcome(DeleteParameterResult(outcome.result()));
else
return DeleteParameterOutcome(outcome.error());
}
void OosClient::deleteParameterAsync(const DeleteParameterRequest& request, const DeleteParameterAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, deleteParameter(request), context);
};
asyncExecute(new Runnable(fn));
}
OosClient::DeleteParameterOutcomeCallable OosClient::deleteParameterCallable(const DeleteParameterRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DeleteParameterOutcome()>>(
[this, request]()
{
return this->deleteParameter(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
OosClient::DeleteSecretParameterOutcome OosClient::deleteSecretParameter(const DeleteSecretParameterRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DeleteSecretParameterOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DeleteSecretParameterOutcome(DeleteSecretParameterResult(outcome.result()));
else
return DeleteSecretParameterOutcome(outcome.error());
}
void OosClient::deleteSecretParameterAsync(const DeleteSecretParameterRequest& request, const DeleteSecretParameterAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, deleteSecretParameter(request), context);
};
asyncExecute(new Runnable(fn));
}
OosClient::DeleteSecretParameterOutcomeCallable OosClient::deleteSecretParameterCallable(const DeleteSecretParameterRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DeleteSecretParameterOutcome()>>(
[this, request]()
{
return this->deleteSecretParameter(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
OosClient::DeleteTemplateOutcome OosClient::deleteTemplate(const DeleteTemplateRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -339,6 +483,78 @@ OosClient::GetExecutionTemplateOutcomeCallable OosClient::getExecutionTemplateCa
return task->get_future();
}
OosClient::GetParameterOutcome OosClient::getParameter(const GetParameterRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return GetParameterOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return GetParameterOutcome(GetParameterResult(outcome.result()));
else
return GetParameterOutcome(outcome.error());
}
void OosClient::getParameterAsync(const GetParameterRequest& request, const GetParameterAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, getParameter(request), context);
};
asyncExecute(new Runnable(fn));
}
OosClient::GetParameterOutcomeCallable OosClient::getParameterCallable(const GetParameterRequest &request) const
{
auto task = std::make_shared<std::packaged_task<GetParameterOutcome()>>(
[this, request]()
{
return this->getParameter(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
OosClient::GetSecretParameterOutcome OosClient::getSecretParameter(const GetSecretParameterRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return GetSecretParameterOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return GetSecretParameterOutcome(GetSecretParameterResult(outcome.result()));
else
return GetSecretParameterOutcome(outcome.error());
}
void OosClient::getSecretParameterAsync(const GetSecretParameterRequest& request, const GetSecretParameterAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, getSecretParameter(request), context);
};
asyncExecute(new Runnable(fn));
}
OosClient::GetSecretParameterOutcomeCallable OosClient::getSecretParameterCallable(const GetSecretParameterRequest &request) const
{
auto task = std::make_shared<std::packaged_task<GetSecretParameterOutcome()>>(
[this, request]()
{
return this->getSecretParameter(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
OosClient::GetTemplateOutcome OosClient::getTemplate(const GetTemplateRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -519,6 +735,78 @@ OosClient::ListExecutionsOutcomeCallable OosClient::listExecutionsCallable(const
return task->get_future();
}
OosClient::ListParameterVersionsOutcome OosClient::listParameterVersions(const ListParameterVersionsRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return ListParameterVersionsOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return ListParameterVersionsOutcome(ListParameterVersionsResult(outcome.result()));
else
return ListParameterVersionsOutcome(outcome.error());
}
void OosClient::listParameterVersionsAsync(const ListParameterVersionsRequest& request, const ListParameterVersionsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, listParameterVersions(request), context);
};
asyncExecute(new Runnable(fn));
}
OosClient::ListParameterVersionsOutcomeCallable OosClient::listParameterVersionsCallable(const ListParameterVersionsRequest &request) const
{
auto task = std::make_shared<std::packaged_task<ListParameterVersionsOutcome()>>(
[this, request]()
{
return this->listParameterVersions(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
OosClient::ListParametersOutcome OosClient::listParameters(const ListParametersRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return ListParametersOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return ListParametersOutcome(ListParametersResult(outcome.result()));
else
return ListParametersOutcome(outcome.error());
}
void OosClient::listParametersAsync(const ListParametersRequest& request, const ListParametersAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, listParameters(request), context);
};
asyncExecute(new Runnable(fn));
}
OosClient::ListParametersOutcomeCallable OosClient::listParametersCallable(const ListParametersRequest &request) const
{
auto task = std::make_shared<std::packaged_task<ListParametersOutcome()>>(
[this, request]()
{
return this->listParameters(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
OosClient::ListResourceExecutionStatusOutcome OosClient::listResourceExecutionStatus(const ListResourceExecutionStatusRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -555,6 +843,78 @@ OosClient::ListResourceExecutionStatusOutcomeCallable OosClient::listResourceExe
return task->get_future();
}
OosClient::ListSecretParameterVersionsOutcome OosClient::listSecretParameterVersions(const ListSecretParameterVersionsRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return ListSecretParameterVersionsOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return ListSecretParameterVersionsOutcome(ListSecretParameterVersionsResult(outcome.result()));
else
return ListSecretParameterVersionsOutcome(outcome.error());
}
void OosClient::listSecretParameterVersionsAsync(const ListSecretParameterVersionsRequest& request, const ListSecretParameterVersionsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, listSecretParameterVersions(request), context);
};
asyncExecute(new Runnable(fn));
}
OosClient::ListSecretParameterVersionsOutcomeCallable OosClient::listSecretParameterVersionsCallable(const ListSecretParameterVersionsRequest &request) const
{
auto task = std::make_shared<std::packaged_task<ListSecretParameterVersionsOutcome()>>(
[this, request]()
{
return this->listSecretParameterVersions(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
OosClient::ListSecretParametersOutcome OosClient::listSecretParameters(const ListSecretParametersRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return ListSecretParametersOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return ListSecretParametersOutcome(ListSecretParametersResult(outcome.result()));
else
return ListSecretParametersOutcome(outcome.error());
}
void OosClient::listSecretParametersAsync(const ListSecretParametersRequest& request, const ListSecretParametersAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, listSecretParameters(request), context);
};
asyncExecute(new Runnable(fn));
}
OosClient::ListSecretParametersOutcomeCallable OosClient::listSecretParametersCallable(const ListSecretParametersRequest &request) const
{
auto task = std::make_shared<std::packaged_task<ListSecretParametersOutcome()>>(
[this, request]()
{
return this->listSecretParameters(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
OosClient::ListTagKeysOutcome OosClient::listTagKeys(const ListTagKeysRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -951,6 +1311,78 @@ OosClient::UntagResourcesOutcomeCallable OosClient::untagResourcesCallable(const
return task->get_future();
}
OosClient::UpdateParameterOutcome OosClient::updateParameter(const UpdateParameterRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return UpdateParameterOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return UpdateParameterOutcome(UpdateParameterResult(outcome.result()));
else
return UpdateParameterOutcome(outcome.error());
}
void OosClient::updateParameterAsync(const UpdateParameterRequest& request, const UpdateParameterAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, updateParameter(request), context);
};
asyncExecute(new Runnable(fn));
}
OosClient::UpdateParameterOutcomeCallable OosClient::updateParameterCallable(const UpdateParameterRequest &request) const
{
auto task = std::make_shared<std::packaged_task<UpdateParameterOutcome()>>(
[this, request]()
{
return this->updateParameter(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
OosClient::UpdateSecretParameterOutcome OosClient::updateSecretParameter(const UpdateSecretParameterRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return UpdateSecretParameterOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return UpdateSecretParameterOutcome(UpdateSecretParameterResult(outcome.result()));
else
return UpdateSecretParameterOutcome(outcome.error());
}
void OosClient::updateSecretParameterAsync(const UpdateSecretParameterRequest& request, const UpdateSecretParameterAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, updateSecretParameter(request), context);
};
asyncExecute(new Runnable(fn));
}
OosClient::UpdateSecretParameterOutcomeCallable OosClient::updateSecretParameterCallable(const UpdateSecretParameterRequest &request) const
{
auto task = std::make_shared<std::packaged_task<UpdateSecretParameterOutcome()>>(
[this, request]()
{
return this->updateSecretParameter(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
OosClient::UpdateTemplateOutcome OosClient::updateTemplate(const UpdateTemplateRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();

View File

@@ -0,0 +1,95 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/oos/model/CreateParameterRequest.h>
using AlibabaCloud::Oos::Model::CreateParameterRequest;
CreateParameterRequest::CreateParameterRequest() :
RpcServiceRequest("oos", "2019-06-01", "CreateParameter")
{
setMethod(HttpRequest::Method::Post);
}
CreateParameterRequest::~CreateParameterRequest()
{}
std::string CreateParameterRequest::getClientToken()const
{
return clientToken_;
}
void CreateParameterRequest::setClientToken(const std::string& clientToken)
{
clientToken_ = clientToken;
setParameter("ClientToken", clientToken);
}
std::string CreateParameterRequest::getDescription()const
{
return description_;
}
void CreateParameterRequest::setDescription(const std::string& description)
{
description_ = description;
setParameter("Description", description);
}
std::string CreateParameterRequest::getType()const
{
return type_;
}
void CreateParameterRequest::setType(const std::string& type)
{
type_ = type;
setParameter("Type", type);
}
std::string CreateParameterRequest::getRegionId()const
{
return regionId_;
}
void CreateParameterRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
std::string CreateParameterRequest::getName()const
{
return name_;
}
void CreateParameterRequest::setName(const std::string& name)
{
name_ = name;
setParameter("Name", name);
}
std::string CreateParameterRequest::getValue()const
{
return value_;
}
void CreateParameterRequest::setValue(const std::string& value)
{
value_ = value;
setParameter("Value", value);
}

View File

@@ -0,0 +1,70 @@
/*
* 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/oos/model/CreateParameterResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Oos;
using namespace AlibabaCloud::Oos::Model;
CreateParameterResult::CreateParameterResult() :
ServiceResult()
{}
CreateParameterResult::CreateParameterResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateParameterResult::~CreateParameterResult()
{}
void CreateParameterResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto _parameterNode = value["Parameter"];
if(!_parameterNode["Id"].isNull())
_parameter_.id = _parameterNode["Id"].asString();
if(!_parameterNode["Name"].isNull())
_parameter_.name = _parameterNode["Name"].asString();
if(!_parameterNode["CreatedDate"].isNull())
_parameter_.createdDate = _parameterNode["CreatedDate"].asString();
if(!_parameterNode["CreatedBy"].isNull())
_parameter_.createdBy = _parameterNode["CreatedBy"].asString();
if(!_parameterNode["UpdatedDate"].isNull())
_parameter_.updatedDate = _parameterNode["UpdatedDate"].asString();
if(!_parameterNode["UpdatedBy"].isNull())
_parameter_.updatedBy = _parameterNode["UpdatedBy"].asString();
if(!_parameterNode["Description"].isNull())
_parameter_.description = _parameterNode["Description"].asString();
if(!_parameterNode["ShareType"].isNull())
_parameter_.shareType = _parameterNode["ShareType"].asString();
if(!_parameterNode["ParameterVersion"].isNull())
_parameter_.parameterVersion = std::stoi(_parameterNode["ParameterVersion"].asString());
if(!_parameterNode["Type"].isNull())
_parameter_.type = _parameterNode["Type"].asString();
}
CreateParameterResult::_Parameter CreateParameterResult::get_Parameter()const
{
return _parameter_;
}

View File

@@ -0,0 +1,106 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/oos/model/CreateSecretParameterRequest.h>
using AlibabaCloud::Oos::Model::CreateSecretParameterRequest;
CreateSecretParameterRequest::CreateSecretParameterRequest() :
RpcServiceRequest("oos", "2019-06-01", "CreateSecretParameter")
{
setMethod(HttpRequest::Method::Post);
}
CreateSecretParameterRequest::~CreateSecretParameterRequest()
{}
std::string CreateSecretParameterRequest::getClientToken()const
{
return clientToken_;
}
void CreateSecretParameterRequest::setClientToken(const std::string& clientToken)
{
clientToken_ = clientToken;
setParameter("ClientToken", clientToken);
}
std::string CreateSecretParameterRequest::getDescription()const
{
return description_;
}
void CreateSecretParameterRequest::setDescription(const std::string& description)
{
description_ = description;
setParameter("Description", description);
}
std::string CreateSecretParameterRequest::getKeyId()const
{
return keyId_;
}
void CreateSecretParameterRequest::setKeyId(const std::string& keyId)
{
keyId_ = keyId;
setParameter("KeyId", keyId);
}
std::string CreateSecretParameterRequest::getType()const
{
return type_;
}
void CreateSecretParameterRequest::setType(const std::string& type)
{
type_ = type;
setParameter("Type", type);
}
std::string CreateSecretParameterRequest::getRegionId()const
{
return regionId_;
}
void CreateSecretParameterRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
std::string CreateSecretParameterRequest::getName()const
{
return name_;
}
void CreateSecretParameterRequest::setName(const std::string& name)
{
name_ = name;
setParameter("Name", name);
}
std::string CreateSecretParameterRequest::getValue()const
{
return value_;
}
void CreateSecretParameterRequest::setValue(const std::string& value)
{
value_ = value;
setParameter("Value", value);
}

View File

@@ -0,0 +1,70 @@
/*
* 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/oos/model/CreateSecretParameterResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Oos;
using namespace AlibabaCloud::Oos::Model;
CreateSecretParameterResult::CreateSecretParameterResult() :
ServiceResult()
{}
CreateSecretParameterResult::CreateSecretParameterResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateSecretParameterResult::~CreateSecretParameterResult()
{}
void CreateSecretParameterResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto _parameterNode = value["Parameter"];
if(!_parameterNode["Id"].isNull())
_parameter_.id = _parameterNode["Id"].asString();
if(!_parameterNode["Name"].isNull())
_parameter_.name = _parameterNode["Name"].asString();
if(!_parameterNode["CreatedDate"].isNull())
_parameter_.createdDate = _parameterNode["CreatedDate"].asString();
if(!_parameterNode["CreatedBy"].isNull())
_parameter_.createdBy = _parameterNode["CreatedBy"].asString();
if(!_parameterNode["UpdatedDate"].isNull())
_parameter_.updatedDate = _parameterNode["UpdatedDate"].asString();
if(!_parameterNode["UpdatedBy"].isNull())
_parameter_.updatedBy = _parameterNode["UpdatedBy"].asString();
if(!_parameterNode["Description"].isNull())
_parameter_.description = _parameterNode["Description"].asString();
if(!_parameterNode["ShareType"].isNull())
_parameter_.shareType = _parameterNode["ShareType"].asString();
if(!_parameterNode["ParameterVersion"].isNull())
_parameter_.parameterVersion = std::stoi(_parameterNode["ParameterVersion"].asString());
if(!_parameterNode["Type"].isNull())
_parameter_.type = _parameterNode["Type"].asString();
}
CreateSecretParameterResult::_Parameter CreateSecretParameterResult::get_Parameter()const
{
return _parameter_;
}

View File

@@ -0,0 +1,51 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/oos/model/DeleteParameterRequest.h>
using AlibabaCloud::Oos::Model::DeleteParameterRequest;
DeleteParameterRequest::DeleteParameterRequest() :
RpcServiceRequest("oos", "2019-06-01", "DeleteParameter")
{
setMethod(HttpRequest::Method::Post);
}
DeleteParameterRequest::~DeleteParameterRequest()
{}
std::string DeleteParameterRequest::getRegionId()const
{
return regionId_;
}
void DeleteParameterRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
std::string DeleteParameterRequest::getName()const
{
return name_;
}
void DeleteParameterRequest::setName(const std::string& name)
{
name_ = name;
setParameter("Name", name);
}

View File

@@ -0,0 +1,44 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/oos/model/DeleteParameterResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Oos;
using namespace AlibabaCloud::Oos::Model;
DeleteParameterResult::DeleteParameterResult() :
ServiceResult()
{}
DeleteParameterResult::DeleteParameterResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DeleteParameterResult::~DeleteParameterResult()
{}
void DeleteParameterResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

View File

@@ -0,0 +1,51 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/oos/model/DeleteSecretParameterRequest.h>
using AlibabaCloud::Oos::Model::DeleteSecretParameterRequest;
DeleteSecretParameterRequest::DeleteSecretParameterRequest() :
RpcServiceRequest("oos", "2019-06-01", "DeleteSecretParameter")
{
setMethod(HttpRequest::Method::Post);
}
DeleteSecretParameterRequest::~DeleteSecretParameterRequest()
{}
std::string DeleteSecretParameterRequest::getRegionId()const
{
return regionId_;
}
void DeleteSecretParameterRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
std::string DeleteSecretParameterRequest::getName()const
{
return name_;
}
void DeleteSecretParameterRequest::setName(const std::string& name)
{
name_ = name;
setParameter("Name", name);
}

View File

@@ -0,0 +1,44 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/oos/model/DeleteSecretParameterResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Oos;
using namespace AlibabaCloud::Oos::Model;
DeleteSecretParameterResult::DeleteSecretParameterResult() :
ServiceResult()
{}
DeleteSecretParameterResult::DeleteSecretParameterResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DeleteSecretParameterResult::~DeleteSecretParameterResult()
{}
void DeleteSecretParameterResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

View File

@@ -0,0 +1,62 @@
/*
* 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/oos/model/GetParameterRequest.h>
using AlibabaCloud::Oos::Model::GetParameterRequest;
GetParameterRequest::GetParameterRequest() :
RpcServiceRequest("oos", "2019-06-01", "GetParameter")
{
setMethod(HttpRequest::Method::Post);
}
GetParameterRequest::~GetParameterRequest()
{}
int GetParameterRequest::getParameterVersion()const
{
return parameterVersion_;
}
void GetParameterRequest::setParameterVersion(int parameterVersion)
{
parameterVersion_ = parameterVersion;
setParameter("ParameterVersion", std::to_string(parameterVersion));
}
std::string GetParameterRequest::getRegionId()const
{
return regionId_;
}
void GetParameterRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
std::string GetParameterRequest::getName()const
{
return name_;
}
void GetParameterRequest::setName(const std::string& name)
{
name_ = name;
setParameter("Name", name);
}

View File

@@ -0,0 +1,72 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/oos/model/GetParameterResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Oos;
using namespace AlibabaCloud::Oos::Model;
GetParameterResult::GetParameterResult() :
ServiceResult()
{}
GetParameterResult::GetParameterResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetParameterResult::~GetParameterResult()
{}
void GetParameterResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto _parameterNode = value["Parameter"];
if(!_parameterNode["Id"].isNull())
_parameter_.id = _parameterNode["Id"].asString();
if(!_parameterNode["Name"].isNull())
_parameter_.name = _parameterNode["Name"].asString();
if(!_parameterNode["CreatedDate"].isNull())
_parameter_.createdDate = _parameterNode["CreatedDate"].asString();
if(!_parameterNode["CreatedBy"].isNull())
_parameter_.createdBy = _parameterNode["CreatedBy"].asString();
if(!_parameterNode["UpdatedDate"].isNull())
_parameter_.updatedDate = _parameterNode["UpdatedDate"].asString();
if(!_parameterNode["UpdatedBy"].isNull())
_parameter_.updatedBy = _parameterNode["UpdatedBy"].asString();
if(!_parameterNode["Description"].isNull())
_parameter_.description = _parameterNode["Description"].asString();
if(!_parameterNode["ShareType"].isNull())
_parameter_.shareType = _parameterNode["ShareType"].asString();
if(!_parameterNode["ParameterVersion"].isNull())
_parameter_.parameterVersion = std::stoi(_parameterNode["ParameterVersion"].asString());
if(!_parameterNode["Type"].isNull())
_parameter_.type = _parameterNode["Type"].asString();
if(!_parameterNode["Value"].isNull())
_parameter_.value = _parameterNode["Value"].asString();
}
GetParameterResult::_Parameter GetParameterResult::get_Parameter()const
{
return _parameter_;
}

View File

@@ -0,0 +1,73 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/oos/model/GetSecretParameterRequest.h>
using AlibabaCloud::Oos::Model::GetSecretParameterRequest;
GetSecretParameterRequest::GetSecretParameterRequest() :
RpcServiceRequest("oos", "2019-06-01", "GetSecretParameter")
{
setMethod(HttpRequest::Method::Post);
}
GetSecretParameterRequest::~GetSecretParameterRequest()
{}
bool GetSecretParameterRequest::getWithDecryption()const
{
return withDecryption_;
}
void GetSecretParameterRequest::setWithDecryption(bool withDecryption)
{
withDecryption_ = withDecryption;
setParameter("WithDecryption", withDecryption ? "true" : "false");
}
int GetSecretParameterRequest::getParameterVersion()const
{
return parameterVersion_;
}
void GetSecretParameterRequest::setParameterVersion(int parameterVersion)
{
parameterVersion_ = parameterVersion;
setParameter("ParameterVersion", std::to_string(parameterVersion));
}
std::string GetSecretParameterRequest::getRegionId()const
{
return regionId_;
}
void GetSecretParameterRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
std::string GetSecretParameterRequest::getName()const
{
return name_;
}
void GetSecretParameterRequest::setName(const std::string& name)
{
name_ = name;
setParameter("Name", name);
}

View File

@@ -0,0 +1,72 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/oos/model/GetSecretParameterResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Oos;
using namespace AlibabaCloud::Oos::Model;
GetSecretParameterResult::GetSecretParameterResult() :
ServiceResult()
{}
GetSecretParameterResult::GetSecretParameterResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetSecretParameterResult::~GetSecretParameterResult()
{}
void GetSecretParameterResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto _parameterNode = value["Parameter"];
if(!_parameterNode["Id"].isNull())
_parameter_.id = _parameterNode["Id"].asString();
if(!_parameterNode["Name"].isNull())
_parameter_.name = _parameterNode["Name"].asString();
if(!_parameterNode["CreatedDate"].isNull())
_parameter_.createdDate = _parameterNode["CreatedDate"].asString();
if(!_parameterNode["CreatedBy"].isNull())
_parameter_.createdBy = _parameterNode["CreatedBy"].asString();
if(!_parameterNode["UpdatedDate"].isNull())
_parameter_.updatedDate = _parameterNode["UpdatedDate"].asString();
if(!_parameterNode["UpdatedBy"].isNull())
_parameter_.updatedBy = _parameterNode["UpdatedBy"].asString();
if(!_parameterNode["Description"].isNull())
_parameter_.description = _parameterNode["Description"].asString();
if(!_parameterNode["ShareType"].isNull())
_parameter_.shareType = _parameterNode["ShareType"].asString();
if(!_parameterNode["ParameterVersion"].isNull())
_parameter_.parameterVersion = std::stoi(_parameterNode["ParameterVersion"].asString());
if(!_parameterNode["Type"].isNull())
_parameter_.type = _parameterNode["Type"].asString();
if(!_parameterNode["Value"].isNull())
_parameter_.value = _parameterNode["Value"].asString();
}
GetSecretParameterResult::_Parameter GetSecretParameterResult::get_Parameter()const
{
return _parameter_;
}

View File

@@ -0,0 +1,84 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/oos/model/ListParameterVersionsRequest.h>
using AlibabaCloud::Oos::Model::ListParameterVersionsRequest;
ListParameterVersionsRequest::ListParameterVersionsRequest() :
RpcServiceRequest("oos", "2019-06-01", "ListParameterVersions")
{
setMethod(HttpRequest::Method::Post);
}
ListParameterVersionsRequest::~ListParameterVersionsRequest()
{}
std::string ListParameterVersionsRequest::getRegionId()const
{
return regionId_;
}
void ListParameterVersionsRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
std::string ListParameterVersionsRequest::getNextToken()const
{
return nextToken_;
}
void ListParameterVersionsRequest::setNextToken(const std::string& nextToken)
{
nextToken_ = nextToken;
setParameter("NextToken", nextToken);
}
std::string ListParameterVersionsRequest::getName()const
{
return name_;
}
void ListParameterVersionsRequest::setName(const std::string& name)
{
name_ = name;
setParameter("Name", name);
}
int ListParameterVersionsRequest::getMaxResults()const
{
return maxResults_;
}
void ListParameterVersionsRequest::setMaxResults(int maxResults)
{
maxResults_ = maxResults;
setParameter("MaxResults", std::to_string(maxResults));
}
std::string ListParameterVersionsRequest::getShareType()const
{
return shareType_;
}
void ListParameterVersionsRequest::setShareType(const std::string& shareType)
{
shareType_ = shareType;
setParameter("ShareType", shareType);
}

View File

@@ -0,0 +1,126 @@
/*
* 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/oos/model/ListParameterVersionsResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Oos;
using namespace AlibabaCloud::Oos::Model;
ListParameterVersionsResult::ListParameterVersionsResult() :
ServiceResult()
{}
ListParameterVersionsResult::ListParameterVersionsResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ListParameterVersionsResult::~ListParameterVersionsResult()
{}
void ListParameterVersionsResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allParameterVersionsNode = value["ParameterVersions"]["ParameterVersion"];
for (auto valueParameterVersionsParameterVersion : allParameterVersionsNode)
{
ParameterVersion parameterVersionsObject;
if(!valueParameterVersionsParameterVersion["UpdatedDate"].isNull())
parameterVersionsObject.updatedDate = valueParameterVersionsParameterVersion["UpdatedDate"].asString();
if(!valueParameterVersionsParameterVersion["UpdatedBy"].isNull())
parameterVersionsObject.updatedBy = valueParameterVersionsParameterVersion["UpdatedBy"].asString();
if(!valueParameterVersionsParameterVersion["ParameterVersion"].isNull())
parameterVersionsObject.parameterVersion = std::stoi(valueParameterVersionsParameterVersion["ParameterVersion"].asString());
if(!valueParameterVersionsParameterVersion["Value"].isNull())
parameterVersionsObject.value = valueParameterVersionsParameterVersion["Value"].asString();
parameterVersions_.push_back(parameterVersionsObject);
}
if(!value["MaxResults"].isNull())
maxResults_ = std::stoi(value["MaxResults"].asString());
if(!value["NextToken"].isNull())
nextToken_ = value["NextToken"].asString();
if(!value["TotalCount"].isNull())
totalCount_ = std::stoi(value["TotalCount"].asString());
if(!value["Name"].isNull())
name_ = value["Name"].asString();
if(!value["Id"].isNull())
id_ = value["Id"].asString();
if(!value["Type"].isNull())
type_ = value["Type"].asString();
if(!value["Description"].isNull())
description_ = value["Description"].asString();
if(!value["CreatedDate"].isNull())
createdDate_ = value["CreatedDate"].asString();
if(!value["CreatedBy"].isNull())
createdBy_ = value["CreatedBy"].asString();
}
std::vector<ListParameterVersionsResult::ParameterVersion> ListParameterVersionsResult::getParameterVersions()const
{
return parameterVersions_;
}
int ListParameterVersionsResult::getTotalCount()const
{
return totalCount_;
}
std::string ListParameterVersionsResult::getType()const
{
return type_;
}
std::string ListParameterVersionsResult::getDescription()const
{
return description_;
}
std::string ListParameterVersionsResult::getCreatedBy()const
{
return createdBy_;
}
std::string ListParameterVersionsResult::getNextToken()const
{
return nextToken_;
}
int ListParameterVersionsResult::getMaxResults()const
{
return maxResults_;
}
std::string ListParameterVersionsResult::getCreatedDate()const
{
return createdDate_;
}
std::string ListParameterVersionsResult::getId()const
{
return id_;
}
std::string ListParameterVersionsResult::getName()const
{
return name_;
}

View File

@@ -0,0 +1,128 @@
/*
* 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/oos/model/ListParametersRequest.h>
using AlibabaCloud::Oos::Model::ListParametersRequest;
ListParametersRequest::ListParametersRequest() :
RpcServiceRequest("oos", "2019-06-01", "ListParameters")
{
setMethod(HttpRequest::Method::Post);
}
ListParametersRequest::~ListParametersRequest()
{}
std::string ListParametersRequest::getType()const
{
return type_;
}
void ListParametersRequest::setType(const std::string& type)
{
type_ = type;
setParameter("Type", type);
}
bool ListParametersRequest::getRecursive()const
{
return recursive_;
}
void ListParametersRequest::setRecursive(bool recursive)
{
recursive_ = recursive;
setParameter("Recursive", recursive ? "true" : "false");
}
std::string ListParametersRequest::getPath()const
{
return path_;
}
void ListParametersRequest::setPath(const std::string& path)
{
path_ = path;
setParameter("Path", path);
}
std::string ListParametersRequest::getRegionId()const
{
return regionId_;
}
void ListParametersRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
std::string ListParametersRequest::getNextToken()const
{
return nextToken_;
}
void ListParametersRequest::setNextToken(const std::string& nextToken)
{
nextToken_ = nextToken;
setParameter("NextToken", nextToken);
}
std::string ListParametersRequest::getName()const
{
return name_;
}
void ListParametersRequest::setName(const std::string& name)
{
name_ = name;
setParameter("Name", name);
}
int ListParametersRequest::getMaxResults()const
{
return maxResults_;
}
void ListParametersRequest::setMaxResults(int maxResults)
{
maxResults_ = maxResults;
setParameter("MaxResults", std::to_string(maxResults));
}
std::string ListParametersRequest::getSortOrder()const
{
return sortOrder_;
}
void ListParametersRequest::setSortOrder(const std::string& sortOrder)
{
sortOrder_ = sortOrder;
setParameter("SortOrder", sortOrder);
}
std::string ListParametersRequest::getSortField()const
{
return sortField_;
}
void ListParametersRequest::setSortField(const std::string& sortField)
{
sortField_ = sortField;
setParameter("SortField", sortField);
}

View File

@@ -0,0 +1,96 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/oos/model/ListParametersResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Oos;
using namespace AlibabaCloud::Oos::Model;
ListParametersResult::ListParametersResult() :
ServiceResult()
{}
ListParametersResult::ListParametersResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ListParametersResult::~ListParametersResult()
{}
void ListParametersResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allParametersNode = value["Parameters"]["Parameter"];
for (auto valueParametersParameter : allParametersNode)
{
_Parameter parametersObject;
if(!valueParametersParameter["Name"].isNull())
parametersObject.name = valueParametersParameter["Name"].asString();
if(!valueParametersParameter["Id"].isNull())
parametersObject.id = valueParametersParameter["Id"].asString();
if(!valueParametersParameter["CreatedDate"].isNull())
parametersObject.createdDate = valueParametersParameter["CreatedDate"].asString();
if(!valueParametersParameter["CreatedBy"].isNull())
parametersObject.createdBy = valueParametersParameter["CreatedBy"].asString();
if(!valueParametersParameter["UpdatedDate"].isNull())
parametersObject.updatedDate = valueParametersParameter["UpdatedDate"].asString();
if(!valueParametersParameter["UpdatedBy"].isNull())
parametersObject.updatedBy = valueParametersParameter["UpdatedBy"].asString();
if(!valueParametersParameter["Description"].isNull())
parametersObject.description = valueParametersParameter["Description"].asString();
if(!valueParametersParameter["ShareType"].isNull())
parametersObject.shareType = valueParametersParameter["ShareType"].asString();
if(!valueParametersParameter["ParameterVersion"].isNull())
parametersObject.parameterVersion = valueParametersParameter["ParameterVersion"].asString();
if(!valueParametersParameter["Type"].isNull())
parametersObject.type = valueParametersParameter["Type"].asString();
parameters_.push_back(parametersObject);
}
if(!value["MaxResults"].isNull())
maxResults_ = std::stoi(value["MaxResults"].asString());
if(!value["NextToken"].isNull())
nextToken_ = value["NextToken"].asString();
if(!value["TotalCount"].isNull())
totalCount_ = std::stoi(value["TotalCount"].asString());
}
int ListParametersResult::getTotalCount()const
{
return totalCount_;
}
std::vector<ListParametersResult::_Parameter> ListParametersResult::getParameters()const
{
return parameters_;
}
std::string ListParametersResult::getNextToken()const
{
return nextToken_;
}
int ListParametersResult::getMaxResults()const
{
return maxResults_;
}

View File

@@ -0,0 +1,95 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/oos/model/ListSecretParameterVersionsRequest.h>
using AlibabaCloud::Oos::Model::ListSecretParameterVersionsRequest;
ListSecretParameterVersionsRequest::ListSecretParameterVersionsRequest() :
RpcServiceRequest("oos", "2019-06-01", "ListSecretParameterVersions")
{
setMethod(HttpRequest::Method::Post);
}
ListSecretParameterVersionsRequest::~ListSecretParameterVersionsRequest()
{}
bool ListSecretParameterVersionsRequest::getWithDecryption()const
{
return withDecryption_;
}
void ListSecretParameterVersionsRequest::setWithDecryption(bool withDecryption)
{
withDecryption_ = withDecryption;
setParameter("WithDecryption", withDecryption ? "true" : "false");
}
std::string ListSecretParameterVersionsRequest::getRegionId()const
{
return regionId_;
}
void ListSecretParameterVersionsRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
std::string ListSecretParameterVersionsRequest::getNextToken()const
{
return nextToken_;
}
void ListSecretParameterVersionsRequest::setNextToken(const std::string& nextToken)
{
nextToken_ = nextToken;
setParameter("NextToken", nextToken);
}
std::string ListSecretParameterVersionsRequest::getName()const
{
return name_;
}
void ListSecretParameterVersionsRequest::setName(const std::string& name)
{
name_ = name;
setParameter("Name", name);
}
int ListSecretParameterVersionsRequest::getMaxResults()const
{
return maxResults_;
}
void ListSecretParameterVersionsRequest::setMaxResults(int maxResults)
{
maxResults_ = maxResults;
setParameter("MaxResults", std::to_string(maxResults));
}
std::string ListSecretParameterVersionsRequest::getShareType()const
{
return shareType_;
}
void ListSecretParameterVersionsRequest::setShareType(const std::string& shareType)
{
shareType_ = shareType;
setParameter("ShareType", shareType);
}

View File

@@ -0,0 +1,126 @@
/*
* 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/oos/model/ListSecretParameterVersionsResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Oos;
using namespace AlibabaCloud::Oos::Model;
ListSecretParameterVersionsResult::ListSecretParameterVersionsResult() :
ServiceResult()
{}
ListSecretParameterVersionsResult::ListSecretParameterVersionsResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ListSecretParameterVersionsResult::~ListSecretParameterVersionsResult()
{}
void ListSecretParameterVersionsResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allParameterVersionsNode = value["ParameterVersions"]["ParameterVersion"];
for (auto valueParameterVersionsParameterVersion : allParameterVersionsNode)
{
ParameterVersion parameterVersionsObject;
if(!valueParameterVersionsParameterVersion["UpdatedDate"].isNull())
parameterVersionsObject.updatedDate = valueParameterVersionsParameterVersion["UpdatedDate"].asString();
if(!valueParameterVersionsParameterVersion["UpdatedBy"].isNull())
parameterVersionsObject.updatedBy = valueParameterVersionsParameterVersion["UpdatedBy"].asString();
if(!valueParameterVersionsParameterVersion["ParameterVersion"].isNull())
parameterVersionsObject.parameterVersion = std::stoi(valueParameterVersionsParameterVersion["ParameterVersion"].asString());
if(!valueParameterVersionsParameterVersion["Value"].isNull())
parameterVersionsObject.value = valueParameterVersionsParameterVersion["Value"].asString();
parameterVersions_.push_back(parameterVersionsObject);
}
if(!value["MaxResults"].isNull())
maxResults_ = std::stoi(value["MaxResults"].asString());
if(!value["NextToken"].isNull())
nextToken_ = value["NextToken"].asString();
if(!value["TotalCount"].isNull())
totalCount_ = std::stoi(value["TotalCount"].asString());
if(!value["Name"].isNull())
name_ = value["Name"].asString();
if(!value["Id"].isNull())
id_ = value["Id"].asString();
if(!value["Type"].isNull())
type_ = value["Type"].asString();
if(!value["Description"].isNull())
description_ = value["Description"].asString();
if(!value["CreatedDate"].isNull())
createdDate_ = value["CreatedDate"].asString();
if(!value["CreatedBy"].isNull())
createdBy_ = value["CreatedBy"].asString();
}
std::vector<ListSecretParameterVersionsResult::ParameterVersion> ListSecretParameterVersionsResult::getParameterVersions()const
{
return parameterVersions_;
}
int ListSecretParameterVersionsResult::getTotalCount()const
{
return totalCount_;
}
std::string ListSecretParameterVersionsResult::getType()const
{
return type_;
}
std::string ListSecretParameterVersionsResult::getDescription()const
{
return description_;
}
std::string ListSecretParameterVersionsResult::getCreatedBy()const
{
return createdBy_;
}
std::string ListSecretParameterVersionsResult::getNextToken()const
{
return nextToken_;
}
int ListSecretParameterVersionsResult::getMaxResults()const
{
return maxResults_;
}
std::string ListSecretParameterVersionsResult::getCreatedDate()const
{
return createdDate_;
}
std::string ListSecretParameterVersionsResult::getId()const
{
return id_;
}
std::string ListSecretParameterVersionsResult::getName()const
{
return name_;
}

View File

@@ -0,0 +1,117 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/oos/model/ListSecretParametersRequest.h>
using AlibabaCloud::Oos::Model::ListSecretParametersRequest;
ListSecretParametersRequest::ListSecretParametersRequest() :
RpcServiceRequest("oos", "2019-06-01", "ListSecretParameters")
{
setMethod(HttpRequest::Method::Post);
}
ListSecretParametersRequest::~ListSecretParametersRequest()
{}
bool ListSecretParametersRequest::getRecursive()const
{
return recursive_;
}
void ListSecretParametersRequest::setRecursive(bool recursive)
{
recursive_ = recursive;
setParameter("Recursive", recursive ? "true" : "false");
}
std::string ListSecretParametersRequest::getPath()const
{
return path_;
}
void ListSecretParametersRequest::setPath(const std::string& path)
{
path_ = path;
setParameter("Path", path);
}
std::string ListSecretParametersRequest::getRegionId()const
{
return regionId_;
}
void ListSecretParametersRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
std::string ListSecretParametersRequest::getNextToken()const
{
return nextToken_;
}
void ListSecretParametersRequest::setNextToken(const std::string& nextToken)
{
nextToken_ = nextToken;
setParameter("NextToken", nextToken);
}
std::string ListSecretParametersRequest::getName()const
{
return name_;
}
void ListSecretParametersRequest::setName(const std::string& name)
{
name_ = name;
setParameter("Name", name);
}
int ListSecretParametersRequest::getMaxResults()const
{
return maxResults_;
}
void ListSecretParametersRequest::setMaxResults(int maxResults)
{
maxResults_ = maxResults;
setParameter("MaxResults", std::to_string(maxResults));
}
std::string ListSecretParametersRequest::getSortOrder()const
{
return sortOrder_;
}
void ListSecretParametersRequest::setSortOrder(const std::string& sortOrder)
{
sortOrder_ = sortOrder;
setParameter("SortOrder", sortOrder);
}
std::string ListSecretParametersRequest::getSortField()const
{
return sortField_;
}
void ListSecretParametersRequest::setSortField(const std::string& sortField)
{
sortField_ = sortField;
setParameter("SortField", sortField);
}

View 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/oos/model/ListSecretParametersResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Oos;
using namespace AlibabaCloud::Oos::Model;
ListSecretParametersResult::ListSecretParametersResult() :
ServiceResult()
{}
ListSecretParametersResult::ListSecretParametersResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ListSecretParametersResult::~ListSecretParametersResult()
{}
void ListSecretParametersResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allParametersNode = value["Parameters"]["Parameter"];
for (auto valueParametersParameter : allParametersNode)
{
_Parameter parametersObject;
if(!valueParametersParameter["Name"].isNull())
parametersObject.name = valueParametersParameter["Name"].asString();
if(!valueParametersParameter["Id"].isNull())
parametersObject.id = valueParametersParameter["Id"].asString();
if(!valueParametersParameter["CreatedDate"].isNull())
parametersObject.createdDate = valueParametersParameter["CreatedDate"].asString();
if(!valueParametersParameter["CreatedBy"].isNull())
parametersObject.createdBy = valueParametersParameter["CreatedBy"].asString();
if(!valueParametersParameter["UpdatedDate"].isNull())
parametersObject.updatedDate = valueParametersParameter["UpdatedDate"].asString();
if(!valueParametersParameter["UpdatedBy"].isNull())
parametersObject.updatedBy = valueParametersParameter["UpdatedBy"].asString();
if(!valueParametersParameter["Description"].isNull())
parametersObject.description = valueParametersParameter["Description"].asString();
if(!valueParametersParameter["ShareType"].isNull())
parametersObject.shareType = valueParametersParameter["ShareType"].asString();
if(!valueParametersParameter["ParameterVersion"].isNull())
parametersObject.parameterVersion = valueParametersParameter["ParameterVersion"].asString();
if(!valueParametersParameter["Type"].isNull())
parametersObject.type = valueParametersParameter["Type"].asString();
parameters_.push_back(parametersObject);
}
if(!value["MaxResults"].isNull())
maxResults_ = std::stoi(value["MaxResults"].asString());
if(!value["NextToken"].isNull())
nextToken_ = value["NextToken"].asString();
}
std::vector<ListSecretParametersResult::_Parameter> ListSecretParametersResult::getParameters()const
{
return parameters_;
}
std::string ListSecretParametersResult::getNextToken()const
{
return nextToken_;
}
int ListSecretParametersResult::getMaxResults()const
{
return maxResults_;
}

View File

@@ -0,0 +1,73 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/oos/model/UpdateParameterRequest.h>
using AlibabaCloud::Oos::Model::UpdateParameterRequest;
UpdateParameterRequest::UpdateParameterRequest() :
RpcServiceRequest("oos", "2019-06-01", "UpdateParameter")
{
setMethod(HttpRequest::Method::Post);
}
UpdateParameterRequest::~UpdateParameterRequest()
{}
std::string UpdateParameterRequest::getDescription()const
{
return description_;
}
void UpdateParameterRequest::setDescription(const std::string& description)
{
description_ = description;
setParameter("Description", description);
}
std::string UpdateParameterRequest::getRegionId()const
{
return regionId_;
}
void UpdateParameterRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
std::string UpdateParameterRequest::getName()const
{
return name_;
}
void UpdateParameterRequest::setName(const std::string& name)
{
name_ = name;
setParameter("Name", name);
}
std::string UpdateParameterRequest::getValue()const
{
return value_;
}
void UpdateParameterRequest::setValue(const std::string& value)
{
value_ = value;
setParameter("Value", value);
}

View File

@@ -0,0 +1,70 @@
/*
* 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/oos/model/UpdateParameterResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Oos;
using namespace AlibabaCloud::Oos::Model;
UpdateParameterResult::UpdateParameterResult() :
ServiceResult()
{}
UpdateParameterResult::UpdateParameterResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
UpdateParameterResult::~UpdateParameterResult()
{}
void UpdateParameterResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto _parameterNode = value["Parameter"];
if(!_parameterNode["Id"].isNull())
_parameter_.id = _parameterNode["Id"].asString();
if(!_parameterNode["Name"].isNull())
_parameter_.name = _parameterNode["Name"].asString();
if(!_parameterNode["CreatedDate"].isNull())
_parameter_.createdDate = _parameterNode["CreatedDate"].asString();
if(!_parameterNode["CreatedBy"].isNull())
_parameter_.createdBy = _parameterNode["CreatedBy"].asString();
if(!_parameterNode["UpdatedDate"].isNull())
_parameter_.updatedDate = _parameterNode["UpdatedDate"].asString();
if(!_parameterNode["UpdatedBy"].isNull())
_parameter_.updatedBy = _parameterNode["UpdatedBy"].asString();
if(!_parameterNode["Description"].isNull())
_parameter_.description = _parameterNode["Description"].asString();
if(!_parameterNode["ShareType"].isNull())
_parameter_.shareType = _parameterNode["ShareType"].asString();
if(!_parameterNode["ParameterVersion"].isNull())
_parameter_.parameterVersion = std::stoi(_parameterNode["ParameterVersion"].asString());
if(!_parameterNode["Type"].isNull())
_parameter_.type = _parameterNode["Type"].asString();
}
UpdateParameterResult::_Parameter UpdateParameterResult::get_Parameter()const
{
return _parameter_;
}

View File

@@ -0,0 +1,73 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/oos/model/UpdateSecretParameterRequest.h>
using AlibabaCloud::Oos::Model::UpdateSecretParameterRequest;
UpdateSecretParameterRequest::UpdateSecretParameterRequest() :
RpcServiceRequest("oos", "2019-06-01", "UpdateSecretParameter")
{
setMethod(HttpRequest::Method::Post);
}
UpdateSecretParameterRequest::~UpdateSecretParameterRequest()
{}
std::string UpdateSecretParameterRequest::getDescription()const
{
return description_;
}
void UpdateSecretParameterRequest::setDescription(const std::string& description)
{
description_ = description;
setParameter("Description", description);
}
std::string UpdateSecretParameterRequest::getRegionId()const
{
return regionId_;
}
void UpdateSecretParameterRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
std::string UpdateSecretParameterRequest::getName()const
{
return name_;
}
void UpdateSecretParameterRequest::setName(const std::string& name)
{
name_ = name;
setParameter("Name", name);
}
std::string UpdateSecretParameterRequest::getValue()const
{
return value_;
}
void UpdateSecretParameterRequest::setValue(const std::string& value)
{
value_ = value;
setParameter("Value", value);
}

View File

@@ -0,0 +1,70 @@
/*
* 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/oos/model/UpdateSecretParameterResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Oos;
using namespace AlibabaCloud::Oos::Model;
UpdateSecretParameterResult::UpdateSecretParameterResult() :
ServiceResult()
{}
UpdateSecretParameterResult::UpdateSecretParameterResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
UpdateSecretParameterResult::~UpdateSecretParameterResult()
{}
void UpdateSecretParameterResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto _parameterNode = value["Parameter"];
if(!_parameterNode["Id"].isNull())
_parameter_.id = _parameterNode["Id"].asString();
if(!_parameterNode["Name"].isNull())
_parameter_.name = _parameterNode["Name"].asString();
if(!_parameterNode["CreatedDate"].isNull())
_parameter_.createdDate = _parameterNode["CreatedDate"].asString();
if(!_parameterNode["CreatedBy"].isNull())
_parameter_.createdBy = _parameterNode["CreatedBy"].asString();
if(!_parameterNode["UpdatedDate"].isNull())
_parameter_.updatedDate = _parameterNode["UpdatedDate"].asString();
if(!_parameterNode["UpdatedBy"].isNull())
_parameter_.updatedBy = _parameterNode["UpdatedBy"].asString();
if(!_parameterNode["Description"].isNull())
_parameter_.description = _parameterNode["Description"].asString();
if(!_parameterNode["ShareType"].isNull())
_parameter_.shareType = _parameterNode["ShareType"].asString();
if(!_parameterNode["ParameterVersion"].isNull())
_parameter_.parameterVersion = std::stoi(_parameterNode["ParameterVersion"].asString());
if(!_parameterNode["Type"].isNull())
_parameter_.type = _parameterNode["Type"].asString();
}
UpdateSecretParameterResult::_Parameter UpdateSecretParameterResult::get_Parameter()const
{
return _parameter_;
}