Supported more query conditions when searching resource group.
This commit is contained in:
40
resourcemanager/src/model/AcceptHandshakeRequest.cc
Normal file
40
resourcemanager/src/model/AcceptHandshakeRequest.cc
Normal file
@@ -0,0 +1,40 @@
|
||||
/*
|
||||
* 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/resourcemanager/model/AcceptHandshakeRequest.h>
|
||||
|
||||
using AlibabaCloud::ResourceManager::Model::AcceptHandshakeRequest;
|
||||
|
||||
AcceptHandshakeRequest::AcceptHandshakeRequest() :
|
||||
RpcServiceRequest("resourcemanager", "2020-03-31", "AcceptHandshake")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
AcceptHandshakeRequest::~AcceptHandshakeRequest()
|
||||
{}
|
||||
|
||||
std::string AcceptHandshakeRequest::getHandshakeId()const
|
||||
{
|
||||
return handshakeId_;
|
||||
}
|
||||
|
||||
void AcceptHandshakeRequest::setHandshakeId(const std::string& handshakeId)
|
||||
{
|
||||
handshakeId_ = handshakeId;
|
||||
setParameter("HandshakeId", handshakeId);
|
||||
}
|
||||
|
||||
72
resourcemanager/src/model/AcceptHandshakeResult.cc
Normal file
72
resourcemanager/src/model/AcceptHandshakeResult.cc
Normal file
@@ -0,0 +1,72 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/resourcemanager/model/AcceptHandshakeResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::ResourceManager;
|
||||
using namespace AlibabaCloud::ResourceManager::Model;
|
||||
|
||||
AcceptHandshakeResult::AcceptHandshakeResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
AcceptHandshakeResult::AcceptHandshakeResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
AcceptHandshakeResult::~AcceptHandshakeResult()
|
||||
{}
|
||||
|
||||
void AcceptHandshakeResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto handshakeNode = value["Handshake"];
|
||||
if(!handshakeNode["Status"].isNull())
|
||||
handshake_.status = handshakeNode["Status"].asString();
|
||||
if(!handshakeNode["ExpireTime"].isNull())
|
||||
handshake_.expireTime = handshakeNode["ExpireTime"].asString();
|
||||
if(!handshakeNode["ResourceDirectoryId"].isNull())
|
||||
handshake_.resourceDirectoryId = handshakeNode["ResourceDirectoryId"].asString();
|
||||
if(!handshakeNode["CreateTime"].isNull())
|
||||
handshake_.createTime = handshakeNode["CreateTime"].asString();
|
||||
if(!handshakeNode["Note"].isNull())
|
||||
handshake_.note = handshakeNode["Note"].asString();
|
||||
if(!handshakeNode["TargetEntity"].isNull())
|
||||
handshake_.targetEntity = handshakeNode["TargetEntity"].asString();
|
||||
if(!handshakeNode["MasterAccountId"].isNull())
|
||||
handshake_.masterAccountId = handshakeNode["MasterAccountId"].asString();
|
||||
if(!handshakeNode["MasterAccountName"].isNull())
|
||||
handshake_.masterAccountName = handshakeNode["MasterAccountName"].asString();
|
||||
if(!handshakeNode["ModifyTime"].isNull())
|
||||
handshake_.modifyTime = handshakeNode["ModifyTime"].asString();
|
||||
if(!handshakeNode["TargetType"].isNull())
|
||||
handshake_.targetType = handshakeNode["TargetType"].asString();
|
||||
if(!handshakeNode["HandshakeId"].isNull())
|
||||
handshake_.handshakeId = handshakeNode["HandshakeId"].asString();
|
||||
|
||||
}
|
||||
|
||||
AcceptHandshakeResult::Handshake AcceptHandshakeResult::getHandshake()const
|
||||
{
|
||||
return handshake_;
|
||||
}
|
||||
|
||||
51
resourcemanager/src/model/AttachControlPolicyRequest.cc
Normal file
51
resourcemanager/src/model/AttachControlPolicyRequest.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/resourcemanager/model/AttachControlPolicyRequest.h>
|
||||
|
||||
using AlibabaCloud::ResourceManager::Model::AttachControlPolicyRequest;
|
||||
|
||||
AttachControlPolicyRequest::AttachControlPolicyRequest() :
|
||||
RpcServiceRequest("resourcemanager", "2020-03-31", "AttachControlPolicy")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
AttachControlPolicyRequest::~AttachControlPolicyRequest()
|
||||
{}
|
||||
|
||||
std::string AttachControlPolicyRequest::getTargetId()const
|
||||
{
|
||||
return targetId_;
|
||||
}
|
||||
|
||||
void AttachControlPolicyRequest::setTargetId(const std::string& targetId)
|
||||
{
|
||||
targetId_ = targetId;
|
||||
setParameter("TargetId", targetId);
|
||||
}
|
||||
|
||||
std::string AttachControlPolicyRequest::getPolicyId()const
|
||||
{
|
||||
return policyId_;
|
||||
}
|
||||
|
||||
void AttachControlPolicyRequest::setPolicyId(const std::string& policyId)
|
||||
{
|
||||
policyId_ = policyId;
|
||||
setParameter("PolicyId", policyId);
|
||||
}
|
||||
|
||||
44
resourcemanager/src/model/AttachControlPolicyResult.cc
Normal file
44
resourcemanager/src/model/AttachControlPolicyResult.cc
Normal file
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/resourcemanager/model/AttachControlPolicyResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::ResourceManager;
|
||||
using namespace AlibabaCloud::ResourceManager::Model;
|
||||
|
||||
AttachControlPolicyResult::AttachControlPolicyResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
AttachControlPolicyResult::AttachControlPolicyResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
AttachControlPolicyResult::~AttachControlPolicyResult()
|
||||
{}
|
||||
|
||||
void AttachControlPolicyResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
84
resourcemanager/src/model/AttachPolicyRequest.cc
Normal file
84
resourcemanager/src/model/AttachPolicyRequest.cc
Normal 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/resourcemanager/model/AttachPolicyRequest.h>
|
||||
|
||||
using AlibabaCloud::ResourceManager::Model::AttachPolicyRequest;
|
||||
|
||||
AttachPolicyRequest::AttachPolicyRequest() :
|
||||
RpcServiceRequest("resourcemanager", "2020-03-31", "AttachPolicy")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
AttachPolicyRequest::~AttachPolicyRequest()
|
||||
{}
|
||||
|
||||
std::string AttachPolicyRequest::getPolicyType()const
|
||||
{
|
||||
return policyType_;
|
||||
}
|
||||
|
||||
void AttachPolicyRequest::setPolicyType(const std::string& policyType)
|
||||
{
|
||||
policyType_ = policyType;
|
||||
setParameter("PolicyType", policyType);
|
||||
}
|
||||
|
||||
std::string AttachPolicyRequest::getPrincipalType()const
|
||||
{
|
||||
return principalType_;
|
||||
}
|
||||
|
||||
void AttachPolicyRequest::setPrincipalType(const std::string& principalType)
|
||||
{
|
||||
principalType_ = principalType;
|
||||
setParameter("PrincipalType", principalType);
|
||||
}
|
||||
|
||||
std::string AttachPolicyRequest::getResourceGroupId()const
|
||||
{
|
||||
return resourceGroupId_;
|
||||
}
|
||||
|
||||
void AttachPolicyRequest::setResourceGroupId(const std::string& resourceGroupId)
|
||||
{
|
||||
resourceGroupId_ = resourceGroupId;
|
||||
setParameter("ResourceGroupId", resourceGroupId);
|
||||
}
|
||||
|
||||
std::string AttachPolicyRequest::getPolicyName()const
|
||||
{
|
||||
return policyName_;
|
||||
}
|
||||
|
||||
void AttachPolicyRequest::setPolicyName(const std::string& policyName)
|
||||
{
|
||||
policyName_ = policyName;
|
||||
setParameter("PolicyName", policyName);
|
||||
}
|
||||
|
||||
std::string AttachPolicyRequest::getPrincipalName()const
|
||||
{
|
||||
return principalName_;
|
||||
}
|
||||
|
||||
void AttachPolicyRequest::setPrincipalName(const std::string& principalName)
|
||||
{
|
||||
principalName_ = principalName;
|
||||
setParameter("PrincipalName", principalName);
|
||||
}
|
||||
|
||||
44
resourcemanager/src/model/AttachPolicyResult.cc
Normal file
44
resourcemanager/src/model/AttachPolicyResult.cc
Normal file
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/resourcemanager/model/AttachPolicyResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::ResourceManager;
|
||||
using namespace AlibabaCloud::ResourceManager::Model;
|
||||
|
||||
AttachPolicyResult::AttachPolicyResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
AttachPolicyResult::AttachPolicyResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
AttachPolicyResult::~AttachPolicyResult()
|
||||
{}
|
||||
|
||||
void AttachPolicyResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
62
resourcemanager/src/model/BindSecureMobilePhoneRequest.cc
Normal file
62
resourcemanager/src/model/BindSecureMobilePhoneRequest.cc
Normal 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/resourcemanager/model/BindSecureMobilePhoneRequest.h>
|
||||
|
||||
using AlibabaCloud::ResourceManager::Model::BindSecureMobilePhoneRequest;
|
||||
|
||||
BindSecureMobilePhoneRequest::BindSecureMobilePhoneRequest() :
|
||||
RpcServiceRequest("resourcemanager", "2020-03-31", "BindSecureMobilePhone")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
BindSecureMobilePhoneRequest::~BindSecureMobilePhoneRequest()
|
||||
{}
|
||||
|
||||
std::string BindSecureMobilePhoneRequest::getSecureMobilePhone()const
|
||||
{
|
||||
return secureMobilePhone_;
|
||||
}
|
||||
|
||||
void BindSecureMobilePhoneRequest::setSecureMobilePhone(const std::string& secureMobilePhone)
|
||||
{
|
||||
secureMobilePhone_ = secureMobilePhone;
|
||||
setParameter("SecureMobilePhone", secureMobilePhone);
|
||||
}
|
||||
|
||||
std::string BindSecureMobilePhoneRequest::getAccountId()const
|
||||
{
|
||||
return accountId_;
|
||||
}
|
||||
|
||||
void BindSecureMobilePhoneRequest::setAccountId(const std::string& accountId)
|
||||
{
|
||||
accountId_ = accountId;
|
||||
setParameter("AccountId", accountId);
|
||||
}
|
||||
|
||||
std::string BindSecureMobilePhoneRequest::getVerificationCode()const
|
||||
{
|
||||
return verificationCode_;
|
||||
}
|
||||
|
||||
void BindSecureMobilePhoneRequest::setVerificationCode(const std::string& verificationCode)
|
||||
{
|
||||
verificationCode_ = verificationCode;
|
||||
setParameter("VerificationCode", verificationCode);
|
||||
}
|
||||
|
||||
44
resourcemanager/src/model/BindSecureMobilePhoneResult.cc
Normal file
44
resourcemanager/src/model/BindSecureMobilePhoneResult.cc
Normal file
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/resourcemanager/model/BindSecureMobilePhoneResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::ResourceManager;
|
||||
using namespace AlibabaCloud::ResourceManager::Model;
|
||||
|
||||
BindSecureMobilePhoneResult::BindSecureMobilePhoneResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
BindSecureMobilePhoneResult::BindSecureMobilePhoneResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
BindSecureMobilePhoneResult::~BindSecureMobilePhoneResult()
|
||||
{}
|
||||
|
||||
void BindSecureMobilePhoneResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
40
resourcemanager/src/model/CancelCreateCloudAccountRequest.cc
Normal file
40
resourcemanager/src/model/CancelCreateCloudAccountRequest.cc
Normal file
@@ -0,0 +1,40 @@
|
||||
/*
|
||||
* 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/resourcemanager/model/CancelCreateCloudAccountRequest.h>
|
||||
|
||||
using AlibabaCloud::ResourceManager::Model::CancelCreateCloudAccountRequest;
|
||||
|
||||
CancelCreateCloudAccountRequest::CancelCreateCloudAccountRequest() :
|
||||
RpcServiceRequest("resourcemanager", "2020-03-31", "CancelCreateCloudAccount")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CancelCreateCloudAccountRequest::~CancelCreateCloudAccountRequest()
|
||||
{}
|
||||
|
||||
std::string CancelCreateCloudAccountRequest::getRecordId()const
|
||||
{
|
||||
return recordId_;
|
||||
}
|
||||
|
||||
void CancelCreateCloudAccountRequest::setRecordId(const std::string& recordId)
|
||||
{
|
||||
recordId_ = recordId;
|
||||
setParameter("RecordId", recordId);
|
||||
}
|
||||
|
||||
44
resourcemanager/src/model/CancelCreateCloudAccountResult.cc
Normal file
44
resourcemanager/src/model/CancelCreateCloudAccountResult.cc
Normal file
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/resourcemanager/model/CancelCreateCloudAccountResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::ResourceManager;
|
||||
using namespace AlibabaCloud::ResourceManager::Model;
|
||||
|
||||
CancelCreateCloudAccountResult::CancelCreateCloudAccountResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CancelCreateCloudAccountResult::CancelCreateCloudAccountResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CancelCreateCloudAccountResult::~CancelCreateCloudAccountResult()
|
||||
{}
|
||||
|
||||
void CancelCreateCloudAccountResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
40
resourcemanager/src/model/CancelHandshakeRequest.cc
Normal file
40
resourcemanager/src/model/CancelHandshakeRequest.cc
Normal file
@@ -0,0 +1,40 @@
|
||||
/*
|
||||
* 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/resourcemanager/model/CancelHandshakeRequest.h>
|
||||
|
||||
using AlibabaCloud::ResourceManager::Model::CancelHandshakeRequest;
|
||||
|
||||
CancelHandshakeRequest::CancelHandshakeRequest() :
|
||||
RpcServiceRequest("resourcemanager", "2020-03-31", "CancelHandshake")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CancelHandshakeRequest::~CancelHandshakeRequest()
|
||||
{}
|
||||
|
||||
std::string CancelHandshakeRequest::getHandshakeId()const
|
||||
{
|
||||
return handshakeId_;
|
||||
}
|
||||
|
||||
void CancelHandshakeRequest::setHandshakeId(const std::string& handshakeId)
|
||||
{
|
||||
handshakeId_ = handshakeId;
|
||||
setParameter("HandshakeId", handshakeId);
|
||||
}
|
||||
|
||||
72
resourcemanager/src/model/CancelHandshakeResult.cc
Normal file
72
resourcemanager/src/model/CancelHandshakeResult.cc
Normal file
@@ -0,0 +1,72 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/resourcemanager/model/CancelHandshakeResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::ResourceManager;
|
||||
using namespace AlibabaCloud::ResourceManager::Model;
|
||||
|
||||
CancelHandshakeResult::CancelHandshakeResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CancelHandshakeResult::CancelHandshakeResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CancelHandshakeResult::~CancelHandshakeResult()
|
||||
{}
|
||||
|
||||
void CancelHandshakeResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto handshakeNode = value["Handshake"];
|
||||
if(!handshakeNode["Status"].isNull())
|
||||
handshake_.status = handshakeNode["Status"].asString();
|
||||
if(!handshakeNode["ExpireTime"].isNull())
|
||||
handshake_.expireTime = handshakeNode["ExpireTime"].asString();
|
||||
if(!handshakeNode["ResourceDirectoryId"].isNull())
|
||||
handshake_.resourceDirectoryId = handshakeNode["ResourceDirectoryId"].asString();
|
||||
if(!handshakeNode["CreateTime"].isNull())
|
||||
handshake_.createTime = handshakeNode["CreateTime"].asString();
|
||||
if(!handshakeNode["Note"].isNull())
|
||||
handshake_.note = handshakeNode["Note"].asString();
|
||||
if(!handshakeNode["TargetEntity"].isNull())
|
||||
handshake_.targetEntity = handshakeNode["TargetEntity"].asString();
|
||||
if(!handshakeNode["MasterAccountId"].isNull())
|
||||
handshake_.masterAccountId = handshakeNode["MasterAccountId"].asString();
|
||||
if(!handshakeNode["MasterAccountName"].isNull())
|
||||
handshake_.masterAccountName = handshakeNode["MasterAccountName"].asString();
|
||||
if(!handshakeNode["ModifyTime"].isNull())
|
||||
handshake_.modifyTime = handshakeNode["ModifyTime"].asString();
|
||||
if(!handshakeNode["TargetType"].isNull())
|
||||
handshake_.targetType = handshakeNode["TargetType"].asString();
|
||||
if(!handshakeNode["HandshakeId"].isNull())
|
||||
handshake_.handshakeId = handshakeNode["HandshakeId"].asString();
|
||||
|
||||
}
|
||||
|
||||
CancelHandshakeResult::Handshake CancelHandshakeResult::getHandshake()const
|
||||
{
|
||||
return handshake_;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,40 @@
|
||||
/*
|
||||
* 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/resourcemanager/model/CancelPromoteResourceAccountRequest.h>
|
||||
|
||||
using AlibabaCloud::ResourceManager::Model::CancelPromoteResourceAccountRequest;
|
||||
|
||||
CancelPromoteResourceAccountRequest::CancelPromoteResourceAccountRequest() :
|
||||
RpcServiceRequest("resourcemanager", "2020-03-31", "CancelPromoteResourceAccount")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CancelPromoteResourceAccountRequest::~CancelPromoteResourceAccountRequest()
|
||||
{}
|
||||
|
||||
std::string CancelPromoteResourceAccountRequest::getRecordId()const
|
||||
{
|
||||
return recordId_;
|
||||
}
|
||||
|
||||
void CancelPromoteResourceAccountRequest::setRecordId(const std::string& recordId)
|
||||
{
|
||||
recordId_ = recordId;
|
||||
setParameter("RecordId", recordId);
|
||||
}
|
||||
|
||||
@@ -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/resourcemanager/model/CancelPromoteResourceAccountResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::ResourceManager;
|
||||
using namespace AlibabaCloud::ResourceManager::Model;
|
||||
|
||||
CancelPromoteResourceAccountResult::CancelPromoteResourceAccountResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CancelPromoteResourceAccountResult::CancelPromoteResourceAccountResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CancelPromoteResourceAccountResult::~CancelPromoteResourceAccountResult()
|
||||
{}
|
||||
|
||||
void CancelPromoteResourceAccountResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
73
resourcemanager/src/model/CreateCloudAccountRequest.cc
Normal file
73
resourcemanager/src/model/CreateCloudAccountRequest.cc
Normal 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/resourcemanager/model/CreateCloudAccountRequest.h>
|
||||
|
||||
using AlibabaCloud::ResourceManager::Model::CreateCloudAccountRequest;
|
||||
|
||||
CreateCloudAccountRequest::CreateCloudAccountRequest() :
|
||||
RpcServiceRequest("resourcemanager", "2020-03-31", "CreateCloudAccount")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateCloudAccountRequest::~CreateCloudAccountRequest()
|
||||
{}
|
||||
|
||||
std::string CreateCloudAccountRequest::getParentFolderId()const
|
||||
{
|
||||
return parentFolderId_;
|
||||
}
|
||||
|
||||
void CreateCloudAccountRequest::setParentFolderId(const std::string& parentFolderId)
|
||||
{
|
||||
parentFolderId_ = parentFolderId;
|
||||
setParameter("ParentFolderId", parentFolderId);
|
||||
}
|
||||
|
||||
std::string CreateCloudAccountRequest::getDisplayName()const
|
||||
{
|
||||
return displayName_;
|
||||
}
|
||||
|
||||
void CreateCloudAccountRequest::setDisplayName(const std::string& displayName)
|
||||
{
|
||||
displayName_ = displayName;
|
||||
setParameter("DisplayName", displayName);
|
||||
}
|
||||
|
||||
std::string CreateCloudAccountRequest::getEmail()const
|
||||
{
|
||||
return email_;
|
||||
}
|
||||
|
||||
void CreateCloudAccountRequest::setEmail(const std::string& email)
|
||||
{
|
||||
email_ = email;
|
||||
setParameter("Email", email);
|
||||
}
|
||||
|
||||
std::string CreateCloudAccountRequest::getPayerAccountId()const
|
||||
{
|
||||
return payerAccountId_;
|
||||
}
|
||||
|
||||
void CreateCloudAccountRequest::setPayerAccountId(const std::string& payerAccountId)
|
||||
{
|
||||
payerAccountId_ = payerAccountId;
|
||||
setParameter("PayerAccountId", payerAccountId);
|
||||
}
|
||||
|
||||
70
resourcemanager/src/model/CreateCloudAccountResult.cc
Normal file
70
resourcemanager/src/model/CreateCloudAccountResult.cc
Normal 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/resourcemanager/model/CreateCloudAccountResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::ResourceManager;
|
||||
using namespace AlibabaCloud::ResourceManager::Model;
|
||||
|
||||
CreateCloudAccountResult::CreateCloudAccountResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateCloudAccountResult::CreateCloudAccountResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateCloudAccountResult::~CreateCloudAccountResult()
|
||||
{}
|
||||
|
||||
void CreateCloudAccountResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto accountNode = value["Account"];
|
||||
if(!accountNode["Status"].isNull())
|
||||
account_.status = accountNode["Status"].asString();
|
||||
if(!accountNode["Type"].isNull())
|
||||
account_.type = accountNode["Type"].asString();
|
||||
if(!accountNode["DisplayName"].isNull())
|
||||
account_.displayName = accountNode["DisplayName"].asString();
|
||||
if(!accountNode["FolderId"].isNull())
|
||||
account_.folderId = accountNode["FolderId"].asString();
|
||||
if(!accountNode["ResourceDirectoryId"].isNull())
|
||||
account_.resourceDirectoryId = accountNode["ResourceDirectoryId"].asString();
|
||||
if(!accountNode["RecordId"].isNull())
|
||||
account_.recordId = accountNode["RecordId"].asString();
|
||||
if(!accountNode["AccountId"].isNull())
|
||||
account_.accountId = accountNode["AccountId"].asString();
|
||||
if(!accountNode["JoinMethod"].isNull())
|
||||
account_.joinMethod = accountNode["JoinMethod"].asString();
|
||||
if(!accountNode["ModifyTime"].isNull())
|
||||
account_.modifyTime = accountNode["ModifyTime"].asString();
|
||||
if(!accountNode["AccountName"].isNull())
|
||||
account_.accountName = accountNode["AccountName"].asString();
|
||||
|
||||
}
|
||||
|
||||
CreateCloudAccountResult::Account CreateCloudAccountResult::getAccount()const
|
||||
{
|
||||
return account_;
|
||||
}
|
||||
|
||||
73
resourcemanager/src/model/CreateControlPolicyRequest.cc
Normal file
73
resourcemanager/src/model/CreateControlPolicyRequest.cc
Normal 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/resourcemanager/model/CreateControlPolicyRequest.h>
|
||||
|
||||
using AlibabaCloud::ResourceManager::Model::CreateControlPolicyRequest;
|
||||
|
||||
CreateControlPolicyRequest::CreateControlPolicyRequest() :
|
||||
RpcServiceRequest("resourcemanager", "2020-03-31", "CreateControlPolicy")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateControlPolicyRequest::~CreateControlPolicyRequest()
|
||||
{}
|
||||
|
||||
std::string CreateControlPolicyRequest::getDescription()const
|
||||
{
|
||||
return description_;
|
||||
}
|
||||
|
||||
void CreateControlPolicyRequest::setDescription(const std::string& description)
|
||||
{
|
||||
description_ = description;
|
||||
setParameter("Description", description);
|
||||
}
|
||||
|
||||
std::string CreateControlPolicyRequest::getEffectScope()const
|
||||
{
|
||||
return effectScope_;
|
||||
}
|
||||
|
||||
void CreateControlPolicyRequest::setEffectScope(const std::string& effectScope)
|
||||
{
|
||||
effectScope_ = effectScope;
|
||||
setParameter("EffectScope", effectScope);
|
||||
}
|
||||
|
||||
std::string CreateControlPolicyRequest::getPolicyName()const
|
||||
{
|
||||
return policyName_;
|
||||
}
|
||||
|
||||
void CreateControlPolicyRequest::setPolicyName(const std::string& policyName)
|
||||
{
|
||||
policyName_ = policyName;
|
||||
setParameter("PolicyName", policyName);
|
||||
}
|
||||
|
||||
std::string CreateControlPolicyRequest::getPolicyDocument()const
|
||||
{
|
||||
return policyDocument_;
|
||||
}
|
||||
|
||||
void CreateControlPolicyRequest::setPolicyDocument(const std::string& policyDocument)
|
||||
{
|
||||
policyDocument_ = policyDocument;
|
||||
setParameter("PolicyDocument", policyDocument);
|
||||
}
|
||||
|
||||
66
resourcemanager/src/model/CreateControlPolicyResult.cc
Normal file
66
resourcemanager/src/model/CreateControlPolicyResult.cc
Normal file
@@ -0,0 +1,66 @@
|
||||
/*
|
||||
* 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/resourcemanager/model/CreateControlPolicyResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::ResourceManager;
|
||||
using namespace AlibabaCloud::ResourceManager::Model;
|
||||
|
||||
CreateControlPolicyResult::CreateControlPolicyResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateControlPolicyResult::CreateControlPolicyResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateControlPolicyResult::~CreateControlPolicyResult()
|
||||
{}
|
||||
|
||||
void CreateControlPolicyResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto controlPolicyNode = value["ControlPolicy"];
|
||||
if(!controlPolicyNode["UpdateDate"].isNull())
|
||||
controlPolicy_.updateDate = controlPolicyNode["UpdateDate"].asString();
|
||||
if(!controlPolicyNode["Description"].isNull())
|
||||
controlPolicy_.description = controlPolicyNode["Description"].asString();
|
||||
if(!controlPolicyNode["EffectScope"].isNull())
|
||||
controlPolicy_.effectScope = controlPolicyNode["EffectScope"].asString();
|
||||
if(!controlPolicyNode["AttachmentCount"].isNull())
|
||||
controlPolicy_.attachmentCount = controlPolicyNode["AttachmentCount"].asString();
|
||||
if(!controlPolicyNode["PolicyName"].isNull())
|
||||
controlPolicy_.policyName = controlPolicyNode["PolicyName"].asString();
|
||||
if(!controlPolicyNode["PolicyId"].isNull())
|
||||
controlPolicy_.policyId = controlPolicyNode["PolicyId"].asString();
|
||||
if(!controlPolicyNode["CreateDate"].isNull())
|
||||
controlPolicy_.createDate = controlPolicyNode["CreateDate"].asString();
|
||||
if(!controlPolicyNode["PolicyType"].isNull())
|
||||
controlPolicy_.policyType = controlPolicyNode["PolicyType"].asString();
|
||||
|
||||
}
|
||||
|
||||
CreateControlPolicyResult::ControlPolicy CreateControlPolicyResult::getControlPolicy()const
|
||||
{
|
||||
return controlPolicy_;
|
||||
}
|
||||
|
||||
51
resourcemanager/src/model/CreateFolderRequest.cc
Normal file
51
resourcemanager/src/model/CreateFolderRequest.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/resourcemanager/model/CreateFolderRequest.h>
|
||||
|
||||
using AlibabaCloud::ResourceManager::Model::CreateFolderRequest;
|
||||
|
||||
CreateFolderRequest::CreateFolderRequest() :
|
||||
RpcServiceRequest("resourcemanager", "2020-03-31", "CreateFolder")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateFolderRequest::~CreateFolderRequest()
|
||||
{}
|
||||
|
||||
std::string CreateFolderRequest::getFolderName()const
|
||||
{
|
||||
return folderName_;
|
||||
}
|
||||
|
||||
void CreateFolderRequest::setFolderName(const std::string& folderName)
|
||||
{
|
||||
folderName_ = folderName;
|
||||
setParameter("FolderName", folderName);
|
||||
}
|
||||
|
||||
std::string CreateFolderRequest::getParentFolderId()const
|
||||
{
|
||||
return parentFolderId_;
|
||||
}
|
||||
|
||||
void CreateFolderRequest::setParentFolderId(const std::string& parentFolderId)
|
||||
{
|
||||
parentFolderId_ = parentFolderId;
|
||||
setParameter("ParentFolderId", parentFolderId);
|
||||
}
|
||||
|
||||
58
resourcemanager/src/model/CreateFolderResult.cc
Normal file
58
resourcemanager/src/model/CreateFolderResult.cc
Normal file
@@ -0,0 +1,58 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/resourcemanager/model/CreateFolderResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::ResourceManager;
|
||||
using namespace AlibabaCloud::ResourceManager::Model;
|
||||
|
||||
CreateFolderResult::CreateFolderResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateFolderResult::CreateFolderResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateFolderResult::~CreateFolderResult()
|
||||
{}
|
||||
|
||||
void CreateFolderResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto folderNode = value["Folder"];
|
||||
if(!folderNode["FolderId"].isNull())
|
||||
folder_.folderId = folderNode["FolderId"].asString();
|
||||
if(!folderNode["CreateTime"].isNull())
|
||||
folder_.createTime = folderNode["CreateTime"].asString();
|
||||
if(!folderNode["ParentFolderId"].isNull())
|
||||
folder_.parentFolderId = folderNode["ParentFolderId"].asString();
|
||||
if(!folderNode["FolderName"].isNull())
|
||||
folder_.folderName = folderNode["FolderName"].asString();
|
||||
|
||||
}
|
||||
|
||||
CreateFolderResult::Folder CreateFolderResult::getFolder()const
|
||||
{
|
||||
return folder_;
|
||||
}
|
||||
|
||||
62
resourcemanager/src/model/CreatePolicyRequest.cc
Normal file
62
resourcemanager/src/model/CreatePolicyRequest.cc
Normal 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/resourcemanager/model/CreatePolicyRequest.h>
|
||||
|
||||
using AlibabaCloud::ResourceManager::Model::CreatePolicyRequest;
|
||||
|
||||
CreatePolicyRequest::CreatePolicyRequest() :
|
||||
RpcServiceRequest("resourcemanager", "2020-03-31", "CreatePolicy")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreatePolicyRequest::~CreatePolicyRequest()
|
||||
{}
|
||||
|
||||
std::string CreatePolicyRequest::getDescription()const
|
||||
{
|
||||
return description_;
|
||||
}
|
||||
|
||||
void CreatePolicyRequest::setDescription(const std::string& description)
|
||||
{
|
||||
description_ = description;
|
||||
setParameter("Description", description);
|
||||
}
|
||||
|
||||
std::string CreatePolicyRequest::getPolicyName()const
|
||||
{
|
||||
return policyName_;
|
||||
}
|
||||
|
||||
void CreatePolicyRequest::setPolicyName(const std::string& policyName)
|
||||
{
|
||||
policyName_ = policyName;
|
||||
setParameter("PolicyName", policyName);
|
||||
}
|
||||
|
||||
std::string CreatePolicyRequest::getPolicyDocument()const
|
||||
{
|
||||
return policyDocument_;
|
||||
}
|
||||
|
||||
void CreatePolicyRequest::setPolicyDocument(const std::string& policyDocument)
|
||||
{
|
||||
policyDocument_ = policyDocument;
|
||||
setParameter("PolicyDocument", policyDocument);
|
||||
}
|
||||
|
||||
60
resourcemanager/src/model/CreatePolicyResult.cc
Normal file
60
resourcemanager/src/model/CreatePolicyResult.cc
Normal file
@@ -0,0 +1,60 @@
|
||||
/*
|
||||
* 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/resourcemanager/model/CreatePolicyResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::ResourceManager;
|
||||
using namespace AlibabaCloud::ResourceManager::Model;
|
||||
|
||||
CreatePolicyResult::CreatePolicyResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreatePolicyResult::CreatePolicyResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreatePolicyResult::~CreatePolicyResult()
|
||||
{}
|
||||
|
||||
void CreatePolicyResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto policyNode = value["Policy"];
|
||||
if(!policyNode["PolicyType"].isNull())
|
||||
policy_.policyType = policyNode["PolicyType"].asString();
|
||||
if(!policyNode["Description"].isNull())
|
||||
policy_.description = policyNode["Description"].asString();
|
||||
if(!policyNode["PolicyName"].isNull())
|
||||
policy_.policyName = policyNode["PolicyName"].asString();
|
||||
if(!policyNode["DefaultVersion"].isNull())
|
||||
policy_.defaultVersion = policyNode["DefaultVersion"].asString();
|
||||
if(!policyNode["CreateDate"].isNull())
|
||||
policy_.createDate = policyNode["CreateDate"].asString();
|
||||
|
||||
}
|
||||
|
||||
CreatePolicyResult::Policy CreatePolicyResult::getPolicy()const
|
||||
{
|
||||
return policy_;
|
||||
}
|
||||
|
||||
62
resourcemanager/src/model/CreatePolicyVersionRequest.cc
Normal file
62
resourcemanager/src/model/CreatePolicyVersionRequest.cc
Normal 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/resourcemanager/model/CreatePolicyVersionRequest.h>
|
||||
|
||||
using AlibabaCloud::ResourceManager::Model::CreatePolicyVersionRequest;
|
||||
|
||||
CreatePolicyVersionRequest::CreatePolicyVersionRequest() :
|
||||
RpcServiceRequest("resourcemanager", "2020-03-31", "CreatePolicyVersion")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreatePolicyVersionRequest::~CreatePolicyVersionRequest()
|
||||
{}
|
||||
|
||||
bool CreatePolicyVersionRequest::getSetAsDefault()const
|
||||
{
|
||||
return setAsDefault_;
|
||||
}
|
||||
|
||||
void CreatePolicyVersionRequest::setSetAsDefault(bool setAsDefault)
|
||||
{
|
||||
setAsDefault_ = setAsDefault;
|
||||
setParameter("SetAsDefault", setAsDefault ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string CreatePolicyVersionRequest::getPolicyName()const
|
||||
{
|
||||
return policyName_;
|
||||
}
|
||||
|
||||
void CreatePolicyVersionRequest::setPolicyName(const std::string& policyName)
|
||||
{
|
||||
policyName_ = policyName;
|
||||
setParameter("PolicyName", policyName);
|
||||
}
|
||||
|
||||
std::string CreatePolicyVersionRequest::getPolicyDocument()const
|
||||
{
|
||||
return policyDocument_;
|
||||
}
|
||||
|
||||
void CreatePolicyVersionRequest::setPolicyDocument(const std::string& policyDocument)
|
||||
{
|
||||
policyDocument_ = policyDocument;
|
||||
setParameter("PolicyDocument", policyDocument);
|
||||
}
|
||||
|
||||
56
resourcemanager/src/model/CreatePolicyVersionResult.cc
Normal file
56
resourcemanager/src/model/CreatePolicyVersionResult.cc
Normal file
@@ -0,0 +1,56 @@
|
||||
/*
|
||||
* 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/resourcemanager/model/CreatePolicyVersionResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::ResourceManager;
|
||||
using namespace AlibabaCloud::ResourceManager::Model;
|
||||
|
||||
CreatePolicyVersionResult::CreatePolicyVersionResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreatePolicyVersionResult::CreatePolicyVersionResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreatePolicyVersionResult::~CreatePolicyVersionResult()
|
||||
{}
|
||||
|
||||
void CreatePolicyVersionResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto policyVersionNode = value["PolicyVersion"];
|
||||
if(!policyVersionNode["VersionId"].isNull())
|
||||
policyVersion_.versionId = policyVersionNode["VersionId"].asString();
|
||||
if(!policyVersionNode["IsDefaultVersion"].isNull())
|
||||
policyVersion_.isDefaultVersion = policyVersionNode["IsDefaultVersion"].asString() == "true";
|
||||
if(!policyVersionNode["CreateDate"].isNull())
|
||||
policyVersion_.createDate = policyVersionNode["CreateDate"].asString();
|
||||
|
||||
}
|
||||
|
||||
CreatePolicyVersionResult::PolicyVersion CreatePolicyVersionResult::getPolicyVersion()const
|
||||
{
|
||||
return policyVersion_;
|
||||
}
|
||||
|
||||
73
resourcemanager/src/model/CreateResourceAccountRequest.cc
Normal file
73
resourcemanager/src/model/CreateResourceAccountRequest.cc
Normal 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/resourcemanager/model/CreateResourceAccountRequest.h>
|
||||
|
||||
using AlibabaCloud::ResourceManager::Model::CreateResourceAccountRequest;
|
||||
|
||||
CreateResourceAccountRequest::CreateResourceAccountRequest() :
|
||||
RpcServiceRequest("resourcemanager", "2020-03-31", "CreateResourceAccount")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateResourceAccountRequest::~CreateResourceAccountRequest()
|
||||
{}
|
||||
|
||||
std::string CreateResourceAccountRequest::getAccountNamePrefix()const
|
||||
{
|
||||
return accountNamePrefix_;
|
||||
}
|
||||
|
||||
void CreateResourceAccountRequest::setAccountNamePrefix(const std::string& accountNamePrefix)
|
||||
{
|
||||
accountNamePrefix_ = accountNamePrefix;
|
||||
setParameter("AccountNamePrefix", accountNamePrefix);
|
||||
}
|
||||
|
||||
std::string CreateResourceAccountRequest::getParentFolderId()const
|
||||
{
|
||||
return parentFolderId_;
|
||||
}
|
||||
|
||||
void CreateResourceAccountRequest::setParentFolderId(const std::string& parentFolderId)
|
||||
{
|
||||
parentFolderId_ = parentFolderId;
|
||||
setParameter("ParentFolderId", parentFolderId);
|
||||
}
|
||||
|
||||
std::string CreateResourceAccountRequest::getDisplayName()const
|
||||
{
|
||||
return displayName_;
|
||||
}
|
||||
|
||||
void CreateResourceAccountRequest::setDisplayName(const std::string& displayName)
|
||||
{
|
||||
displayName_ = displayName;
|
||||
setParameter("DisplayName", displayName);
|
||||
}
|
||||
|
||||
std::string CreateResourceAccountRequest::getPayerAccountId()const
|
||||
{
|
||||
return payerAccountId_;
|
||||
}
|
||||
|
||||
void CreateResourceAccountRequest::setPayerAccountId(const std::string& payerAccountId)
|
||||
{
|
||||
payerAccountId_ = payerAccountId;
|
||||
setParameter("PayerAccountId", payerAccountId);
|
||||
}
|
||||
|
||||
70
resourcemanager/src/model/CreateResourceAccountResult.cc
Normal file
70
resourcemanager/src/model/CreateResourceAccountResult.cc
Normal 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/resourcemanager/model/CreateResourceAccountResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::ResourceManager;
|
||||
using namespace AlibabaCloud::ResourceManager::Model;
|
||||
|
||||
CreateResourceAccountResult::CreateResourceAccountResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateResourceAccountResult::CreateResourceAccountResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateResourceAccountResult::~CreateResourceAccountResult()
|
||||
{}
|
||||
|
||||
void CreateResourceAccountResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto accountNode = value["Account"];
|
||||
if(!accountNode["Status"].isNull())
|
||||
account_.status = accountNode["Status"].asString();
|
||||
if(!accountNode["Type"].isNull())
|
||||
account_.type = accountNode["Type"].asString();
|
||||
if(!accountNode["DisplayName"].isNull())
|
||||
account_.displayName = accountNode["DisplayName"].asString();
|
||||
if(!accountNode["FolderId"].isNull())
|
||||
account_.folderId = accountNode["FolderId"].asString();
|
||||
if(!accountNode["ResourceDirectoryId"].isNull())
|
||||
account_.resourceDirectoryId = accountNode["ResourceDirectoryId"].asString();
|
||||
if(!accountNode["JoinTime"].isNull())
|
||||
account_.joinTime = accountNode["JoinTime"].asString();
|
||||
if(!accountNode["AccountId"].isNull())
|
||||
account_.accountId = accountNode["AccountId"].asString();
|
||||
if(!accountNode["JoinMethod"].isNull())
|
||||
account_.joinMethod = accountNode["JoinMethod"].asString();
|
||||
if(!accountNode["ModifyTime"].isNull())
|
||||
account_.modifyTime = accountNode["ModifyTime"].asString();
|
||||
if(!accountNode["AccountName"].isNull())
|
||||
account_.accountName = accountNode["AccountName"].asString();
|
||||
|
||||
}
|
||||
|
||||
CreateResourceAccountResult::Account CreateResourceAccountResult::getAccount()const
|
||||
{
|
||||
return account_;
|
||||
}
|
||||
|
||||
51
resourcemanager/src/model/CreateResourceGroupRequest.cc
Normal file
51
resourcemanager/src/model/CreateResourceGroupRequest.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/resourcemanager/model/CreateResourceGroupRequest.h>
|
||||
|
||||
using AlibabaCloud::ResourceManager::Model::CreateResourceGroupRequest;
|
||||
|
||||
CreateResourceGroupRequest::CreateResourceGroupRequest() :
|
||||
RpcServiceRequest("resourcemanager", "2020-03-31", "CreateResourceGroup")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateResourceGroupRequest::~CreateResourceGroupRequest()
|
||||
{}
|
||||
|
||||
std::string CreateResourceGroupRequest::getDisplayName()const
|
||||
{
|
||||
return displayName_;
|
||||
}
|
||||
|
||||
void CreateResourceGroupRequest::setDisplayName(const std::string& displayName)
|
||||
{
|
||||
displayName_ = displayName;
|
||||
setParameter("DisplayName", displayName);
|
||||
}
|
||||
|
||||
std::string CreateResourceGroupRequest::getName()const
|
||||
{
|
||||
return name_;
|
||||
}
|
||||
|
||||
void CreateResourceGroupRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setParameter("Name", name);
|
||||
}
|
||||
|
||||
72
resourcemanager/src/model/CreateResourceGroupResult.cc
Normal file
72
resourcemanager/src/model/CreateResourceGroupResult.cc
Normal file
@@ -0,0 +1,72 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/resourcemanager/model/CreateResourceGroupResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::ResourceManager;
|
||||
using namespace AlibabaCloud::ResourceManager::Model;
|
||||
|
||||
CreateResourceGroupResult::CreateResourceGroupResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateResourceGroupResult::CreateResourceGroupResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateResourceGroupResult::~CreateResourceGroupResult()
|
||||
{}
|
||||
|
||||
void CreateResourceGroupResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto resourceGroupNode = value["ResourceGroup"];
|
||||
if(!resourceGroupNode["Status"].isNull())
|
||||
resourceGroup_.status = resourceGroupNode["Status"].asString();
|
||||
if(!resourceGroupNode["AccountId"].isNull())
|
||||
resourceGroup_.accountId = resourceGroupNode["AccountId"].asString();
|
||||
if(!resourceGroupNode["DisplayName"].isNull())
|
||||
resourceGroup_.displayName = resourceGroupNode["DisplayName"].asString();
|
||||
if(!resourceGroupNode["Id"].isNull())
|
||||
resourceGroup_.id = resourceGroupNode["Id"].asString();
|
||||
if(!resourceGroupNode["CreateDate"].isNull())
|
||||
resourceGroup_.createDate = resourceGroupNode["CreateDate"].asString();
|
||||
if(!resourceGroupNode["Name"].isNull())
|
||||
resourceGroup_.name = resourceGroupNode["Name"].asString();
|
||||
auto allRegionStatusesNode = resourceGroupNode["RegionStatuses"]["RegionStatus"];
|
||||
for (auto resourceGroupNodeRegionStatusesRegionStatus : allRegionStatusesNode)
|
||||
{
|
||||
ResourceGroup::RegionStatus regionStatusObject;
|
||||
if(!resourceGroupNodeRegionStatusesRegionStatus["Status"].isNull())
|
||||
regionStatusObject.status = resourceGroupNodeRegionStatusesRegionStatus["Status"].asString();
|
||||
if(!resourceGroupNodeRegionStatusesRegionStatus["RegionId"].isNull())
|
||||
regionStatusObject.regionId = resourceGroupNodeRegionStatusesRegionStatus["RegionId"].asString();
|
||||
resourceGroup_.regionStatuses.push_back(regionStatusObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
CreateResourceGroupResult::ResourceGroup CreateResourceGroupResult::getResourceGroup()const
|
||||
{
|
||||
return resourceGroup_;
|
||||
}
|
||||
|
||||
73
resourcemanager/src/model/CreateRoleRequest.cc
Normal file
73
resourcemanager/src/model/CreateRoleRequest.cc
Normal 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/resourcemanager/model/CreateRoleRequest.h>
|
||||
|
||||
using AlibabaCloud::ResourceManager::Model::CreateRoleRequest;
|
||||
|
||||
CreateRoleRequest::CreateRoleRequest() :
|
||||
RpcServiceRequest("resourcemanager", "2020-03-31", "CreateRole")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateRoleRequest::~CreateRoleRequest()
|
||||
{}
|
||||
|
||||
long CreateRoleRequest::getMaxSessionDuration()const
|
||||
{
|
||||
return maxSessionDuration_;
|
||||
}
|
||||
|
||||
void CreateRoleRequest::setMaxSessionDuration(long maxSessionDuration)
|
||||
{
|
||||
maxSessionDuration_ = maxSessionDuration;
|
||||
setParameter("MaxSessionDuration", std::to_string(maxSessionDuration));
|
||||
}
|
||||
|
||||
std::string CreateRoleRequest::getRoleName()const
|
||||
{
|
||||
return roleName_;
|
||||
}
|
||||
|
||||
void CreateRoleRequest::setRoleName(const std::string& roleName)
|
||||
{
|
||||
roleName_ = roleName;
|
||||
setParameter("RoleName", roleName);
|
||||
}
|
||||
|
||||
std::string CreateRoleRequest::getDescription()const
|
||||
{
|
||||
return description_;
|
||||
}
|
||||
|
||||
void CreateRoleRequest::setDescription(const std::string& description)
|
||||
{
|
||||
description_ = description;
|
||||
setParameter("Description", description);
|
||||
}
|
||||
|
||||
std::string CreateRoleRequest::getAssumeRolePolicyDocument()const
|
||||
{
|
||||
return assumeRolePolicyDocument_;
|
||||
}
|
||||
|
||||
void CreateRoleRequest::setAssumeRolePolicyDocument(const std::string& assumeRolePolicyDocument)
|
||||
{
|
||||
assumeRolePolicyDocument_ = assumeRolePolicyDocument;
|
||||
setParameter("AssumeRolePolicyDocument", assumeRolePolicyDocument);
|
||||
}
|
||||
|
||||
66
resourcemanager/src/model/CreateRoleResult.cc
Normal file
66
resourcemanager/src/model/CreateRoleResult.cc
Normal file
@@ -0,0 +1,66 @@
|
||||
/*
|
||||
* 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/resourcemanager/model/CreateRoleResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::ResourceManager;
|
||||
using namespace AlibabaCloud::ResourceManager::Model;
|
||||
|
||||
CreateRoleResult::CreateRoleResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateRoleResult::CreateRoleResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateRoleResult::~CreateRoleResult()
|
||||
{}
|
||||
|
||||
void CreateRoleResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto roleNode = value["Role"];
|
||||
if(!roleNode["MaxSessionDuration"].isNull())
|
||||
role_.maxSessionDuration = std::stol(roleNode["MaxSessionDuration"].asString());
|
||||
if(!roleNode["RoleName"].isNull())
|
||||
role_.roleName = roleNode["RoleName"].asString();
|
||||
if(!roleNode["Description"].isNull())
|
||||
role_.description = roleNode["Description"].asString();
|
||||
if(!roleNode["AssumeRolePolicyDocument"].isNull())
|
||||
role_.assumeRolePolicyDocument = roleNode["AssumeRolePolicyDocument"].asString();
|
||||
if(!roleNode["Arn"].isNull())
|
||||
role_.arn = roleNode["Arn"].asString();
|
||||
if(!roleNode["RoleId"].isNull())
|
||||
role_.roleId = roleNode["RoleId"].asString();
|
||||
if(!roleNode["CreateDate"].isNull())
|
||||
role_.createDate = roleNode["CreateDate"].asString();
|
||||
if(!roleNode["RolePrincipalName"].isNull())
|
||||
role_.rolePrincipalName = roleNode["RolePrincipalName"].asString();
|
||||
|
||||
}
|
||||
|
||||
CreateRoleResult::Role CreateRoleResult::getRole()const
|
||||
{
|
||||
return role_;
|
||||
}
|
||||
|
||||
62
resourcemanager/src/model/CreateServiceLinkedRoleRequest.cc
Normal file
62
resourcemanager/src/model/CreateServiceLinkedRoleRequest.cc
Normal 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/resourcemanager/model/CreateServiceLinkedRoleRequest.h>
|
||||
|
||||
using AlibabaCloud::ResourceManager::Model::CreateServiceLinkedRoleRequest;
|
||||
|
||||
CreateServiceLinkedRoleRequest::CreateServiceLinkedRoleRequest() :
|
||||
RpcServiceRequest("resourcemanager", "2020-03-31", "CreateServiceLinkedRole")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateServiceLinkedRoleRequest::~CreateServiceLinkedRoleRequest()
|
||||
{}
|
||||
|
||||
std::string CreateServiceLinkedRoleRequest::getCustomSuffix()const
|
||||
{
|
||||
return customSuffix_;
|
||||
}
|
||||
|
||||
void CreateServiceLinkedRoleRequest::setCustomSuffix(const std::string& customSuffix)
|
||||
{
|
||||
customSuffix_ = customSuffix;
|
||||
setParameter("CustomSuffix", customSuffix);
|
||||
}
|
||||
|
||||
std::string CreateServiceLinkedRoleRequest::getDescription()const
|
||||
{
|
||||
return description_;
|
||||
}
|
||||
|
||||
void CreateServiceLinkedRoleRequest::setDescription(const std::string& description)
|
||||
{
|
||||
description_ = description;
|
||||
setParameter("Description", description);
|
||||
}
|
||||
|
||||
std::string CreateServiceLinkedRoleRequest::getServiceName()const
|
||||
{
|
||||
return serviceName_;
|
||||
}
|
||||
|
||||
void CreateServiceLinkedRoleRequest::setServiceName(const std::string& serviceName)
|
||||
{
|
||||
serviceName_ = serviceName;
|
||||
setParameter("ServiceName", serviceName);
|
||||
}
|
||||
|
||||
66
resourcemanager/src/model/CreateServiceLinkedRoleResult.cc
Normal file
66
resourcemanager/src/model/CreateServiceLinkedRoleResult.cc
Normal file
@@ -0,0 +1,66 @@
|
||||
/*
|
||||
* 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/resourcemanager/model/CreateServiceLinkedRoleResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::ResourceManager;
|
||||
using namespace AlibabaCloud::ResourceManager::Model;
|
||||
|
||||
CreateServiceLinkedRoleResult::CreateServiceLinkedRoleResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateServiceLinkedRoleResult::CreateServiceLinkedRoleResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateServiceLinkedRoleResult::~CreateServiceLinkedRoleResult()
|
||||
{}
|
||||
|
||||
void CreateServiceLinkedRoleResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto roleNode = value["Role"];
|
||||
if(!roleNode["RoleName"].isNull())
|
||||
role_.roleName = roleNode["RoleName"].asString();
|
||||
if(!roleNode["Description"].isNull())
|
||||
role_.description = roleNode["Description"].asString();
|
||||
if(!roleNode["AssumeRolePolicyDocument"].isNull())
|
||||
role_.assumeRolePolicyDocument = roleNode["AssumeRolePolicyDocument"].asString();
|
||||
if(!roleNode["IsServiceLinkedRole"].isNull())
|
||||
role_.isServiceLinkedRole = roleNode["IsServiceLinkedRole"].asString() == "true";
|
||||
if(!roleNode["Arn"].isNull())
|
||||
role_.arn = roleNode["Arn"].asString();
|
||||
if(!roleNode["RoleId"].isNull())
|
||||
role_.roleId = roleNode["RoleId"].asString();
|
||||
if(!roleNode["CreateDate"].isNull())
|
||||
role_.createDate = roleNode["CreateDate"].asString();
|
||||
if(!roleNode["RolePrincipalName"].isNull())
|
||||
role_.rolePrincipalName = roleNode["RolePrincipalName"].asString();
|
||||
|
||||
}
|
||||
|
||||
CreateServiceLinkedRoleResult::Role CreateServiceLinkedRoleResult::getRole()const
|
||||
{
|
||||
return role_;
|
||||
}
|
||||
|
||||
40
resourcemanager/src/model/DeclineHandshakeRequest.cc
Normal file
40
resourcemanager/src/model/DeclineHandshakeRequest.cc
Normal file
@@ -0,0 +1,40 @@
|
||||
/*
|
||||
* 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/resourcemanager/model/DeclineHandshakeRequest.h>
|
||||
|
||||
using AlibabaCloud::ResourceManager::Model::DeclineHandshakeRequest;
|
||||
|
||||
DeclineHandshakeRequest::DeclineHandshakeRequest() :
|
||||
RpcServiceRequest("resourcemanager", "2020-03-31", "DeclineHandshake")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeclineHandshakeRequest::~DeclineHandshakeRequest()
|
||||
{}
|
||||
|
||||
std::string DeclineHandshakeRequest::getHandshakeId()const
|
||||
{
|
||||
return handshakeId_;
|
||||
}
|
||||
|
||||
void DeclineHandshakeRequest::setHandshakeId(const std::string& handshakeId)
|
||||
{
|
||||
handshakeId_ = handshakeId;
|
||||
setParameter("HandshakeId", handshakeId);
|
||||
}
|
||||
|
||||
72
resourcemanager/src/model/DeclineHandshakeResult.cc
Normal file
72
resourcemanager/src/model/DeclineHandshakeResult.cc
Normal file
@@ -0,0 +1,72 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/resourcemanager/model/DeclineHandshakeResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::ResourceManager;
|
||||
using namespace AlibabaCloud::ResourceManager::Model;
|
||||
|
||||
DeclineHandshakeResult::DeclineHandshakeResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeclineHandshakeResult::DeclineHandshakeResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeclineHandshakeResult::~DeclineHandshakeResult()
|
||||
{}
|
||||
|
||||
void DeclineHandshakeResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto handshakeNode = value["Handshake"];
|
||||
if(!handshakeNode["Status"].isNull())
|
||||
handshake_.status = handshakeNode["Status"].asString();
|
||||
if(!handshakeNode["ExpireTime"].isNull())
|
||||
handshake_.expireTime = handshakeNode["ExpireTime"].asString();
|
||||
if(!handshakeNode["ResourceDirectoryId"].isNull())
|
||||
handshake_.resourceDirectoryId = handshakeNode["ResourceDirectoryId"].asString();
|
||||
if(!handshakeNode["CreateTime"].isNull())
|
||||
handshake_.createTime = handshakeNode["CreateTime"].asString();
|
||||
if(!handshakeNode["Note"].isNull())
|
||||
handshake_.note = handshakeNode["Note"].asString();
|
||||
if(!handshakeNode["TargetEntity"].isNull())
|
||||
handshake_.targetEntity = handshakeNode["TargetEntity"].asString();
|
||||
if(!handshakeNode["MasterAccountId"].isNull())
|
||||
handshake_.masterAccountId = handshakeNode["MasterAccountId"].asString();
|
||||
if(!handshakeNode["MasterAccountName"].isNull())
|
||||
handshake_.masterAccountName = handshakeNode["MasterAccountName"].asString();
|
||||
if(!handshakeNode["ModifyTime"].isNull())
|
||||
handshake_.modifyTime = handshakeNode["ModifyTime"].asString();
|
||||
if(!handshakeNode["TargetType"].isNull())
|
||||
handshake_.targetType = handshakeNode["TargetType"].asString();
|
||||
if(!handshakeNode["HandshakeId"].isNull())
|
||||
handshake_.handshakeId = handshakeNode["HandshakeId"].asString();
|
||||
|
||||
}
|
||||
|
||||
DeclineHandshakeResult::Handshake DeclineHandshakeResult::getHandshake()const
|
||||
{
|
||||
return handshake_;
|
||||
}
|
||||
|
||||
40
resourcemanager/src/model/DeleteControlPolicyRequest.cc
Normal file
40
resourcemanager/src/model/DeleteControlPolicyRequest.cc
Normal file
@@ -0,0 +1,40 @@
|
||||
/*
|
||||
* 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/resourcemanager/model/DeleteControlPolicyRequest.h>
|
||||
|
||||
using AlibabaCloud::ResourceManager::Model::DeleteControlPolicyRequest;
|
||||
|
||||
DeleteControlPolicyRequest::DeleteControlPolicyRequest() :
|
||||
RpcServiceRequest("resourcemanager", "2020-03-31", "DeleteControlPolicy")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteControlPolicyRequest::~DeleteControlPolicyRequest()
|
||||
{}
|
||||
|
||||
std::string DeleteControlPolicyRequest::getPolicyId()const
|
||||
{
|
||||
return policyId_;
|
||||
}
|
||||
|
||||
void DeleteControlPolicyRequest::setPolicyId(const std::string& policyId)
|
||||
{
|
||||
policyId_ = policyId;
|
||||
setParameter("PolicyId", policyId);
|
||||
}
|
||||
|
||||
44
resourcemanager/src/model/DeleteControlPolicyResult.cc
Normal file
44
resourcemanager/src/model/DeleteControlPolicyResult.cc
Normal file
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/resourcemanager/model/DeleteControlPolicyResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::ResourceManager;
|
||||
using namespace AlibabaCloud::ResourceManager::Model;
|
||||
|
||||
DeleteControlPolicyResult::DeleteControlPolicyResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteControlPolicyResult::DeleteControlPolicyResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteControlPolicyResult::~DeleteControlPolicyResult()
|
||||
{}
|
||||
|
||||
void DeleteControlPolicyResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
40
resourcemanager/src/model/DeleteFolderRequest.cc
Normal file
40
resourcemanager/src/model/DeleteFolderRequest.cc
Normal file
@@ -0,0 +1,40 @@
|
||||
/*
|
||||
* 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/resourcemanager/model/DeleteFolderRequest.h>
|
||||
|
||||
using AlibabaCloud::ResourceManager::Model::DeleteFolderRequest;
|
||||
|
||||
DeleteFolderRequest::DeleteFolderRequest() :
|
||||
RpcServiceRequest("resourcemanager", "2020-03-31", "DeleteFolder")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteFolderRequest::~DeleteFolderRequest()
|
||||
{}
|
||||
|
||||
std::string DeleteFolderRequest::getFolderId()const
|
||||
{
|
||||
return folderId_;
|
||||
}
|
||||
|
||||
void DeleteFolderRequest::setFolderId(const std::string& folderId)
|
||||
{
|
||||
folderId_ = folderId;
|
||||
setParameter("FolderId", folderId);
|
||||
}
|
||||
|
||||
44
resourcemanager/src/model/DeleteFolderResult.cc
Normal file
44
resourcemanager/src/model/DeleteFolderResult.cc
Normal file
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/resourcemanager/model/DeleteFolderResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::ResourceManager;
|
||||
using namespace AlibabaCloud::ResourceManager::Model;
|
||||
|
||||
DeleteFolderResult::DeleteFolderResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteFolderResult::DeleteFolderResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteFolderResult::~DeleteFolderResult()
|
||||
{}
|
||||
|
||||
void DeleteFolderResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
40
resourcemanager/src/model/DeletePolicyRequest.cc
Normal file
40
resourcemanager/src/model/DeletePolicyRequest.cc
Normal file
@@ -0,0 +1,40 @@
|
||||
/*
|
||||
* 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/resourcemanager/model/DeletePolicyRequest.h>
|
||||
|
||||
using AlibabaCloud::ResourceManager::Model::DeletePolicyRequest;
|
||||
|
||||
DeletePolicyRequest::DeletePolicyRequest() :
|
||||
RpcServiceRequest("resourcemanager", "2020-03-31", "DeletePolicy")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeletePolicyRequest::~DeletePolicyRequest()
|
||||
{}
|
||||
|
||||
std::string DeletePolicyRequest::getPolicyName()const
|
||||
{
|
||||
return policyName_;
|
||||
}
|
||||
|
||||
void DeletePolicyRequest::setPolicyName(const std::string& policyName)
|
||||
{
|
||||
policyName_ = policyName;
|
||||
setParameter("PolicyName", policyName);
|
||||
}
|
||||
|
||||
44
resourcemanager/src/model/DeletePolicyResult.cc
Normal file
44
resourcemanager/src/model/DeletePolicyResult.cc
Normal file
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/resourcemanager/model/DeletePolicyResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::ResourceManager;
|
||||
using namespace AlibabaCloud::ResourceManager::Model;
|
||||
|
||||
DeletePolicyResult::DeletePolicyResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeletePolicyResult::DeletePolicyResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeletePolicyResult::~DeletePolicyResult()
|
||||
{}
|
||||
|
||||
void DeletePolicyResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
51
resourcemanager/src/model/DeletePolicyVersionRequest.cc
Normal file
51
resourcemanager/src/model/DeletePolicyVersionRequest.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/resourcemanager/model/DeletePolicyVersionRequest.h>
|
||||
|
||||
using AlibabaCloud::ResourceManager::Model::DeletePolicyVersionRequest;
|
||||
|
||||
DeletePolicyVersionRequest::DeletePolicyVersionRequest() :
|
||||
RpcServiceRequest("resourcemanager", "2020-03-31", "DeletePolicyVersion")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeletePolicyVersionRequest::~DeletePolicyVersionRequest()
|
||||
{}
|
||||
|
||||
std::string DeletePolicyVersionRequest::getVersionId()const
|
||||
{
|
||||
return versionId_;
|
||||
}
|
||||
|
||||
void DeletePolicyVersionRequest::setVersionId(const std::string& versionId)
|
||||
{
|
||||
versionId_ = versionId;
|
||||
setParameter("VersionId", versionId);
|
||||
}
|
||||
|
||||
std::string DeletePolicyVersionRequest::getPolicyName()const
|
||||
{
|
||||
return policyName_;
|
||||
}
|
||||
|
||||
void DeletePolicyVersionRequest::setPolicyName(const std::string& policyName)
|
||||
{
|
||||
policyName_ = policyName;
|
||||
setParameter("PolicyName", policyName);
|
||||
}
|
||||
|
||||
44
resourcemanager/src/model/DeletePolicyVersionResult.cc
Normal file
44
resourcemanager/src/model/DeletePolicyVersionResult.cc
Normal file
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/resourcemanager/model/DeletePolicyVersionResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::ResourceManager;
|
||||
using namespace AlibabaCloud::ResourceManager::Model;
|
||||
|
||||
DeletePolicyVersionResult::DeletePolicyVersionResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeletePolicyVersionResult::DeletePolicyVersionResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeletePolicyVersionResult::~DeletePolicyVersionResult()
|
||||
{}
|
||||
|
||||
void DeletePolicyVersionResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
40
resourcemanager/src/model/DeleteResourceGroupRequest.cc
Normal file
40
resourcemanager/src/model/DeleteResourceGroupRequest.cc
Normal file
@@ -0,0 +1,40 @@
|
||||
/*
|
||||
* 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/resourcemanager/model/DeleteResourceGroupRequest.h>
|
||||
|
||||
using AlibabaCloud::ResourceManager::Model::DeleteResourceGroupRequest;
|
||||
|
||||
DeleteResourceGroupRequest::DeleteResourceGroupRequest() :
|
||||
RpcServiceRequest("resourcemanager", "2020-03-31", "DeleteResourceGroup")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteResourceGroupRequest::~DeleteResourceGroupRequest()
|
||||
{}
|
||||
|
||||
std::string DeleteResourceGroupRequest::getResourceGroupId()const
|
||||
{
|
||||
return resourceGroupId_;
|
||||
}
|
||||
|
||||
void DeleteResourceGroupRequest::setResourceGroupId(const std::string& resourceGroupId)
|
||||
{
|
||||
resourceGroupId_ = resourceGroupId;
|
||||
setParameter("ResourceGroupId", resourceGroupId);
|
||||
}
|
||||
|
||||
72
resourcemanager/src/model/DeleteResourceGroupResult.cc
Normal file
72
resourcemanager/src/model/DeleteResourceGroupResult.cc
Normal file
@@ -0,0 +1,72 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/resourcemanager/model/DeleteResourceGroupResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::ResourceManager;
|
||||
using namespace AlibabaCloud::ResourceManager::Model;
|
||||
|
||||
DeleteResourceGroupResult::DeleteResourceGroupResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteResourceGroupResult::DeleteResourceGroupResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteResourceGroupResult::~DeleteResourceGroupResult()
|
||||
{}
|
||||
|
||||
void DeleteResourceGroupResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto resourceGroupNode = value["ResourceGroup"];
|
||||
if(!resourceGroupNode["Status"].isNull())
|
||||
resourceGroup_.status = resourceGroupNode["Status"].asString();
|
||||
if(!resourceGroupNode["AccountId"].isNull())
|
||||
resourceGroup_.accountId = resourceGroupNode["AccountId"].asString();
|
||||
if(!resourceGroupNode["DisplayName"].isNull())
|
||||
resourceGroup_.displayName = resourceGroupNode["DisplayName"].asString();
|
||||
if(!resourceGroupNode["Id"].isNull())
|
||||
resourceGroup_.id = resourceGroupNode["Id"].asString();
|
||||
if(!resourceGroupNode["CreateDate"].isNull())
|
||||
resourceGroup_.createDate = resourceGroupNode["CreateDate"].asString();
|
||||
if(!resourceGroupNode["Name"].isNull())
|
||||
resourceGroup_.name = resourceGroupNode["Name"].asString();
|
||||
auto allRegionStatusesNode = resourceGroupNode["RegionStatuses"]["RegionStatus"];
|
||||
for (auto resourceGroupNodeRegionStatusesRegionStatus : allRegionStatusesNode)
|
||||
{
|
||||
ResourceGroup::RegionStatus regionStatusObject;
|
||||
if(!resourceGroupNodeRegionStatusesRegionStatus["Status"].isNull())
|
||||
regionStatusObject.status = resourceGroupNodeRegionStatusesRegionStatus["Status"].asString();
|
||||
if(!resourceGroupNodeRegionStatusesRegionStatus["RegionId"].isNull())
|
||||
regionStatusObject.regionId = resourceGroupNodeRegionStatusesRegionStatus["RegionId"].asString();
|
||||
resourceGroup_.regionStatuses.push_back(regionStatusObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
DeleteResourceGroupResult::ResourceGroup DeleteResourceGroupResult::getResourceGroup()const
|
||||
{
|
||||
return resourceGroup_;
|
||||
}
|
||||
|
||||
40
resourcemanager/src/model/DeleteRoleRequest.cc
Normal file
40
resourcemanager/src/model/DeleteRoleRequest.cc
Normal file
@@ -0,0 +1,40 @@
|
||||
/*
|
||||
* 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/resourcemanager/model/DeleteRoleRequest.h>
|
||||
|
||||
using AlibabaCloud::ResourceManager::Model::DeleteRoleRequest;
|
||||
|
||||
DeleteRoleRequest::DeleteRoleRequest() :
|
||||
RpcServiceRequest("resourcemanager", "2020-03-31", "DeleteRole")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteRoleRequest::~DeleteRoleRequest()
|
||||
{}
|
||||
|
||||
std::string DeleteRoleRequest::getRoleName()const
|
||||
{
|
||||
return roleName_;
|
||||
}
|
||||
|
||||
void DeleteRoleRequest::setRoleName(const std::string& roleName)
|
||||
{
|
||||
roleName_ = roleName;
|
||||
setParameter("RoleName", roleName);
|
||||
}
|
||||
|
||||
44
resourcemanager/src/model/DeleteRoleResult.cc
Normal file
44
resourcemanager/src/model/DeleteRoleResult.cc
Normal file
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/resourcemanager/model/DeleteRoleResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::ResourceManager;
|
||||
using namespace AlibabaCloud::ResourceManager::Model;
|
||||
|
||||
DeleteRoleResult::DeleteRoleResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteRoleResult::DeleteRoleResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteRoleResult::~DeleteRoleResult()
|
||||
{}
|
||||
|
||||
void DeleteRoleResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
40
resourcemanager/src/model/DeleteServiceLinkedRoleRequest.cc
Normal file
40
resourcemanager/src/model/DeleteServiceLinkedRoleRequest.cc
Normal file
@@ -0,0 +1,40 @@
|
||||
/*
|
||||
* 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/resourcemanager/model/DeleteServiceLinkedRoleRequest.h>
|
||||
|
||||
using AlibabaCloud::ResourceManager::Model::DeleteServiceLinkedRoleRequest;
|
||||
|
||||
DeleteServiceLinkedRoleRequest::DeleteServiceLinkedRoleRequest() :
|
||||
RpcServiceRequest("resourcemanager", "2020-03-31", "DeleteServiceLinkedRole")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteServiceLinkedRoleRequest::~DeleteServiceLinkedRoleRequest()
|
||||
{}
|
||||
|
||||
std::string DeleteServiceLinkedRoleRequest::getRoleName()const
|
||||
{
|
||||
return roleName_;
|
||||
}
|
||||
|
||||
void DeleteServiceLinkedRoleRequest::setRoleName(const std::string& roleName)
|
||||
{
|
||||
roleName_ = roleName;
|
||||
setParameter("RoleName", roleName);
|
||||
}
|
||||
|
||||
51
resourcemanager/src/model/DeleteServiceLinkedRoleResult.cc
Normal file
51
resourcemanager/src/model/DeleteServiceLinkedRoleResult.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/resourcemanager/model/DeleteServiceLinkedRoleResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::ResourceManager;
|
||||
using namespace AlibabaCloud::ResourceManager::Model;
|
||||
|
||||
DeleteServiceLinkedRoleResult::DeleteServiceLinkedRoleResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteServiceLinkedRoleResult::DeleteServiceLinkedRoleResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteServiceLinkedRoleResult::~DeleteServiceLinkedRoleResult()
|
||||
{}
|
||||
|
||||
void DeleteServiceLinkedRoleResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["DeletionTaskId"].isNull())
|
||||
deletionTaskId_ = value["DeletionTaskId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DeleteServiceLinkedRoleResult::getDeletionTaskId()const
|
||||
{
|
||||
return deletionTaskId_;
|
||||
}
|
||||
|
||||
@@ -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/resourcemanager/model/DeregisterDelegatedAdministratorRequest.h>
|
||||
|
||||
using AlibabaCloud::ResourceManager::Model::DeregisterDelegatedAdministratorRequest;
|
||||
|
||||
DeregisterDelegatedAdministratorRequest::DeregisterDelegatedAdministratorRequest() :
|
||||
RpcServiceRequest("resourcemanager", "2020-03-31", "DeregisterDelegatedAdministrator")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeregisterDelegatedAdministratorRequest::~DeregisterDelegatedAdministratorRequest()
|
||||
{}
|
||||
|
||||
std::string DeregisterDelegatedAdministratorRequest::getAccountId()const
|
||||
{
|
||||
return accountId_;
|
||||
}
|
||||
|
||||
void DeregisterDelegatedAdministratorRequest::setAccountId(const std::string& accountId)
|
||||
{
|
||||
accountId_ = accountId;
|
||||
setParameter("AccountId", accountId);
|
||||
}
|
||||
|
||||
std::string DeregisterDelegatedAdministratorRequest::getServicePrincipal()const
|
||||
{
|
||||
return servicePrincipal_;
|
||||
}
|
||||
|
||||
void DeregisterDelegatedAdministratorRequest::setServicePrincipal(const std::string& servicePrincipal)
|
||||
{
|
||||
servicePrincipal_ = servicePrincipal;
|
||||
setParameter("ServicePrincipal", servicePrincipal);
|
||||
}
|
||||
|
||||
@@ -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/resourcemanager/model/DeregisterDelegatedAdministratorResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::ResourceManager;
|
||||
using namespace AlibabaCloud::ResourceManager::Model;
|
||||
|
||||
DeregisterDelegatedAdministratorResult::DeregisterDelegatedAdministratorResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeregisterDelegatedAdministratorResult::DeregisterDelegatedAdministratorResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeregisterDelegatedAdministratorResult::~DeregisterDelegatedAdministratorResult()
|
||||
{}
|
||||
|
||||
void DeregisterDelegatedAdministratorResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
29
resourcemanager/src/model/DestroyResourceDirectoryRequest.cc
Normal file
29
resourcemanager/src/model/DestroyResourceDirectoryRequest.cc
Normal file
@@ -0,0 +1,29 @@
|
||||
/*
|
||||
* 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/resourcemanager/model/DestroyResourceDirectoryRequest.h>
|
||||
|
||||
using AlibabaCloud::ResourceManager::Model::DestroyResourceDirectoryRequest;
|
||||
|
||||
DestroyResourceDirectoryRequest::DestroyResourceDirectoryRequest() :
|
||||
RpcServiceRequest("resourcemanager", "2020-03-31", "DestroyResourceDirectory")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DestroyResourceDirectoryRequest::~DestroyResourceDirectoryRequest()
|
||||
{}
|
||||
|
||||
44
resourcemanager/src/model/DestroyResourceDirectoryResult.cc
Normal file
44
resourcemanager/src/model/DestroyResourceDirectoryResult.cc
Normal file
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/resourcemanager/model/DestroyResourceDirectoryResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::ResourceManager;
|
||||
using namespace AlibabaCloud::ResourceManager::Model;
|
||||
|
||||
DestroyResourceDirectoryResult::DestroyResourceDirectoryResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DestroyResourceDirectoryResult::DestroyResourceDirectoryResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DestroyResourceDirectoryResult::~DestroyResourceDirectoryResult()
|
||||
{}
|
||||
|
||||
void DestroyResourceDirectoryResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
51
resourcemanager/src/model/DetachControlPolicyRequest.cc
Normal file
51
resourcemanager/src/model/DetachControlPolicyRequest.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/resourcemanager/model/DetachControlPolicyRequest.h>
|
||||
|
||||
using AlibabaCloud::ResourceManager::Model::DetachControlPolicyRequest;
|
||||
|
||||
DetachControlPolicyRequest::DetachControlPolicyRequest() :
|
||||
RpcServiceRequest("resourcemanager", "2020-03-31", "DetachControlPolicy")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DetachControlPolicyRequest::~DetachControlPolicyRequest()
|
||||
{}
|
||||
|
||||
std::string DetachControlPolicyRequest::getTargetId()const
|
||||
{
|
||||
return targetId_;
|
||||
}
|
||||
|
||||
void DetachControlPolicyRequest::setTargetId(const std::string& targetId)
|
||||
{
|
||||
targetId_ = targetId;
|
||||
setParameter("TargetId", targetId);
|
||||
}
|
||||
|
||||
std::string DetachControlPolicyRequest::getPolicyId()const
|
||||
{
|
||||
return policyId_;
|
||||
}
|
||||
|
||||
void DetachControlPolicyRequest::setPolicyId(const std::string& policyId)
|
||||
{
|
||||
policyId_ = policyId;
|
||||
setParameter("PolicyId", policyId);
|
||||
}
|
||||
|
||||
44
resourcemanager/src/model/DetachControlPolicyResult.cc
Normal file
44
resourcemanager/src/model/DetachControlPolicyResult.cc
Normal file
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/resourcemanager/model/DetachControlPolicyResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::ResourceManager;
|
||||
using namespace AlibabaCloud::ResourceManager::Model;
|
||||
|
||||
DetachControlPolicyResult::DetachControlPolicyResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DetachControlPolicyResult::DetachControlPolicyResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DetachControlPolicyResult::~DetachControlPolicyResult()
|
||||
{}
|
||||
|
||||
void DetachControlPolicyResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
84
resourcemanager/src/model/DetachPolicyRequest.cc
Normal file
84
resourcemanager/src/model/DetachPolicyRequest.cc
Normal 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/resourcemanager/model/DetachPolicyRequest.h>
|
||||
|
||||
using AlibabaCloud::ResourceManager::Model::DetachPolicyRequest;
|
||||
|
||||
DetachPolicyRequest::DetachPolicyRequest() :
|
||||
RpcServiceRequest("resourcemanager", "2020-03-31", "DetachPolicy")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DetachPolicyRequest::~DetachPolicyRequest()
|
||||
{}
|
||||
|
||||
std::string DetachPolicyRequest::getPolicyType()const
|
||||
{
|
||||
return policyType_;
|
||||
}
|
||||
|
||||
void DetachPolicyRequest::setPolicyType(const std::string& policyType)
|
||||
{
|
||||
policyType_ = policyType;
|
||||
setParameter("PolicyType", policyType);
|
||||
}
|
||||
|
||||
std::string DetachPolicyRequest::getPrincipalType()const
|
||||
{
|
||||
return principalType_;
|
||||
}
|
||||
|
||||
void DetachPolicyRequest::setPrincipalType(const std::string& principalType)
|
||||
{
|
||||
principalType_ = principalType;
|
||||
setParameter("PrincipalType", principalType);
|
||||
}
|
||||
|
||||
std::string DetachPolicyRequest::getResourceGroupId()const
|
||||
{
|
||||
return resourceGroupId_;
|
||||
}
|
||||
|
||||
void DetachPolicyRequest::setResourceGroupId(const std::string& resourceGroupId)
|
||||
{
|
||||
resourceGroupId_ = resourceGroupId;
|
||||
setParameter("ResourceGroupId", resourceGroupId);
|
||||
}
|
||||
|
||||
std::string DetachPolicyRequest::getPolicyName()const
|
||||
{
|
||||
return policyName_;
|
||||
}
|
||||
|
||||
void DetachPolicyRequest::setPolicyName(const std::string& policyName)
|
||||
{
|
||||
policyName_ = policyName;
|
||||
setParameter("PolicyName", policyName);
|
||||
}
|
||||
|
||||
std::string DetachPolicyRequest::getPrincipalName()const
|
||||
{
|
||||
return principalName_;
|
||||
}
|
||||
|
||||
void DetachPolicyRequest::setPrincipalName(const std::string& principalName)
|
||||
{
|
||||
principalName_ = principalName;
|
||||
setParameter("PrincipalName", principalName);
|
||||
}
|
||||
|
||||
44
resourcemanager/src/model/DetachPolicyResult.cc
Normal file
44
resourcemanager/src/model/DetachPolicyResult.cc
Normal file
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/resourcemanager/model/DetachPolicyResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::ResourceManager;
|
||||
using namespace AlibabaCloud::ResourceManager::Model;
|
||||
|
||||
DetachPolicyResult::DetachPolicyResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DetachPolicyResult::DetachPolicyResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DetachPolicyResult::~DetachPolicyResult()
|
||||
{}
|
||||
|
||||
void DetachPolicyResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
29
resourcemanager/src/model/DisableControlPolicyRequest.cc
Normal file
29
resourcemanager/src/model/DisableControlPolicyRequest.cc
Normal file
@@ -0,0 +1,29 @@
|
||||
/*
|
||||
* 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/resourcemanager/model/DisableControlPolicyRequest.h>
|
||||
|
||||
using AlibabaCloud::ResourceManager::Model::DisableControlPolicyRequest;
|
||||
|
||||
DisableControlPolicyRequest::DisableControlPolicyRequest() :
|
||||
RpcServiceRequest("resourcemanager", "2020-03-31", "DisableControlPolicy")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DisableControlPolicyRequest::~DisableControlPolicyRequest()
|
||||
{}
|
||||
|
||||
51
resourcemanager/src/model/DisableControlPolicyResult.cc
Normal file
51
resourcemanager/src/model/DisableControlPolicyResult.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/resourcemanager/model/DisableControlPolicyResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::ResourceManager;
|
||||
using namespace AlibabaCloud::ResourceManager::Model;
|
||||
|
||||
DisableControlPolicyResult::DisableControlPolicyResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DisableControlPolicyResult::DisableControlPolicyResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DisableControlPolicyResult::~DisableControlPolicyResult()
|
||||
{}
|
||||
|
||||
void DisableControlPolicyResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["EnablementStatus"].isNull())
|
||||
enablementStatus_ = value["EnablementStatus"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DisableControlPolicyResult::getEnablementStatus()const
|
||||
{
|
||||
return enablementStatus_;
|
||||
}
|
||||
|
||||
29
resourcemanager/src/model/EnableControlPolicyRequest.cc
Normal file
29
resourcemanager/src/model/EnableControlPolicyRequest.cc
Normal file
@@ -0,0 +1,29 @@
|
||||
/*
|
||||
* 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/resourcemanager/model/EnableControlPolicyRequest.h>
|
||||
|
||||
using AlibabaCloud::ResourceManager::Model::EnableControlPolicyRequest;
|
||||
|
||||
EnableControlPolicyRequest::EnableControlPolicyRequest() :
|
||||
RpcServiceRequest("resourcemanager", "2020-03-31", "EnableControlPolicy")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
EnableControlPolicyRequest::~EnableControlPolicyRequest()
|
||||
{}
|
||||
|
||||
51
resourcemanager/src/model/EnableControlPolicyResult.cc
Normal file
51
resourcemanager/src/model/EnableControlPolicyResult.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/resourcemanager/model/EnableControlPolicyResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::ResourceManager;
|
||||
using namespace AlibabaCloud::ResourceManager::Model;
|
||||
|
||||
EnableControlPolicyResult::EnableControlPolicyResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
EnableControlPolicyResult::EnableControlPolicyResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
EnableControlPolicyResult::~EnableControlPolicyResult()
|
||||
{}
|
||||
|
||||
void EnableControlPolicyResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["EnablementStatus"].isNull())
|
||||
enablementStatus_ = value["EnablementStatus"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string EnableControlPolicyResult::getEnablementStatus()const
|
||||
{
|
||||
return enablementStatus_;
|
||||
}
|
||||
|
||||
73
resourcemanager/src/model/EnableResourceDirectoryRequest.cc
Normal file
73
resourcemanager/src/model/EnableResourceDirectoryRequest.cc
Normal 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/resourcemanager/model/EnableResourceDirectoryRequest.h>
|
||||
|
||||
using AlibabaCloud::ResourceManager::Model::EnableResourceDirectoryRequest;
|
||||
|
||||
EnableResourceDirectoryRequest::EnableResourceDirectoryRequest() :
|
||||
RpcServiceRequest("resourcemanager", "2020-03-31", "EnableResourceDirectory")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
EnableResourceDirectoryRequest::~EnableResourceDirectoryRequest()
|
||||
{}
|
||||
|
||||
std::string EnableResourceDirectoryRequest::getEnableMode()const
|
||||
{
|
||||
return enableMode_;
|
||||
}
|
||||
|
||||
void EnableResourceDirectoryRequest::setEnableMode(const std::string& enableMode)
|
||||
{
|
||||
enableMode_ = enableMode;
|
||||
setParameter("EnableMode", enableMode);
|
||||
}
|
||||
|
||||
std::string EnableResourceDirectoryRequest::getMASecureMobilePhone()const
|
||||
{
|
||||
return mASecureMobilePhone_;
|
||||
}
|
||||
|
||||
void EnableResourceDirectoryRequest::setMASecureMobilePhone(const std::string& mASecureMobilePhone)
|
||||
{
|
||||
mASecureMobilePhone_ = mASecureMobilePhone;
|
||||
setParameter("MASecureMobilePhone", mASecureMobilePhone);
|
||||
}
|
||||
|
||||
std::string EnableResourceDirectoryRequest::getMAName()const
|
||||
{
|
||||
return mAName_;
|
||||
}
|
||||
|
||||
void EnableResourceDirectoryRequest::setMAName(const std::string& mAName)
|
||||
{
|
||||
mAName_ = mAName;
|
||||
setParameter("MAName", mAName);
|
||||
}
|
||||
|
||||
std::string EnableResourceDirectoryRequest::getVerificationCode()const
|
||||
{
|
||||
return verificationCode_;
|
||||
}
|
||||
|
||||
void EnableResourceDirectoryRequest::setVerificationCode(const std::string& verificationCode)
|
||||
{
|
||||
verificationCode_ = verificationCode;
|
||||
setParameter("VerificationCode", verificationCode);
|
||||
}
|
||||
|
||||
60
resourcemanager/src/model/EnableResourceDirectoryResult.cc
Normal file
60
resourcemanager/src/model/EnableResourceDirectoryResult.cc
Normal file
@@ -0,0 +1,60 @@
|
||||
/*
|
||||
* 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/resourcemanager/model/EnableResourceDirectoryResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::ResourceManager;
|
||||
using namespace AlibabaCloud::ResourceManager::Model;
|
||||
|
||||
EnableResourceDirectoryResult::EnableResourceDirectoryResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
EnableResourceDirectoryResult::EnableResourceDirectoryResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
EnableResourceDirectoryResult::~EnableResourceDirectoryResult()
|
||||
{}
|
||||
|
||||
void EnableResourceDirectoryResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto resourceDirectoryNode = value["ResourceDirectory"];
|
||||
if(!resourceDirectoryNode["ResourceDirectoryId"].isNull())
|
||||
resourceDirectory_.resourceDirectoryId = resourceDirectoryNode["ResourceDirectoryId"].asString();
|
||||
if(!resourceDirectoryNode["MasterAccountId"].isNull())
|
||||
resourceDirectory_.masterAccountId = resourceDirectoryNode["MasterAccountId"].asString();
|
||||
if(!resourceDirectoryNode["MasterAccountName"].isNull())
|
||||
resourceDirectory_.masterAccountName = resourceDirectoryNode["MasterAccountName"].asString();
|
||||
if(!resourceDirectoryNode["RootFolderId"].isNull())
|
||||
resourceDirectory_.rootFolderId = resourceDirectoryNode["RootFolderId"].asString();
|
||||
if(!resourceDirectoryNode["CreateTime"].isNull())
|
||||
resourceDirectory_.createTime = resourceDirectoryNode["CreateTime"].asString();
|
||||
|
||||
}
|
||||
|
||||
EnableResourceDirectoryResult::ResourceDirectory EnableResourceDirectoryResult::getResourceDirectory()const
|
||||
{
|
||||
return resourceDirectory_;
|
||||
}
|
||||
|
||||
40
resourcemanager/src/model/GetAccountRequest.cc
Normal file
40
resourcemanager/src/model/GetAccountRequest.cc
Normal file
@@ -0,0 +1,40 @@
|
||||
/*
|
||||
* 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/resourcemanager/model/GetAccountRequest.h>
|
||||
|
||||
using AlibabaCloud::ResourceManager::Model::GetAccountRequest;
|
||||
|
||||
GetAccountRequest::GetAccountRequest() :
|
||||
RpcServiceRequest("resourcemanager", "2020-03-31", "GetAccount")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetAccountRequest::~GetAccountRequest()
|
||||
{}
|
||||
|
||||
std::string GetAccountRequest::getAccountId()const
|
||||
{
|
||||
return accountId_;
|
||||
}
|
||||
|
||||
void GetAccountRequest::setAccountId(const std::string& accountId)
|
||||
{
|
||||
accountId_ = accountId;
|
||||
setParameter("AccountId", accountId);
|
||||
}
|
||||
|
||||
74
resourcemanager/src/model/GetAccountResult.cc
Normal file
74
resourcemanager/src/model/GetAccountResult.cc
Normal file
@@ -0,0 +1,74 @@
|
||||
/*
|
||||
* 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/resourcemanager/model/GetAccountResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::ResourceManager;
|
||||
using namespace AlibabaCloud::ResourceManager::Model;
|
||||
|
||||
GetAccountResult::GetAccountResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetAccountResult::GetAccountResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetAccountResult::~GetAccountResult()
|
||||
{}
|
||||
|
||||
void GetAccountResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto accountNode = value["Account"];
|
||||
if(!accountNode["Status"].isNull())
|
||||
account_.status = accountNode["Status"].asString();
|
||||
if(!accountNode["Type"].isNull())
|
||||
account_.type = accountNode["Type"].asString();
|
||||
if(!accountNode["DisplayName"].isNull())
|
||||
account_.displayName = accountNode["DisplayName"].asString();
|
||||
if(!accountNode["FolderId"].isNull())
|
||||
account_.folderId = accountNode["FolderId"].asString();
|
||||
if(!accountNode["ResourceDirectoryId"].isNull())
|
||||
account_.resourceDirectoryId = accountNode["ResourceDirectoryId"].asString();
|
||||
if(!accountNode["IdentityInformation"].isNull())
|
||||
account_.identityInformation = accountNode["IdentityInformation"].asString();
|
||||
if(!accountNode["JoinTime"].isNull())
|
||||
account_.joinTime = accountNode["JoinTime"].asString();
|
||||
if(!accountNode["AccountId"].isNull())
|
||||
account_.accountId = accountNode["AccountId"].asString();
|
||||
if(!accountNode["JoinMethod"].isNull())
|
||||
account_.joinMethod = accountNode["JoinMethod"].asString();
|
||||
if(!accountNode["ModifyTime"].isNull())
|
||||
account_.modifyTime = accountNode["ModifyTime"].asString();
|
||||
if(!accountNode["AccountName"].isNull())
|
||||
account_.accountName = accountNode["AccountName"].asString();
|
||||
if(!accountNode["ResourceDirectoryPath"].isNull())
|
||||
account_.resourceDirectoryPath = accountNode["ResourceDirectoryPath"].asString();
|
||||
|
||||
}
|
||||
|
||||
GetAccountResult::Account GetAccountResult::getAccount()const
|
||||
{
|
||||
return account_;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,29 @@
|
||||
/*
|
||||
* 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/resourcemanager/model/GetControlPolicyEnablementStatusRequest.h>
|
||||
|
||||
using AlibabaCloud::ResourceManager::Model::GetControlPolicyEnablementStatusRequest;
|
||||
|
||||
GetControlPolicyEnablementStatusRequest::GetControlPolicyEnablementStatusRequest() :
|
||||
RpcServiceRequest("resourcemanager", "2020-03-31", "GetControlPolicyEnablementStatus")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetControlPolicyEnablementStatusRequest::~GetControlPolicyEnablementStatusRequest()
|
||||
{}
|
||||
|
||||
@@ -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/resourcemanager/model/GetControlPolicyEnablementStatusResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::ResourceManager;
|
||||
using namespace AlibabaCloud::ResourceManager::Model;
|
||||
|
||||
GetControlPolicyEnablementStatusResult::GetControlPolicyEnablementStatusResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetControlPolicyEnablementStatusResult::GetControlPolicyEnablementStatusResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetControlPolicyEnablementStatusResult::~GetControlPolicyEnablementStatusResult()
|
||||
{}
|
||||
|
||||
void GetControlPolicyEnablementStatusResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["EnablementStatus"].isNull())
|
||||
enablementStatus_ = value["EnablementStatus"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string GetControlPolicyEnablementStatusResult::getEnablementStatus()const
|
||||
{
|
||||
return enablementStatus_;
|
||||
}
|
||||
|
||||
51
resourcemanager/src/model/GetControlPolicyRequest.cc
Normal file
51
resourcemanager/src/model/GetControlPolicyRequest.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/resourcemanager/model/GetControlPolicyRequest.h>
|
||||
|
||||
using AlibabaCloud::ResourceManager::Model::GetControlPolicyRequest;
|
||||
|
||||
GetControlPolicyRequest::GetControlPolicyRequest() :
|
||||
RpcServiceRequest("resourcemanager", "2020-03-31", "GetControlPolicy")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetControlPolicyRequest::~GetControlPolicyRequest()
|
||||
{}
|
||||
|
||||
std::string GetControlPolicyRequest::getLanguage()const
|
||||
{
|
||||
return language_;
|
||||
}
|
||||
|
||||
void GetControlPolicyRequest::setLanguage(const std::string& language)
|
||||
{
|
||||
language_ = language;
|
||||
setParameter("Language", language);
|
||||
}
|
||||
|
||||
std::string GetControlPolicyRequest::getPolicyId()const
|
||||
{
|
||||
return policyId_;
|
||||
}
|
||||
|
||||
void GetControlPolicyRequest::setPolicyId(const std::string& policyId)
|
||||
{
|
||||
policyId_ = policyId;
|
||||
setParameter("PolicyId", policyId);
|
||||
}
|
||||
|
||||
68
resourcemanager/src/model/GetControlPolicyResult.cc
Normal file
68
resourcemanager/src/model/GetControlPolicyResult.cc
Normal file
@@ -0,0 +1,68 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/resourcemanager/model/GetControlPolicyResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::ResourceManager;
|
||||
using namespace AlibabaCloud::ResourceManager::Model;
|
||||
|
||||
GetControlPolicyResult::GetControlPolicyResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetControlPolicyResult::GetControlPolicyResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetControlPolicyResult::~GetControlPolicyResult()
|
||||
{}
|
||||
|
||||
void GetControlPolicyResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto controlPolicyNode = value["ControlPolicy"];
|
||||
if(!controlPolicyNode["PolicyDocument"].isNull())
|
||||
controlPolicy_.policyDocument = controlPolicyNode["PolicyDocument"].asString();
|
||||
if(!controlPolicyNode["UpdateDate"].isNull())
|
||||
controlPolicy_.updateDate = controlPolicyNode["UpdateDate"].asString();
|
||||
if(!controlPolicyNode["Description"].isNull())
|
||||
controlPolicy_.description = controlPolicyNode["Description"].asString();
|
||||
if(!controlPolicyNode["EffectScope"].isNull())
|
||||
controlPolicy_.effectScope = controlPolicyNode["EffectScope"].asString();
|
||||
if(!controlPolicyNode["AttachmentCount"].isNull())
|
||||
controlPolicy_.attachmentCount = controlPolicyNode["AttachmentCount"].asString();
|
||||
if(!controlPolicyNode["PolicyName"].isNull())
|
||||
controlPolicy_.policyName = controlPolicyNode["PolicyName"].asString();
|
||||
if(!controlPolicyNode["PolicyId"].isNull())
|
||||
controlPolicy_.policyId = controlPolicyNode["PolicyId"].asString();
|
||||
if(!controlPolicyNode["CreateDate"].isNull())
|
||||
controlPolicy_.createDate = controlPolicyNode["CreateDate"].asString();
|
||||
if(!controlPolicyNode["PolicyType"].isNull())
|
||||
controlPolicy_.policyType = controlPolicyNode["PolicyType"].asString();
|
||||
|
||||
}
|
||||
|
||||
GetControlPolicyResult::ControlPolicy GetControlPolicyResult::getControlPolicy()const
|
||||
{
|
||||
return controlPolicy_;
|
||||
}
|
||||
|
||||
40
resourcemanager/src/model/GetFolderRequest.cc
Normal file
40
resourcemanager/src/model/GetFolderRequest.cc
Normal file
@@ -0,0 +1,40 @@
|
||||
/*
|
||||
* 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/resourcemanager/model/GetFolderRequest.h>
|
||||
|
||||
using AlibabaCloud::ResourceManager::Model::GetFolderRequest;
|
||||
|
||||
GetFolderRequest::GetFolderRequest() :
|
||||
RpcServiceRequest("resourcemanager", "2020-03-31", "GetFolder")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetFolderRequest::~GetFolderRequest()
|
||||
{}
|
||||
|
||||
std::string GetFolderRequest::getFolderId()const
|
||||
{
|
||||
return folderId_;
|
||||
}
|
||||
|
||||
void GetFolderRequest::setFolderId(const std::string& folderId)
|
||||
{
|
||||
folderId_ = folderId;
|
||||
setParameter("FolderId", folderId);
|
||||
}
|
||||
|
||||
60
resourcemanager/src/model/GetFolderResult.cc
Normal file
60
resourcemanager/src/model/GetFolderResult.cc
Normal file
@@ -0,0 +1,60 @@
|
||||
/*
|
||||
* 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/resourcemanager/model/GetFolderResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::ResourceManager;
|
||||
using namespace AlibabaCloud::ResourceManager::Model;
|
||||
|
||||
GetFolderResult::GetFolderResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetFolderResult::GetFolderResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetFolderResult::~GetFolderResult()
|
||||
{}
|
||||
|
||||
void GetFolderResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto folderNode = value["Folder"];
|
||||
if(!folderNode["FolderId"].isNull())
|
||||
folder_.folderId = folderNode["FolderId"].asString();
|
||||
if(!folderNode["CreateTime"].isNull())
|
||||
folder_.createTime = folderNode["CreateTime"].asString();
|
||||
if(!folderNode["ParentFolderId"].isNull())
|
||||
folder_.parentFolderId = folderNode["ParentFolderId"].asString();
|
||||
if(!folderNode["FolderName"].isNull())
|
||||
folder_.folderName = folderNode["FolderName"].asString();
|
||||
if(!folderNode["ResourceDirectoryPath"].isNull())
|
||||
folder_.resourceDirectoryPath = folderNode["ResourceDirectoryPath"].asString();
|
||||
|
||||
}
|
||||
|
||||
GetFolderResult::Folder GetFolderResult::getFolder()const
|
||||
{
|
||||
return folder_;
|
||||
}
|
||||
|
||||
40
resourcemanager/src/model/GetHandshakeRequest.cc
Normal file
40
resourcemanager/src/model/GetHandshakeRequest.cc
Normal file
@@ -0,0 +1,40 @@
|
||||
/*
|
||||
* 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/resourcemanager/model/GetHandshakeRequest.h>
|
||||
|
||||
using AlibabaCloud::ResourceManager::Model::GetHandshakeRequest;
|
||||
|
||||
GetHandshakeRequest::GetHandshakeRequest() :
|
||||
RpcServiceRequest("resourcemanager", "2020-03-31", "GetHandshake")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetHandshakeRequest::~GetHandshakeRequest()
|
||||
{}
|
||||
|
||||
std::string GetHandshakeRequest::getHandshakeId()const
|
||||
{
|
||||
return handshakeId_;
|
||||
}
|
||||
|
||||
void GetHandshakeRequest::setHandshakeId(const std::string& handshakeId)
|
||||
{
|
||||
handshakeId_ = handshakeId;
|
||||
setParameter("HandshakeId", handshakeId);
|
||||
}
|
||||
|
||||
76
resourcemanager/src/model/GetHandshakeResult.cc
Normal file
76
resourcemanager/src/model/GetHandshakeResult.cc
Normal file
@@ -0,0 +1,76 @@
|
||||
/*
|
||||
* 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/resourcemanager/model/GetHandshakeResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::ResourceManager;
|
||||
using namespace AlibabaCloud::ResourceManager::Model;
|
||||
|
||||
GetHandshakeResult::GetHandshakeResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetHandshakeResult::GetHandshakeResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetHandshakeResult::~GetHandshakeResult()
|
||||
{}
|
||||
|
||||
void GetHandshakeResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto handshakeNode = value["Handshake"];
|
||||
if(!handshakeNode["Status"].isNull())
|
||||
handshake_.status = handshakeNode["Status"].asString();
|
||||
if(!handshakeNode["ExpireTime"].isNull())
|
||||
handshake_.expireTime = handshakeNode["ExpireTime"].asString();
|
||||
if(!handshakeNode["CreateTime"].isNull())
|
||||
handshake_.createTime = handshakeNode["CreateTime"].asString();
|
||||
if(!handshakeNode["TargetEntity"].isNull())
|
||||
handshake_.targetEntity = handshakeNode["TargetEntity"].asString();
|
||||
if(!handshakeNode["MasterAccountId"].isNull())
|
||||
handshake_.masterAccountId = handshakeNode["MasterAccountId"].asString();
|
||||
if(!handshakeNode["HandshakeId"].isNull())
|
||||
handshake_.handshakeId = handshakeNode["HandshakeId"].asString();
|
||||
if(!handshakeNode["MasterAccountRealName"].isNull())
|
||||
handshake_.masterAccountRealName = handshakeNode["MasterAccountRealName"].asString();
|
||||
if(!handshakeNode["ResourceDirectoryId"].isNull())
|
||||
handshake_.resourceDirectoryId = handshakeNode["ResourceDirectoryId"].asString();
|
||||
if(!handshakeNode["InvitedAccountRealName"].isNull())
|
||||
handshake_.invitedAccountRealName = handshakeNode["InvitedAccountRealName"].asString();
|
||||
if(!handshakeNode["Note"].isNull())
|
||||
handshake_.note = handshakeNode["Note"].asString();
|
||||
if(!handshakeNode["MasterAccountName"].isNull())
|
||||
handshake_.masterAccountName = handshakeNode["MasterAccountName"].asString();
|
||||
if(!handshakeNode["TargetType"].isNull())
|
||||
handshake_.targetType = handshakeNode["TargetType"].asString();
|
||||
if(!handshakeNode["ModifyTime"].isNull())
|
||||
handshake_.modifyTime = handshakeNode["ModifyTime"].asString();
|
||||
|
||||
}
|
||||
|
||||
GetHandshakeResult::Handshake GetHandshakeResult::getHandshake()const
|
||||
{
|
||||
return handshake_;
|
||||
}
|
||||
|
||||
40
resourcemanager/src/model/GetPayerForAccountRequest.cc
Normal file
40
resourcemanager/src/model/GetPayerForAccountRequest.cc
Normal file
@@ -0,0 +1,40 @@
|
||||
/*
|
||||
* 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/resourcemanager/model/GetPayerForAccountRequest.h>
|
||||
|
||||
using AlibabaCloud::ResourceManager::Model::GetPayerForAccountRequest;
|
||||
|
||||
GetPayerForAccountRequest::GetPayerForAccountRequest() :
|
||||
RpcServiceRequest("resourcemanager", "2020-03-31", "GetPayerForAccount")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetPayerForAccountRequest::~GetPayerForAccountRequest()
|
||||
{}
|
||||
|
||||
std::string GetPayerForAccountRequest::getAccountId()const
|
||||
{
|
||||
return accountId_;
|
||||
}
|
||||
|
||||
void GetPayerForAccountRequest::setAccountId(const std::string& accountId)
|
||||
{
|
||||
accountId_ = accountId;
|
||||
setParameter("AccountId", accountId);
|
||||
}
|
||||
|
||||
58
resourcemanager/src/model/GetPayerForAccountResult.cc
Normal file
58
resourcemanager/src/model/GetPayerForAccountResult.cc
Normal file
@@ -0,0 +1,58 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/resourcemanager/model/GetPayerForAccountResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::ResourceManager;
|
||||
using namespace AlibabaCloud::ResourceManager::Model;
|
||||
|
||||
GetPayerForAccountResult::GetPayerForAccountResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetPayerForAccountResult::GetPayerForAccountResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetPayerForAccountResult::~GetPayerForAccountResult()
|
||||
{}
|
||||
|
||||
void GetPayerForAccountResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["PayerAccountName"].isNull())
|
||||
payerAccountName_ = value["PayerAccountName"].asString();
|
||||
if(!value["PayerAccountId"].isNull())
|
||||
payerAccountId_ = value["PayerAccountId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string GetPayerForAccountResult::getPayerAccountName()const
|
||||
{
|
||||
return payerAccountName_;
|
||||
}
|
||||
|
||||
std::string GetPayerForAccountResult::getPayerAccountId()const
|
||||
{
|
||||
return payerAccountId_;
|
||||
}
|
||||
|
||||
62
resourcemanager/src/model/GetPolicyRequest.cc
Normal file
62
resourcemanager/src/model/GetPolicyRequest.cc
Normal 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/resourcemanager/model/GetPolicyRequest.h>
|
||||
|
||||
using AlibabaCloud::ResourceManager::Model::GetPolicyRequest;
|
||||
|
||||
GetPolicyRequest::GetPolicyRequest() :
|
||||
RpcServiceRequest("resourcemanager", "2020-03-31", "GetPolicy")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetPolicyRequest::~GetPolicyRequest()
|
||||
{}
|
||||
|
||||
std::string GetPolicyRequest::getPolicyType()const
|
||||
{
|
||||
return policyType_;
|
||||
}
|
||||
|
||||
void GetPolicyRequest::setPolicyType(const std::string& policyType)
|
||||
{
|
||||
policyType_ = policyType;
|
||||
setParameter("PolicyType", policyType);
|
||||
}
|
||||
|
||||
std::string GetPolicyRequest::getLanguage()const
|
||||
{
|
||||
return language_;
|
||||
}
|
||||
|
||||
void GetPolicyRequest::setLanguage(const std::string& language)
|
||||
{
|
||||
language_ = language;
|
||||
setParameter("Language", language);
|
||||
}
|
||||
|
||||
std::string GetPolicyRequest::getPolicyName()const
|
||||
{
|
||||
return policyName_;
|
||||
}
|
||||
|
||||
void GetPolicyRequest::setPolicyName(const std::string& policyName)
|
||||
{
|
||||
policyName_ = policyName;
|
||||
setParameter("PolicyName", policyName);
|
||||
}
|
||||
|
||||
66
resourcemanager/src/model/GetPolicyResult.cc
Normal file
66
resourcemanager/src/model/GetPolicyResult.cc
Normal file
@@ -0,0 +1,66 @@
|
||||
/*
|
||||
* 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/resourcemanager/model/GetPolicyResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::ResourceManager;
|
||||
using namespace AlibabaCloud::ResourceManager::Model;
|
||||
|
||||
GetPolicyResult::GetPolicyResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetPolicyResult::GetPolicyResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetPolicyResult::~GetPolicyResult()
|
||||
{}
|
||||
|
||||
void GetPolicyResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto policyNode = value["Policy"];
|
||||
if(!policyNode["PolicyType"].isNull())
|
||||
policy_.policyType = policyNode["PolicyType"].asString();
|
||||
if(!policyNode["UpdateDate"].isNull())
|
||||
policy_.updateDate = policyNode["UpdateDate"].asString();
|
||||
if(!policyNode["Description"].isNull())
|
||||
policy_.description = policyNode["Description"].asString();
|
||||
if(!policyNode["AttachmentCount"].isNull())
|
||||
policy_.attachmentCount = std::stoi(policyNode["AttachmentCount"].asString());
|
||||
if(!policyNode["PolicyName"].isNull())
|
||||
policy_.policyName = policyNode["PolicyName"].asString();
|
||||
if(!policyNode["DefaultVersion"].isNull())
|
||||
policy_.defaultVersion = policyNode["DefaultVersion"].asString();
|
||||
if(!policyNode["PolicyDocument"].isNull())
|
||||
policy_.policyDocument = policyNode["PolicyDocument"].asString();
|
||||
if(!policyNode["CreateDate"].isNull())
|
||||
policy_.createDate = policyNode["CreateDate"].asString();
|
||||
|
||||
}
|
||||
|
||||
GetPolicyResult::Policy GetPolicyResult::getPolicy()const
|
||||
{
|
||||
return policy_;
|
||||
}
|
||||
|
||||
62
resourcemanager/src/model/GetPolicyVersionRequest.cc
Normal file
62
resourcemanager/src/model/GetPolicyVersionRequest.cc
Normal 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/resourcemanager/model/GetPolicyVersionRequest.h>
|
||||
|
||||
using AlibabaCloud::ResourceManager::Model::GetPolicyVersionRequest;
|
||||
|
||||
GetPolicyVersionRequest::GetPolicyVersionRequest() :
|
||||
RpcServiceRequest("resourcemanager", "2020-03-31", "GetPolicyVersion")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetPolicyVersionRequest::~GetPolicyVersionRequest()
|
||||
{}
|
||||
|
||||
std::string GetPolicyVersionRequest::getPolicyType()const
|
||||
{
|
||||
return policyType_;
|
||||
}
|
||||
|
||||
void GetPolicyVersionRequest::setPolicyType(const std::string& policyType)
|
||||
{
|
||||
policyType_ = policyType;
|
||||
setParameter("PolicyType", policyType);
|
||||
}
|
||||
|
||||
std::string GetPolicyVersionRequest::getVersionId()const
|
||||
{
|
||||
return versionId_;
|
||||
}
|
||||
|
||||
void GetPolicyVersionRequest::setVersionId(const std::string& versionId)
|
||||
{
|
||||
versionId_ = versionId;
|
||||
setParameter("VersionId", versionId);
|
||||
}
|
||||
|
||||
std::string GetPolicyVersionRequest::getPolicyName()const
|
||||
{
|
||||
return policyName_;
|
||||
}
|
||||
|
||||
void GetPolicyVersionRequest::setPolicyName(const std::string& policyName)
|
||||
{
|
||||
policyName_ = policyName;
|
||||
setParameter("PolicyName", policyName);
|
||||
}
|
||||
|
||||
58
resourcemanager/src/model/GetPolicyVersionResult.cc
Normal file
58
resourcemanager/src/model/GetPolicyVersionResult.cc
Normal file
@@ -0,0 +1,58 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/resourcemanager/model/GetPolicyVersionResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::ResourceManager;
|
||||
using namespace AlibabaCloud::ResourceManager::Model;
|
||||
|
||||
GetPolicyVersionResult::GetPolicyVersionResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetPolicyVersionResult::GetPolicyVersionResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetPolicyVersionResult::~GetPolicyVersionResult()
|
||||
{}
|
||||
|
||||
void GetPolicyVersionResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto policyVersionNode = value["PolicyVersion"];
|
||||
if(!policyVersionNode["VersionId"].isNull())
|
||||
policyVersion_.versionId = policyVersionNode["VersionId"].asString();
|
||||
if(!policyVersionNode["IsDefaultVersion"].isNull())
|
||||
policyVersion_.isDefaultVersion = policyVersionNode["IsDefaultVersion"].asString() == "true";
|
||||
if(!policyVersionNode["PolicyDocument"].isNull())
|
||||
policyVersion_.policyDocument = policyVersionNode["PolicyDocument"].asString();
|
||||
if(!policyVersionNode["CreateDate"].isNull())
|
||||
policyVersion_.createDate = policyVersionNode["CreateDate"].asString();
|
||||
|
||||
}
|
||||
|
||||
GetPolicyVersionResult::PolicyVersion GetPolicyVersionResult::getPolicyVersion()const
|
||||
{
|
||||
return policyVersion_;
|
||||
}
|
||||
|
||||
29
resourcemanager/src/model/GetResourceDirectoryRequest.cc
Normal file
29
resourcemanager/src/model/GetResourceDirectoryRequest.cc
Normal file
@@ -0,0 +1,29 @@
|
||||
/*
|
||||
* 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/resourcemanager/model/GetResourceDirectoryRequest.h>
|
||||
|
||||
using AlibabaCloud::ResourceManager::Model::GetResourceDirectoryRequest;
|
||||
|
||||
GetResourceDirectoryRequest::GetResourceDirectoryRequest() :
|
||||
RpcServiceRequest("resourcemanager", "2020-03-31", "GetResourceDirectory")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetResourceDirectoryRequest::~GetResourceDirectoryRequest()
|
||||
{}
|
||||
|
||||
66
resourcemanager/src/model/GetResourceDirectoryResult.cc
Normal file
66
resourcemanager/src/model/GetResourceDirectoryResult.cc
Normal file
@@ -0,0 +1,66 @@
|
||||
/*
|
||||
* 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/resourcemanager/model/GetResourceDirectoryResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::ResourceManager;
|
||||
using namespace AlibabaCloud::ResourceManager::Model;
|
||||
|
||||
GetResourceDirectoryResult::GetResourceDirectoryResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetResourceDirectoryResult::GetResourceDirectoryResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetResourceDirectoryResult::~GetResourceDirectoryResult()
|
||||
{}
|
||||
|
||||
void GetResourceDirectoryResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto resourceDirectoryNode = value["ResourceDirectory"];
|
||||
if(!resourceDirectoryNode["RootFolderId"].isNull())
|
||||
resourceDirectory_.rootFolderId = resourceDirectoryNode["RootFolderId"].asString();
|
||||
if(!resourceDirectoryNode["ResourceDirectoryId"].isNull())
|
||||
resourceDirectory_.resourceDirectoryId = resourceDirectoryNode["ResourceDirectoryId"].asString();
|
||||
if(!resourceDirectoryNode["CreateTime"].isNull())
|
||||
resourceDirectory_.createTime = resourceDirectoryNode["CreateTime"].asString();
|
||||
if(!resourceDirectoryNode["MasterAccountId"].isNull())
|
||||
resourceDirectory_.masterAccountId = resourceDirectoryNode["MasterAccountId"].asString();
|
||||
if(!resourceDirectoryNode["MasterAccountName"].isNull())
|
||||
resourceDirectory_.masterAccountName = resourceDirectoryNode["MasterAccountName"].asString();
|
||||
if(!resourceDirectoryNode["ScpStatus"].isNull())
|
||||
resourceDirectory_.scpStatus = resourceDirectoryNode["ScpStatus"].asString();
|
||||
if(!resourceDirectoryNode["ControlPolicyStatus"].isNull())
|
||||
resourceDirectory_.controlPolicyStatus = resourceDirectoryNode["ControlPolicyStatus"].asString();
|
||||
if(!resourceDirectoryNode["MemberDeletionStatus"].isNull())
|
||||
resourceDirectory_.memberDeletionStatus = resourceDirectoryNode["MemberDeletionStatus"].asString();
|
||||
|
||||
}
|
||||
|
||||
GetResourceDirectoryResult::ResourceDirectory GetResourceDirectoryResult::getResourceDirectory()const
|
||||
{
|
||||
return resourceDirectory_;
|
||||
}
|
||||
|
||||
40
resourcemanager/src/model/GetResourceGroupRequest.cc
Normal file
40
resourcemanager/src/model/GetResourceGroupRequest.cc
Normal file
@@ -0,0 +1,40 @@
|
||||
/*
|
||||
* 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/resourcemanager/model/GetResourceGroupRequest.h>
|
||||
|
||||
using AlibabaCloud::ResourceManager::Model::GetResourceGroupRequest;
|
||||
|
||||
GetResourceGroupRequest::GetResourceGroupRequest() :
|
||||
RpcServiceRequest("resourcemanager", "2020-03-31", "GetResourceGroup")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetResourceGroupRequest::~GetResourceGroupRequest()
|
||||
{}
|
||||
|
||||
std::string GetResourceGroupRequest::getResourceGroupId()const
|
||||
{
|
||||
return resourceGroupId_;
|
||||
}
|
||||
|
||||
void GetResourceGroupRequest::setResourceGroupId(const std::string& resourceGroupId)
|
||||
{
|
||||
resourceGroupId_ = resourceGroupId;
|
||||
setParameter("ResourceGroupId", resourceGroupId);
|
||||
}
|
||||
|
||||
72
resourcemanager/src/model/GetResourceGroupResult.cc
Normal file
72
resourcemanager/src/model/GetResourceGroupResult.cc
Normal file
@@ -0,0 +1,72 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/resourcemanager/model/GetResourceGroupResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::ResourceManager;
|
||||
using namespace AlibabaCloud::ResourceManager::Model;
|
||||
|
||||
GetResourceGroupResult::GetResourceGroupResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetResourceGroupResult::GetResourceGroupResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetResourceGroupResult::~GetResourceGroupResult()
|
||||
{}
|
||||
|
||||
void GetResourceGroupResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto resourceGroupNode = value["ResourceGroup"];
|
||||
if(!resourceGroupNode["Status"].isNull())
|
||||
resourceGroup_.status = resourceGroupNode["Status"].asString();
|
||||
if(!resourceGroupNode["AccountId"].isNull())
|
||||
resourceGroup_.accountId = resourceGroupNode["AccountId"].asString();
|
||||
if(!resourceGroupNode["DisplayName"].isNull())
|
||||
resourceGroup_.displayName = resourceGroupNode["DisplayName"].asString();
|
||||
if(!resourceGroupNode["Id"].isNull())
|
||||
resourceGroup_.id = resourceGroupNode["Id"].asString();
|
||||
if(!resourceGroupNode["CreateDate"].isNull())
|
||||
resourceGroup_.createDate = resourceGroupNode["CreateDate"].asString();
|
||||
if(!resourceGroupNode["Name"].isNull())
|
||||
resourceGroup_.name = resourceGroupNode["Name"].asString();
|
||||
auto allRegionStatusesNode = resourceGroupNode["RegionStatuses"]["RegionStatus"];
|
||||
for (auto resourceGroupNodeRegionStatusesRegionStatus : allRegionStatusesNode)
|
||||
{
|
||||
ResourceGroup::RegionStatus regionStatusObject;
|
||||
if(!resourceGroupNodeRegionStatusesRegionStatus["Status"].isNull())
|
||||
regionStatusObject.status = resourceGroupNodeRegionStatusesRegionStatus["Status"].asString();
|
||||
if(!resourceGroupNodeRegionStatusesRegionStatus["RegionId"].isNull())
|
||||
regionStatusObject.regionId = resourceGroupNodeRegionStatusesRegionStatus["RegionId"].asString();
|
||||
resourceGroup_.regionStatuses.push_back(regionStatusObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
GetResourceGroupResult::ResourceGroup GetResourceGroupResult::getResourceGroup()const
|
||||
{
|
||||
return resourceGroup_;
|
||||
}
|
||||
|
||||
51
resourcemanager/src/model/GetRoleRequest.cc
Normal file
51
resourcemanager/src/model/GetRoleRequest.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/resourcemanager/model/GetRoleRequest.h>
|
||||
|
||||
using AlibabaCloud::ResourceManager::Model::GetRoleRequest;
|
||||
|
||||
GetRoleRequest::GetRoleRequest() :
|
||||
RpcServiceRequest("resourcemanager", "2020-03-31", "GetRole")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetRoleRequest::~GetRoleRequest()
|
||||
{}
|
||||
|
||||
std::string GetRoleRequest::getRoleName()const
|
||||
{
|
||||
return roleName_;
|
||||
}
|
||||
|
||||
void GetRoleRequest::setRoleName(const std::string& roleName)
|
||||
{
|
||||
roleName_ = roleName;
|
||||
setParameter("RoleName", roleName);
|
||||
}
|
||||
|
||||
std::string GetRoleRequest::getLanguage()const
|
||||
{
|
||||
return language_;
|
||||
}
|
||||
|
||||
void GetRoleRequest::setLanguage(const std::string& language)
|
||||
{
|
||||
language_ = language;
|
||||
setParameter("Language", language);
|
||||
}
|
||||
|
||||
75
resourcemanager/src/model/GetRoleResult.cc
Normal file
75
resourcemanager/src/model/GetRoleResult.cc
Normal file
@@ -0,0 +1,75 @@
|
||||
/*
|
||||
* 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/resourcemanager/model/GetRoleResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::ResourceManager;
|
||||
using namespace AlibabaCloud::ResourceManager::Model;
|
||||
|
||||
GetRoleResult::GetRoleResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetRoleResult::GetRoleResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetRoleResult::~GetRoleResult()
|
||||
{}
|
||||
|
||||
void GetRoleResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto roleNode = value["Role"];
|
||||
if(!roleNode["MaxSessionDuration"].isNull())
|
||||
role_.maxSessionDuration = std::stol(roleNode["MaxSessionDuration"].asString());
|
||||
if(!roleNode["UpdateDate"].isNull())
|
||||
role_.updateDate = roleNode["UpdateDate"].asString();
|
||||
if(!roleNode["RoleName"].isNull())
|
||||
role_.roleName = roleNode["RoleName"].asString();
|
||||
if(!roleNode["Description"].isNull())
|
||||
role_.description = roleNode["Description"].asString();
|
||||
if(!roleNode["AssumeRolePolicyDocument"].isNull())
|
||||
role_.assumeRolePolicyDocument = roleNode["AssumeRolePolicyDocument"].asString();
|
||||
if(!roleNode["IsServiceLinkedRole"].isNull())
|
||||
role_.isServiceLinkedRole = roleNode["IsServiceLinkedRole"].asString() == "true";
|
||||
if(!roleNode["Arn"].isNull())
|
||||
role_.arn = roleNode["Arn"].asString();
|
||||
if(!roleNode["RoleId"].isNull())
|
||||
role_.roleId = roleNode["RoleId"].asString();
|
||||
if(!roleNode["CreateDate"].isNull())
|
||||
role_.createDate = roleNode["CreateDate"].asString();
|
||||
if(!roleNode["RolePrincipalName"].isNull())
|
||||
role_.rolePrincipalName = roleNode["RolePrincipalName"].asString();
|
||||
auto latestDeletionTaskNode = roleNode["LatestDeletionTask"];
|
||||
if(!latestDeletionTaskNode["CreateDate"].isNull())
|
||||
role_.latestDeletionTask.createDate = latestDeletionTaskNode["CreateDate"].asString();
|
||||
if(!latestDeletionTaskNode["DeletionTaskId"].isNull())
|
||||
role_.latestDeletionTask.deletionTaskId = latestDeletionTaskNode["DeletionTaskId"].asString();
|
||||
|
||||
}
|
||||
|
||||
GetRoleResult::Role GetRoleResult::getRole()const
|
||||
{
|
||||
return role_;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,40 @@
|
||||
/*
|
||||
* 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/resourcemanager/model/GetServiceLinkedRoleDeletionStatusRequest.h>
|
||||
|
||||
using AlibabaCloud::ResourceManager::Model::GetServiceLinkedRoleDeletionStatusRequest;
|
||||
|
||||
GetServiceLinkedRoleDeletionStatusRequest::GetServiceLinkedRoleDeletionStatusRequest() :
|
||||
RpcServiceRequest("resourcemanager", "2020-03-31", "GetServiceLinkedRoleDeletionStatus")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetServiceLinkedRoleDeletionStatusRequest::~GetServiceLinkedRoleDeletionStatusRequest()
|
||||
{}
|
||||
|
||||
std::string GetServiceLinkedRoleDeletionStatusRequest::getDeletionTaskId()const
|
||||
{
|
||||
return deletionTaskId_;
|
||||
}
|
||||
|
||||
void GetServiceLinkedRoleDeletionStatusRequest::setDeletionTaskId(const std::string& deletionTaskId)
|
||||
{
|
||||
deletionTaskId_ = deletionTaskId;
|
||||
setParameter("DeletionTaskId", deletionTaskId);
|
||||
}
|
||||
|
||||
@@ -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/resourcemanager/model/GetServiceLinkedRoleDeletionStatusResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::ResourceManager;
|
||||
using namespace AlibabaCloud::ResourceManager::Model;
|
||||
|
||||
GetServiceLinkedRoleDeletionStatusResult::GetServiceLinkedRoleDeletionStatusResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetServiceLinkedRoleDeletionStatusResult::GetServiceLinkedRoleDeletionStatusResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetServiceLinkedRoleDeletionStatusResult::~GetServiceLinkedRoleDeletionStatusResult()
|
||||
{}
|
||||
|
||||
void GetServiceLinkedRoleDeletionStatusResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto reasonNode = value["Reason"];
|
||||
if(!reasonNode["Message"].isNull())
|
||||
reason_.message = reasonNode["Message"].asString();
|
||||
auto allRoleUsagesNode = reasonNode["RoleUsages"]["RoleUsage"];
|
||||
for (auto reasonNodeRoleUsagesRoleUsage : allRoleUsagesNode)
|
||||
{
|
||||
Reason::RoleUsage roleUsageObject;
|
||||
if(!reasonNodeRoleUsagesRoleUsage["Region"].isNull())
|
||||
roleUsageObject.region = reasonNodeRoleUsagesRoleUsage["Region"].asString();
|
||||
auto allResources = value["Resources"]["Resource"];
|
||||
for (auto value : allResources)
|
||||
roleUsageObject.resources.push_back(value.asString());
|
||||
reason_.roleUsages.push_back(roleUsageObject);
|
||||
}
|
||||
if(!value["Status"].isNull())
|
||||
status_ = value["Status"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string GetServiceLinkedRoleDeletionStatusResult::getStatus()const
|
||||
{
|
||||
return status_;
|
||||
}
|
||||
|
||||
GetServiceLinkedRoleDeletionStatusResult::Reason GetServiceLinkedRoleDeletionStatusResult::getReason()const
|
||||
{
|
||||
return reason_;
|
||||
}
|
||||
|
||||
29
resourcemanager/src/model/InitResourceDirectoryRequest.cc
Normal file
29
resourcemanager/src/model/InitResourceDirectoryRequest.cc
Normal file
@@ -0,0 +1,29 @@
|
||||
/*
|
||||
* 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/resourcemanager/model/InitResourceDirectoryRequest.h>
|
||||
|
||||
using AlibabaCloud::ResourceManager::Model::InitResourceDirectoryRequest;
|
||||
|
||||
InitResourceDirectoryRequest::InitResourceDirectoryRequest() :
|
||||
RpcServiceRequest("resourcemanager", "2020-03-31", "InitResourceDirectory")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
InitResourceDirectoryRequest::~InitResourceDirectoryRequest()
|
||||
{}
|
||||
|
||||
60
resourcemanager/src/model/InitResourceDirectoryResult.cc
Normal file
60
resourcemanager/src/model/InitResourceDirectoryResult.cc
Normal file
@@ -0,0 +1,60 @@
|
||||
/*
|
||||
* 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/resourcemanager/model/InitResourceDirectoryResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::ResourceManager;
|
||||
using namespace AlibabaCloud::ResourceManager::Model;
|
||||
|
||||
InitResourceDirectoryResult::InitResourceDirectoryResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
InitResourceDirectoryResult::InitResourceDirectoryResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
InitResourceDirectoryResult::~InitResourceDirectoryResult()
|
||||
{}
|
||||
|
||||
void InitResourceDirectoryResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto resourceDirectoryNode = value["ResourceDirectory"];
|
||||
if(!resourceDirectoryNode["RootFolderId"].isNull())
|
||||
resourceDirectory_.rootFolderId = resourceDirectoryNode["RootFolderId"].asString();
|
||||
if(!resourceDirectoryNode["ResourceDirectoryId"].isNull())
|
||||
resourceDirectory_.resourceDirectoryId = resourceDirectoryNode["ResourceDirectoryId"].asString();
|
||||
if(!resourceDirectoryNode["CreateTime"].isNull())
|
||||
resourceDirectory_.createTime = resourceDirectoryNode["CreateTime"].asString();
|
||||
if(!resourceDirectoryNode["MasterAccountId"].isNull())
|
||||
resourceDirectory_.masterAccountId = resourceDirectoryNode["MasterAccountId"].asString();
|
||||
if(!resourceDirectoryNode["MasterAccountName"].isNull())
|
||||
resourceDirectory_.masterAccountName = resourceDirectoryNode["MasterAccountName"].asString();
|
||||
|
||||
}
|
||||
|
||||
InitResourceDirectoryResult::ResourceDirectory InitResourceDirectoryResult::getResourceDirectory()const
|
||||
{
|
||||
return resourceDirectory_;
|
||||
}
|
||||
|
||||
@@ -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/resourcemanager/model/InviteAccountToResourceDirectoryRequest.h>
|
||||
|
||||
using AlibabaCloud::ResourceManager::Model::InviteAccountToResourceDirectoryRequest;
|
||||
|
||||
InviteAccountToResourceDirectoryRequest::InviteAccountToResourceDirectoryRequest() :
|
||||
RpcServiceRequest("resourcemanager", "2020-03-31", "InviteAccountToResourceDirectory")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
InviteAccountToResourceDirectoryRequest::~InviteAccountToResourceDirectoryRequest()
|
||||
{}
|
||||
|
||||
std::string InviteAccountToResourceDirectoryRequest::getNote()const
|
||||
{
|
||||
return note_;
|
||||
}
|
||||
|
||||
void InviteAccountToResourceDirectoryRequest::setNote(const std::string& note)
|
||||
{
|
||||
note_ = note;
|
||||
setParameter("Note", note);
|
||||
}
|
||||
|
||||
std::string InviteAccountToResourceDirectoryRequest::getTargetType()const
|
||||
{
|
||||
return targetType_;
|
||||
}
|
||||
|
||||
void InviteAccountToResourceDirectoryRequest::setTargetType(const std::string& targetType)
|
||||
{
|
||||
targetType_ = targetType;
|
||||
setParameter("TargetType", targetType);
|
||||
}
|
||||
|
||||
std::string InviteAccountToResourceDirectoryRequest::getTargetEntity()const
|
||||
{
|
||||
return targetEntity_;
|
||||
}
|
||||
|
||||
void InviteAccountToResourceDirectoryRequest::setTargetEntity(const std::string& targetEntity)
|
||||
{
|
||||
targetEntity_ = targetEntity;
|
||||
setParameter("TargetEntity", targetEntity);
|
||||
}
|
||||
|
||||
@@ -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/resourcemanager/model/InviteAccountToResourceDirectoryResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::ResourceManager;
|
||||
using namespace AlibabaCloud::ResourceManager::Model;
|
||||
|
||||
InviteAccountToResourceDirectoryResult::InviteAccountToResourceDirectoryResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
InviteAccountToResourceDirectoryResult::InviteAccountToResourceDirectoryResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
InviteAccountToResourceDirectoryResult::~InviteAccountToResourceDirectoryResult()
|
||||
{}
|
||||
|
||||
void InviteAccountToResourceDirectoryResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto handshakeNode = value["Handshake"];
|
||||
if(!handshakeNode["Status"].isNull())
|
||||
handshake_.status = handshakeNode["Status"].asString();
|
||||
if(!handshakeNode["ExpireTime"].isNull())
|
||||
handshake_.expireTime = handshakeNode["ExpireTime"].asString();
|
||||
if(!handshakeNode["ResourceDirectoryId"].isNull())
|
||||
handshake_.resourceDirectoryId = handshakeNode["ResourceDirectoryId"].asString();
|
||||
if(!handshakeNode["CreateTime"].isNull())
|
||||
handshake_.createTime = handshakeNode["CreateTime"].asString();
|
||||
if(!handshakeNode["Note"].isNull())
|
||||
handshake_.note = handshakeNode["Note"].asString();
|
||||
if(!handshakeNode["TargetEntity"].isNull())
|
||||
handshake_.targetEntity = handshakeNode["TargetEntity"].asString();
|
||||
if(!handshakeNode["MasterAccountId"].isNull())
|
||||
handshake_.masterAccountId = handshakeNode["MasterAccountId"].asString();
|
||||
if(!handshakeNode["MasterAccountName"].isNull())
|
||||
handshake_.masterAccountName = handshakeNode["MasterAccountName"].asString();
|
||||
if(!handshakeNode["ModifyTime"].isNull())
|
||||
handshake_.modifyTime = handshakeNode["ModifyTime"].asString();
|
||||
if(!handshakeNode["TargetType"].isNull())
|
||||
handshake_.targetType = handshakeNode["TargetType"].asString();
|
||||
if(!handshakeNode["HandshakeId"].isNull())
|
||||
handshake_.handshakeId = handshakeNode["HandshakeId"].asString();
|
||||
|
||||
}
|
||||
|
||||
InviteAccountToResourceDirectoryResult::Handshake InviteAccountToResourceDirectoryResult::getHandshake()const
|
||||
{
|
||||
return handshake_;
|
||||
}
|
||||
|
||||
73
resourcemanager/src/model/ListAccountsForParentRequest.cc
Normal file
73
resourcemanager/src/model/ListAccountsForParentRequest.cc
Normal 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/resourcemanager/model/ListAccountsForParentRequest.h>
|
||||
|
||||
using AlibabaCloud::ResourceManager::Model::ListAccountsForParentRequest;
|
||||
|
||||
ListAccountsForParentRequest::ListAccountsForParentRequest() :
|
||||
RpcServiceRequest("resourcemanager", "2020-03-31", "ListAccountsForParent")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ListAccountsForParentRequest::~ListAccountsForParentRequest()
|
||||
{}
|
||||
|
||||
std::string ListAccountsForParentRequest::getQueryKeyword()const
|
||||
{
|
||||
return queryKeyword_;
|
||||
}
|
||||
|
||||
void ListAccountsForParentRequest::setQueryKeyword(const std::string& queryKeyword)
|
||||
{
|
||||
queryKeyword_ = queryKeyword;
|
||||
setParameter("QueryKeyword", queryKeyword);
|
||||
}
|
||||
|
||||
int ListAccountsForParentRequest::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
void ListAccountsForParentRequest::setPageNumber(int pageNumber)
|
||||
{
|
||||
pageNumber_ = pageNumber;
|
||||
setParameter("PageNumber", std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
std::string ListAccountsForParentRequest::getParentFolderId()const
|
||||
{
|
||||
return parentFolderId_;
|
||||
}
|
||||
|
||||
void ListAccountsForParentRequest::setParentFolderId(const std::string& parentFolderId)
|
||||
{
|
||||
parentFolderId_ = parentFolderId;
|
||||
setParameter("ParentFolderId", parentFolderId);
|
||||
}
|
||||
|
||||
int ListAccountsForParentRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void ListAccountsForParentRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
94
resourcemanager/src/model/ListAccountsForParentResult.cc
Normal file
94
resourcemanager/src/model/ListAccountsForParentResult.cc
Normal file
@@ -0,0 +1,94 @@
|
||||
/*
|
||||
* 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/resourcemanager/model/ListAccountsForParentResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::ResourceManager;
|
||||
using namespace AlibabaCloud::ResourceManager::Model;
|
||||
|
||||
ListAccountsForParentResult::ListAccountsForParentResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListAccountsForParentResult::ListAccountsForParentResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListAccountsForParentResult::~ListAccountsForParentResult()
|
||||
{}
|
||||
|
||||
void ListAccountsForParentResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allAccountsNode = value["Accounts"]["Account"];
|
||||
for (auto valueAccountsAccount : allAccountsNode)
|
||||
{
|
||||
Account accountsObject;
|
||||
if(!valueAccountsAccount["Status"].isNull())
|
||||
accountsObject.status = valueAccountsAccount["Status"].asString();
|
||||
if(!valueAccountsAccount["Type"].isNull())
|
||||
accountsObject.type = valueAccountsAccount["Type"].asString();
|
||||
if(!valueAccountsAccount["DisplayName"].isNull())
|
||||
accountsObject.displayName = valueAccountsAccount["DisplayName"].asString();
|
||||
if(!valueAccountsAccount["FolderId"].isNull())
|
||||
accountsObject.folderId = valueAccountsAccount["FolderId"].asString();
|
||||
if(!valueAccountsAccount["ResourceDirectoryId"].isNull())
|
||||
accountsObject.resourceDirectoryId = valueAccountsAccount["ResourceDirectoryId"].asString();
|
||||
if(!valueAccountsAccount["JoinTime"].isNull())
|
||||
accountsObject.joinTime = valueAccountsAccount["JoinTime"].asString();
|
||||
if(!valueAccountsAccount["AccountId"].isNull())
|
||||
accountsObject.accountId = valueAccountsAccount["AccountId"].asString();
|
||||
if(!valueAccountsAccount["JoinMethod"].isNull())
|
||||
accountsObject.joinMethod = valueAccountsAccount["JoinMethod"].asString();
|
||||
if(!valueAccountsAccount["ModifyTime"].isNull())
|
||||
accountsObject.modifyTime = valueAccountsAccount["ModifyTime"].asString();
|
||||
accounts_.push_back(accountsObject);
|
||||
}
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stoi(value["TotalCount"].asString());
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stoi(value["PageSize"].asString());
|
||||
if(!value["PageNumber"].isNull())
|
||||
pageNumber_ = std::stoi(value["PageNumber"].asString());
|
||||
|
||||
}
|
||||
|
||||
int ListAccountsForParentResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
int ListAccountsForParentResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
int ListAccountsForParentResult::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
std::vector<ListAccountsForParentResult::Account> ListAccountsForParentResult::getAccounts()const
|
||||
{
|
||||
return accounts_;
|
||||
}
|
||||
|
||||
51
resourcemanager/src/model/ListAccountsRequest.cc
Normal file
51
resourcemanager/src/model/ListAccountsRequest.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/resourcemanager/model/ListAccountsRequest.h>
|
||||
|
||||
using AlibabaCloud::ResourceManager::Model::ListAccountsRequest;
|
||||
|
||||
ListAccountsRequest::ListAccountsRequest() :
|
||||
RpcServiceRequest("resourcemanager", "2020-03-31", "ListAccounts")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ListAccountsRequest::~ListAccountsRequest()
|
||||
{}
|
||||
|
||||
int ListAccountsRequest::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
void ListAccountsRequest::setPageNumber(int pageNumber)
|
||||
{
|
||||
pageNumber_ = pageNumber;
|
||||
setParameter("PageNumber", std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
int ListAccountsRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void ListAccountsRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
96
resourcemanager/src/model/ListAccountsResult.cc
Normal file
96
resourcemanager/src/model/ListAccountsResult.cc
Normal 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/resourcemanager/model/ListAccountsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::ResourceManager;
|
||||
using namespace AlibabaCloud::ResourceManager::Model;
|
||||
|
||||
ListAccountsResult::ListAccountsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListAccountsResult::ListAccountsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListAccountsResult::~ListAccountsResult()
|
||||
{}
|
||||
|
||||
void ListAccountsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allAccountsNode = value["Accounts"]["Account"];
|
||||
for (auto valueAccountsAccount : allAccountsNode)
|
||||
{
|
||||
Account accountsObject;
|
||||
if(!valueAccountsAccount["Status"].isNull())
|
||||
accountsObject.status = valueAccountsAccount["Status"].asString();
|
||||
if(!valueAccountsAccount["Type"].isNull())
|
||||
accountsObject.type = valueAccountsAccount["Type"].asString();
|
||||
if(!valueAccountsAccount["DisplayName"].isNull())
|
||||
accountsObject.displayName = valueAccountsAccount["DisplayName"].asString();
|
||||
if(!valueAccountsAccount["FolderId"].isNull())
|
||||
accountsObject.folderId = valueAccountsAccount["FolderId"].asString();
|
||||
if(!valueAccountsAccount["ResourceDirectoryId"].isNull())
|
||||
accountsObject.resourceDirectoryId = valueAccountsAccount["ResourceDirectoryId"].asString();
|
||||
if(!valueAccountsAccount["JoinTime"].isNull())
|
||||
accountsObject.joinTime = valueAccountsAccount["JoinTime"].asString();
|
||||
if(!valueAccountsAccount["AccountId"].isNull())
|
||||
accountsObject.accountId = valueAccountsAccount["AccountId"].asString();
|
||||
if(!valueAccountsAccount["JoinMethod"].isNull())
|
||||
accountsObject.joinMethod = valueAccountsAccount["JoinMethod"].asString();
|
||||
if(!valueAccountsAccount["ModifyTime"].isNull())
|
||||
accountsObject.modifyTime = valueAccountsAccount["ModifyTime"].asString();
|
||||
if(!valueAccountsAccount["ResourceDirectoryPath"].isNull())
|
||||
accountsObject.resourceDirectoryPath = valueAccountsAccount["ResourceDirectoryPath"].asString();
|
||||
accounts_.push_back(accountsObject);
|
||||
}
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stoi(value["TotalCount"].asString());
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stoi(value["PageSize"].asString());
|
||||
if(!value["PageNumber"].isNull())
|
||||
pageNumber_ = std::stoi(value["PageNumber"].asString());
|
||||
|
||||
}
|
||||
|
||||
int ListAccountsResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
int ListAccountsResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
int ListAccountsResult::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
std::vector<ListAccountsResult::Account> ListAccountsResult::getAccounts()const
|
||||
{
|
||||
return accounts_;
|
||||
}
|
||||
|
||||
40
resourcemanager/src/model/ListAncestorsRequest.cc
Normal file
40
resourcemanager/src/model/ListAncestorsRequest.cc
Normal file
@@ -0,0 +1,40 @@
|
||||
/*
|
||||
* 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/resourcemanager/model/ListAncestorsRequest.h>
|
||||
|
||||
using AlibabaCloud::ResourceManager::Model::ListAncestorsRequest;
|
||||
|
||||
ListAncestorsRequest::ListAncestorsRequest() :
|
||||
RpcServiceRequest("resourcemanager", "2020-03-31", "ListAncestors")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ListAncestorsRequest::~ListAncestorsRequest()
|
||||
{}
|
||||
|
||||
std::string ListAncestorsRequest::getChildId()const
|
||||
{
|
||||
return childId_;
|
||||
}
|
||||
|
||||
void ListAncestorsRequest::setChildId(const std::string& childId)
|
||||
{
|
||||
childId_ = childId;
|
||||
setParameter("ChildId", childId);
|
||||
}
|
||||
|
||||
61
resourcemanager/src/model/ListAncestorsResult.cc
Normal file
61
resourcemanager/src/model/ListAncestorsResult.cc
Normal file
@@ -0,0 +1,61 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/resourcemanager/model/ListAncestorsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::ResourceManager;
|
||||
using namespace AlibabaCloud::ResourceManager::Model;
|
||||
|
||||
ListAncestorsResult::ListAncestorsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListAncestorsResult::ListAncestorsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListAncestorsResult::~ListAncestorsResult()
|
||||
{}
|
||||
|
||||
void ListAncestorsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allFoldersNode = value["Folders"]["Folder"];
|
||||
for (auto valueFoldersFolder : allFoldersNode)
|
||||
{
|
||||
Folder foldersObject;
|
||||
if(!valueFoldersFolder["FolderId"].isNull())
|
||||
foldersObject.folderId = valueFoldersFolder["FolderId"].asString();
|
||||
if(!valueFoldersFolder["CreateTime"].isNull())
|
||||
foldersObject.createTime = valueFoldersFolder["CreateTime"].asString();
|
||||
if(!valueFoldersFolder["FolderName"].isNull())
|
||||
foldersObject.folderName = valueFoldersFolder["FolderName"].asString();
|
||||
folders_.push_back(foldersObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
std::vector<ListAncestorsResult::Folder> ListAncestorsResult::getFolders()const
|
||||
{
|
||||
return folders_;
|
||||
}
|
||||
|
||||
73
resourcemanager/src/model/ListControlPoliciesRequest.cc
Normal file
73
resourcemanager/src/model/ListControlPoliciesRequest.cc
Normal 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/resourcemanager/model/ListControlPoliciesRequest.h>
|
||||
|
||||
using AlibabaCloud::ResourceManager::Model::ListControlPoliciesRequest;
|
||||
|
||||
ListControlPoliciesRequest::ListControlPoliciesRequest() :
|
||||
RpcServiceRequest("resourcemanager", "2020-03-31", "ListControlPolicies")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ListControlPoliciesRequest::~ListControlPoliciesRequest()
|
||||
{}
|
||||
|
||||
std::string ListControlPoliciesRequest::getPolicyType()const
|
||||
{
|
||||
return policyType_;
|
||||
}
|
||||
|
||||
void ListControlPoliciesRequest::setPolicyType(const std::string& policyType)
|
||||
{
|
||||
policyType_ = policyType;
|
||||
setParameter("PolicyType", policyType);
|
||||
}
|
||||
|
||||
std::string ListControlPoliciesRequest::getLanguage()const
|
||||
{
|
||||
return language_;
|
||||
}
|
||||
|
||||
void ListControlPoliciesRequest::setLanguage(const std::string& language)
|
||||
{
|
||||
language_ = language;
|
||||
setParameter("Language", language);
|
||||
}
|
||||
|
||||
int ListControlPoliciesRequest::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
void ListControlPoliciesRequest::setPageNumber(int pageNumber)
|
||||
{
|
||||
pageNumber_ = pageNumber;
|
||||
setParameter("PageNumber", std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
int ListControlPoliciesRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void ListControlPoliciesRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
92
resourcemanager/src/model/ListControlPoliciesResult.cc
Normal file
92
resourcemanager/src/model/ListControlPoliciesResult.cc
Normal file
@@ -0,0 +1,92 @@
|
||||
/*
|
||||
* 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/resourcemanager/model/ListControlPoliciesResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::ResourceManager;
|
||||
using namespace AlibabaCloud::ResourceManager::Model;
|
||||
|
||||
ListControlPoliciesResult::ListControlPoliciesResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListControlPoliciesResult::ListControlPoliciesResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListControlPoliciesResult::~ListControlPoliciesResult()
|
||||
{}
|
||||
|
||||
void ListControlPoliciesResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allControlPoliciesNode = value["ControlPolicies"]["ControlPolicy"];
|
||||
for (auto valueControlPoliciesControlPolicy : allControlPoliciesNode)
|
||||
{
|
||||
ControlPolicy controlPoliciesObject;
|
||||
if(!valueControlPoliciesControlPolicy["UpdateDate"].isNull())
|
||||
controlPoliciesObject.updateDate = valueControlPoliciesControlPolicy["UpdateDate"].asString();
|
||||
if(!valueControlPoliciesControlPolicy["Description"].isNull())
|
||||
controlPoliciesObject.description = valueControlPoliciesControlPolicy["Description"].asString();
|
||||
if(!valueControlPoliciesControlPolicy["EffectScope"].isNull())
|
||||
controlPoliciesObject.effectScope = valueControlPoliciesControlPolicy["EffectScope"].asString();
|
||||
if(!valueControlPoliciesControlPolicy["AttachmentCount"].isNull())
|
||||
controlPoliciesObject.attachmentCount = valueControlPoliciesControlPolicy["AttachmentCount"].asString();
|
||||
if(!valueControlPoliciesControlPolicy["PolicyName"].isNull())
|
||||
controlPoliciesObject.policyName = valueControlPoliciesControlPolicy["PolicyName"].asString();
|
||||
if(!valueControlPoliciesControlPolicy["PolicyId"].isNull())
|
||||
controlPoliciesObject.policyId = valueControlPoliciesControlPolicy["PolicyId"].asString();
|
||||
if(!valueControlPoliciesControlPolicy["CreateDate"].isNull())
|
||||
controlPoliciesObject.createDate = valueControlPoliciesControlPolicy["CreateDate"].asString();
|
||||
if(!valueControlPoliciesControlPolicy["PolicyType"].isNull())
|
||||
controlPoliciesObject.policyType = valueControlPoliciesControlPolicy["PolicyType"].asString();
|
||||
controlPolicies_.push_back(controlPoliciesObject);
|
||||
}
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stoi(value["TotalCount"].asString());
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stoi(value["PageSize"].asString());
|
||||
if(!value["PageNumber"].isNull())
|
||||
pageNumber_ = std::stoi(value["PageNumber"].asString());
|
||||
|
||||
}
|
||||
|
||||
int ListControlPoliciesResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
int ListControlPoliciesResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
int ListControlPoliciesResult::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
std::vector<ListControlPoliciesResult::ControlPolicy> ListControlPoliciesResult::getControlPolicies()const
|
||||
{
|
||||
return controlPolicies_;
|
||||
}
|
||||
|
||||
@@ -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/resourcemanager/model/ListControlPolicyAttachmentsForTargetRequest.h>
|
||||
|
||||
using AlibabaCloud::ResourceManager::Model::ListControlPolicyAttachmentsForTargetRequest;
|
||||
|
||||
ListControlPolicyAttachmentsForTargetRequest::ListControlPolicyAttachmentsForTargetRequest() :
|
||||
RpcServiceRequest("resourcemanager", "2020-03-31", "ListControlPolicyAttachmentsForTarget")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ListControlPolicyAttachmentsForTargetRequest::~ListControlPolicyAttachmentsForTargetRequest()
|
||||
{}
|
||||
|
||||
std::string ListControlPolicyAttachmentsForTargetRequest::getTargetId()const
|
||||
{
|
||||
return targetId_;
|
||||
}
|
||||
|
||||
void ListControlPolicyAttachmentsForTargetRequest::setTargetId(const std::string& targetId)
|
||||
{
|
||||
targetId_ = targetId;
|
||||
setParameter("TargetId", targetId);
|
||||
}
|
||||
|
||||
std::string ListControlPolicyAttachmentsForTargetRequest::getLanguage()const
|
||||
{
|
||||
return language_;
|
||||
}
|
||||
|
||||
void ListControlPolicyAttachmentsForTargetRequest::setLanguage(const std::string& language)
|
||||
{
|
||||
language_ = language;
|
||||
setParameter("Language", language);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,67 @@
|
||||
/*
|
||||
* 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/resourcemanager/model/ListControlPolicyAttachmentsForTargetResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::ResourceManager;
|
||||
using namespace AlibabaCloud::ResourceManager::Model;
|
||||
|
||||
ListControlPolicyAttachmentsForTargetResult::ListControlPolicyAttachmentsForTargetResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListControlPolicyAttachmentsForTargetResult::ListControlPolicyAttachmentsForTargetResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListControlPolicyAttachmentsForTargetResult::~ListControlPolicyAttachmentsForTargetResult()
|
||||
{}
|
||||
|
||||
void ListControlPolicyAttachmentsForTargetResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allControlPolicyAttachmentsNode = value["ControlPolicyAttachments"]["ControlPolicyAttachment"];
|
||||
for (auto valueControlPolicyAttachmentsControlPolicyAttachment : allControlPolicyAttachmentsNode)
|
||||
{
|
||||
ControlPolicyAttachment controlPolicyAttachmentsObject;
|
||||
if(!valueControlPolicyAttachmentsControlPolicyAttachment["Description"].isNull())
|
||||
controlPolicyAttachmentsObject.description = valueControlPolicyAttachmentsControlPolicyAttachment["Description"].asString();
|
||||
if(!valueControlPolicyAttachmentsControlPolicyAttachment["EffectScope"].isNull())
|
||||
controlPolicyAttachmentsObject.effectScope = valueControlPolicyAttachmentsControlPolicyAttachment["EffectScope"].asString();
|
||||
if(!valueControlPolicyAttachmentsControlPolicyAttachment["PolicyName"].isNull())
|
||||
controlPolicyAttachmentsObject.policyName = valueControlPolicyAttachmentsControlPolicyAttachment["PolicyName"].asString();
|
||||
if(!valueControlPolicyAttachmentsControlPolicyAttachment["PolicyId"].isNull())
|
||||
controlPolicyAttachmentsObject.policyId = valueControlPolicyAttachmentsControlPolicyAttachment["PolicyId"].asString();
|
||||
if(!valueControlPolicyAttachmentsControlPolicyAttachment["AttachDate"].isNull())
|
||||
controlPolicyAttachmentsObject.attachDate = valueControlPolicyAttachmentsControlPolicyAttachment["AttachDate"].asString();
|
||||
if(!valueControlPolicyAttachmentsControlPolicyAttachment["PolicyType"].isNull())
|
||||
controlPolicyAttachmentsObject.policyType = valueControlPolicyAttachmentsControlPolicyAttachment["PolicyType"].asString();
|
||||
controlPolicyAttachments_.push_back(controlPolicyAttachmentsObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
std::vector<ListControlPolicyAttachmentsForTargetResult::ControlPolicyAttachment> ListControlPolicyAttachmentsForTargetResult::getControlPolicyAttachments()const
|
||||
{
|
||||
return controlPolicyAttachments_;
|
||||
}
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user