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

@@ -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_;
}