ListUsers,ListUserBasicInfos api新增支持status字段

This commit is contained in:
sdk-team
2024-10-23 09:18:06 +00:00
parent ef4cdc8756
commit c13c576175
297 changed files with 20935 additions and 1 deletions

2681
ims/src/ImsClient.cc Normal file

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,54 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ims/model/AddClientIdToOIDCProviderRequest.h>
using AlibabaCloud::Ims::Model::AddClientIdToOIDCProviderRequest;
AddClientIdToOIDCProviderRequest::AddClientIdToOIDCProviderRequest()
: RpcServiceRequest("ims", "2019-08-15", "AddClientIdToOIDCProvider") {
setMethod(HttpRequest::Method::Post);
}
AddClientIdToOIDCProviderRequest::~AddClientIdToOIDCProviderRequest() {}
std::string AddClientIdToOIDCProviderRequest::getClientId() const {
return clientId_;
}
void AddClientIdToOIDCProviderRequest::setClientId(const std::string &clientId) {
clientId_ = clientId;
setParameter(std::string("ClientId"), clientId);
}
std::string AddClientIdToOIDCProviderRequest::getAkProxySuffix() const {
return akProxySuffix_;
}
void AddClientIdToOIDCProviderRequest::setAkProxySuffix(const std::string &akProxySuffix) {
akProxySuffix_ = akProxySuffix;
setParameter(std::string("AkProxySuffix"), akProxySuffix);
}
std::string AddClientIdToOIDCProviderRequest::getOIDCProviderName() const {
return oIDCProviderName_;
}
void AddClientIdToOIDCProviderRequest::setOIDCProviderName(const std::string &oIDCProviderName) {
oIDCProviderName_ = oIDCProviderName;
setParameter(std::string("OIDCProviderName"), oIDCProviderName);
}

View File

@@ -0,0 +1,72 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ims/model/AddClientIdToOIDCProviderResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ims;
using namespace AlibabaCloud::Ims::Model;
AddClientIdToOIDCProviderResult::AddClientIdToOIDCProviderResult() :
ServiceResult()
{}
AddClientIdToOIDCProviderResult::AddClientIdToOIDCProviderResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
AddClientIdToOIDCProviderResult::~AddClientIdToOIDCProviderResult()
{}
void AddClientIdToOIDCProviderResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto oIDCProviderNode = value["OIDCProvider"];
if(!oIDCProviderNode["UpdateDate"].isNull())
oIDCProvider_.updateDate = oIDCProviderNode["UpdateDate"].asString();
if(!oIDCProviderNode["Description"].isNull())
oIDCProvider_.description = oIDCProviderNode["Description"].asString();
if(!oIDCProviderNode["OIDCProviderName"].isNull())
oIDCProvider_.oIDCProviderName = oIDCProviderNode["OIDCProviderName"].asString();
if(!oIDCProviderNode["CreateDate"].isNull())
oIDCProvider_.createDate = oIDCProviderNode["CreateDate"].asString();
if(!oIDCProviderNode["Arn"].isNull())
oIDCProvider_.arn = oIDCProviderNode["Arn"].asString();
if(!oIDCProviderNode["IssuerUrl"].isNull())
oIDCProvider_.issuerUrl = oIDCProviderNode["IssuerUrl"].asString();
if(!oIDCProviderNode["Fingerprints"].isNull())
oIDCProvider_.fingerprints = oIDCProviderNode["Fingerprints"].asString();
if(!oIDCProviderNode["ClientIds"].isNull())
oIDCProvider_.clientIds = oIDCProviderNode["ClientIds"].asString();
if(!oIDCProviderNode["GmtCreate"].isNull())
oIDCProvider_.gmtCreate = oIDCProviderNode["GmtCreate"].asString();
if(!oIDCProviderNode["GmtModified"].isNull())
oIDCProvider_.gmtModified = oIDCProviderNode["GmtModified"].asString();
if(!oIDCProviderNode["IssuanceLimitTime"].isNull())
oIDCProvider_.issuanceLimitTime = std::stol(oIDCProviderNode["IssuanceLimitTime"].asString());
}
AddClientIdToOIDCProviderResult::OIDCProvider AddClientIdToOIDCProviderResult::getOIDCProvider()const
{
return oIDCProvider_;
}

View File

@@ -0,0 +1,54 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ims/model/AddFingerprintToOIDCProviderRequest.h>
using AlibabaCloud::Ims::Model::AddFingerprintToOIDCProviderRequest;
AddFingerprintToOIDCProviderRequest::AddFingerprintToOIDCProviderRequest()
: RpcServiceRequest("ims", "2019-08-15", "AddFingerprintToOIDCProvider") {
setMethod(HttpRequest::Method::Post);
}
AddFingerprintToOIDCProviderRequest::~AddFingerprintToOIDCProviderRequest() {}
std::string AddFingerprintToOIDCProviderRequest::getAkProxySuffix() const {
return akProxySuffix_;
}
void AddFingerprintToOIDCProviderRequest::setAkProxySuffix(const std::string &akProxySuffix) {
akProxySuffix_ = akProxySuffix;
setParameter(std::string("AkProxySuffix"), akProxySuffix);
}
std::string AddFingerprintToOIDCProviderRequest::getOIDCProviderName() const {
return oIDCProviderName_;
}
void AddFingerprintToOIDCProviderRequest::setOIDCProviderName(const std::string &oIDCProviderName) {
oIDCProviderName_ = oIDCProviderName;
setParameter(std::string("OIDCProviderName"), oIDCProviderName);
}
std::string AddFingerprintToOIDCProviderRequest::getFingerprint() const {
return fingerprint_;
}
void AddFingerprintToOIDCProviderRequest::setFingerprint(const std::string &fingerprint) {
fingerprint_ = fingerprint;
setParameter(std::string("Fingerprint"), fingerprint);
}

View File

@@ -0,0 +1,72 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ims/model/AddFingerprintToOIDCProviderResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ims;
using namespace AlibabaCloud::Ims::Model;
AddFingerprintToOIDCProviderResult::AddFingerprintToOIDCProviderResult() :
ServiceResult()
{}
AddFingerprintToOIDCProviderResult::AddFingerprintToOIDCProviderResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
AddFingerprintToOIDCProviderResult::~AddFingerprintToOIDCProviderResult()
{}
void AddFingerprintToOIDCProviderResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto oIDCProviderNode = value["OIDCProvider"];
if(!oIDCProviderNode["UpdateDate"].isNull())
oIDCProvider_.updateDate = oIDCProviderNode["UpdateDate"].asString();
if(!oIDCProviderNode["Description"].isNull())
oIDCProvider_.description = oIDCProviderNode["Description"].asString();
if(!oIDCProviderNode["OIDCProviderName"].isNull())
oIDCProvider_.oIDCProviderName = oIDCProviderNode["OIDCProviderName"].asString();
if(!oIDCProviderNode["CreateDate"].isNull())
oIDCProvider_.createDate = oIDCProviderNode["CreateDate"].asString();
if(!oIDCProviderNode["Arn"].isNull())
oIDCProvider_.arn = oIDCProviderNode["Arn"].asString();
if(!oIDCProviderNode["IssuerUrl"].isNull())
oIDCProvider_.issuerUrl = oIDCProviderNode["IssuerUrl"].asString();
if(!oIDCProviderNode["Fingerprints"].isNull())
oIDCProvider_.fingerprints = oIDCProviderNode["Fingerprints"].asString();
if(!oIDCProviderNode["ClientIds"].isNull())
oIDCProvider_.clientIds = oIDCProviderNode["ClientIds"].asString();
if(!oIDCProviderNode["GmtCreate"].isNull())
oIDCProvider_.gmtCreate = oIDCProviderNode["GmtCreate"].asString();
if(!oIDCProviderNode["GmtModified"].isNull())
oIDCProvider_.gmtModified = oIDCProviderNode["GmtModified"].asString();
if(!oIDCProviderNode["IssuanceLimitTime"].isNull())
oIDCProvider_.issuanceLimitTime = std::stol(oIDCProviderNode["IssuanceLimitTime"].asString());
}
AddFingerprintToOIDCProviderResult::OIDCProvider AddFingerprintToOIDCProviderResult::getOIDCProvider()const
{
return oIDCProvider_;
}

View File

@@ -0,0 +1,63 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ims/model/AddUserToGroupRequest.h>
using AlibabaCloud::Ims::Model::AddUserToGroupRequest;
AddUserToGroupRequest::AddUserToGroupRequest()
: RpcServiceRequest("ims", "2019-08-15", "AddUserToGroup") {
setMethod(HttpRequest::Method::Post);
}
AddUserToGroupRequest::~AddUserToGroupRequest() {}
std::string AddUserToGroupRequest::getAkProxySuffix() const {
return akProxySuffix_;
}
void AddUserToGroupRequest::setAkProxySuffix(const std::string &akProxySuffix) {
akProxySuffix_ = akProxySuffix;
setParameter(std::string("AkProxySuffix"), akProxySuffix);
}
std::string AddUserToGroupRequest::getGroupName() const {
return groupName_;
}
void AddUserToGroupRequest::setGroupName(const std::string &groupName) {
groupName_ = groupName;
setParameter(std::string("GroupName"), groupName);
}
std::string AddUserToGroupRequest::getUserPrincipalName() const {
return userPrincipalName_;
}
void AddUserToGroupRequest::setUserPrincipalName(const std::string &userPrincipalName) {
userPrincipalName_ = userPrincipalName;
setParameter(std::string("UserPrincipalName"), userPrincipalName);
}
std::string AddUserToGroupRequest::getGroupPrincipalName() const {
return groupPrincipalName_;
}
void AddUserToGroupRequest::setGroupPrincipalName(const std::string &groupPrincipalName) {
groupPrincipalName_ = groupPrincipalName;
setParameter(std::string("GroupPrincipalName"), groupPrincipalName);
}

View File

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

View File

@@ -0,0 +1,126 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ims/model/BindMFADeviceRequest.h>
using AlibabaCloud::Ims::Model::BindMFADeviceRequest;
BindMFADeviceRequest::BindMFADeviceRequest()
: RpcServiceRequest("ims", "2019-08-15", "BindMFADevice") {
setMethod(HttpRequest::Method::Post);
}
BindMFADeviceRequest::~BindMFADeviceRequest() {}
std::string BindMFADeviceRequest::getAkProxySuffix() const {
return akProxySuffix_;
}
void BindMFADeviceRequest::setAkProxySuffix(const std::string &akProxySuffix) {
akProxySuffix_ = akProxySuffix;
setParameter(std::string("AkProxySuffix"), akProxySuffix);
}
std::string BindMFADeviceRequest::getU2fAppId() const {
return u2fAppId_;
}
void BindMFADeviceRequest::setU2fAppId(const std::string &u2fAppId) {
u2fAppId_ = u2fAppId;
setParameter(std::string("U2fAppId"), u2fAppId);
}
std::string BindMFADeviceRequest::getAuthenticationCode2() const {
return authenticationCode2_;
}
void BindMFADeviceRequest::setAuthenticationCode2(const std::string &authenticationCode2) {
authenticationCode2_ = authenticationCode2;
setParameter(std::string("AuthenticationCode2"), authenticationCode2);
}
std::string BindMFADeviceRequest::getType() const {
return type_;
}
void BindMFADeviceRequest::setType(const std::string &type) {
type_ = type;
setParameter(std::string("Type"), type);
}
std::string BindMFADeviceRequest::getAuthenticationCode1() const {
return authenticationCode1_;
}
void BindMFADeviceRequest::setAuthenticationCode1(const std::string &authenticationCode1) {
authenticationCode1_ = authenticationCode1;
setParameter(std::string("AuthenticationCode1"), authenticationCode1);
}
std::string BindMFADeviceRequest::getU2fPublicKey() const {
return u2fPublicKey_;
}
void BindMFADeviceRequest::setU2fPublicKey(const std::string &u2fPublicKey) {
u2fPublicKey_ = u2fPublicKey;
setParameter(std::string("U2fPublicKey"), u2fPublicKey);
}
std::string BindMFADeviceRequest::getU2fVersion() const {
return u2fVersion_;
}
void BindMFADeviceRequest::setU2fVersion(const std::string &u2fVersion) {
u2fVersion_ = u2fVersion;
setParameter(std::string("U2fVersion"), u2fVersion);
}
std::string BindMFADeviceRequest::getSerialNumber() const {
return serialNumber_;
}
void BindMFADeviceRequest::setSerialNumber(const std::string &serialNumber) {
serialNumber_ = serialNumber;
setParameter(std::string("SerialNumber"), serialNumber);
}
std::string BindMFADeviceRequest::getU2fKeyHandler() const {
return u2fKeyHandler_;
}
void BindMFADeviceRequest::setU2fKeyHandler(const std::string &u2fKeyHandler) {
u2fKeyHandler_ = u2fKeyHandler;
setParameter(std::string("U2fKeyHandler"), u2fKeyHandler);
}
std::string BindMFADeviceRequest::getUserPrincipalName() const {
return userPrincipalName_;
}
void BindMFADeviceRequest::setUserPrincipalName(const std::string &userPrincipalName) {
userPrincipalName_ = userPrincipalName;
setParameter(std::string("UserPrincipalName"), userPrincipalName);
}
std::string BindMFADeviceRequest::getU2fAttestationCert() const {
return u2fAttestationCert_;
}
void BindMFADeviceRequest::setU2fAttestationCert(const std::string &u2fAttestationCert) {
u2fAttestationCert_ = u2fAttestationCert;
setParameter(std::string("U2fAttestationCert"), u2fAttestationCert);
}

View File

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

View File

@@ -0,0 +1,54 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ims/model/ChangePasswordRequest.h>
using AlibabaCloud::Ims::Model::ChangePasswordRequest;
ChangePasswordRequest::ChangePasswordRequest()
: RpcServiceRequest("ims", "2019-08-15", "ChangePassword") {
setMethod(HttpRequest::Method::Post);
}
ChangePasswordRequest::~ChangePasswordRequest() {}
std::string ChangePasswordRequest::getAkProxySuffix() const {
return akProxySuffix_;
}
void ChangePasswordRequest::setAkProxySuffix(const std::string &akProxySuffix) {
akProxySuffix_ = akProxySuffix;
setParameter(std::string("AkProxySuffix"), akProxySuffix);
}
std::string ChangePasswordRequest::getOldPassword() const {
return oldPassword_;
}
void ChangePasswordRequest::setOldPassword(const std::string &oldPassword) {
oldPassword_ = oldPassword;
setParameter(std::string("OldPassword"), oldPassword);
}
std::string ChangePasswordRequest::getNewPassword() const {
return newPassword_;
}
void ChangePasswordRequest::setNewPassword(const std::string &newPassword) {
newPassword_ = newPassword;
setParameter(std::string("NewPassword"), newPassword);
}

View File

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

View File

@@ -0,0 +1,45 @@
/*
* 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/ims/model/CreateAccessKeyRequest.h>
using AlibabaCloud::Ims::Model::CreateAccessKeyRequest;
CreateAccessKeyRequest::CreateAccessKeyRequest()
: RpcServiceRequest("ims", "2019-08-15", "CreateAccessKey") {
setMethod(HttpRequest::Method::Post);
}
CreateAccessKeyRequest::~CreateAccessKeyRequest() {}
std::string CreateAccessKeyRequest::getAkProxySuffix() const {
return akProxySuffix_;
}
void CreateAccessKeyRequest::setAkProxySuffix(const std::string &akProxySuffix) {
akProxySuffix_ = akProxySuffix;
setParameter(std::string("AkProxySuffix"), akProxySuffix);
}
std::string CreateAccessKeyRequest::getUserPrincipalName() const {
return userPrincipalName_;
}
void CreateAccessKeyRequest::setUserPrincipalName(const std::string &userPrincipalName) {
userPrincipalName_ = userPrincipalName;
setParameter(std::string("UserPrincipalName"), userPrincipalName);
}

View 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/ims/model/CreateAccessKeyResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ims;
using namespace AlibabaCloud::Ims::Model;
CreateAccessKeyResult::CreateAccessKeyResult() :
ServiceResult()
{}
CreateAccessKeyResult::CreateAccessKeyResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateAccessKeyResult::~CreateAccessKeyResult()
{}
void CreateAccessKeyResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto accessKeyNode = value["AccessKey"];
if(!accessKeyNode["Status"].isNull())
accessKey_.status = accessKeyNode["Status"].asString();
if(!accessKeyNode["AccessKeySecret"].isNull())
accessKey_.accessKeySecret = accessKeyNode["AccessKeySecret"].asString();
if(!accessKeyNode["AccessKeyId"].isNull())
accessKey_.accessKeyId = accessKeyNode["AccessKeyId"].asString();
if(!accessKeyNode["CreateDate"].isNull())
accessKey_.createDate = accessKeyNode["CreateDate"].asString();
}
CreateAccessKeyResult::AccessKey CreateAccessKeyResult::getAccessKey()const
{
return accessKey_;
}

View File

@@ -0,0 +1,45 @@
/*
* 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/ims/model/CreateAppSecretRequest.h>
using AlibabaCloud::Ims::Model::CreateAppSecretRequest;
CreateAppSecretRequest::CreateAppSecretRequest()
: RpcServiceRequest("ims", "2019-08-15", "CreateAppSecret") {
setMethod(HttpRequest::Method::Post);
}
CreateAppSecretRequest::~CreateAppSecretRequest() {}
std::string CreateAppSecretRequest::getAkProxySuffix() const {
return akProxySuffix_;
}
void CreateAppSecretRequest::setAkProxySuffix(const std::string &akProxySuffix) {
akProxySuffix_ = akProxySuffix;
setParameter(std::string("AkProxySuffix"), akProxySuffix);
}
std::string CreateAppSecretRequest::getAppId() const {
return appId_;
}
void CreateAppSecretRequest::setAppId(const std::string &appId) {
appId_ = appId;
setParameter(std::string("AppId"), appId);
}

View 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/ims/model/CreateAppSecretResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ims;
using namespace AlibabaCloud::Ims::Model;
CreateAppSecretResult::CreateAppSecretResult() :
ServiceResult()
{}
CreateAppSecretResult::CreateAppSecretResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateAppSecretResult::~CreateAppSecretResult()
{}
void CreateAppSecretResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto appSecretNode = value["AppSecret"];
if(!appSecretNode["AppSecretValue"].isNull())
appSecret_.appSecretValue = appSecretNode["AppSecretValue"].asString();
if(!appSecretNode["AppId"].isNull())
appSecret_.appId = appSecretNode["AppId"].asString();
if(!appSecretNode["AppSecretId"].isNull())
appSecret_.appSecretId = appSecretNode["AppSecretId"].asString();
if(!appSecretNode["CreateDate"].isNull())
appSecret_.createDate = appSecretNode["CreateDate"].asString();
}
CreateAppSecretResult::AppSecret CreateAppSecretResult::getAppSecret()const
{
return appSecret_;
}

View File

@@ -0,0 +1,135 @@
/*
* 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/ims/model/CreateApplicationRequest.h>
using AlibabaCloud::Ims::Model::CreateApplicationRequest;
CreateApplicationRequest::CreateApplicationRequest()
: RpcServiceRequest("ims", "2019-08-15", "CreateApplication") {
setMethod(HttpRequest::Method::Post);
}
CreateApplicationRequest::~CreateApplicationRequest() {}
std::string CreateApplicationRequest::getAkProxySuffix() const {
return akProxySuffix_;
}
void CreateApplicationRequest::setAkProxySuffix(const std::string &akProxySuffix) {
akProxySuffix_ = akProxySuffix;
setParameter(std::string("AkProxySuffix"), akProxySuffix);
}
std::string CreateApplicationRequest::getAppName() const {
return appName_;
}
void CreateApplicationRequest::setAppName(const std::string &appName) {
appName_ = appName;
setParameter(std::string("AppName"), appName);
}
std::string CreateApplicationRequest::getRequiredScopes() const {
return requiredScopes_;
}
void CreateApplicationRequest::setRequiredScopes(const std::string &requiredScopes) {
requiredScopes_ = requiredScopes;
setParameter(std::string("RequiredScopes"), requiredScopes);
}
int CreateApplicationRequest::getAccessTokenValidity() const {
return accessTokenValidity_;
}
void CreateApplicationRequest::setAccessTokenValidity(int accessTokenValidity) {
accessTokenValidity_ = accessTokenValidity;
setParameter(std::string("AccessTokenValidity"), std::to_string(accessTokenValidity));
}
int CreateApplicationRequest::getRefreshTokenValidity() const {
return refreshTokenValidity_;
}
void CreateApplicationRequest::setRefreshTokenValidity(int refreshTokenValidity) {
refreshTokenValidity_ = refreshTokenValidity;
setParameter(std::string("RefreshTokenValidity"), std::to_string(refreshTokenValidity));
}
std::string CreateApplicationRequest::getRedirectUris() const {
return redirectUris_;
}
void CreateApplicationRequest::setRedirectUris(const std::string &redirectUris) {
redirectUris_ = redirectUris;
setParameter(std::string("RedirectUris"), redirectUris);
}
bool CreateApplicationRequest::getSecretRequired() const {
return secretRequired_;
}
void CreateApplicationRequest::setSecretRequired(bool secretRequired) {
secretRequired_ = secretRequired;
setParameter(std::string("SecretRequired"), secretRequired ? "true" : "false");
}
std::string CreateApplicationRequest::getAppType() const {
return appType_;
}
void CreateApplicationRequest::setAppType(const std::string &appType) {
appType_ = appType;
setParameter(std::string("AppType"), appType);
}
std::string CreateApplicationRequest::getAppPrincipalName() const {
return appPrincipalName_;
}
void CreateApplicationRequest::setAppPrincipalName(const std::string &appPrincipalName) {
appPrincipalName_ = appPrincipalName;
setParameter(std::string("AppPrincipalName"), appPrincipalName);
}
std::string CreateApplicationRequest::getDisplayName() const {
return displayName_;
}
void CreateApplicationRequest::setDisplayName(const std::string &displayName) {
displayName_ = displayName;
setParameter(std::string("DisplayName"), displayName);
}
std::string CreateApplicationRequest::getPredefinedScopes() const {
return predefinedScopes_;
}
void CreateApplicationRequest::setPredefinedScopes(const std::string &predefinedScopes) {
predefinedScopes_ = predefinedScopes;
setParameter(std::string("PredefinedScopes"), predefinedScopes);
}
bool CreateApplicationRequest::getIsMultiTenant() const {
return isMultiTenant_;
}
void CreateApplicationRequest::setIsMultiTenant(bool isMultiTenant) {
isMultiTenant_ = isMultiTenant;
setParameter(std::string("IsMultiTenant"), isMultiTenant ? "true" : "false");
}

View 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/ims/model/CreateApplicationResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ims;
using namespace AlibabaCloud::Ims::Model;
CreateApplicationResult::CreateApplicationResult() :
ServiceResult()
{}
CreateApplicationResult::CreateApplicationResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateApplicationResult::~CreateApplicationResult()
{}
void CreateApplicationResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto applicationNode = value["Application"];
if(!applicationNode["DisplayName"].isNull())
application_.displayName = applicationNode["DisplayName"].asString();
if(!applicationNode["AccessTokenValidity"].isNull())
application_.accessTokenValidity = std::stoi(applicationNode["AccessTokenValidity"].asString());
if(!applicationNode["SecretRequired"].isNull())
application_.secretRequired = applicationNode["SecretRequired"].asString() == "true";
if(!applicationNode["AccountId"].isNull())
application_.accountId = applicationNode["AccountId"].asString();
if(!applicationNode["CreateDate"].isNull())
application_.createDate = applicationNode["CreateDate"].asString();
if(!applicationNode["AppName"].isNull())
application_.appName = applicationNode["AppName"].asString();
if(!applicationNode["UpdateDate"].isNull())
application_.updateDate = applicationNode["UpdateDate"].asString();
if(!applicationNode["AppId"].isNull())
application_.appId = applicationNode["AppId"].asString();
if(!applicationNode["RefreshTokenValidity"].isNull())
application_.refreshTokenValidity = std::stoi(applicationNode["RefreshTokenValidity"].asString());
if(!applicationNode["AppPrincipalName"].isNull())
application_.appPrincipalName = applicationNode["AppPrincipalName"].asString();
if(!applicationNode["IsMultiTenant"].isNull())
application_.isMultiTenant = applicationNode["IsMultiTenant"].asString() == "true";
if(!applicationNode["AppType"].isNull())
application_.appType = applicationNode["AppType"].asString();
if(!applicationNode["TenantId"].isNull())
application_.tenantId = applicationNode["TenantId"].asString();
auto delegatedScopeNode = applicationNode["DelegatedScope"];
auto allPredefinedScopesNode = delegatedScopeNode["PredefinedScopes"]["PredefinedScope"];
for (auto delegatedScopeNodePredefinedScopesPredefinedScope : allPredefinedScopesNode)
{
Application::DelegatedScope::PredefinedScope predefinedScopeObject;
if(!delegatedScopeNodePredefinedScopesPredefinedScope["Description"].isNull())
predefinedScopeObject.description = delegatedScopeNodePredefinedScopesPredefinedScope["Description"].asString();
if(!delegatedScopeNodePredefinedScopesPredefinedScope["Required"].isNull())
predefinedScopeObject.required = delegatedScopeNodePredefinedScopesPredefinedScope["Required"].asString() == "true";
if(!delegatedScopeNodePredefinedScopesPredefinedScope["Name"].isNull())
predefinedScopeObject.name = delegatedScopeNodePredefinedScopesPredefinedScope["Name"].asString();
application_.delegatedScope.predefinedScopes.push_back(predefinedScopeObject);
}
auto allRedirectUris = applicationNode["RedirectUris"]["RedirectUri"];
for (auto value : allRedirectUris)
application_.redirectUris.push_back(value.asString());
}
CreateApplicationResult::Application CreateApplicationResult::getApplication()const
{
return application_;
}

View File

@@ -0,0 +1,72 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ims/model/CreateGroupRequest.h>
using AlibabaCloud::Ims::Model::CreateGroupRequest;
CreateGroupRequest::CreateGroupRequest()
: RpcServiceRequest("ims", "2019-08-15", "CreateGroup") {
setMethod(HttpRequest::Method::Post);
}
CreateGroupRequest::~CreateGroupRequest() {}
std::string CreateGroupRequest::getAkProxySuffix() const {
return akProxySuffix_;
}
void CreateGroupRequest::setAkProxySuffix(const std::string &akProxySuffix) {
akProxySuffix_ = akProxySuffix;
setParameter(std::string("AkProxySuffix"), akProxySuffix);
}
std::string CreateGroupRequest::getComments() const {
return comments_;
}
void CreateGroupRequest::setComments(const std::string &comments) {
comments_ = comments;
setParameter(std::string("Comments"), comments);
}
std::string CreateGroupRequest::getGroupName() const {
return groupName_;
}
void CreateGroupRequest::setGroupName(const std::string &groupName) {
groupName_ = groupName;
setParameter(std::string("GroupName"), groupName);
}
std::string CreateGroupRequest::getDisplayName() const {
return displayName_;
}
void CreateGroupRequest::setDisplayName(const std::string &displayName) {
displayName_ = displayName;
setParameter(std::string("DisplayName"), displayName);
}
std::string CreateGroupRequest::getGroupPrincipalName() const {
return groupPrincipalName_;
}
void CreateGroupRequest::setGroupPrincipalName(const std::string &groupPrincipalName) {
groupPrincipalName_ = groupPrincipalName;
setParameter(std::string("GroupPrincipalName"), groupPrincipalName);
}

View File

@@ -0,0 +1,64 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ims/model/CreateGroupResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ims;
using namespace AlibabaCloud::Ims::Model;
CreateGroupResult::CreateGroupResult() :
ServiceResult()
{}
CreateGroupResult::CreateGroupResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateGroupResult::~CreateGroupResult()
{}
void CreateGroupResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto groupNode = value["Group"];
if(!groupNode["DisplayName"].isNull())
group_.displayName = groupNode["DisplayName"].asString();
if(!groupNode["GroupPrincipalName"].isNull())
group_.groupPrincipalName = groupNode["GroupPrincipalName"].asString();
if(!groupNode["GroupId"].isNull())
group_.groupId = groupNode["GroupId"].asString();
if(!groupNode["UpdateDate"].isNull())
group_.updateDate = groupNode["UpdateDate"].asString();
if(!groupNode["GroupName"].isNull())
group_.groupName = groupNode["GroupName"].asString();
if(!groupNode["Comments"].isNull())
group_.comments = groupNode["Comments"].asString();
if(!groupNode["CreateDate"].isNull())
group_.createDate = groupNode["CreateDate"].asString();
}
CreateGroupResult::Group CreateGroupResult::getGroup()const
{
return group_;
}

View File

@@ -0,0 +1,90 @@
/*
* 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/ims/model/CreateLoginProfileRequest.h>
using AlibabaCloud::Ims::Model::CreateLoginProfileRequest;
CreateLoginProfileRequest::CreateLoginProfileRequest()
: RpcServiceRequest("ims", "2019-08-15", "CreateLoginProfile") {
setMethod(HttpRequest::Method::Post);
}
CreateLoginProfileRequest::~CreateLoginProfileRequest() {}
std::string CreateLoginProfileRequest::getAkProxySuffix() const {
return akProxySuffix_;
}
void CreateLoginProfileRequest::setAkProxySuffix(const std::string &akProxySuffix) {
akProxySuffix_ = akProxySuffix;
setParameter(std::string("AkProxySuffix"), akProxySuffix);
}
std::string CreateLoginProfileRequest::getPassword() const {
return password_;
}
void CreateLoginProfileRequest::setPassword(const std::string &password) {
password_ = password;
setParameter(std::string("Password"), password);
}
bool CreateLoginProfileRequest::getGenerateRandomPassword() const {
return generateRandomPassword_;
}
void CreateLoginProfileRequest::setGenerateRandomPassword(bool generateRandomPassword) {
generateRandomPassword_ = generateRandomPassword;
setParameter(std::string("GenerateRandomPassword"), generateRandomPassword ? "true" : "false");
}
bool CreateLoginProfileRequest::getMFABindRequired() const {
return mFABindRequired_;
}
void CreateLoginProfileRequest::setMFABindRequired(bool mFABindRequired) {
mFABindRequired_ = mFABindRequired;
setParameter(std::string("MFABindRequired"), mFABindRequired ? "true" : "false");
}
bool CreateLoginProfileRequest::getPasswordResetRequired() const {
return passwordResetRequired_;
}
void CreateLoginProfileRequest::setPasswordResetRequired(bool passwordResetRequired) {
passwordResetRequired_ = passwordResetRequired;
setParameter(std::string("PasswordResetRequired"), passwordResetRequired ? "true" : "false");
}
std::string CreateLoginProfileRequest::getUserPrincipalName() const {
return userPrincipalName_;
}
void CreateLoginProfileRequest::setUserPrincipalName(const std::string &userPrincipalName) {
userPrincipalName_ = userPrincipalName;
setParameter(std::string("UserPrincipalName"), userPrincipalName);
}
std::string CreateLoginProfileRequest::getStatus() const {
return status_;
}
void CreateLoginProfileRequest::setStatus(const std::string &status) {
status_ = status;
setParameter(std::string("Status"), status);
}

View File

@@ -0,0 +1,64 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ims/model/CreateLoginProfileResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ims;
using namespace AlibabaCloud::Ims::Model;
CreateLoginProfileResult::CreateLoginProfileResult() :
ServiceResult()
{}
CreateLoginProfileResult::CreateLoginProfileResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateLoginProfileResult::~CreateLoginProfileResult()
{}
void CreateLoginProfileResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto loginProfileNode = value["LoginProfile"];
if(!loginProfileNode["UserPrincipalName"].isNull())
loginProfile_.userPrincipalName = loginProfileNode["UserPrincipalName"].asString();
if(!loginProfileNode["Status"].isNull())
loginProfile_.status = loginProfileNode["Status"].asString();
if(!loginProfileNode["Password"].isNull())
loginProfile_.password = loginProfileNode["Password"].asString();
if(!loginProfileNode["UpdateDate"].isNull())
loginProfile_.updateDate = loginProfileNode["UpdateDate"].asString();
if(!loginProfileNode["PasswordResetRequired"].isNull())
loginProfile_.passwordResetRequired = loginProfileNode["PasswordResetRequired"].asString() == "true";
if(!loginProfileNode["MFABindRequired"].isNull())
loginProfile_.mFABindRequired = loginProfileNode["MFABindRequired"].asString() == "true";
if(!loginProfileNode["CreateDate"].isNull())
loginProfile_.createDate = loginProfileNode["CreateDate"].asString();
}
CreateLoginProfileResult::LoginProfile CreateLoginProfileResult::getLoginProfile()const
{
return loginProfile_;
}

View File

@@ -0,0 +1,90 @@
/*
* 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/ims/model/CreateOIDCProviderRequest.h>
using AlibabaCloud::Ims::Model::CreateOIDCProviderRequest;
CreateOIDCProviderRequest::CreateOIDCProviderRequest()
: RpcServiceRequest("ims", "2019-08-15", "CreateOIDCProvider") {
setMethod(HttpRequest::Method::Post);
}
CreateOIDCProviderRequest::~CreateOIDCProviderRequest() {}
long CreateOIDCProviderRequest::getIssuanceLimitTime() const {
return issuanceLimitTime_;
}
void CreateOIDCProviderRequest::setIssuanceLimitTime(long issuanceLimitTime) {
issuanceLimitTime_ = issuanceLimitTime;
setParameter(std::string("IssuanceLimitTime"), std::to_string(issuanceLimitTime));
}
std::string CreateOIDCProviderRequest::getAkProxySuffix() const {
return akProxySuffix_;
}
void CreateOIDCProviderRequest::setAkProxySuffix(const std::string &akProxySuffix) {
akProxySuffix_ = akProxySuffix;
setParameter(std::string("AkProxySuffix"), akProxySuffix);
}
std::string CreateOIDCProviderRequest::getIssuerUrl() const {
return issuerUrl_;
}
void CreateOIDCProviderRequest::setIssuerUrl(const std::string &issuerUrl) {
issuerUrl_ = issuerUrl;
setParameter(std::string("IssuerUrl"), issuerUrl);
}
std::string CreateOIDCProviderRequest::getOIDCProviderName() const {
return oIDCProviderName_;
}
void CreateOIDCProviderRequest::setOIDCProviderName(const std::string &oIDCProviderName) {
oIDCProviderName_ = oIDCProviderName;
setParameter(std::string("OIDCProviderName"), oIDCProviderName);
}
std::string CreateOIDCProviderRequest::getDescription() const {
return description_;
}
void CreateOIDCProviderRequest::setDescription(const std::string &description) {
description_ = description;
setParameter(std::string("Description"), description);
}
std::string CreateOIDCProviderRequest::getClientIds() const {
return clientIds_;
}
void CreateOIDCProviderRequest::setClientIds(const std::string &clientIds) {
clientIds_ = clientIds;
setParameter(std::string("ClientIds"), clientIds);
}
std::string CreateOIDCProviderRequest::getFingerprints() const {
return fingerprints_;
}
void CreateOIDCProviderRequest::setFingerprints(const std::string &fingerprints) {
fingerprints_ = fingerprints;
setParameter(std::string("Fingerprints"), fingerprints);
}

View File

@@ -0,0 +1,72 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ims/model/CreateOIDCProviderResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ims;
using namespace AlibabaCloud::Ims::Model;
CreateOIDCProviderResult::CreateOIDCProviderResult() :
ServiceResult()
{}
CreateOIDCProviderResult::CreateOIDCProviderResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateOIDCProviderResult::~CreateOIDCProviderResult()
{}
void CreateOIDCProviderResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto oIDCProviderNode = value["OIDCProvider"];
if(!oIDCProviderNode["UpdateDate"].isNull())
oIDCProvider_.updateDate = oIDCProviderNode["UpdateDate"].asString();
if(!oIDCProviderNode["Description"].isNull())
oIDCProvider_.description = oIDCProviderNode["Description"].asString();
if(!oIDCProviderNode["OIDCProviderName"].isNull())
oIDCProvider_.oIDCProviderName = oIDCProviderNode["OIDCProviderName"].asString();
if(!oIDCProviderNode["CreateDate"].isNull())
oIDCProvider_.createDate = oIDCProviderNode["CreateDate"].asString();
if(!oIDCProviderNode["Arn"].isNull())
oIDCProvider_.arn = oIDCProviderNode["Arn"].asString();
if(!oIDCProviderNode["IssuerUrl"].isNull())
oIDCProvider_.issuerUrl = oIDCProviderNode["IssuerUrl"].asString();
if(!oIDCProviderNode["Fingerprints"].isNull())
oIDCProvider_.fingerprints = oIDCProviderNode["Fingerprints"].asString();
if(!oIDCProviderNode["ClientIds"].isNull())
oIDCProvider_.clientIds = oIDCProviderNode["ClientIds"].asString();
if(!oIDCProviderNode["GmtCreate"].isNull())
oIDCProvider_.gmtCreate = oIDCProviderNode["GmtCreate"].asString();
if(!oIDCProviderNode["GmtModified"].isNull())
oIDCProvider_.gmtModified = oIDCProviderNode["GmtModified"].asString();
if(!oIDCProviderNode["IssuanceLimitTime"].isNull())
oIDCProvider_.issuanceLimitTime = std::stol(oIDCProviderNode["IssuanceLimitTime"].asString());
}
CreateOIDCProviderResult::OIDCProvider CreateOIDCProviderResult::getOIDCProvider()const
{
return oIDCProvider_;
}

View File

@@ -0,0 +1,72 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ims/model/CreateSAMLProviderRequest.h>
using AlibabaCloud::Ims::Model::CreateSAMLProviderRequest;
CreateSAMLProviderRequest::CreateSAMLProviderRequest()
: RpcServiceRequest("ims", "2019-08-15", "CreateSAMLProvider") {
setMethod(HttpRequest::Method::Post);
}
CreateSAMLProviderRequest::~CreateSAMLProviderRequest() {}
std::string CreateSAMLProviderRequest::getAkProxySuffix() const {
return akProxySuffix_;
}
void CreateSAMLProviderRequest::setAkProxySuffix(const std::string &akProxySuffix) {
akProxySuffix_ = akProxySuffix;
setParameter(std::string("AkProxySuffix"), akProxySuffix);
}
std::string CreateSAMLProviderRequest::getDescription() const {
return description_;
}
void CreateSAMLProviderRequest::setDescription(const std::string &description) {
description_ = description;
setParameter(std::string("Description"), description);
}
std::string CreateSAMLProviderRequest::getSAMLMetadataDocument() const {
return sAMLMetadataDocument_;
}
void CreateSAMLProviderRequest::setSAMLMetadataDocument(const std::string &sAMLMetadataDocument) {
sAMLMetadataDocument_ = sAMLMetadataDocument;
setParameter(std::string("SAMLMetadataDocument"), sAMLMetadataDocument);
}
std::string CreateSAMLProviderRequest::getEncodedSAMLMetadataDocument() const {
return encodedSAMLMetadataDocument_;
}
void CreateSAMLProviderRequest::setEncodedSAMLMetadataDocument(const std::string &encodedSAMLMetadataDocument) {
encodedSAMLMetadataDocument_ = encodedSAMLMetadataDocument;
setParameter(std::string("EncodedSAMLMetadataDocument"), encodedSAMLMetadataDocument);
}
std::string CreateSAMLProviderRequest::getSAMLProviderName() const {
return sAMLProviderName_;
}
void CreateSAMLProviderRequest::setSAMLProviderName(const std::string &sAMLProviderName) {
sAMLProviderName_ = sAMLProviderName;
setParameter(std::string("SAMLProviderName"), sAMLProviderName);
}

View 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/ims/model/CreateSAMLProviderResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ims;
using namespace AlibabaCloud::Ims::Model;
CreateSAMLProviderResult::CreateSAMLProviderResult() :
ServiceResult()
{}
CreateSAMLProviderResult::CreateSAMLProviderResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateSAMLProviderResult::~CreateSAMLProviderResult()
{}
void CreateSAMLProviderResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto sAMLProviderNode = value["SAMLProvider"];
if(!sAMLProviderNode["UpdateDate"].isNull())
sAMLProvider_.updateDate = sAMLProviderNode["UpdateDate"].asString();
if(!sAMLProviderNode["Description"].isNull())
sAMLProvider_.description = sAMLProviderNode["Description"].asString();
if(!sAMLProviderNode["SAMLProviderName"].isNull())
sAMLProvider_.sAMLProviderName = sAMLProviderNode["SAMLProviderName"].asString();
if(!sAMLProviderNode["CreateDate"].isNull())
sAMLProvider_.createDate = sAMLProviderNode["CreateDate"].asString();
if(!sAMLProviderNode["Arn"].isNull())
sAMLProvider_.arn = sAMLProviderNode["Arn"].asString();
}
CreateSAMLProviderResult::SAMLProvider CreateSAMLProviderResult::getSAMLProvider()const
{
return sAMLProvider_;
}

View File

@@ -0,0 +1,104 @@
/*
* 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/ims/model/CreateUserRequest.h>
using AlibabaCloud::Ims::Model::CreateUserRequest;
CreateUserRequest::CreateUserRequest()
: RpcServiceRequest("ims", "2019-08-15", "CreateUser") {
setMethod(HttpRequest::Method::Post);
}
CreateUserRequest::~CreateUserRequest() {}
std::string CreateUserRequest::getAkProxySuffix() const {
return akProxySuffix_;
}
void CreateUserRequest::setAkProxySuffix(const std::string &akProxySuffix) {
akProxySuffix_ = akProxySuffix;
setParameter(std::string("AkProxySuffix"), akProxySuffix);
}
std::string CreateUserRequest::getExternalId() const {
return externalId_;
}
void CreateUserRequest::setExternalId(const std::string &externalId) {
externalId_ = externalId;
setParameter(std::string("ExternalId"), externalId);
}
std::string CreateUserRequest::getMobilePhone() const {
return mobilePhone_;
}
void CreateUserRequest::setMobilePhone(const std::string &mobilePhone) {
mobilePhone_ = mobilePhone;
setParameter(std::string("MobilePhone"), mobilePhone);
}
std::vector<CreateUserRequest::Tag> CreateUserRequest::getTag() const {
return tag_;
}
void CreateUserRequest::setTag(const std::vector<CreateUserRequest::Tag> &tag) {
tag_ = tag;
for(int dep1 = 0; dep1 != tag.size(); dep1++) {
auto tagObj = tag.at(dep1);
std::string tagObjStr = std::string("Tag") + "." + std::to_string(dep1 + 1);
setParameter(tagObjStr + ".Value", tagObj.value);
setParameter(tagObjStr + ".Key", tagObj.key);
}
}
std::string CreateUserRequest::getEmail() const {
return email_;
}
void CreateUserRequest::setEmail(const std::string &email) {
email_ = email;
setParameter(std::string("Email"), email);
}
std::string CreateUserRequest::getComments() const {
return comments_;
}
void CreateUserRequest::setComments(const std::string &comments) {
comments_ = comments;
setParameter(std::string("Comments"), comments);
}
std::string CreateUserRequest::getUserPrincipalName() const {
return userPrincipalName_;
}
void CreateUserRequest::setUserPrincipalName(const std::string &userPrincipalName) {
userPrincipalName_ = userPrincipalName;
setParameter(std::string("UserPrincipalName"), userPrincipalName);
}
std::string CreateUserRequest::getDisplayName() const {
return displayName_;
}
void CreateUserRequest::setDisplayName(const std::string &displayName) {
displayName_ = displayName;
setParameter(std::string("DisplayName"), displayName);
}

View File

@@ -0,0 +1,82 @@
/*
* 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/ims/model/CreateUserResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ims;
using namespace AlibabaCloud::Ims::Model;
CreateUserResult::CreateUserResult() :
ServiceResult()
{}
CreateUserResult::CreateUserResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateUserResult::~CreateUserResult()
{}
void CreateUserResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto userNode = value["User"];
if(!userNode["DisplayName"].isNull())
user_.displayName = userNode["DisplayName"].asString();
if(!userNode["UserPrincipalName"].isNull())
user_.userPrincipalName = userNode["UserPrincipalName"].asString();
if(!userNode["Email"].isNull())
user_.email = userNode["Email"].asString();
if(!userNode["UpdateDate"].isNull())
user_.updateDate = userNode["UpdateDate"].asString();
if(!userNode["MobilePhone"].isNull())
user_.mobilePhone = userNode["MobilePhone"].asString();
if(!userNode["UserId"].isNull())
user_.userId = userNode["UserId"].asString();
if(!userNode["Comments"].isNull())
user_.comments = userNode["Comments"].asString();
if(!userNode["LastLoginDate"].isNull())
user_.lastLoginDate = userNode["LastLoginDate"].asString();
if(!userNode["CreateDate"].isNull())
user_.createDate = userNode["CreateDate"].asString();
if(!userNode["ProvisionType"].isNull())
user_.provisionType = userNode["ProvisionType"].asString();
if(!userNode["ExternalId"].isNull())
user_.externalId = userNode["ExternalId"].asString();
auto allTagsNode = userNode["Tags"]["Tag"];
for (auto userNodeTagsTag : allTagsNode)
{
User::Tag tagObject;
if(!userNodeTagsTag["TagKey"].isNull())
tagObject.tagKey = userNodeTagsTag["TagKey"].asString();
if(!userNodeTagsTag["TagValue"].isNull())
tagObject.tagValue = userNodeTagsTag["TagValue"].asString();
user_.tags.push_back(tagObject);
}
}
CreateUserResult::User CreateUserResult::getUser()const
{
return user_;
}

View File

@@ -0,0 +1,45 @@
/*
* 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/ims/model/CreateVirtualMFADeviceRequest.h>
using AlibabaCloud::Ims::Model::CreateVirtualMFADeviceRequest;
CreateVirtualMFADeviceRequest::CreateVirtualMFADeviceRequest()
: RpcServiceRequest("ims", "2019-08-15", "CreateVirtualMFADevice") {
setMethod(HttpRequest::Method::Post);
}
CreateVirtualMFADeviceRequest::~CreateVirtualMFADeviceRequest() {}
std::string CreateVirtualMFADeviceRequest::getVirtualMFADeviceName() const {
return virtualMFADeviceName_;
}
void CreateVirtualMFADeviceRequest::setVirtualMFADeviceName(const std::string &virtualMFADeviceName) {
virtualMFADeviceName_ = virtualMFADeviceName;
setParameter(std::string("VirtualMFADeviceName"), virtualMFADeviceName);
}
std::string CreateVirtualMFADeviceRequest::getAkProxySuffix() const {
return akProxySuffix_;
}
void CreateVirtualMFADeviceRequest::setAkProxySuffix(const std::string &akProxySuffix) {
akProxySuffix_ = akProxySuffix;
setParameter(std::string("AkProxySuffix"), akProxySuffix);
}

View 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/ims/model/CreateVirtualMFADeviceResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ims;
using namespace AlibabaCloud::Ims::Model;
CreateVirtualMFADeviceResult::CreateVirtualMFADeviceResult() :
ServiceResult()
{}
CreateVirtualMFADeviceResult::CreateVirtualMFADeviceResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateVirtualMFADeviceResult::~CreateVirtualMFADeviceResult()
{}
void CreateVirtualMFADeviceResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto virtualMFADeviceNode = value["VirtualMFADevice"];
if(!virtualMFADeviceNode["SerialNumber"].isNull())
virtualMFADevice_.serialNumber = virtualMFADeviceNode["SerialNumber"].asString();
if(!virtualMFADeviceNode["QRCodePNG"].isNull())
virtualMFADevice_.qRCodePNG = virtualMFADeviceNode["QRCodePNG"].asString();
if(!virtualMFADeviceNode["Base32StringSeed"].isNull())
virtualMFADevice_.base32StringSeed = virtualMFADeviceNode["Base32StringSeed"].asString();
}
CreateVirtualMFADeviceResult::VirtualMFADevice CreateVirtualMFADeviceResult::getVirtualMFADevice()const
{
return virtualMFADevice_;
}

View File

@@ -0,0 +1,54 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ims/model/DeleteAccessKeyRequest.h>
using AlibabaCloud::Ims::Model::DeleteAccessKeyRequest;
DeleteAccessKeyRequest::DeleteAccessKeyRequest()
: RpcServiceRequest("ims", "2019-08-15", "DeleteAccessKey") {
setMethod(HttpRequest::Method::Post);
}
DeleteAccessKeyRequest::~DeleteAccessKeyRequest() {}
std::string DeleteAccessKeyRequest::getUserAccessKeyId() const {
return userAccessKeyId_;
}
void DeleteAccessKeyRequest::setUserAccessKeyId(const std::string &userAccessKeyId) {
userAccessKeyId_ = userAccessKeyId;
setParameter(std::string("UserAccessKeyId"), userAccessKeyId);
}
std::string DeleteAccessKeyRequest::getAkProxySuffix() const {
return akProxySuffix_;
}
void DeleteAccessKeyRequest::setAkProxySuffix(const std::string &akProxySuffix) {
akProxySuffix_ = akProxySuffix;
setParameter(std::string("AkProxySuffix"), akProxySuffix);
}
std::string DeleteAccessKeyRequest::getUserPrincipalName() const {
return userPrincipalName_;
}
void DeleteAccessKeyRequest::setUserPrincipalName(const std::string &userPrincipalName) {
userPrincipalName_ = userPrincipalName;
setParameter(std::string("UserPrincipalName"), userPrincipalName);
}

View File

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

View File

@@ -0,0 +1,54 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ims/model/DeleteAppSecretRequest.h>
using AlibabaCloud::Ims::Model::DeleteAppSecretRequest;
DeleteAppSecretRequest::DeleteAppSecretRequest()
: RpcServiceRequest("ims", "2019-08-15", "DeleteAppSecret") {
setMethod(HttpRequest::Method::Post);
}
DeleteAppSecretRequest::~DeleteAppSecretRequest() {}
std::string DeleteAppSecretRequest::getAkProxySuffix() const {
return akProxySuffix_;
}
void DeleteAppSecretRequest::setAkProxySuffix(const std::string &akProxySuffix) {
akProxySuffix_ = akProxySuffix;
setParameter(std::string("AkProxySuffix"), akProxySuffix);
}
std::string DeleteAppSecretRequest::getAppSecretId() const {
return appSecretId_;
}
void DeleteAppSecretRequest::setAppSecretId(const std::string &appSecretId) {
appSecretId_ = appSecretId;
setParameter(std::string("AppSecretId"), appSecretId);
}
std::string DeleteAppSecretRequest::getAppId() const {
return appId_;
}
void DeleteAppSecretRequest::setAppId(const std::string &appId) {
appId_ = appId;
setParameter(std::string("AppId"), appId);
}

View File

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

View File

@@ -0,0 +1,45 @@
/*
* 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/ims/model/DeleteApplicationRequest.h>
using AlibabaCloud::Ims::Model::DeleteApplicationRequest;
DeleteApplicationRequest::DeleteApplicationRequest()
: RpcServiceRequest("ims", "2019-08-15", "DeleteApplication") {
setMethod(HttpRequest::Method::Post);
}
DeleteApplicationRequest::~DeleteApplicationRequest() {}
std::string DeleteApplicationRequest::getAkProxySuffix() const {
return akProxySuffix_;
}
void DeleteApplicationRequest::setAkProxySuffix(const std::string &akProxySuffix) {
akProxySuffix_ = akProxySuffix;
setParameter(std::string("AkProxySuffix"), akProxySuffix);
}
std::string DeleteApplicationRequest::getAppId() const {
return appId_;
}
void DeleteApplicationRequest::setAppId(const std::string &appId) {
appId_ = appId;
setParameter(std::string("AppId"), appId);
}

View File

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

View File

@@ -0,0 +1,54 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ims/model/DeleteGroupRequest.h>
using AlibabaCloud::Ims::Model::DeleteGroupRequest;
DeleteGroupRequest::DeleteGroupRequest()
: RpcServiceRequest("ims", "2019-08-15", "DeleteGroup") {
setMethod(HttpRequest::Method::Post);
}
DeleteGroupRequest::~DeleteGroupRequest() {}
std::string DeleteGroupRequest::getAkProxySuffix() const {
return akProxySuffix_;
}
void DeleteGroupRequest::setAkProxySuffix(const std::string &akProxySuffix) {
akProxySuffix_ = akProxySuffix;
setParameter(std::string("AkProxySuffix"), akProxySuffix);
}
std::string DeleteGroupRequest::getGroupName() const {
return groupName_;
}
void DeleteGroupRequest::setGroupName(const std::string &groupName) {
groupName_ = groupName;
setParameter(std::string("GroupName"), groupName);
}
std::string DeleteGroupRequest::getGroupPrincipalName() const {
return groupPrincipalName_;
}
void DeleteGroupRequest::setGroupPrincipalName(const std::string &groupPrincipalName) {
groupPrincipalName_ = groupPrincipalName;
setParameter(std::string("GroupPrincipalName"), groupPrincipalName);
}

View File

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

View File

@@ -0,0 +1,45 @@
/*
* 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/ims/model/DeleteLoginProfileRequest.h>
using AlibabaCloud::Ims::Model::DeleteLoginProfileRequest;
DeleteLoginProfileRequest::DeleteLoginProfileRequest()
: RpcServiceRequest("ims", "2019-08-15", "DeleteLoginProfile") {
setMethod(HttpRequest::Method::Post);
}
DeleteLoginProfileRequest::~DeleteLoginProfileRequest() {}
std::string DeleteLoginProfileRequest::getAkProxySuffix() const {
return akProxySuffix_;
}
void DeleteLoginProfileRequest::setAkProxySuffix(const std::string &akProxySuffix) {
akProxySuffix_ = akProxySuffix;
setParameter(std::string("AkProxySuffix"), akProxySuffix);
}
std::string DeleteLoginProfileRequest::getUserPrincipalName() const {
return userPrincipalName_;
}
void DeleteLoginProfileRequest::setUserPrincipalName(const std::string &userPrincipalName) {
userPrincipalName_ = userPrincipalName;
setParameter(std::string("UserPrincipalName"), userPrincipalName);
}

View File

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

View File

@@ -0,0 +1,45 @@
/*
* 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/ims/model/DeleteOIDCProviderRequest.h>
using AlibabaCloud::Ims::Model::DeleteOIDCProviderRequest;
DeleteOIDCProviderRequest::DeleteOIDCProviderRequest()
: RpcServiceRequest("ims", "2019-08-15", "DeleteOIDCProvider") {
setMethod(HttpRequest::Method::Post);
}
DeleteOIDCProviderRequest::~DeleteOIDCProviderRequest() {}
std::string DeleteOIDCProviderRequest::getAkProxySuffix() const {
return akProxySuffix_;
}
void DeleteOIDCProviderRequest::setAkProxySuffix(const std::string &akProxySuffix) {
akProxySuffix_ = akProxySuffix;
setParameter(std::string("AkProxySuffix"), akProxySuffix);
}
std::string DeleteOIDCProviderRequest::getOIDCProviderName() const {
return oIDCProviderName_;
}
void DeleteOIDCProviderRequest::setOIDCProviderName(const std::string &oIDCProviderName) {
oIDCProviderName_ = oIDCProviderName;
setParameter(std::string("OIDCProviderName"), oIDCProviderName);
}

View File

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

View File

@@ -0,0 +1,45 @@
/*
* 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/ims/model/DeleteSAMLProviderRequest.h>
using AlibabaCloud::Ims::Model::DeleteSAMLProviderRequest;
DeleteSAMLProviderRequest::DeleteSAMLProviderRequest()
: RpcServiceRequest("ims", "2019-08-15", "DeleteSAMLProvider") {
setMethod(HttpRequest::Method::Post);
}
DeleteSAMLProviderRequest::~DeleteSAMLProviderRequest() {}
std::string DeleteSAMLProviderRequest::getAkProxySuffix() const {
return akProxySuffix_;
}
void DeleteSAMLProviderRequest::setAkProxySuffix(const std::string &akProxySuffix) {
akProxySuffix_ = akProxySuffix;
setParameter(std::string("AkProxySuffix"), akProxySuffix);
}
std::string DeleteSAMLProviderRequest::getSAMLProviderName() const {
return sAMLProviderName_;
}
void DeleteSAMLProviderRequest::setSAMLProviderName(const std::string &sAMLProviderName) {
sAMLProviderName_ = sAMLProviderName;
setParameter(std::string("SAMLProviderName"), sAMLProviderName);
}

View File

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

View File

@@ -0,0 +1,54 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ims/model/DeleteUserRequest.h>
using AlibabaCloud::Ims::Model::DeleteUserRequest;
DeleteUserRequest::DeleteUserRequest()
: RpcServiceRequest("ims", "2019-08-15", "DeleteUser") {
setMethod(HttpRequest::Method::Post);
}
DeleteUserRequest::~DeleteUserRequest() {}
std::string DeleteUserRequest::getAkProxySuffix() const {
return akProxySuffix_;
}
void DeleteUserRequest::setAkProxySuffix(const std::string &akProxySuffix) {
akProxySuffix_ = akProxySuffix;
setParameter(std::string("AkProxySuffix"), akProxySuffix);
}
std::string DeleteUserRequest::getUserId() const {
return userId_;
}
void DeleteUserRequest::setUserId(const std::string &userId) {
userId_ = userId;
setParameter(std::string("UserId"), userId);
}
std::string DeleteUserRequest::getUserPrincipalName() const {
return userPrincipalName_;
}
void DeleteUserRequest::setUserPrincipalName(const std::string &userPrincipalName) {
userPrincipalName_ = userPrincipalName;
setParameter(std::string("UserPrincipalName"), userPrincipalName);
}

View File

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

View File

@@ -0,0 +1,45 @@
/*
* 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/ims/model/DeleteVirtualMFADeviceRequest.h>
using AlibabaCloud::Ims::Model::DeleteVirtualMFADeviceRequest;
DeleteVirtualMFADeviceRequest::DeleteVirtualMFADeviceRequest()
: RpcServiceRequest("ims", "2019-08-15", "DeleteVirtualMFADevice") {
setMethod(HttpRequest::Method::Post);
}
DeleteVirtualMFADeviceRequest::~DeleteVirtualMFADeviceRequest() {}
std::string DeleteVirtualMFADeviceRequest::getSerialNumber() const {
return serialNumber_;
}
void DeleteVirtualMFADeviceRequest::setSerialNumber(const std::string &serialNumber) {
serialNumber_ = serialNumber;
setParameter(std::string("SerialNumber"), serialNumber);
}
std::string DeleteVirtualMFADeviceRequest::getAkProxySuffix() const {
return akProxySuffix_;
}
void DeleteVirtualMFADeviceRequest::setAkProxySuffix(const std::string &akProxySuffix) {
akProxySuffix_ = akProxySuffix;
setParameter(std::string("AkProxySuffix"), akProxySuffix);
}

View File

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

View File

@@ -0,0 +1,45 @@
/*
* 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/ims/model/DisableVirtualMFARequest.h>
using AlibabaCloud::Ims::Model::DisableVirtualMFARequest;
DisableVirtualMFARequest::DisableVirtualMFARequest()
: RpcServiceRequest("ims", "2019-08-15", "DisableVirtualMFA") {
setMethod(HttpRequest::Method::Post);
}
DisableVirtualMFARequest::~DisableVirtualMFARequest() {}
std::string DisableVirtualMFARequest::getAkProxySuffix() const {
return akProxySuffix_;
}
void DisableVirtualMFARequest::setAkProxySuffix(const std::string &akProxySuffix) {
akProxySuffix_ = akProxySuffix;
setParameter(std::string("AkProxySuffix"), akProxySuffix);
}
std::string DisableVirtualMFARequest::getUserPrincipalName() const {
return userPrincipalName_;
}
void DisableVirtualMFARequest::setUserPrincipalName(const std::string &userPrincipalName) {
userPrincipalName_ = userPrincipalName;
setParameter(std::string("UserPrincipalName"), userPrincipalName);
}

View File

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

View File

@@ -0,0 +1,36 @@
/*
* 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/ims/model/GenerateCredentialReportRequest.h>
using AlibabaCloud::Ims::Model::GenerateCredentialReportRequest;
GenerateCredentialReportRequest::GenerateCredentialReportRequest()
: RpcServiceRequest("ims", "2019-08-15", "GenerateCredentialReport") {
setMethod(HttpRequest::Method::Post);
}
GenerateCredentialReportRequest::~GenerateCredentialReportRequest() {}
std::string GenerateCredentialReportRequest::getAkProxySuffix() const {
return akProxySuffix_;
}
void GenerateCredentialReportRequest::setAkProxySuffix(const std::string &akProxySuffix) {
akProxySuffix_ = akProxySuffix;
setParameter(std::string("AkProxySuffix"), akProxySuffix);
}

View File

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

View File

@@ -0,0 +1,54 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ims/model/GetAccessKeyLastUsedRequest.h>
using AlibabaCloud::Ims::Model::GetAccessKeyLastUsedRequest;
GetAccessKeyLastUsedRequest::GetAccessKeyLastUsedRequest()
: RpcServiceRequest("ims", "2019-08-15", "GetAccessKeyLastUsed") {
setMethod(HttpRequest::Method::Post);
}
GetAccessKeyLastUsedRequest::~GetAccessKeyLastUsedRequest() {}
std::string GetAccessKeyLastUsedRequest::getUserAccessKeyId() const {
return userAccessKeyId_;
}
void GetAccessKeyLastUsedRequest::setUserAccessKeyId(const std::string &userAccessKeyId) {
userAccessKeyId_ = userAccessKeyId;
setParameter(std::string("UserAccessKeyId"), userAccessKeyId);
}
std::string GetAccessKeyLastUsedRequest::getAkProxySuffix() const {
return akProxySuffix_;
}
void GetAccessKeyLastUsedRequest::setAkProxySuffix(const std::string &akProxySuffix) {
akProxySuffix_ = akProxySuffix;
setParameter(std::string("AkProxySuffix"), akProxySuffix);
}
std::string GetAccessKeyLastUsedRequest::getUserPrincipalName() const {
return userPrincipalName_;
}
void GetAccessKeyLastUsedRequest::setUserPrincipalName(const std::string &userPrincipalName) {
userPrincipalName_ = userPrincipalName;
setParameter(std::string("UserPrincipalName"), userPrincipalName);
}

View File

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

View File

@@ -0,0 +1,36 @@
/*
* 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/ims/model/GetAccountMFAInfoRequest.h>
using AlibabaCloud::Ims::Model::GetAccountMFAInfoRequest;
GetAccountMFAInfoRequest::GetAccountMFAInfoRequest()
: RpcServiceRequest("ims", "2019-08-15", "GetAccountMFAInfo") {
setMethod(HttpRequest::Method::Post);
}
GetAccountMFAInfoRequest::~GetAccountMFAInfoRequest() {}
std::string GetAccountMFAInfoRequest::getAkProxySuffix() const {
return akProxySuffix_;
}
void GetAccountMFAInfoRequest::setAkProxySuffix(const std::string &akProxySuffix) {
akProxySuffix_ = akProxySuffix;
setParameter(std::string("AkProxySuffix"), akProxySuffix);
}

View File

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

View File

@@ -0,0 +1,36 @@
/*
* 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/ims/model/GetAccountSecurityPracticeReportRequest.h>
using AlibabaCloud::Ims::Model::GetAccountSecurityPracticeReportRequest;
GetAccountSecurityPracticeReportRequest::GetAccountSecurityPracticeReportRequest()
: RpcServiceRequest("ims", "2019-08-15", "GetAccountSecurityPracticeReport") {
setMethod(HttpRequest::Method::Post);
}
GetAccountSecurityPracticeReportRequest::~GetAccountSecurityPracticeReportRequest() {}
std::string GetAccountSecurityPracticeReportRequest::getAkProxySuffix() const {
return akProxySuffix_;
}
void GetAccountSecurityPracticeReportRequest::setAkProxySuffix(const std::string &akProxySuffix) {
akProxySuffix_ = akProxySuffix;
setParameter(std::string("AkProxySuffix"), akProxySuffix);
}

View File

@@ -0,0 +1,71 @@
/*
* 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/ims/model/GetAccountSecurityPracticeReportResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ims;
using namespace AlibabaCloud::Ims::Model;
GetAccountSecurityPracticeReportResult::GetAccountSecurityPracticeReportResult() :
ServiceResult()
{}
GetAccountSecurityPracticeReportResult::GetAccountSecurityPracticeReportResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetAccountSecurityPracticeReportResult::~GetAccountSecurityPracticeReportResult()
{}
void GetAccountSecurityPracticeReportResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto accountSecurityPracticeInfoNode = value["AccountSecurityPracticeInfo"];
if(!accountSecurityPracticeInfoNode["Score"].isNull())
accountSecurityPracticeInfo_.score = std::stoi(accountSecurityPracticeInfoNode["Score"].asString());
auto accountSecurityPracticeUserInfoNode = accountSecurityPracticeInfoNode["AccountSecurityPracticeUserInfo"];
if(!accountSecurityPracticeUserInfoNode["UnusedAkNum"].isNull())
accountSecurityPracticeInfo_.accountSecurityPracticeUserInfo.unusedAkNum = std::stoi(accountSecurityPracticeUserInfoNode["UnusedAkNum"].asString());
if(!accountSecurityPracticeUserInfoNode["SubUserWithUnusedAccessKey"].isNull())
accountSecurityPracticeInfo_.accountSecurityPracticeUserInfo.subUserWithUnusedAccessKey = std::stoi(accountSecurityPracticeUserInfoNode["SubUserWithUnusedAccessKey"].asString());
if(!accountSecurityPracticeUserInfoNode["RootWithAccessKey"].isNull())
accountSecurityPracticeInfo_.accountSecurityPracticeUserInfo.rootWithAccessKey = std::stoi(accountSecurityPracticeUserInfoNode["RootWithAccessKey"].asString());
if(!accountSecurityPracticeUserInfoNode["SubUser"].isNull())
accountSecurityPracticeInfo_.accountSecurityPracticeUserInfo.subUser = std::stoi(accountSecurityPracticeUserInfoNode["SubUser"].asString());
if(!accountSecurityPracticeUserInfoNode["BindMfa"].isNull())
accountSecurityPracticeInfo_.accountSecurityPracticeUserInfo.bindMfa = accountSecurityPracticeUserInfoNode["BindMfa"].asString() == "true";
if(!accountSecurityPracticeUserInfoNode["OldAkNum"].isNull())
accountSecurityPracticeInfo_.accountSecurityPracticeUserInfo.oldAkNum = std::stoi(accountSecurityPracticeUserInfoNode["OldAkNum"].asString());
if(!accountSecurityPracticeUserInfoNode["SubUserPwdLevel"].isNull())
accountSecurityPracticeInfo_.accountSecurityPracticeUserInfo.subUserPwdLevel = accountSecurityPracticeUserInfoNode["SubUserPwdLevel"].asString();
if(!accountSecurityPracticeUserInfoNode["SubUserWithOldAccessKey"].isNull())
accountSecurityPracticeInfo_.accountSecurityPracticeUserInfo.subUserWithOldAccessKey = std::stoi(accountSecurityPracticeUserInfoNode["SubUserWithOldAccessKey"].asString());
if(!accountSecurityPracticeUserInfoNode["SubUserBindMfa"].isNull())
accountSecurityPracticeInfo_.accountSecurityPracticeUserInfo.subUserBindMfa = std::stoi(accountSecurityPracticeUserInfoNode["SubUserBindMfa"].asString());
}
GetAccountSecurityPracticeReportResult::AccountSecurityPracticeInfo GetAccountSecurityPracticeReportResult::getAccountSecurityPracticeInfo()const
{
return accountSecurityPracticeInfo_;
}

View File

@@ -0,0 +1,36 @@
/*
* 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/ims/model/GetAccountSummaryRequest.h>
using AlibabaCloud::Ims::Model::GetAccountSummaryRequest;
GetAccountSummaryRequest::GetAccountSummaryRequest()
: RpcServiceRequest("ims", "2019-08-15", "GetAccountSummary") {
setMethod(HttpRequest::Method::Post);
}
GetAccountSummaryRequest::~GetAccountSummaryRequest() {}
std::string GetAccountSummaryRequest::getAkProxySuffix() const {
return akProxySuffix_;
}
void GetAccountSummaryRequest::setAkProxySuffix(const std::string &akProxySuffix) {
akProxySuffix_ = akProxySuffix;
setParameter(std::string("AkProxySuffix"), akProxySuffix);
}

View 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/ims/model/GetAccountSummaryResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ims;
using namespace AlibabaCloud::Ims::Model;
GetAccountSummaryResult::GetAccountSummaryResult() :
ServiceResult()
{}
GetAccountSummaryResult::GetAccountSummaryResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetAccountSummaryResult::~GetAccountSummaryResult()
{}
void GetAccountSummaryResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto summaryMapNode = value["SummaryMap"];
if(!summaryMapNode["MFADevices"].isNull())
summaryMap_.mFADevices = std::stoi(summaryMapNode["MFADevices"].asString());
if(!summaryMapNode["AccessKeysPerUserQuota"].isNull())
summaryMap_.accessKeysPerUserQuota = std::stoi(summaryMapNode["AccessKeysPerUserQuota"].asString());
if(!summaryMapNode["AttachedPoliciesPerGroupQuota"].isNull())
summaryMap_.attachedPoliciesPerGroupQuota = std::stoi(summaryMapNode["AttachedPoliciesPerGroupQuota"].asString());
if(!summaryMapNode["AttachedSystemPoliciesPerRoleQuota"].isNull())
summaryMap_.attachedSystemPoliciesPerRoleQuota = std::stoi(summaryMapNode["AttachedSystemPoliciesPerRoleQuota"].asString());
if(!summaryMapNode["AttachedPoliciesPerRoleQuota"].isNull())
summaryMap_.attachedPoliciesPerRoleQuota = std::stoi(summaryMapNode["AttachedPoliciesPerRoleQuota"].asString());
if(!summaryMapNode["GroupsPerUserQuota"].isNull())
summaryMap_.groupsPerUserQuota = std::stoi(summaryMapNode["GroupsPerUserQuota"].asString());
if(!summaryMapNode["Roles"].isNull())
summaryMap_.roles = std::stoi(summaryMapNode["Roles"].asString());
if(!summaryMapNode["PolicySizeQuota"].isNull())
summaryMap_.policySizeQuota = std::stoi(summaryMapNode["PolicySizeQuota"].asString());
if(!summaryMapNode["AttachedSystemPoliciesPerGroupQuota"].isNull())
summaryMap_.attachedSystemPoliciesPerGroupQuota = std::stoi(summaryMapNode["AttachedSystemPoliciesPerGroupQuota"].asString());
if(!summaryMapNode["AttachedSystemPoliciesPerUserQuota"].isNull())
summaryMap_.attachedSystemPoliciesPerUserQuota = std::stoi(summaryMapNode["AttachedSystemPoliciesPerUserQuota"].asString());
if(!summaryMapNode["AttachedPoliciesPerUserQuota"].isNull())
summaryMap_.attachedPoliciesPerUserQuota = std::stoi(summaryMapNode["AttachedPoliciesPerUserQuota"].asString());
if(!summaryMapNode["GroupsQuota"].isNull())
summaryMap_.groupsQuota = std::stoi(summaryMapNode["GroupsQuota"].asString());
if(!summaryMapNode["Groups"].isNull())
summaryMap_.groups = std::stoi(summaryMapNode["Groups"].asString());
if(!summaryMapNode["PoliciesQuota"].isNull())
summaryMap_.policiesQuota = std::stoi(summaryMapNode["PoliciesQuota"].asString());
if(!summaryMapNode["VirtualMFADevicesQuota"].isNull())
summaryMap_.virtualMFADevicesQuota = std::stoi(summaryMapNode["VirtualMFADevicesQuota"].asString());
if(!summaryMapNode["VersionsPerPolicyQuota"].isNull())
summaryMap_.versionsPerPolicyQuota = std::stoi(summaryMapNode["VersionsPerPolicyQuota"].asString());
if(!summaryMapNode["RolesQuota"].isNull())
summaryMap_.rolesQuota = std::stoi(summaryMapNode["RolesQuota"].asString());
if(!summaryMapNode["UsersQuota"].isNull())
summaryMap_.usersQuota = std::stoi(summaryMapNode["UsersQuota"].asString());
if(!summaryMapNode["Policies"].isNull())
summaryMap_.policies = std::stoi(summaryMapNode["Policies"].asString());
if(!summaryMapNode["Users"].isNull())
summaryMap_.users = std::stoi(summaryMapNode["Users"].asString());
if(!summaryMapNode["MFADevicesInUse"].isNull())
summaryMap_.mFADevicesInUse = std::stoi(summaryMapNode["MFADevicesInUse"].asString());
}
GetAccountSummaryResult::SummaryMap GetAccountSummaryResult::getSummaryMap()const
{
return summaryMap_;
}

View File

@@ -0,0 +1,54 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ims/model/GetAppSecretRequest.h>
using AlibabaCloud::Ims::Model::GetAppSecretRequest;
GetAppSecretRequest::GetAppSecretRequest()
: RpcServiceRequest("ims", "2019-08-15", "GetAppSecret") {
setMethod(HttpRequest::Method::Post);
}
GetAppSecretRequest::~GetAppSecretRequest() {}
std::string GetAppSecretRequest::getAkProxySuffix() const {
return akProxySuffix_;
}
void GetAppSecretRequest::setAkProxySuffix(const std::string &akProxySuffix) {
akProxySuffix_ = akProxySuffix;
setParameter(std::string("AkProxySuffix"), akProxySuffix);
}
std::string GetAppSecretRequest::getAppSecretId() const {
return appSecretId_;
}
void GetAppSecretRequest::setAppSecretId(const std::string &appSecretId) {
appSecretId_ = appSecretId;
setParameter(std::string("AppSecretId"), appSecretId);
}
std::string GetAppSecretRequest::getAppId() const {
return appId_;
}
void GetAppSecretRequest::setAppId(const std::string &appId) {
appId_ = appId;
setParameter(std::string("AppId"), appId);
}

View 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/ims/model/GetAppSecretResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ims;
using namespace AlibabaCloud::Ims::Model;
GetAppSecretResult::GetAppSecretResult() :
ServiceResult()
{}
GetAppSecretResult::GetAppSecretResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetAppSecretResult::~GetAppSecretResult()
{}
void GetAppSecretResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto appSecretNode = value["AppSecret"];
if(!appSecretNode["AppSecretValue"].isNull())
appSecret_.appSecretValue = appSecretNode["AppSecretValue"].asString();
if(!appSecretNode["AppId"].isNull())
appSecret_.appId = appSecretNode["AppId"].asString();
if(!appSecretNode["AppSecretId"].isNull())
appSecret_.appSecretId = appSecretNode["AppSecretId"].asString();
if(!appSecretNode["CreateDate"].isNull())
appSecret_.createDate = appSecretNode["CreateDate"].asString();
}
GetAppSecretResult::AppSecret GetAppSecretResult::getAppSecret()const
{
return appSecret_;
}

View File

@@ -0,0 +1,45 @@
/*
* 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/ims/model/GetApplicationRequest.h>
using AlibabaCloud::Ims::Model::GetApplicationRequest;
GetApplicationRequest::GetApplicationRequest()
: RpcServiceRequest("ims", "2019-08-15", "GetApplication") {
setMethod(HttpRequest::Method::Post);
}
GetApplicationRequest::~GetApplicationRequest() {}
std::string GetApplicationRequest::getAkProxySuffix() const {
return akProxySuffix_;
}
void GetApplicationRequest::setAkProxySuffix(const std::string &akProxySuffix) {
akProxySuffix_ = akProxySuffix;
setParameter(std::string("AkProxySuffix"), akProxySuffix);
}
std::string GetApplicationRequest::getAppId() const {
return appId_;
}
void GetApplicationRequest::setAppId(const std::string &appId) {
appId_ = appId;
setParameter(std::string("AppId"), appId);
}

View 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/ims/model/GetApplicationResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ims;
using namespace AlibabaCloud::Ims::Model;
GetApplicationResult::GetApplicationResult() :
ServiceResult()
{}
GetApplicationResult::GetApplicationResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetApplicationResult::~GetApplicationResult()
{}
void GetApplicationResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto applicationNode = value["Application"];
if(!applicationNode["DisplayName"].isNull())
application_.displayName = applicationNode["DisplayName"].asString();
if(!applicationNode["AccessTokenValidity"].isNull())
application_.accessTokenValidity = std::stoi(applicationNode["AccessTokenValidity"].asString());
if(!applicationNode["SecretRequired"].isNull())
application_.secretRequired = applicationNode["SecretRequired"].asString() == "true";
if(!applicationNode["AccountId"].isNull())
application_.accountId = applicationNode["AccountId"].asString();
if(!applicationNode["CreateDate"].isNull())
application_.createDate = applicationNode["CreateDate"].asString();
if(!applicationNode["AppName"].isNull())
application_.appName = applicationNode["AppName"].asString();
if(!applicationNode["UpdateDate"].isNull())
application_.updateDate = applicationNode["UpdateDate"].asString();
if(!applicationNode["AppId"].isNull())
application_.appId = applicationNode["AppId"].asString();
if(!applicationNode["RefreshTokenValidity"].isNull())
application_.refreshTokenValidity = std::stoi(applicationNode["RefreshTokenValidity"].asString());
if(!applicationNode["AppPrincipalName"].isNull())
application_.appPrincipalName = applicationNode["AppPrincipalName"].asString();
if(!applicationNode["IsMultiTenant"].isNull())
application_.isMultiTenant = applicationNode["IsMultiTenant"].asString() == "true";
if(!applicationNode["AppType"].isNull())
application_.appType = applicationNode["AppType"].asString();
if(!applicationNode["TenantId"].isNull())
application_.tenantId = applicationNode["TenantId"].asString();
auto delegatedScopeNode = applicationNode["DelegatedScope"];
auto allPredefinedScopesNode = delegatedScopeNode["PredefinedScopes"]["PredefinedScope"];
for (auto delegatedScopeNodePredefinedScopesPredefinedScope : allPredefinedScopesNode)
{
Application::DelegatedScope::PredefinedScope predefinedScopeObject;
if(!delegatedScopeNodePredefinedScopesPredefinedScope["Description"].isNull())
predefinedScopeObject.description = delegatedScopeNodePredefinedScopesPredefinedScope["Description"].asString();
if(!delegatedScopeNodePredefinedScopesPredefinedScope["Name"].isNull())
predefinedScopeObject.name = delegatedScopeNodePredefinedScopesPredefinedScope["Name"].asString();
if(!delegatedScopeNodePredefinedScopesPredefinedScope["Required"].isNull())
predefinedScopeObject.required = delegatedScopeNodePredefinedScopesPredefinedScope["Required"].asString() == "true";
application_.delegatedScope.predefinedScopes.push_back(predefinedScopeObject);
}
auto allRedirectUris = applicationNode["RedirectUris"]["RedirectUri"];
for (auto value : allRedirectUris)
application_.redirectUris.push_back(value.asString());
}
GetApplicationResult::Application GetApplicationResult::getApplication()const
{
return application_;
}

View File

@@ -0,0 +1,54 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ims/model/GetCredentialReportRequest.h>
using AlibabaCloud::Ims::Model::GetCredentialReportRequest;
GetCredentialReportRequest::GetCredentialReportRequest()
: RpcServiceRequest("ims", "2019-08-15", "GetCredentialReport") {
setMethod(HttpRequest::Method::Post);
}
GetCredentialReportRequest::~GetCredentialReportRequest() {}
std::string GetCredentialReportRequest::getAkProxySuffix() const {
return akProxySuffix_;
}
void GetCredentialReportRequest::setAkProxySuffix(const std::string &akProxySuffix) {
akProxySuffix_ = akProxySuffix;
setParameter(std::string("AkProxySuffix"), akProxySuffix);
}
std::string GetCredentialReportRequest::getNextToken() const {
return nextToken_;
}
void GetCredentialReportRequest::setNextToken(const std::string &nextToken) {
nextToken_ = nextToken;
setParameter(std::string("NextToken"), nextToken);
}
std::string GetCredentialReportRequest::getMaxItems() const {
return maxItems_;
}
void GetCredentialReportRequest::setMaxItems(const std::string &maxItems) {
maxItems_ = maxItems;
setParameter(std::string("MaxItems"), maxItems);
}

View File

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

View File

@@ -0,0 +1,36 @@
/*
* 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/ims/model/GetDefaultDomainRequest.h>
using AlibabaCloud::Ims::Model::GetDefaultDomainRequest;
GetDefaultDomainRequest::GetDefaultDomainRequest()
: RpcServiceRequest("ims", "2019-08-15", "GetDefaultDomain") {
setMethod(HttpRequest::Method::Post);
}
GetDefaultDomainRequest::~GetDefaultDomainRequest() {}
std::string GetDefaultDomainRequest::getAkProxySuffix() const {
return akProxySuffix_;
}
void GetDefaultDomainRequest::setAkProxySuffix(const std::string &akProxySuffix) {
akProxySuffix_ = akProxySuffix;
setParameter(std::string("AkProxySuffix"), akProxySuffix);
}

View File

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

View File

@@ -0,0 +1,54 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ims/model/GetGroupRequest.h>
using AlibabaCloud::Ims::Model::GetGroupRequest;
GetGroupRequest::GetGroupRequest()
: RpcServiceRequest("ims", "2019-08-15", "GetGroup") {
setMethod(HttpRequest::Method::Post);
}
GetGroupRequest::~GetGroupRequest() {}
std::string GetGroupRequest::getAkProxySuffix() const {
return akProxySuffix_;
}
void GetGroupRequest::setAkProxySuffix(const std::string &akProxySuffix) {
akProxySuffix_ = akProxySuffix;
setParameter(std::string("AkProxySuffix"), akProxySuffix);
}
std::string GetGroupRequest::getGroupName() const {
return groupName_;
}
void GetGroupRequest::setGroupName(const std::string &groupName) {
groupName_ = groupName;
setParameter(std::string("GroupName"), groupName);
}
std::string GetGroupRequest::getGroupPrincipalName() const {
return groupPrincipalName_;
}
void GetGroupRequest::setGroupPrincipalName(const std::string &groupPrincipalName) {
groupPrincipalName_ = groupPrincipalName;
setParameter(std::string("GroupPrincipalName"), groupPrincipalName);
}

View File

@@ -0,0 +1,64 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ims/model/GetGroupResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ims;
using namespace AlibabaCloud::Ims::Model;
GetGroupResult::GetGroupResult() :
ServiceResult()
{}
GetGroupResult::GetGroupResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetGroupResult::~GetGroupResult()
{}
void GetGroupResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto groupNode = value["Group"];
if(!groupNode["DisplayName"].isNull())
group_.displayName = groupNode["DisplayName"].asString();
if(!groupNode["GroupPrincipalName"].isNull())
group_.groupPrincipalName = groupNode["GroupPrincipalName"].asString();
if(!groupNode["GroupId"].isNull())
group_.groupId = groupNode["GroupId"].asString();
if(!groupNode["UpdateDate"].isNull())
group_.updateDate = groupNode["UpdateDate"].asString();
if(!groupNode["GroupName"].isNull())
group_.groupName = groupNode["GroupName"].asString();
if(!groupNode["Comments"].isNull())
group_.comments = groupNode["Comments"].asString();
if(!groupNode["CreateDate"].isNull())
group_.createDate = groupNode["CreateDate"].asString();
}
GetGroupResult::Group GetGroupResult::getGroup()const
{
return group_;
}

View File

@@ -0,0 +1,45 @@
/*
* 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/ims/model/GetLoginProfileRequest.h>
using AlibabaCloud::Ims::Model::GetLoginProfileRequest;
GetLoginProfileRequest::GetLoginProfileRequest()
: RpcServiceRequest("ims", "2019-08-15", "GetLoginProfile") {
setMethod(HttpRequest::Method::Post);
}
GetLoginProfileRequest::~GetLoginProfileRequest() {}
std::string GetLoginProfileRequest::getAkProxySuffix() const {
return akProxySuffix_;
}
void GetLoginProfileRequest::setAkProxySuffix(const std::string &akProxySuffix) {
akProxySuffix_ = akProxySuffix;
setParameter(std::string("AkProxySuffix"), akProxySuffix);
}
std::string GetLoginProfileRequest::getUserPrincipalName() const {
return userPrincipalName_;
}
void GetLoginProfileRequest::setUserPrincipalName(const std::string &userPrincipalName) {
userPrincipalName_ = userPrincipalName;
setParameter(std::string("UserPrincipalName"), userPrincipalName);
}

View File

@@ -0,0 +1,64 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ims/model/GetLoginProfileResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ims;
using namespace AlibabaCloud::Ims::Model;
GetLoginProfileResult::GetLoginProfileResult() :
ServiceResult()
{}
GetLoginProfileResult::GetLoginProfileResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetLoginProfileResult::~GetLoginProfileResult()
{}
void GetLoginProfileResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto loginProfileNode = value["LoginProfile"];
if(!loginProfileNode["Status"].isNull())
loginProfile_.status = loginProfileNode["Status"].asString();
if(!loginProfileNode["UserPrincipalName"].isNull())
loginProfile_.userPrincipalName = loginProfileNode["UserPrincipalName"].asString();
if(!loginProfileNode["UpdateDate"].isNull())
loginProfile_.updateDate = loginProfileNode["UpdateDate"].asString();
if(!loginProfileNode["LastLoginTime"].isNull())
loginProfile_.lastLoginTime = loginProfileNode["LastLoginTime"].asString();
if(!loginProfileNode["PasswordResetRequired"].isNull())
loginProfile_.passwordResetRequired = loginProfileNode["PasswordResetRequired"].asString() == "true";
if(!loginProfileNode["MFABindRequired"].isNull())
loginProfile_.mFABindRequired = loginProfileNode["MFABindRequired"].asString() == "true";
if(!loginProfileNode["CreateDate"].isNull())
loginProfile_.createDate = loginProfileNode["CreateDate"].asString();
}
GetLoginProfileResult::LoginProfile GetLoginProfileResult::getLoginProfile()const
{
return loginProfile_;
}

View File

@@ -0,0 +1,45 @@
/*
* 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/ims/model/GetOIDCProviderRequest.h>
using AlibabaCloud::Ims::Model::GetOIDCProviderRequest;
GetOIDCProviderRequest::GetOIDCProviderRequest()
: RpcServiceRequest("ims", "2019-08-15", "GetOIDCProvider") {
setMethod(HttpRequest::Method::Post);
}
GetOIDCProviderRequest::~GetOIDCProviderRequest() {}
std::string GetOIDCProviderRequest::getAkProxySuffix() const {
return akProxySuffix_;
}
void GetOIDCProviderRequest::setAkProxySuffix(const std::string &akProxySuffix) {
akProxySuffix_ = akProxySuffix;
setParameter(std::string("AkProxySuffix"), akProxySuffix);
}
std::string GetOIDCProviderRequest::getOIDCProviderName() const {
return oIDCProviderName_;
}
void GetOIDCProviderRequest::setOIDCProviderName(const std::string &oIDCProviderName) {
oIDCProviderName_ = oIDCProviderName;
setParameter(std::string("OIDCProviderName"), oIDCProviderName);
}

View File

@@ -0,0 +1,72 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ims/model/GetOIDCProviderResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ims;
using namespace AlibabaCloud::Ims::Model;
GetOIDCProviderResult::GetOIDCProviderResult() :
ServiceResult()
{}
GetOIDCProviderResult::GetOIDCProviderResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetOIDCProviderResult::~GetOIDCProviderResult()
{}
void GetOIDCProviderResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto oIDCProviderNode = value["OIDCProvider"];
if(!oIDCProviderNode["UpdateDate"].isNull())
oIDCProvider_.updateDate = oIDCProviderNode["UpdateDate"].asString();
if(!oIDCProviderNode["Description"].isNull())
oIDCProvider_.description = oIDCProviderNode["Description"].asString();
if(!oIDCProviderNode["OIDCProviderName"].isNull())
oIDCProvider_.oIDCProviderName = oIDCProviderNode["OIDCProviderName"].asString();
if(!oIDCProviderNode["CreateDate"].isNull())
oIDCProvider_.createDate = oIDCProviderNode["CreateDate"].asString();
if(!oIDCProviderNode["Arn"].isNull())
oIDCProvider_.arn = oIDCProviderNode["Arn"].asString();
if(!oIDCProviderNode["IssuerUrl"].isNull())
oIDCProvider_.issuerUrl = oIDCProviderNode["IssuerUrl"].asString();
if(!oIDCProviderNode["Fingerprints"].isNull())
oIDCProvider_.fingerprints = oIDCProviderNode["Fingerprints"].asString();
if(!oIDCProviderNode["ClientIds"].isNull())
oIDCProvider_.clientIds = oIDCProviderNode["ClientIds"].asString();
if(!oIDCProviderNode["GmtCreate"].isNull())
oIDCProvider_.gmtCreate = oIDCProviderNode["GmtCreate"].asString();
if(!oIDCProviderNode["GmtModified"].isNull())
oIDCProvider_.gmtModified = oIDCProviderNode["GmtModified"].asString();
if(!oIDCProviderNode["IssuanceLimitTime"].isNull())
oIDCProvider_.issuanceLimitTime = std::stol(oIDCProviderNode["IssuanceLimitTime"].asString());
}
GetOIDCProviderResult::OIDCProvider GetOIDCProviderResult::getOIDCProvider()const
{
return oIDCProvider_;
}

View File

@@ -0,0 +1,36 @@
/*
* 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/ims/model/GetPasswordPolicyRequest.h>
using AlibabaCloud::Ims::Model::GetPasswordPolicyRequest;
GetPasswordPolicyRequest::GetPasswordPolicyRequest()
: RpcServiceRequest("ims", "2019-08-15", "GetPasswordPolicy") {
setMethod(HttpRequest::Method::Post);
}
GetPasswordPolicyRequest::~GetPasswordPolicyRequest() {}
std::string GetPasswordPolicyRequest::getAkProxySuffix() const {
return akProxySuffix_;
}
void GetPasswordPolicyRequest::setAkProxySuffix(const std::string &akProxySuffix) {
akProxySuffix_ = akProxySuffix;
setParameter(std::string("AkProxySuffix"), akProxySuffix);
}

View File

@@ -0,0 +1,72 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ims/model/GetPasswordPolicyResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ims;
using namespace AlibabaCloud::Ims::Model;
GetPasswordPolicyResult::GetPasswordPolicyResult() :
ServiceResult()
{}
GetPasswordPolicyResult::GetPasswordPolicyResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetPasswordPolicyResult::~GetPasswordPolicyResult()
{}
void GetPasswordPolicyResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto passwordPolicyNode = value["PasswordPolicy"];
if(!passwordPolicyNode["RequireNumbers"].isNull())
passwordPolicy_.requireNumbers = passwordPolicyNode["RequireNumbers"].asString() == "true";
if(!passwordPolicyNode["RequireLowercaseCharacters"].isNull())
passwordPolicy_.requireLowercaseCharacters = passwordPolicyNode["RequireLowercaseCharacters"].asString() == "true";
if(!passwordPolicyNode["PasswordReusePrevention"].isNull())
passwordPolicy_.passwordReusePrevention = std::stoi(passwordPolicyNode["PasswordReusePrevention"].asString());
if(!passwordPolicyNode["RequireSymbols"].isNull())
passwordPolicy_.requireSymbols = passwordPolicyNode["RequireSymbols"].asString() == "true";
if(!passwordPolicyNode["PasswordNotContainUserName"].isNull())
passwordPolicy_.passwordNotContainUserName = passwordPolicyNode["PasswordNotContainUserName"].asString() == "true";
if(!passwordPolicyNode["MinimumPasswordDifferentCharacter"].isNull())
passwordPolicy_.minimumPasswordDifferentCharacter = std::stoi(passwordPolicyNode["MinimumPasswordDifferentCharacter"].asString());
if(!passwordPolicyNode["MaxPasswordAge"].isNull())
passwordPolicy_.maxPasswordAge = std::stoi(passwordPolicyNode["MaxPasswordAge"].asString());
if(!passwordPolicyNode["HardExpire"].isNull())
passwordPolicy_.hardExpire = passwordPolicyNode["HardExpire"].asString() == "true";
if(!passwordPolicyNode["MinimumPasswordLength"].isNull())
passwordPolicy_.minimumPasswordLength = std::stoi(passwordPolicyNode["MinimumPasswordLength"].asString());
if(!passwordPolicyNode["RequireUppercaseCharacters"].isNull())
passwordPolicy_.requireUppercaseCharacters = passwordPolicyNode["RequireUppercaseCharacters"].asString() == "true";
if(!passwordPolicyNode["MaxLoginAttemps"].isNull())
passwordPolicy_.maxLoginAttemps = std::stoi(passwordPolicyNode["MaxLoginAttemps"].asString());
}
GetPasswordPolicyResult::PasswordPolicy GetPasswordPolicyResult::getPasswordPolicy()const
{
return passwordPolicy_;
}

View File

@@ -0,0 +1,45 @@
/*
* 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/ims/model/GetSAMLProviderRequest.h>
using AlibabaCloud::Ims::Model::GetSAMLProviderRequest;
GetSAMLProviderRequest::GetSAMLProviderRequest()
: RpcServiceRequest("ims", "2019-08-15", "GetSAMLProvider") {
setMethod(HttpRequest::Method::Post);
}
GetSAMLProviderRequest::~GetSAMLProviderRequest() {}
std::string GetSAMLProviderRequest::getAkProxySuffix() const {
return akProxySuffix_;
}
void GetSAMLProviderRequest::setAkProxySuffix(const std::string &akProxySuffix) {
akProxySuffix_ = akProxySuffix;
setParameter(std::string("AkProxySuffix"), akProxySuffix);
}
std::string GetSAMLProviderRequest::getSAMLProviderName() const {
return sAMLProviderName_;
}
void GetSAMLProviderRequest::setSAMLProviderName(const std::string &sAMLProviderName) {
sAMLProviderName_ = sAMLProviderName;
setParameter(std::string("SAMLProviderName"), sAMLProviderName);
}

View File

@@ -0,0 +1,64 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ims/model/GetSAMLProviderResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ims;
using namespace AlibabaCloud::Ims::Model;
GetSAMLProviderResult::GetSAMLProviderResult() :
ServiceResult()
{}
GetSAMLProviderResult::GetSAMLProviderResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetSAMLProviderResult::~GetSAMLProviderResult()
{}
void GetSAMLProviderResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto sAMLProviderNode = value["SAMLProvider"];
if(!sAMLProviderNode["SAMLMetadataDocument"].isNull())
sAMLProvider_.sAMLMetadataDocument = sAMLProviderNode["SAMLMetadataDocument"].asString();
if(!sAMLProviderNode["Description"].isNull())
sAMLProvider_.description = sAMLProviderNode["Description"].asString();
if(!sAMLProviderNode["UpdateDate"].isNull())
sAMLProvider_.updateDate = sAMLProviderNode["UpdateDate"].asString();
if(!sAMLProviderNode["SAMLProviderName"].isNull())
sAMLProvider_.sAMLProviderName = sAMLProviderNode["SAMLProviderName"].asString();
if(!sAMLProviderNode["CreateDate"].isNull())
sAMLProvider_.createDate = sAMLProviderNode["CreateDate"].asString();
if(!sAMLProviderNode["EncodedSAMLMetadataDocument"].isNull())
sAMLProvider_.encodedSAMLMetadataDocument = sAMLProviderNode["EncodedSAMLMetadataDocument"].asString();
if(!sAMLProviderNode["Arn"].isNull())
sAMLProvider_.arn = sAMLProviderNode["Arn"].asString();
}
GetSAMLProviderResult::SAMLProvider GetSAMLProviderResult::getSAMLProvider()const
{
return sAMLProvider_;
}

View File

@@ -0,0 +1,36 @@
/*
* 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/ims/model/GetSecurityPreferenceRequest.h>
using AlibabaCloud::Ims::Model::GetSecurityPreferenceRequest;
GetSecurityPreferenceRequest::GetSecurityPreferenceRequest()
: RpcServiceRequest("ims", "2019-08-15", "GetSecurityPreference") {
setMethod(HttpRequest::Method::Post);
}
GetSecurityPreferenceRequest::~GetSecurityPreferenceRequest() {}
std::string GetSecurityPreferenceRequest::getAkProxySuffix() const {
return akProxySuffix_;
}
void GetSecurityPreferenceRequest::setAkProxySuffix(const std::string &akProxySuffix) {
akProxySuffix_ = akProxySuffix;
setParameter(std::string("AkProxySuffix"), akProxySuffix);
}

View File

@@ -0,0 +1,81 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ims/model/GetSecurityPreferenceResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ims;
using namespace AlibabaCloud::Ims::Model;
GetSecurityPreferenceResult::GetSecurityPreferenceResult() :
ServiceResult()
{}
GetSecurityPreferenceResult::GetSecurityPreferenceResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetSecurityPreferenceResult::~GetSecurityPreferenceResult()
{}
void GetSecurityPreferenceResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto securityPreferenceNode = value["SecurityPreference"];
auto accessKeyPreferenceNode = securityPreferenceNode["AccessKeyPreference"];
if(!accessKeyPreferenceNode["AllowUserToManageAccessKeys"].isNull())
securityPreference_.accessKeyPreference.allowUserToManageAccessKeys = accessKeyPreferenceNode["AllowUserToManageAccessKeys"].asString() == "true";
auto loginProfilePreferenceNode = securityPreferenceNode["LoginProfilePreference"];
if(!loginProfilePreferenceNode["EnableSaveMFATicket"].isNull())
securityPreference_.loginProfilePreference.enableSaveMFATicket = loginProfilePreferenceNode["EnableSaveMFATicket"].asString() == "true";
if(!loginProfilePreferenceNode["LoginSessionDuration"].isNull())
securityPreference_.loginProfilePreference.loginSessionDuration = std::stoi(loginProfilePreferenceNode["LoginSessionDuration"].asString());
if(!loginProfilePreferenceNode["LoginNetworkMasks"].isNull())
securityPreference_.loginProfilePreference.loginNetworkMasks = loginProfilePreferenceNode["LoginNetworkMasks"].asString();
if(!loginProfilePreferenceNode["AllowUserToChangePassword"].isNull())
securityPreference_.loginProfilePreference.allowUserToChangePassword = loginProfilePreferenceNode["AllowUserToChangePassword"].asString() == "true";
if(!loginProfilePreferenceNode["EnforceMFAForLogin"].isNull())
securityPreference_.loginProfilePreference.enforceMFAForLogin = loginProfilePreferenceNode["EnforceMFAForLogin"].asString() == "true";
if(!loginProfilePreferenceNode["OperationForRiskLogin"].isNull())
securityPreference_.loginProfilePreference.operationForRiskLogin = loginProfilePreferenceNode["OperationForRiskLogin"].asString();
if(!loginProfilePreferenceNode["MFAOperationForLogin"].isNull())
securityPreference_.loginProfilePreference.mFAOperationForLogin = loginProfilePreferenceNode["MFAOperationForLogin"].asString();
auto mFAPreferenceNode = securityPreferenceNode["MFAPreference"];
if(!mFAPreferenceNode["AllowUserToManageMFADevices"].isNull())
securityPreference_.mFAPreference.allowUserToManageMFADevices = mFAPreferenceNode["AllowUserToManageMFADevices"].asString() == "true";
auto verificationPreferenceNode = securityPreferenceNode["VerificationPreference"];
auto allVerificationTypes = verificationPreferenceNode["VerificationTypes"]["VerificationType"];
for (auto value : allVerificationTypes)
securityPreference_.verificationPreference.verificationTypes.push_back(value.asString());
auto personalInfoPreferenceNode = securityPreferenceNode["PersonalInfoPreference"];
if(!personalInfoPreferenceNode["AllowUserToManagePersonalDingTalk"].isNull())
securityPreference_.personalInfoPreference.allowUserToManagePersonalDingTalk = personalInfoPreferenceNode["AllowUserToManagePersonalDingTalk"].asString() == "true";
auto applicationLoginPreferenceNode = securityPreferenceNode["ApplicationLoginPreference"];
if(!applicationLoginPreferenceNode["AllowUserLongTermLogin"].isNull())
securityPreference_.applicationLoginPreference.allowUserLongTermLogin = applicationLoginPreferenceNode["AllowUserLongTermLogin"].asString() == "true";
}
GetSecurityPreferenceResult::SecurityPreference GetSecurityPreferenceResult::getSecurityPreference()const
{
return securityPreference_;
}

View File

@@ -0,0 +1,45 @@
/*
* 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/ims/model/GetUserMFAInfoRequest.h>
using AlibabaCloud::Ims::Model::GetUserMFAInfoRequest;
GetUserMFAInfoRequest::GetUserMFAInfoRequest()
: RpcServiceRequest("ims", "2019-08-15", "GetUserMFAInfo") {
setMethod(HttpRequest::Method::Post);
}
GetUserMFAInfoRequest::~GetUserMFAInfoRequest() {}
std::string GetUserMFAInfoRequest::getAkProxySuffix() const {
return akProxySuffix_;
}
void GetUserMFAInfoRequest::setAkProxySuffix(const std::string &akProxySuffix) {
akProxySuffix_ = akProxySuffix;
setParameter(std::string("AkProxySuffix"), akProxySuffix);
}
std::string GetUserMFAInfoRequest::getUserPrincipalName() const {
return userPrincipalName_;
}
void GetUserMFAInfoRequest::setUserPrincipalName(const std::string &userPrincipalName) {
userPrincipalName_ = userPrincipalName;
setParameter(std::string("UserPrincipalName"), userPrincipalName);
}

View 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/ims/model/GetUserMFAInfoResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ims;
using namespace AlibabaCloud::Ims::Model;
GetUserMFAInfoResult::GetUserMFAInfoResult() :
ServiceResult()
{}
GetUserMFAInfoResult::GetUserMFAInfoResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetUserMFAInfoResult::~GetUserMFAInfoResult()
{}
void GetUserMFAInfoResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto mFADeviceNode = value["MFADevice"];
if(!mFADeviceNode["SerialNumber"].isNull())
mFADevice_.serialNumber = mFADeviceNode["SerialNumber"].asString();
if(!mFADeviceNode["Type"].isNull())
mFADevice_.type = mFADeviceNode["Type"].asString();
if(!value["IsMFAEnable"].isNull())
isMFAEnable_ = value["IsMFAEnable"].asString() == "true";
}
GetUserMFAInfoResult::MFADevice GetUserMFAInfoResult::getMFADevice()const
{
return mFADevice_;
}
bool GetUserMFAInfoResult::getIsMFAEnable()const
{
return isMFAEnable_;
}

View File

@@ -0,0 +1,63 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ims/model/GetUserRequest.h>
using AlibabaCloud::Ims::Model::GetUserRequest;
GetUserRequest::GetUserRequest()
: RpcServiceRequest("ims", "2019-08-15", "GetUser") {
setMethod(HttpRequest::Method::Post);
}
GetUserRequest::~GetUserRequest() {}
std::string GetUserRequest::getAkProxySuffix() const {
return akProxySuffix_;
}
void GetUserRequest::setAkProxySuffix(const std::string &akProxySuffix) {
akProxySuffix_ = akProxySuffix;
setParameter(std::string("AkProxySuffix"), akProxySuffix);
}
std::string GetUserRequest::getUserId() const {
return userId_;
}
void GetUserRequest::setUserId(const std::string &userId) {
userId_ = userId;
setParameter(std::string("UserId"), userId);
}
std::string GetUserRequest::getUserAccessKeyId() const {
return userAccessKeyId_;
}
void GetUserRequest::setUserAccessKeyId(const std::string &userAccessKeyId) {
userAccessKeyId_ = userAccessKeyId;
setParameter(std::string("UserAccessKeyId"), userAccessKeyId);
}
std::string GetUserRequest::getUserPrincipalName() const {
return userPrincipalName_;
}
void GetUserRequest::setUserPrincipalName(const std::string &userPrincipalName) {
userPrincipalName_ = userPrincipalName;
setParameter(std::string("UserPrincipalName"), userPrincipalName);
}

View File

@@ -0,0 +1,80 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ims/model/GetUserResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ims;
using namespace AlibabaCloud::Ims::Model;
GetUserResult::GetUserResult() :
ServiceResult()
{}
GetUserResult::GetUserResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetUserResult::~GetUserResult()
{}
void GetUserResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto userNode = value["User"];
if(!userNode["DisplayName"].isNull())
user_.displayName = userNode["DisplayName"].asString();
if(!userNode["UserPrincipalName"].isNull())
user_.userPrincipalName = userNode["UserPrincipalName"].asString();
if(!userNode["Email"].isNull())
user_.email = userNode["Email"].asString();
if(!userNode["UpdateDate"].isNull())
user_.updateDate = userNode["UpdateDate"].asString();
if(!userNode["MobilePhone"].isNull())
user_.mobilePhone = userNode["MobilePhone"].asString();
if(!userNode["UserId"].isNull())
user_.userId = userNode["UserId"].asString();
if(!userNode["Comments"].isNull())
user_.comments = userNode["Comments"].asString();
if(!userNode["LastLoginDate"].isNull())
user_.lastLoginDate = userNode["LastLoginDate"].asString();
if(!userNode["CreateDate"].isNull())
user_.createDate = userNode["CreateDate"].asString();
if(!userNode["ProvisionType"].isNull())
user_.provisionType = userNode["ProvisionType"].asString();
auto allTagsNode = userNode["Tags"]["Tag"];
for (auto userNodeTagsTag : allTagsNode)
{
User::Tag tagObject;
if(!userNodeTagsTag["TagKey"].isNull())
tagObject.tagKey = userNodeTagsTag["TagKey"].asString();
if(!userNodeTagsTag["TagValue"].isNull())
tagObject.tagValue = userNodeTagsTag["TagValue"].asString();
user_.tags.push_back(tagObject);
}
}
GetUserResult::User GetUserResult::getUser()const
{
return user_;
}

View File

@@ -0,0 +1,36 @@
/*
* 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/ims/model/GetUserSsoSettingsRequest.h>
using AlibabaCloud::Ims::Model::GetUserSsoSettingsRequest;
GetUserSsoSettingsRequest::GetUserSsoSettingsRequest()
: RpcServiceRequest("ims", "2019-08-15", "GetUserSsoSettings") {
setMethod(HttpRequest::Method::Post);
}
GetUserSsoSettingsRequest::~GetUserSsoSettingsRequest() {}
std::string GetUserSsoSettingsRequest::getAkProxySuffix() const {
return akProxySuffix_;
}
void GetUserSsoSettingsRequest::setAkProxySuffix(const std::string &akProxySuffix) {
akProxySuffix_ = akProxySuffix;
setParameter(std::string("AkProxySuffix"), akProxySuffix);
}

View 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/ims/model/GetUserSsoSettingsResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ims;
using namespace AlibabaCloud::Ims::Model;
GetUserSsoSettingsResult::GetUserSsoSettingsResult() :
ServiceResult()
{}
GetUserSsoSettingsResult::GetUserSsoSettingsResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetUserSsoSettingsResult::~GetUserSsoSettingsResult()
{}
void GetUserSsoSettingsResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto userSsoSettingsNode = value["UserSsoSettings"];
if(!userSsoSettingsNode["AuxiliaryDomain"].isNull())
userSsoSettings_.auxiliaryDomain = userSsoSettingsNode["AuxiliaryDomain"].asString();
if(!userSsoSettingsNode["MetadataDocument"].isNull())
userSsoSettings_.metadataDocument = userSsoSettingsNode["MetadataDocument"].asString();
if(!userSsoSettingsNode["SsoEnabled"].isNull())
userSsoSettings_.ssoEnabled = userSsoSettingsNode["SsoEnabled"].asString() == "true";
if(!userSsoSettingsNode["UseTenantSpecificSp"].isNull())
userSsoSettings_.useTenantSpecificSp = userSsoSettingsNode["UseTenantSpecificSp"].asString() == "true";
if(!userSsoSettingsNode["Name"].isNull())
userSsoSettings_.name = userSsoSettingsNode["Name"].asString();
}
GetUserSsoSettingsResult::UserSsoSettings GetUserSsoSettingsResult::getUserSsoSettings()const
{
return userSsoSettings_;
}

View File

@@ -0,0 +1,36 @@
/*
* 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/ims/model/GetVerificationInfoRequest.h>
using AlibabaCloud::Ims::Model::GetVerificationInfoRequest;
GetVerificationInfoRequest::GetVerificationInfoRequest()
: RpcServiceRequest("ims", "2019-08-15", "GetVerificationInfo") {
setMethod(HttpRequest::Method::Post);
}
GetVerificationInfoRequest::~GetVerificationInfoRequest() {}
std::string GetVerificationInfoRequest::getUserPrincipalName() const {
return userPrincipalName_;
}
void GetVerificationInfoRequest::setUserPrincipalName(const std::string &userPrincipalName) {
userPrincipalName_ = userPrincipalName;
setParameter(std::string("UserPrincipalName"), userPrincipalName);
}

View 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/ims/model/GetVerificationInfoResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ims;
using namespace AlibabaCloud::Ims::Model;
GetVerificationInfoResult::GetVerificationInfoResult() :
ServiceResult()
{}
GetVerificationInfoResult::GetVerificationInfoResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetVerificationInfoResult::~GetVerificationInfoResult()
{}
void GetVerificationInfoResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto securityPhoneDeviceNode = value["SecurityPhoneDevice"];
if(!securityPhoneDeviceNode["AreaCode"].isNull())
securityPhoneDevice_.areaCode = securityPhoneDeviceNode["AreaCode"].asString();
if(!securityPhoneDeviceNode["PhoneNumber"].isNull())
securityPhoneDevice_.phoneNumber = securityPhoneDeviceNode["PhoneNumber"].asString();
if(!securityPhoneDeviceNode["Status"].isNull())
securityPhoneDevice_.status = securityPhoneDeviceNode["Status"].asString();
auto securityEmailDeviceNode = value["SecurityEmailDevice"];
if(!securityEmailDeviceNode["Email"].isNull())
securityEmailDevice_.email = securityEmailDeviceNode["Email"].asString();
if(!securityEmailDeviceNode["Status"].isNull())
securityEmailDevice_.status = securityEmailDeviceNode["Status"].asString();
}
GetVerificationInfoResult::SecurityEmailDevice GetVerificationInfoResult::getSecurityEmailDevice()const
{
return securityEmailDevice_;
}
GetVerificationInfoResult::SecurityPhoneDevice GetVerificationInfoResult::getSecurityPhoneDevice()const
{
return securityPhoneDevice_;
}

View File

@@ -0,0 +1,45 @@
/*
* 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/ims/model/ListAccessKeysRequest.h>
using AlibabaCloud::Ims::Model::ListAccessKeysRequest;
ListAccessKeysRequest::ListAccessKeysRequest()
: RpcServiceRequest("ims", "2019-08-15", "ListAccessKeys") {
setMethod(HttpRequest::Method::Post);
}
ListAccessKeysRequest::~ListAccessKeysRequest() {}
std::string ListAccessKeysRequest::getAkProxySuffix() const {
return akProxySuffix_;
}
void ListAccessKeysRequest::setAkProxySuffix(const std::string &akProxySuffix) {
akProxySuffix_ = akProxySuffix;
setParameter(std::string("AkProxySuffix"), akProxySuffix);
}
std::string ListAccessKeysRequest::getUserPrincipalName() const {
return userPrincipalName_;
}
void ListAccessKeysRequest::setUserPrincipalName(const std::string &userPrincipalName) {
userPrincipalName_ = userPrincipalName;
setParameter(std::string("UserPrincipalName"), userPrincipalName);
}

View File

@@ -0,0 +1,63 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ims/model/ListAccessKeysResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ims;
using namespace AlibabaCloud::Ims::Model;
ListAccessKeysResult::ListAccessKeysResult() :
ServiceResult()
{}
ListAccessKeysResult::ListAccessKeysResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ListAccessKeysResult::~ListAccessKeysResult()
{}
void ListAccessKeysResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allAccessKeysNode = value["AccessKeys"]["AccessKey"];
for (auto valueAccessKeysAccessKey : allAccessKeysNode)
{
AccessKey accessKeysObject;
if(!valueAccessKeysAccessKey["Status"].isNull())
accessKeysObject.status = valueAccessKeysAccessKey["Status"].asString();
if(!valueAccessKeysAccessKey["UpdateDate"].isNull())
accessKeysObject.updateDate = valueAccessKeysAccessKey["UpdateDate"].asString();
if(!valueAccessKeysAccessKey["AccessKeyId"].isNull())
accessKeysObject.accessKeyId = valueAccessKeysAccessKey["AccessKeyId"].asString();
if(!valueAccessKeysAccessKey["CreateDate"].isNull())
accessKeysObject.createDate = valueAccessKeysAccessKey["CreateDate"].asString();
accessKeys_.push_back(accessKeysObject);
}
}
std::vector<ListAccessKeysResult::AccessKey> ListAccessKeysResult::getAccessKeys()const
{
return accessKeys_;
}

View File

@@ -0,0 +1,45 @@
/*
* 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/ims/model/ListAppSecretIdsRequest.h>
using AlibabaCloud::Ims::Model::ListAppSecretIdsRequest;
ListAppSecretIdsRequest::ListAppSecretIdsRequest()
: RpcServiceRequest("ims", "2019-08-15", "ListAppSecretIds") {
setMethod(HttpRequest::Method::Post);
}
ListAppSecretIdsRequest::~ListAppSecretIdsRequest() {}
std::string ListAppSecretIdsRequest::getAkProxySuffix() const {
return akProxySuffix_;
}
void ListAppSecretIdsRequest::setAkProxySuffix(const std::string &akProxySuffix) {
akProxySuffix_ = akProxySuffix;
setParameter(std::string("AkProxySuffix"), akProxySuffix);
}
std::string ListAppSecretIdsRequest::getAppId() const {
return appId_;
}
void ListAppSecretIdsRequest::setAppId(const std::string &appId) {
appId_ = appId;
setParameter(std::string("AppId"), appId);
}

View 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/ims/model/ListAppSecretIdsResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ims;
using namespace AlibabaCloud::Ims::Model;
ListAppSecretIdsResult::ListAppSecretIdsResult() :
ServiceResult()
{}
ListAppSecretIdsResult::ListAppSecretIdsResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ListAppSecretIdsResult::~ListAppSecretIdsResult()
{}
void ListAppSecretIdsResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allAppSecretsNode = value["AppSecrets"]["AppSecret"];
for (auto valueAppSecretsAppSecret : allAppSecretsNode)
{
AppSecret appSecretsObject;
if(!valueAppSecretsAppSecret["AppId"].isNull())
appSecretsObject.appId = valueAppSecretsAppSecret["AppId"].asString();
if(!valueAppSecretsAppSecret["AppSecretId"].isNull())
appSecretsObject.appSecretId = valueAppSecretsAppSecret["AppSecretId"].asString();
if(!valueAppSecretsAppSecret["CreateDate"].isNull())
appSecretsObject.createDate = valueAppSecretsAppSecret["CreateDate"].asString();
appSecrets_.push_back(appSecretsObject);
}
}
std::vector<ListAppSecretIdsResult::AppSecret> ListAppSecretIdsResult::getAppSecrets()const
{
return appSecrets_;
}

View File

@@ -0,0 +1,36 @@
/*
* 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/ims/model/ListApplicationsRequest.h>
using AlibabaCloud::Ims::Model::ListApplicationsRequest;
ListApplicationsRequest::ListApplicationsRequest()
: RpcServiceRequest("ims", "2019-08-15", "ListApplications") {
setMethod(HttpRequest::Method::Post);
}
ListApplicationsRequest::~ListApplicationsRequest() {}
std::string ListApplicationsRequest::getAkProxySuffix() const {
return akProxySuffix_;
}
void ListApplicationsRequest::setAkProxySuffix(const std::string &akProxySuffix) {
akProxySuffix_ = akProxySuffix;
setParameter(std::string("AkProxySuffix"), akProxySuffix);
}

View File

@@ -0,0 +1,97 @@
/*
* 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/ims/model/ListApplicationsResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ims;
using namespace AlibabaCloud::Ims::Model;
ListApplicationsResult::ListApplicationsResult() :
ServiceResult()
{}
ListApplicationsResult::ListApplicationsResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ListApplicationsResult::~ListApplicationsResult()
{}
void ListApplicationsResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allApplicationsNode = value["Applications"]["Application"];
for (auto valueApplicationsApplication : allApplicationsNode)
{
Application applicationsObject;
if(!valueApplicationsApplication["DisplayName"].isNull())
applicationsObject.displayName = valueApplicationsApplication["DisplayName"].asString();
if(!valueApplicationsApplication["AccessTokenValidity"].isNull())
applicationsObject.accessTokenValidity = std::stoi(valueApplicationsApplication["AccessTokenValidity"].asString());
if(!valueApplicationsApplication["SecretRequired"].isNull())
applicationsObject.secretRequired = valueApplicationsApplication["SecretRequired"].asString() == "true";
if(!valueApplicationsApplication["AccountId"].isNull())
applicationsObject.accountId = valueApplicationsApplication["AccountId"].asString();
if(!valueApplicationsApplication["CreateDate"].isNull())
applicationsObject.createDate = valueApplicationsApplication["CreateDate"].asString();
if(!valueApplicationsApplication["AppName"].isNull())
applicationsObject.appName = valueApplicationsApplication["AppName"].asString();
if(!valueApplicationsApplication["UpdateDate"].isNull())
applicationsObject.updateDate = valueApplicationsApplication["UpdateDate"].asString();
if(!valueApplicationsApplication["AppId"].isNull())
applicationsObject.appId = valueApplicationsApplication["AppId"].asString();
if(!valueApplicationsApplication["RefreshTokenValidity"].isNull())
applicationsObject.refreshTokenValidity = std::stoi(valueApplicationsApplication["RefreshTokenValidity"].asString());
if(!valueApplicationsApplication["AppPrincipalName"].isNull())
applicationsObject.appPrincipalName = valueApplicationsApplication["AppPrincipalName"].asString();
if(!valueApplicationsApplication["IsMultiTenant"].isNull())
applicationsObject.isMultiTenant = valueApplicationsApplication["IsMultiTenant"].asString() == "true";
if(!valueApplicationsApplication["AppType"].isNull())
applicationsObject.appType = valueApplicationsApplication["AppType"].asString();
if(!valueApplicationsApplication["TenantId"].isNull())
applicationsObject.tenantId = valueApplicationsApplication["TenantId"].asString();
auto delegatedScopeNode = value["DelegatedScope"];
auto allPredefinedScopesNode = delegatedScopeNode["PredefinedScopes"]["PredefinedScope"];
for (auto delegatedScopeNodePredefinedScopesPredefinedScope : allPredefinedScopesNode)
{
Application::DelegatedScope::PredefinedScope predefinedScopeObject;
if(!delegatedScopeNodePredefinedScopesPredefinedScope["Description"].isNull())
predefinedScopeObject.description = delegatedScopeNodePredefinedScopesPredefinedScope["Description"].asString();
if(!delegatedScopeNodePredefinedScopesPredefinedScope["Name"].isNull())
predefinedScopeObject.name = delegatedScopeNodePredefinedScopesPredefinedScope["Name"].asString();
if(!delegatedScopeNodePredefinedScopesPredefinedScope["Required"].isNull())
predefinedScopeObject.required = delegatedScopeNodePredefinedScopesPredefinedScope["Required"].asString() == "true";
applicationsObject.delegatedScope.predefinedScopes.push_back(predefinedScopeObject);
}
auto allRedirectUris = value["RedirectUris"]["RedirectUri"];
for (auto value : allRedirectUris)
applicationsObject.redirectUris.push_back(value.asString());
applications_.push_back(applicationsObject);
}
}
std::vector<ListApplicationsResult::Application> ListApplicationsResult::getApplications()const
{
return applications_;
}

View File

@@ -0,0 +1,45 @@
/*
* 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/ims/model/ListGroupsForUserRequest.h>
using AlibabaCloud::Ims::Model::ListGroupsForUserRequest;
ListGroupsForUserRequest::ListGroupsForUserRequest()
: RpcServiceRequest("ims", "2019-08-15", "ListGroupsForUser") {
setMethod(HttpRequest::Method::Post);
}
ListGroupsForUserRequest::~ListGroupsForUserRequest() {}
std::string ListGroupsForUserRequest::getAkProxySuffix() const {
return akProxySuffix_;
}
void ListGroupsForUserRequest::setAkProxySuffix(const std::string &akProxySuffix) {
akProxySuffix_ = akProxySuffix;
setParameter(std::string("AkProxySuffix"), akProxySuffix);
}
std::string ListGroupsForUserRequest::getUserPrincipalName() const {
return userPrincipalName_;
}
void ListGroupsForUserRequest::setUserPrincipalName(const std::string &userPrincipalName) {
userPrincipalName_ = userPrincipalName;
setParameter(std::string("UserPrincipalName"), userPrincipalName);
}

View File

@@ -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/ims/model/ListGroupsForUserResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ims;
using namespace AlibabaCloud::Ims::Model;
ListGroupsForUserResult::ListGroupsForUserResult() :
ServiceResult()
{}
ListGroupsForUserResult::ListGroupsForUserResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ListGroupsForUserResult::~ListGroupsForUserResult()
{}
void ListGroupsForUserResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allGroupsNode = value["Groups"]["Group"];
for (auto valueGroupsGroup : allGroupsNode)
{
Group groupsObject;
if(!valueGroupsGroup["DisplayName"].isNull())
groupsObject.displayName = valueGroupsGroup["DisplayName"].asString();
if(!valueGroupsGroup["GroupPrincipalName"].isNull())
groupsObject.groupPrincipalName = valueGroupsGroup["GroupPrincipalName"].asString();
if(!valueGroupsGroup["GroupName"].isNull())
groupsObject.groupName = valueGroupsGroup["GroupName"].asString();
if(!valueGroupsGroup["GroupId"].isNull())
groupsObject.groupId = valueGroupsGroup["GroupId"].asString();
if(!valueGroupsGroup["Comments"].isNull())
groupsObject.comments = valueGroupsGroup["Comments"].asString();
if(!valueGroupsGroup["JoinDate"].isNull())
groupsObject.joinDate = valueGroupsGroup["JoinDate"].asString();
groups_.push_back(groupsObject);
}
}
std::vector<ListGroupsForUserResult::Group> ListGroupsForUserResult::getGroups()const
{
return groups_;
}

View File

@@ -0,0 +1,54 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ims/model/ListGroupsRequest.h>
using AlibabaCloud::Ims::Model::ListGroupsRequest;
ListGroupsRequest::ListGroupsRequest()
: RpcServiceRequest("ims", "2019-08-15", "ListGroups") {
setMethod(HttpRequest::Method::Post);
}
ListGroupsRequest::~ListGroupsRequest() {}
std::string ListGroupsRequest::getAkProxySuffix() const {
return akProxySuffix_;
}
void ListGroupsRequest::setAkProxySuffix(const std::string &akProxySuffix) {
akProxySuffix_ = akProxySuffix;
setParameter(std::string("AkProxySuffix"), akProxySuffix);
}
std::string ListGroupsRequest::getMarker() const {
return marker_;
}
void ListGroupsRequest::setMarker(const std::string &marker) {
marker_ = marker;
setParameter(std::string("Marker"), marker);
}
int ListGroupsRequest::getMaxItems() const {
return maxItems_;
}
void ListGroupsRequest::setMaxItems(int maxItems) {
maxItems_ = maxItems;
setParameter(std::string("MaxItems"), std::to_string(maxItems));
}

View File

@@ -0,0 +1,83 @@
/*
* 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/ims/model/ListGroupsResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ims;
using namespace AlibabaCloud::Ims::Model;
ListGroupsResult::ListGroupsResult() :
ServiceResult()
{}
ListGroupsResult::ListGroupsResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ListGroupsResult::~ListGroupsResult()
{}
void ListGroupsResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allGroupsNode = value["Groups"]["Group"];
for (auto valueGroupsGroup : allGroupsNode)
{
Group groupsObject;
if(!valueGroupsGroup["DisplayName"].isNull())
groupsObject.displayName = valueGroupsGroup["DisplayName"].asString();
if(!valueGroupsGroup["GroupPrincipalName"].isNull())
groupsObject.groupPrincipalName = valueGroupsGroup["GroupPrincipalName"].asString();
if(!valueGroupsGroup["GroupId"].isNull())
groupsObject.groupId = valueGroupsGroup["GroupId"].asString();
if(!valueGroupsGroup["UpdateDate"].isNull())
groupsObject.updateDate = valueGroupsGroup["UpdateDate"].asString();
if(!valueGroupsGroup["GroupName"].isNull())
groupsObject.groupName = valueGroupsGroup["GroupName"].asString();
if(!valueGroupsGroup["Comments"].isNull())
groupsObject.comments = valueGroupsGroup["Comments"].asString();
if(!valueGroupsGroup["CreateDate"].isNull())
groupsObject.createDate = valueGroupsGroup["CreateDate"].asString();
groups_.push_back(groupsObject);
}
if(!value["IsTruncated"].isNull())
isTruncated_ = value["IsTruncated"].asString() == "true";
if(!value["Marker"].isNull())
marker_ = value["Marker"].asString();
}
std::vector<ListGroupsResult::Group> ListGroupsResult::getGroups()const
{
return groups_;
}
bool ListGroupsResult::getIsTruncated()const
{
return isTruncated_;
}
std::string ListGroupsResult::getMarker()const
{
return marker_;
}

View File

@@ -0,0 +1,54 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ims/model/ListOIDCProvidersRequest.h>
using AlibabaCloud::Ims::Model::ListOIDCProvidersRequest;
ListOIDCProvidersRequest::ListOIDCProvidersRequest()
: RpcServiceRequest("ims", "2019-08-15", "ListOIDCProviders") {
setMethod(HttpRequest::Method::Post);
}
ListOIDCProvidersRequest::~ListOIDCProvidersRequest() {}
std::string ListOIDCProvidersRequest::getAkProxySuffix() const {
return akProxySuffix_;
}
void ListOIDCProvidersRequest::setAkProxySuffix(const std::string &akProxySuffix) {
akProxySuffix_ = akProxySuffix;
setParameter(std::string("AkProxySuffix"), akProxySuffix);
}
std::string ListOIDCProvidersRequest::getMarker() const {
return marker_;
}
void ListOIDCProvidersRequest::setMarker(const std::string &marker) {
marker_ = marker;
setParameter(std::string("Marker"), marker);
}
int ListOIDCProvidersRequest::getMaxItems() const {
return maxItems_;
}
void ListOIDCProvidersRequest::setMaxItems(int maxItems) {
maxItems_ = maxItems;
setParameter(std::string("MaxItems"), std::to_string(maxItems));
}

View File

@@ -0,0 +1,91 @@
/*
* 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/ims/model/ListOIDCProvidersResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ims;
using namespace AlibabaCloud::Ims::Model;
ListOIDCProvidersResult::ListOIDCProvidersResult() :
ServiceResult()
{}
ListOIDCProvidersResult::ListOIDCProvidersResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ListOIDCProvidersResult::~ListOIDCProvidersResult()
{}
void ListOIDCProvidersResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allOIDCProvidersNode = value["OIDCProviders"]["OIDCProvider"];
for (auto valueOIDCProvidersOIDCProvider : allOIDCProvidersNode)
{
OIDCProvider oIDCProvidersObject;
if(!valueOIDCProvidersOIDCProvider["UpdateDate"].isNull())
oIDCProvidersObject.updateDate = valueOIDCProvidersOIDCProvider["UpdateDate"].asString();
if(!valueOIDCProvidersOIDCProvider["Description"].isNull())
oIDCProvidersObject.description = valueOIDCProvidersOIDCProvider["Description"].asString();
if(!valueOIDCProvidersOIDCProvider["OIDCProviderName"].isNull())
oIDCProvidersObject.oIDCProviderName = valueOIDCProvidersOIDCProvider["OIDCProviderName"].asString();
if(!valueOIDCProvidersOIDCProvider["CreateDate"].isNull())
oIDCProvidersObject.createDate = valueOIDCProvidersOIDCProvider["CreateDate"].asString();
if(!valueOIDCProvidersOIDCProvider["Arn"].isNull())
oIDCProvidersObject.arn = valueOIDCProvidersOIDCProvider["Arn"].asString();
if(!valueOIDCProvidersOIDCProvider["IssuerUrl"].isNull())
oIDCProvidersObject.issuerUrl = valueOIDCProvidersOIDCProvider["IssuerUrl"].asString();
if(!valueOIDCProvidersOIDCProvider["Fingerprints"].isNull())
oIDCProvidersObject.fingerprints = valueOIDCProvidersOIDCProvider["Fingerprints"].asString();
if(!valueOIDCProvidersOIDCProvider["ClientIds"].isNull())
oIDCProvidersObject.clientIds = valueOIDCProvidersOIDCProvider["ClientIds"].asString();
if(!valueOIDCProvidersOIDCProvider["GmtCreate"].isNull())
oIDCProvidersObject.gmtCreate = valueOIDCProvidersOIDCProvider["GmtCreate"].asString();
if(!valueOIDCProvidersOIDCProvider["GmtModified"].isNull())
oIDCProvidersObject.gmtModified = valueOIDCProvidersOIDCProvider["GmtModified"].asString();
if(!valueOIDCProvidersOIDCProvider["IssuanceLimitTime"].isNull())
oIDCProvidersObject.issuanceLimitTime = std::stol(valueOIDCProvidersOIDCProvider["IssuanceLimitTime"].asString());
oIDCProviders_.push_back(oIDCProvidersObject);
}
if(!value["IsTruncated"].isNull())
isTruncated_ = value["IsTruncated"].asString() == "true";
if(!value["Marker"].isNull())
marker_ = value["Marker"].asString();
}
std::vector<ListOIDCProvidersResult::OIDCProvider> ListOIDCProvidersResult::getOIDCProviders()const
{
return oIDCProviders_;
}
bool ListOIDCProvidersResult::getIsTruncated()const
{
return isTruncated_;
}
std::string ListOIDCProvidersResult::getMarker()const
{
return marker_;
}

View File

@@ -0,0 +1,45 @@
/*
* 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/ims/model/ListPredefinedScopesRequest.h>
using AlibabaCloud::Ims::Model::ListPredefinedScopesRequest;
ListPredefinedScopesRequest::ListPredefinedScopesRequest()
: RpcServiceRequest("ims", "2019-08-15", "ListPredefinedScopes") {
setMethod(HttpRequest::Method::Post);
}
ListPredefinedScopesRequest::~ListPredefinedScopesRequest() {}
std::string ListPredefinedScopesRequest::getAkProxySuffix() const {
return akProxySuffix_;
}
void ListPredefinedScopesRequest::setAkProxySuffix(const std::string &akProxySuffix) {
akProxySuffix_ = akProxySuffix;
setParameter(std::string("AkProxySuffix"), akProxySuffix);
}
std::string ListPredefinedScopesRequest::getAppType() const {
return appType_;
}
void ListPredefinedScopesRequest::setAppType(const std::string &appType) {
appType_ = appType;
setParameter(std::string("AppType"), appType);
}

Some files were not shown because too many files have changed in this diff Show More