Supported Brand.

This commit is contained in:
sdk-team
2025-10-20 12:10:43 +00:00
parent f22a078c0d
commit 6abf1431b6
234 changed files with 15750 additions and 1 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,76 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/eiam/model/AddApplicationAccountToUserRequest.h>
using AlibabaCloud::Eiam::Model::AddApplicationAccountToUserRequest;
AddApplicationAccountToUserRequest::AddApplicationAccountToUserRequest()
: RpcServiceRequest("eiam", "2021-12-01", "AddApplicationAccountToUser") {
setMethod(HttpRequest::Method::Post);
}
AddApplicationAccountToUserRequest::~AddApplicationAccountToUserRequest() {}
std::string AddApplicationAccountToUserRequest::getUserId() const {
return userId_;
}
void AddApplicationAccountToUserRequest::setUserId(const std::string &userId) {
userId_ = userId;
setParameter(std::string("UserId"), userId);
}
std::string AddApplicationAccountToUserRequest::getApplicationId() const {
return applicationId_;
}
void AddApplicationAccountToUserRequest::setApplicationId(const std::string &applicationId) {
applicationId_ = applicationId;
setParameter(std::string("ApplicationId"), applicationId);
}
std::vector<AddApplicationAccountToUserRequest::ApplicationUserAttributes> AddApplicationAccountToUserRequest::getApplicationUserAttributes() const {
return applicationUserAttributes_;
}
void AddApplicationAccountToUserRequest::setApplicationUserAttributes(const std::vector<AddApplicationAccountToUserRequest::ApplicationUserAttributes> &applicationUserAttributes) {
applicationUserAttributes_ = applicationUserAttributes;
for(int dep1 = 0; dep1 != applicationUserAttributes.size(); dep1++) {
setParameter(std::string("ApplicationUserAttributes") + "." + std::to_string(dep1 + 1) + ".AttributeValueExpression", applicationUserAttributes[dep1].attributeValueExpression);
setParameter(std::string("ApplicationUserAttributes") + "." + std::to_string(dep1 + 1) + ".AttributeType", applicationUserAttributes[dep1].attributeType);
setParameter(std::string("ApplicationUserAttributes") + "." + std::to_string(dep1 + 1) + ".AttributeName", applicationUserAttributes[dep1].attributeName);
}
}
std::string AddApplicationAccountToUserRequest::getInstanceId() const {
return instanceId_;
}
void AddApplicationAccountToUserRequest::setInstanceId(const std::string &instanceId) {
instanceId_ = instanceId;
setParameter(std::string("InstanceId"), instanceId);
}
std::string AddApplicationAccountToUserRequest::getApplicationUsername() const {
return applicationUsername_;
}
void AddApplicationAccountToUserRequest::setApplicationUsername(const std::string &applicationUsername) {
applicationUsername_ = applicationUsername;
setParameter(std::string("ApplicationUsername"), applicationUsername);
}

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/eiam/model/AddApplicationAccountToUserResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Eiam;
using namespace AlibabaCloud::Eiam::Model;
AddApplicationAccountToUserResult::AddApplicationAccountToUserResult() :
ServiceResult()
{}
AddApplicationAccountToUserResult::AddApplicationAccountToUserResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
AddApplicationAccountToUserResult::~AddApplicationAccountToUserResult()
{}
void AddApplicationAccountToUserResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["ApplicationAccountId"].isNull())
applicationAccountId_ = value["ApplicationAccountId"].asString();
}
std::string AddApplicationAccountToUserResult::getApplicationAccountId()const
{
return applicationAccountId_;
}

View File

@@ -0,0 +1,102 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/eiam/model/CreateApplicationFederatedCredentialRequest.h>
using AlibabaCloud::Eiam::Model::CreateApplicationFederatedCredentialRequest;
CreateApplicationFederatedCredentialRequest::CreateApplicationFederatedCredentialRequest()
: RpcServiceRequest("eiam", "2021-12-01", "CreateApplicationFederatedCredential") {
setMethod(HttpRequest::Method::Post);
}
CreateApplicationFederatedCredentialRequest::~CreateApplicationFederatedCredentialRequest() {}
std::string CreateApplicationFederatedCredentialRequest::getDescription() const {
return description_;
}
void CreateApplicationFederatedCredentialRequest::setDescription(const std::string &description) {
description_ = description;
setParameter(std::string("Description"), description);
}
std::vector<CreateApplicationFederatedCredentialRequest::AttributeMappings> CreateApplicationFederatedCredentialRequest::getAttributeMappings() const {
return attributeMappings_;
}
void CreateApplicationFederatedCredentialRequest::setAttributeMappings(const std::vector<CreateApplicationFederatedCredentialRequest::AttributeMappings> &attributeMappings) {
attributeMappings_ = attributeMappings;
for(int dep1 = 0; dep1 != attributeMappings.size(); dep1++) {
setParameter(std::string("AttributeMappings") + "." + std::to_string(dep1 + 1) + ".SourceValueExpression", attributeMappings[dep1].sourceValueExpression);
setParameter(std::string("AttributeMappings") + "." + std::to_string(dep1 + 1) + ".TargetField", attributeMappings[dep1].targetField);
}
}
std::string CreateApplicationFederatedCredentialRequest::getFederatedCredentialProviderId() const {
return federatedCredentialProviderId_;
}
void CreateApplicationFederatedCredentialRequest::setFederatedCredentialProviderId(const std::string &federatedCredentialProviderId) {
federatedCredentialProviderId_ = federatedCredentialProviderId;
setParameter(std::string("FederatedCredentialProviderId"), federatedCredentialProviderId);
}
std::string CreateApplicationFederatedCredentialRequest::getApplicationId() const {
return applicationId_;
}
void CreateApplicationFederatedCredentialRequest::setApplicationId(const std::string &applicationId) {
applicationId_ = applicationId;
setParameter(std::string("ApplicationId"), applicationId);
}
std::string CreateApplicationFederatedCredentialRequest::getApplicationFederatedCredentialName() const {
return applicationFederatedCredentialName_;
}
void CreateApplicationFederatedCredentialRequest::setApplicationFederatedCredentialName(const std::string &applicationFederatedCredentialName) {
applicationFederatedCredentialName_ = applicationFederatedCredentialName;
setParameter(std::string("ApplicationFederatedCredentialName"), applicationFederatedCredentialName);
}
std::string CreateApplicationFederatedCredentialRequest::getInstanceId() const {
return instanceId_;
}
void CreateApplicationFederatedCredentialRequest::setInstanceId(const std::string &instanceId) {
instanceId_ = instanceId;
setParameter(std::string("InstanceId"), instanceId);
}
std::string CreateApplicationFederatedCredentialRequest::getVerificationCondition() const {
return verificationCondition_;
}
void CreateApplicationFederatedCredentialRequest::setVerificationCondition(const std::string &verificationCondition) {
verificationCondition_ = verificationCondition;
setParameter(std::string("VerificationCondition"), verificationCondition);
}
std::string CreateApplicationFederatedCredentialRequest::getApplicationFederatedCredentialType() const {
return applicationFederatedCredentialType_;
}
void CreateApplicationFederatedCredentialRequest::setApplicationFederatedCredentialType(const std::string &applicationFederatedCredentialType) {
applicationFederatedCredentialType_ = applicationFederatedCredentialType;
setParameter(std::string("ApplicationFederatedCredentialType"), applicationFederatedCredentialType);
}

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/eiam/model/CreateApplicationFederatedCredentialResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Eiam;
using namespace AlibabaCloud::Eiam::Model;
CreateApplicationFederatedCredentialResult::CreateApplicationFederatedCredentialResult() :
ServiceResult()
{}
CreateApplicationFederatedCredentialResult::CreateApplicationFederatedCredentialResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateApplicationFederatedCredentialResult::~CreateApplicationFederatedCredentialResult()
{}
void CreateApplicationFederatedCredentialResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["ApplicationFederatedCredentialId"].isNull())
applicationFederatedCredentialId_ = value["ApplicationFederatedCredentialId"].asString();
}
std::string CreateApplicationFederatedCredentialResult::getApplicationFederatedCredentialId()const
{
return applicationFederatedCredentialId_;
}

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/eiam/model/CreateApplicationTokenRequest.h>
using AlibabaCloud::Eiam::Model::CreateApplicationTokenRequest;
CreateApplicationTokenRequest::CreateApplicationTokenRequest()
: RpcServiceRequest("eiam", "2021-12-01", "CreateApplicationToken") {
setMethod(HttpRequest::Method::Post);
}
CreateApplicationTokenRequest::~CreateApplicationTokenRequest() {}
long CreateApplicationTokenRequest::getExpirationTime() const {
return expirationTime_;
}
void CreateApplicationTokenRequest::setExpirationTime(long expirationTime) {
expirationTime_ = expirationTime;
setParameter(std::string("ExpirationTime"), std::to_string(expirationTime));
}
std::string CreateApplicationTokenRequest::getApplicationId() const {
return applicationId_;
}
void CreateApplicationTokenRequest::setApplicationId(const std::string &applicationId) {
applicationId_ = applicationId;
setParameter(std::string("ApplicationId"), applicationId);
}
std::string CreateApplicationTokenRequest::getApplicationTokenType() const {
return applicationTokenType_;
}
void CreateApplicationTokenRequest::setApplicationTokenType(const std::string &applicationTokenType) {
applicationTokenType_ = applicationTokenType;
setParameter(std::string("ApplicationTokenType"), applicationTokenType);
}
std::string CreateApplicationTokenRequest::getInstanceId() const {
return instanceId_;
}
void CreateApplicationTokenRequest::setInstanceId(const std::string &instanceId) {
instanceId_ = instanceId;
setParameter(std::string("InstanceId"), instanceId);
}

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/eiam/model/CreateApplicationTokenResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Eiam;
using namespace AlibabaCloud::Eiam::Model;
CreateApplicationTokenResult::CreateApplicationTokenResult() :
ServiceResult()
{}
CreateApplicationTokenResult::CreateApplicationTokenResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateApplicationTokenResult::~CreateApplicationTokenResult()
{}
void CreateApplicationTokenResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto applicationTokensNode = value["ApplicationTokens"];
if(!applicationTokensNode["ApplicationTokenId"].isNull())
applicationTokens_.applicationTokenId = applicationTokensNode["ApplicationTokenId"].asString();
if(!applicationTokensNode["ApplicationToken"].isNull())
applicationTokens_.applicationToken = applicationTokensNode["ApplicationToken"].asString();
if(!applicationTokensNode["ApplicationTokenType"].isNull())
applicationTokens_.applicationTokenType = applicationTokensNode["ApplicationTokenType"].asString();
}
CreateApplicationTokenResult::ApplicationTokens CreateApplicationTokenResult::getApplicationTokens()const
{
return applicationTokens_;
}

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/eiam/model/CreateBrandRequest.h>
using AlibabaCloud::Eiam::Model::CreateBrandRequest;
CreateBrandRequest::CreateBrandRequest()
: RpcServiceRequest("eiam", "2021-12-01", "CreateBrand") {
setMethod(HttpRequest::Method::Post);
}
CreateBrandRequest::~CreateBrandRequest() {}
std::string CreateBrandRequest::getBrandName() const {
return brandName_;
}
void CreateBrandRequest::setBrandName(const std::string &brandName) {
brandName_ = brandName;
setParameter(std::string("BrandName"), brandName);
}
std::string CreateBrandRequest::getInstanceId() const {
return instanceId_;
}
void CreateBrandRequest::setInstanceId(const std::string &instanceId) {
instanceId_ = instanceId;
setParameter(std::string("InstanceId"), instanceId);
}

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/eiam/model/CreateBrandResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Eiam;
using namespace AlibabaCloud::Eiam::Model;
CreateBrandResult::CreateBrandResult() :
ServiceResult()
{}
CreateBrandResult::CreateBrandResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateBrandResult::~CreateBrandResult()
{}
void CreateBrandResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["BrandId"].isNull())
brandId_ = value["BrandId"].asString();
}
std::string CreateBrandResult::getBrandId()const
{
return brandId_;
}

View File

@@ -0,0 +1,117 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/eiam/model/CreateFederatedCredentialProviderRequest.h>
using AlibabaCloud::Eiam::Model::CreateFederatedCredentialProviderRequest;
CreateFederatedCredentialProviderRequest::CreateFederatedCredentialProviderRequest()
: RpcServiceRequest("eiam", "2021-12-01", "CreateFederatedCredentialProvider") {
setMethod(HttpRequest::Method::Post);
}
CreateFederatedCredentialProviderRequest::~CreateFederatedCredentialProviderRequest() {}
CreateFederatedCredentialProviderRequest::OidcProviderConfig CreateFederatedCredentialProviderRequest::getOidcProviderConfig() const {
return oidcProviderConfig_;
}
void CreateFederatedCredentialProviderRequest::setOidcProviderConfig(const CreateFederatedCredentialProviderRequest::OidcProviderConfig &oidcProviderConfig) {
oidcProviderConfig_ = oidcProviderConfig;
setParameter(std::string("OidcProviderConfig") + ".JwksSource", oidcProviderConfig.jwksSource);
setParameter(std::string("OidcProviderConfig") + ".StaticJwks", oidcProviderConfig.staticJwks);
setParameter(std::string("OidcProviderConfig") + ".TrustCondition", oidcProviderConfig.trustCondition);
setParameter(std::string("OidcProviderConfig") + ".JwksUri", oidcProviderConfig.jwksUri);
for(int dep1 = 0; dep1 != oidcProviderConfig.audiences.size(); dep1++) {
setParameter(std::string("OidcProviderConfig") + ".Audiences." + std::to_string(dep1 + 1), oidcProviderConfig.audiences[dep1]);
}
setParameter(std::string("OidcProviderConfig") + ".Issuer", oidcProviderConfig.issuer);
}
std::string CreateFederatedCredentialProviderRequest::getFederatedCredentialProviderName() const {
return federatedCredentialProviderName_;
}
void CreateFederatedCredentialProviderRequest::setFederatedCredentialProviderName(const std::string &federatedCredentialProviderName) {
federatedCredentialProviderName_ = federatedCredentialProviderName;
setParameter(std::string("FederatedCredentialProviderName"), federatedCredentialProviderName);
}
std::string CreateFederatedCredentialProviderRequest::getDescription() const {
return description_;
}
void CreateFederatedCredentialProviderRequest::setDescription(const std::string &description) {
description_ = description;
setParameter(std::string("Description"), description);
}
std::string CreateFederatedCredentialProviderRequest::getNetworkAccessEndpointId() const {
return networkAccessEndpointId_;
}
void CreateFederatedCredentialProviderRequest::setNetworkAccessEndpointId(const std::string &networkAccessEndpointId) {
networkAccessEndpointId_ = networkAccessEndpointId;
setParameter(std::string("NetworkAccessEndpointId"), networkAccessEndpointId);
}
CreateFederatedCredentialProviderRequest::PrivateCaProviderConfig CreateFederatedCredentialProviderRequest::getPrivateCaProviderConfig() const {
return privateCaProviderConfig_;
}
void CreateFederatedCredentialProviderRequest::setPrivateCaProviderConfig(const CreateFederatedCredentialProviderRequest::PrivateCaProviderConfig &privateCaProviderConfig) {
privateCaProviderConfig_ = privateCaProviderConfig;
for(int dep1 = 0; dep1 != privateCaProviderConfig.certificates.size(); dep1++) {
setParameter(std::string("PrivateCaProviderConfig") + ".Certificates." + std::to_string(dep1 + 1) + ".Content", privateCaProviderConfig.certificates[dep1].content);
}
setParameter(std::string("PrivateCaProviderConfig") + ".TrustCondition", privateCaProviderConfig.trustCondition);
setParameter(std::string("PrivateCaProviderConfig") + ".TrustAnchorSource", privateCaProviderConfig.trustAnchorSource);
}
std::string CreateFederatedCredentialProviderRequest::getFederatedCredentialProviderType() const {
return federatedCredentialProviderType_;
}
void CreateFederatedCredentialProviderRequest::setFederatedCredentialProviderType(const std::string &federatedCredentialProviderType) {
federatedCredentialProviderType_ = federatedCredentialProviderType;
setParameter(std::string("FederatedCredentialProviderType"), federatedCredentialProviderType);
}
std::string CreateFederatedCredentialProviderRequest::getInstanceId() const {
return instanceId_;
}
void CreateFederatedCredentialProviderRequest::setInstanceId(const std::string &instanceId) {
instanceId_ = instanceId;
setParameter(std::string("InstanceId"), instanceId);
}
CreateFederatedCredentialProviderRequest::Pkcs7ProviderConfig CreateFederatedCredentialProviderRequest::getPkcs7ProviderConfig() const {
return pkcs7ProviderConfig_;
}
void CreateFederatedCredentialProviderRequest::setPkcs7ProviderConfig(const CreateFederatedCredentialProviderRequest::Pkcs7ProviderConfig &pkcs7ProviderConfig) {
pkcs7ProviderConfig_ = pkcs7ProviderConfig;
setParameter(std::string("Pkcs7ProviderConfig") + ".SigningTimeValueExpression", pkcs7ProviderConfig.signingTimeValueExpression);
for(int dep1 = 0; dep1 != pkcs7ProviderConfig.certificates.size(); dep1++) {
setParameter(std::string("Pkcs7ProviderConfig") + ".Certificates." + std::to_string(dep1 + 1) + ".Content", pkcs7ProviderConfig.certificates[dep1].content);
}
setParameter(std::string("Pkcs7ProviderConfig") + ".TrustCondition", pkcs7ProviderConfig.trustCondition);
setParameter(std::string("Pkcs7ProviderConfig") + ".CmsVerificationMode", pkcs7ProviderConfig.cmsVerificationMode);
setParameter(std::string("Pkcs7ProviderConfig") + ".TrustAnchorSource", pkcs7ProviderConfig.trustAnchorSource);
setParameter(std::string("Pkcs7ProviderConfig") + ".SignatureEffectiveTime", std::to_string(pkcs7ProviderConfig.signatureEffectiveTime));
}

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/eiam/model/CreateFederatedCredentialProviderResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Eiam;
using namespace AlibabaCloud::Eiam::Model;
CreateFederatedCredentialProviderResult::CreateFederatedCredentialProviderResult() :
ServiceResult()
{}
CreateFederatedCredentialProviderResult::CreateFederatedCredentialProviderResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateFederatedCredentialProviderResult::~CreateFederatedCredentialProviderResult()
{}
void CreateFederatedCredentialProviderResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["FederatedCredentialProviderId"].isNull())
federatedCredentialProviderId_ = value["FederatedCredentialProviderId"].asString();
}
std::string CreateFederatedCredentialProviderResult::getFederatedCredentialProviderId()const
{
return federatedCredentialProviderId_;
}

View File

@@ -0,0 +1,103 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/eiam/model/CreateNetworkZoneRequest.h>
using AlibabaCloud::Eiam::Model::CreateNetworkZoneRequest;
CreateNetworkZoneRequest::CreateNetworkZoneRequest()
: RpcServiceRequest("eiam", "2021-12-01", "CreateNetworkZone") {
setMethod(HttpRequest::Method::Post);
}
CreateNetworkZoneRequest::~CreateNetworkZoneRequest() {}
std::string CreateNetworkZoneRequest::getNetworkZoneType() const {
return networkZoneType_;
}
void CreateNetworkZoneRequest::setNetworkZoneType(const std::string &networkZoneType) {
networkZoneType_ = networkZoneType;
setParameter(std::string("NetworkZoneType"), networkZoneType);
}
std::string CreateNetworkZoneRequest::getClientToken() const {
return clientToken_;
}
void CreateNetworkZoneRequest::setClientToken(const std::string &clientToken) {
clientToken_ = clientToken;
setParameter(std::string("ClientToken"), clientToken);
}
std::vector<CreateNetworkZoneRequest::std::string> CreateNetworkZoneRequest::getIpv6Cidrs() const {
return ipv6Cidrs_;
}
void CreateNetworkZoneRequest::setIpv6Cidrs(const std::vector<CreateNetworkZoneRequest::std::string> &ipv6Cidrs) {
ipv6Cidrs_ = ipv6Cidrs;
for(int dep1 = 0; dep1 != ipv6Cidrs.size(); dep1++) {
setParameter(std::string("Ipv6Cidrs") + "." + std::to_string(dep1 + 1), ipv6Cidrs[dep1]);
}
}
std::string CreateNetworkZoneRequest::getDescription() const {
return description_;
}
void CreateNetworkZoneRequest::setDescription(const std::string &description) {
description_ = description;
setParameter(std::string("Description"), description);
}
std::string CreateNetworkZoneRequest::getNetworkZoneName() const {
return networkZoneName_;
}
void CreateNetworkZoneRequest::setNetworkZoneName(const std::string &networkZoneName) {
networkZoneName_ = networkZoneName;
setParameter(std::string("NetworkZoneName"), networkZoneName);
}
std::vector<CreateNetworkZoneRequest::std::string> CreateNetworkZoneRequest::getIpv4Cidrs() const {
return ipv4Cidrs_;
}
void CreateNetworkZoneRequest::setIpv4Cidrs(const std::vector<CreateNetworkZoneRequest::std::string> &ipv4Cidrs) {
ipv4Cidrs_ = ipv4Cidrs;
for(int dep1 = 0; dep1 != ipv4Cidrs.size(); dep1++) {
setParameter(std::string("Ipv4Cidrs") + "." + std::to_string(dep1 + 1), ipv4Cidrs[dep1]);
}
}
std::string CreateNetworkZoneRequest::getInstanceId() const {
return instanceId_;
}
void CreateNetworkZoneRequest::setInstanceId(const std::string &instanceId) {
instanceId_ = instanceId;
setParameter(std::string("InstanceId"), instanceId);
}
std::string CreateNetworkZoneRequest::getVpcId() const {
return vpcId_;
}
void CreateNetworkZoneRequest::setVpcId(const std::string &vpcId) {
vpcId_ = vpcId;
setParameter(std::string("VpcId"), vpcId);
}

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/eiam/model/CreateNetworkZoneResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Eiam;
using namespace AlibabaCloud::Eiam::Model;
CreateNetworkZoneResult::CreateNetworkZoneResult() :
ServiceResult()
{}
CreateNetworkZoneResult::CreateNetworkZoneResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateNetworkZoneResult::~CreateNetworkZoneResult()
{}
void CreateNetworkZoneResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["NetworkZoneId"].isNull())
networkZoneId_ = value["NetworkZoneId"].asString();
}
std::string CreateNetworkZoneResult::getNetworkZoneId()const
{
return networkZoneId_;
}

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/eiam/model/DeleteApplicationFederatedCredentialRequest.h>
using AlibabaCloud::Eiam::Model::DeleteApplicationFederatedCredentialRequest;
DeleteApplicationFederatedCredentialRequest::DeleteApplicationFederatedCredentialRequest()
: RpcServiceRequest("eiam", "2021-12-01", "DeleteApplicationFederatedCredential") {
setMethod(HttpRequest::Method::Post);
}
DeleteApplicationFederatedCredentialRequest::~DeleteApplicationFederatedCredentialRequest() {}
std::string DeleteApplicationFederatedCredentialRequest::getApplicationFederatedCredentialId() const {
return applicationFederatedCredentialId_;
}
void DeleteApplicationFederatedCredentialRequest::setApplicationFederatedCredentialId(const std::string &applicationFederatedCredentialId) {
applicationFederatedCredentialId_ = applicationFederatedCredentialId;
setParameter(std::string("ApplicationFederatedCredentialId"), applicationFederatedCredentialId);
}
std::string DeleteApplicationFederatedCredentialRequest::getApplicationId() const {
return applicationId_;
}
void DeleteApplicationFederatedCredentialRequest::setApplicationId(const std::string &applicationId) {
applicationId_ = applicationId;
setParameter(std::string("ApplicationId"), applicationId);
}
std::string DeleteApplicationFederatedCredentialRequest::getInstanceId() const {
return instanceId_;
}
void DeleteApplicationFederatedCredentialRequest::setInstanceId(const std::string &instanceId) {
instanceId_ = instanceId;
setParameter(std::string("InstanceId"), instanceId);
}

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/eiam/model/DeleteApplicationFederatedCredentialResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Eiam;
using namespace AlibabaCloud::Eiam::Model;
DeleteApplicationFederatedCredentialResult::DeleteApplicationFederatedCredentialResult() :
ServiceResult()
{}
DeleteApplicationFederatedCredentialResult::DeleteApplicationFederatedCredentialResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DeleteApplicationFederatedCredentialResult::~DeleteApplicationFederatedCredentialResult()
{}
void DeleteApplicationFederatedCredentialResult::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/eiam/model/DeleteApplicationTokenRequest.h>
using AlibabaCloud::Eiam::Model::DeleteApplicationTokenRequest;
DeleteApplicationTokenRequest::DeleteApplicationTokenRequest()
: RpcServiceRequest("eiam", "2021-12-01", "DeleteApplicationToken") {
setMethod(HttpRequest::Method::Post);
}
DeleteApplicationTokenRequest::~DeleteApplicationTokenRequest() {}
std::string DeleteApplicationTokenRequest::getApplicationId() const {
return applicationId_;
}
void DeleteApplicationTokenRequest::setApplicationId(const std::string &applicationId) {
applicationId_ = applicationId;
setParameter(std::string("ApplicationId"), applicationId);
}
std::string DeleteApplicationTokenRequest::getApplicationTokenId() const {
return applicationTokenId_;
}
void DeleteApplicationTokenRequest::setApplicationTokenId(const std::string &applicationTokenId) {
applicationTokenId_ = applicationTokenId;
setParameter(std::string("ApplicationTokenId"), applicationTokenId);
}
std::string DeleteApplicationTokenRequest::getInstanceId() const {
return instanceId_;
}
void DeleteApplicationTokenRequest::setInstanceId(const std::string &instanceId) {
instanceId_ = instanceId;
setParameter(std::string("InstanceId"), instanceId);
}

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/eiam/model/DeleteApplicationTokenResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Eiam;
using namespace AlibabaCloud::Eiam::Model;
DeleteApplicationTokenResult::DeleteApplicationTokenResult() :
ServiceResult()
{}
DeleteApplicationTokenResult::DeleteApplicationTokenResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DeleteApplicationTokenResult::~DeleteApplicationTokenResult()
{}
void DeleteApplicationTokenResult::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/eiam/model/DeleteBrandRequest.h>
using AlibabaCloud::Eiam::Model::DeleteBrandRequest;
DeleteBrandRequest::DeleteBrandRequest()
: RpcServiceRequest("eiam", "2021-12-01", "DeleteBrand") {
setMethod(HttpRequest::Method::Post);
}
DeleteBrandRequest::~DeleteBrandRequest() {}
std::string DeleteBrandRequest::getInstanceId() const {
return instanceId_;
}
void DeleteBrandRequest::setInstanceId(const std::string &instanceId) {
instanceId_ = instanceId;
setParameter(std::string("InstanceId"), instanceId);
}
std::string DeleteBrandRequest::getBrandId() const {
return brandId_;
}
void DeleteBrandRequest::setBrandId(const std::string &brandId) {
brandId_ = brandId;
setParameter(std::string("BrandId"), brandId);
}

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/eiam/model/DeleteBrandResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Eiam;
using namespace AlibabaCloud::Eiam::Model;
DeleteBrandResult::DeleteBrandResult() :
ServiceResult()
{}
DeleteBrandResult::DeleteBrandResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DeleteBrandResult::~DeleteBrandResult()
{}
void DeleteBrandResult::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/eiam/model/DeleteFederatedCredentialProviderRequest.h>
using AlibabaCloud::Eiam::Model::DeleteFederatedCredentialProviderRequest;
DeleteFederatedCredentialProviderRequest::DeleteFederatedCredentialProviderRequest()
: RpcServiceRequest("eiam", "2021-12-01", "DeleteFederatedCredentialProvider") {
setMethod(HttpRequest::Method::Post);
}
DeleteFederatedCredentialProviderRequest::~DeleteFederatedCredentialProviderRequest() {}
std::string DeleteFederatedCredentialProviderRequest::getInstanceId() const {
return instanceId_;
}
void DeleteFederatedCredentialProviderRequest::setInstanceId(const std::string &instanceId) {
instanceId_ = instanceId;
setParameter(std::string("InstanceId"), instanceId);
}
std::string DeleteFederatedCredentialProviderRequest::getFederatedCredentialProviderId() const {
return federatedCredentialProviderId_;
}
void DeleteFederatedCredentialProviderRequest::setFederatedCredentialProviderId(const std::string &federatedCredentialProviderId) {
federatedCredentialProviderId_ = federatedCredentialProviderId;
setParameter(std::string("FederatedCredentialProviderId"), federatedCredentialProviderId);
}

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/eiam/model/DeleteFederatedCredentialProviderResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Eiam;
using namespace AlibabaCloud::Eiam::Model;
DeleteFederatedCredentialProviderResult::DeleteFederatedCredentialProviderResult() :
ServiceResult()
{}
DeleteFederatedCredentialProviderResult::DeleteFederatedCredentialProviderResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DeleteFederatedCredentialProviderResult::~DeleteFederatedCredentialProviderResult()
{}
void DeleteFederatedCredentialProviderResult::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/eiam/model/DeleteNetworkZoneRequest.h>
using AlibabaCloud::Eiam::Model::DeleteNetworkZoneRequest;
DeleteNetworkZoneRequest::DeleteNetworkZoneRequest()
: RpcServiceRequest("eiam", "2021-12-01", "DeleteNetworkZone") {
setMethod(HttpRequest::Method::Post);
}
DeleteNetworkZoneRequest::~DeleteNetworkZoneRequest() {}
std::string DeleteNetworkZoneRequest::getNetworkZoneId() const {
return networkZoneId_;
}
void DeleteNetworkZoneRequest::setNetworkZoneId(const std::string &networkZoneId) {
networkZoneId_ = networkZoneId;
setParameter(std::string("NetworkZoneId"), networkZoneId);
}
std::string DeleteNetworkZoneRequest::getInstanceId() const {
return instanceId_;
}
void DeleteNetworkZoneRequest::setInstanceId(const std::string &instanceId) {
instanceId_ = instanceId;
setParameter(std::string("InstanceId"), instanceId);
}

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/eiam/model/DeleteNetworkZoneResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Eiam;
using namespace AlibabaCloud::Eiam::Model;
DeleteNetworkZoneResult::DeleteNetworkZoneResult() :
ServiceResult()
{}
DeleteNetworkZoneResult::DeleteNetworkZoneResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DeleteNetworkZoneResult::~DeleteNetworkZoneResult()
{}
void DeleteNetworkZoneResult::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/eiam/model/DisableApplicationFederatedCredentialRequest.h>
using AlibabaCloud::Eiam::Model::DisableApplicationFederatedCredentialRequest;
DisableApplicationFederatedCredentialRequest::DisableApplicationFederatedCredentialRequest()
: RpcServiceRequest("eiam", "2021-12-01", "DisableApplicationFederatedCredential") {
setMethod(HttpRequest::Method::Post);
}
DisableApplicationFederatedCredentialRequest::~DisableApplicationFederatedCredentialRequest() {}
std::string DisableApplicationFederatedCredentialRequest::getApplicationFederatedCredentialId() const {
return applicationFederatedCredentialId_;
}
void DisableApplicationFederatedCredentialRequest::setApplicationFederatedCredentialId(const std::string &applicationFederatedCredentialId) {
applicationFederatedCredentialId_ = applicationFederatedCredentialId;
setParameter(std::string("ApplicationFederatedCredentialId"), applicationFederatedCredentialId);
}
std::string DisableApplicationFederatedCredentialRequest::getApplicationId() const {
return applicationId_;
}
void DisableApplicationFederatedCredentialRequest::setApplicationId(const std::string &applicationId) {
applicationId_ = applicationId;
setParameter(std::string("ApplicationId"), applicationId);
}
std::string DisableApplicationFederatedCredentialRequest::getInstanceId() const {
return instanceId_;
}
void DisableApplicationFederatedCredentialRequest::setInstanceId(const std::string &instanceId) {
instanceId_ = instanceId;
setParameter(std::string("InstanceId"), instanceId);
}

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/eiam/model/DisableApplicationFederatedCredentialResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Eiam;
using namespace AlibabaCloud::Eiam::Model;
DisableApplicationFederatedCredentialResult::DisableApplicationFederatedCredentialResult() :
ServiceResult()
{}
DisableApplicationFederatedCredentialResult::DisableApplicationFederatedCredentialResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DisableApplicationFederatedCredentialResult::~DisableApplicationFederatedCredentialResult()
{}
void DisableApplicationFederatedCredentialResult::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/eiam/model/DisableApplicationTokenRequest.h>
using AlibabaCloud::Eiam::Model::DisableApplicationTokenRequest;
DisableApplicationTokenRequest::DisableApplicationTokenRequest()
: RpcServiceRequest("eiam", "2021-12-01", "DisableApplicationToken") {
setMethod(HttpRequest::Method::Post);
}
DisableApplicationTokenRequest::~DisableApplicationTokenRequest() {}
std::string DisableApplicationTokenRequest::getApplicationId() const {
return applicationId_;
}
void DisableApplicationTokenRequest::setApplicationId(const std::string &applicationId) {
applicationId_ = applicationId;
setParameter(std::string("ApplicationId"), applicationId);
}
std::string DisableApplicationTokenRequest::getApplicationTokenId() const {
return applicationTokenId_;
}
void DisableApplicationTokenRequest::setApplicationTokenId(const std::string &applicationTokenId) {
applicationTokenId_ = applicationTokenId;
setParameter(std::string("ApplicationTokenId"), applicationTokenId);
}
std::string DisableApplicationTokenRequest::getInstanceId() const {
return instanceId_;
}
void DisableApplicationTokenRequest::setInstanceId(const std::string &instanceId) {
instanceId_ = instanceId;
setParameter(std::string("InstanceId"), instanceId);
}

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/eiam/model/DisableApplicationTokenResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Eiam;
using namespace AlibabaCloud::Eiam::Model;
DisableApplicationTokenResult::DisableApplicationTokenResult() :
ServiceResult()
{}
DisableApplicationTokenResult::DisableApplicationTokenResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DisableApplicationTokenResult::~DisableApplicationTokenResult()
{}
void DisableApplicationTokenResult::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/eiam/model/DisableBrandRequest.h>
using AlibabaCloud::Eiam::Model::DisableBrandRequest;
DisableBrandRequest::DisableBrandRequest()
: RpcServiceRequest("eiam", "2021-12-01", "DisableBrand") {
setMethod(HttpRequest::Method::Post);
}
DisableBrandRequest::~DisableBrandRequest() {}
std::string DisableBrandRequest::getInstanceId() const {
return instanceId_;
}
void DisableBrandRequest::setInstanceId(const std::string &instanceId) {
instanceId_ = instanceId;
setParameter(std::string("InstanceId"), instanceId);
}
std::string DisableBrandRequest::getBrandId() const {
return brandId_;
}
void DisableBrandRequest::setBrandId(const std::string &brandId) {
brandId_ = brandId;
setParameter(std::string("BrandId"), brandId);
}

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/eiam/model/DisableBrandResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Eiam;
using namespace AlibabaCloud::Eiam::Model;
DisableBrandResult::DisableBrandResult() :
ServiceResult()
{}
DisableBrandResult::DisableBrandResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DisableBrandResult::~DisableBrandResult()
{}
void DisableBrandResult::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/eiam/model/DisableFederatedCredentialProviderRequest.h>
using AlibabaCloud::Eiam::Model::DisableFederatedCredentialProviderRequest;
DisableFederatedCredentialProviderRequest::DisableFederatedCredentialProviderRequest()
: RpcServiceRequest("eiam", "2021-12-01", "DisableFederatedCredentialProvider") {
setMethod(HttpRequest::Method::Post);
}
DisableFederatedCredentialProviderRequest::~DisableFederatedCredentialProviderRequest() {}
std::string DisableFederatedCredentialProviderRequest::getInstanceId() const {
return instanceId_;
}
void DisableFederatedCredentialProviderRequest::setInstanceId(const std::string &instanceId) {
instanceId_ = instanceId;
setParameter(std::string("InstanceId"), instanceId);
}
std::string DisableFederatedCredentialProviderRequest::getFederatedCredentialProviderId() const {
return federatedCredentialProviderId_;
}
void DisableFederatedCredentialProviderRequest::setFederatedCredentialProviderId(const std::string &federatedCredentialProviderId) {
federatedCredentialProviderId_ = federatedCredentialProviderId;
setParameter(std::string("FederatedCredentialProviderId"), federatedCredentialProviderId);
}

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/eiam/model/DisableFederatedCredentialProviderResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Eiam;
using namespace AlibabaCloud::Eiam::Model;
DisableFederatedCredentialProviderResult::DisableFederatedCredentialProviderResult() :
ServiceResult()
{}
DisableFederatedCredentialProviderResult::DisableFederatedCredentialProviderResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DisableFederatedCredentialProviderResult::~DisableFederatedCredentialProviderResult()
{}
void DisableFederatedCredentialProviderResult::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/eiam/model/DisableIdentityProviderAuthnRequest.h>
using AlibabaCloud::Eiam::Model::DisableIdentityProviderAuthnRequest;
DisableIdentityProviderAuthnRequest::DisableIdentityProviderAuthnRequest()
: RpcServiceRequest("eiam", "2021-12-01", "DisableIdentityProviderAuthn") {
setMethod(HttpRequest::Method::Post);
}
DisableIdentityProviderAuthnRequest::~DisableIdentityProviderAuthnRequest() {}
std::string DisableIdentityProviderAuthnRequest::getInstanceId() const {
return instanceId_;
}
void DisableIdentityProviderAuthnRequest::setInstanceId(const std::string &instanceId) {
instanceId_ = instanceId;
setParameter(std::string("InstanceId"), instanceId);
}
std::string DisableIdentityProviderAuthnRequest::getIdentityProviderId() const {
return identityProviderId_;
}
void DisableIdentityProviderAuthnRequest::setIdentityProviderId(const std::string &identityProviderId) {
identityProviderId_ = identityProviderId;
setParameter(std::string("IdentityProviderId"), identityProviderId);
}

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/eiam/model/DisableIdentityProviderAuthnResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Eiam;
using namespace AlibabaCloud::Eiam::Model;
DisableIdentityProviderAuthnResult::DisableIdentityProviderAuthnResult() :
ServiceResult()
{}
DisableIdentityProviderAuthnResult::DisableIdentityProviderAuthnResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DisableIdentityProviderAuthnResult::~DisableIdentityProviderAuthnResult()
{}
void DisableIdentityProviderAuthnResult::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/eiam/model/EnableApplicationFederatedCredentialRequest.h>
using AlibabaCloud::Eiam::Model::EnableApplicationFederatedCredentialRequest;
EnableApplicationFederatedCredentialRequest::EnableApplicationFederatedCredentialRequest()
: RpcServiceRequest("eiam", "2021-12-01", "EnableApplicationFederatedCredential") {
setMethod(HttpRequest::Method::Post);
}
EnableApplicationFederatedCredentialRequest::~EnableApplicationFederatedCredentialRequest() {}
std::string EnableApplicationFederatedCredentialRequest::getApplicationFederatedCredentialId() const {
return applicationFederatedCredentialId_;
}
void EnableApplicationFederatedCredentialRequest::setApplicationFederatedCredentialId(const std::string &applicationFederatedCredentialId) {
applicationFederatedCredentialId_ = applicationFederatedCredentialId;
setParameter(std::string("ApplicationFederatedCredentialId"), applicationFederatedCredentialId);
}
std::string EnableApplicationFederatedCredentialRequest::getApplicationId() const {
return applicationId_;
}
void EnableApplicationFederatedCredentialRequest::setApplicationId(const std::string &applicationId) {
applicationId_ = applicationId;
setParameter(std::string("ApplicationId"), applicationId);
}
std::string EnableApplicationFederatedCredentialRequest::getInstanceId() const {
return instanceId_;
}
void EnableApplicationFederatedCredentialRequest::setInstanceId(const std::string &instanceId) {
instanceId_ = instanceId;
setParameter(std::string("InstanceId"), instanceId);
}

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/eiam/model/EnableApplicationFederatedCredentialResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Eiam;
using namespace AlibabaCloud::Eiam::Model;
EnableApplicationFederatedCredentialResult::EnableApplicationFederatedCredentialResult() :
ServiceResult()
{}
EnableApplicationFederatedCredentialResult::EnableApplicationFederatedCredentialResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
EnableApplicationFederatedCredentialResult::~EnableApplicationFederatedCredentialResult()
{}
void EnableApplicationFederatedCredentialResult::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/eiam/model/EnableApplicationTokenRequest.h>
using AlibabaCloud::Eiam::Model::EnableApplicationTokenRequest;
EnableApplicationTokenRequest::EnableApplicationTokenRequest()
: RpcServiceRequest("eiam", "2021-12-01", "EnableApplicationToken") {
setMethod(HttpRequest::Method::Post);
}
EnableApplicationTokenRequest::~EnableApplicationTokenRequest() {}
std::string EnableApplicationTokenRequest::getApplicationId() const {
return applicationId_;
}
void EnableApplicationTokenRequest::setApplicationId(const std::string &applicationId) {
applicationId_ = applicationId;
setParameter(std::string("ApplicationId"), applicationId);
}
std::string EnableApplicationTokenRequest::getApplicationTokenId() const {
return applicationTokenId_;
}
void EnableApplicationTokenRequest::setApplicationTokenId(const std::string &applicationTokenId) {
applicationTokenId_ = applicationTokenId;
setParameter(std::string("ApplicationTokenId"), applicationTokenId);
}
std::string EnableApplicationTokenRequest::getInstanceId() const {
return instanceId_;
}
void EnableApplicationTokenRequest::setInstanceId(const std::string &instanceId) {
instanceId_ = instanceId;
setParameter(std::string("InstanceId"), instanceId);
}

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/eiam/model/EnableApplicationTokenResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Eiam;
using namespace AlibabaCloud::Eiam::Model;
EnableApplicationTokenResult::EnableApplicationTokenResult() :
ServiceResult()
{}
EnableApplicationTokenResult::EnableApplicationTokenResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
EnableApplicationTokenResult::~EnableApplicationTokenResult()
{}
void EnableApplicationTokenResult::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/eiam/model/EnableBrandRequest.h>
using AlibabaCloud::Eiam::Model::EnableBrandRequest;
EnableBrandRequest::EnableBrandRequest()
: RpcServiceRequest("eiam", "2021-12-01", "EnableBrand") {
setMethod(HttpRequest::Method::Post);
}
EnableBrandRequest::~EnableBrandRequest() {}
std::string EnableBrandRequest::getInstanceId() const {
return instanceId_;
}
void EnableBrandRequest::setInstanceId(const std::string &instanceId) {
instanceId_ = instanceId;
setParameter(std::string("InstanceId"), instanceId);
}
std::string EnableBrandRequest::getBrandId() const {
return brandId_;
}
void EnableBrandRequest::setBrandId(const std::string &brandId) {
brandId_ = brandId;
setParameter(std::string("BrandId"), brandId);
}

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/eiam/model/EnableBrandResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Eiam;
using namespace AlibabaCloud::Eiam::Model;
EnableBrandResult::EnableBrandResult() :
ServiceResult()
{}
EnableBrandResult::EnableBrandResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
EnableBrandResult::~EnableBrandResult()
{}
void EnableBrandResult::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/eiam/model/EnableFederatedCredentialProviderRequest.h>
using AlibabaCloud::Eiam::Model::EnableFederatedCredentialProviderRequest;
EnableFederatedCredentialProviderRequest::EnableFederatedCredentialProviderRequest()
: RpcServiceRequest("eiam", "2021-12-01", "EnableFederatedCredentialProvider") {
setMethod(HttpRequest::Method::Post);
}
EnableFederatedCredentialProviderRequest::~EnableFederatedCredentialProviderRequest() {}
std::string EnableFederatedCredentialProviderRequest::getInstanceId() const {
return instanceId_;
}
void EnableFederatedCredentialProviderRequest::setInstanceId(const std::string &instanceId) {
instanceId_ = instanceId;
setParameter(std::string("InstanceId"), instanceId);
}
std::string EnableFederatedCredentialProviderRequest::getFederatedCredentialProviderId() const {
return federatedCredentialProviderId_;
}
void EnableFederatedCredentialProviderRequest::setFederatedCredentialProviderId(const std::string &federatedCredentialProviderId) {
federatedCredentialProviderId_ = federatedCredentialProviderId;
setParameter(std::string("FederatedCredentialProviderId"), federatedCredentialProviderId);
}

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/eiam/model/EnableFederatedCredentialProviderResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Eiam;
using namespace AlibabaCloud::Eiam::Model;
EnableFederatedCredentialProviderResult::EnableFederatedCredentialProviderResult() :
ServiceResult()
{}
EnableFederatedCredentialProviderResult::EnableFederatedCredentialProviderResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
EnableFederatedCredentialProviderResult::~EnableFederatedCredentialProviderResult()
{}
void EnableFederatedCredentialProviderResult::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/eiam/model/EnableIdentityProviderAuthnRequest.h>
using AlibabaCloud::Eiam::Model::EnableIdentityProviderAuthnRequest;
EnableIdentityProviderAuthnRequest::EnableIdentityProviderAuthnRequest()
: RpcServiceRequest("eiam", "2021-12-01", "EnableIdentityProviderAuthn") {
setMethod(HttpRequest::Method::Post);
}
EnableIdentityProviderAuthnRequest::~EnableIdentityProviderAuthnRequest() {}
std::string EnableIdentityProviderAuthnRequest::getInstanceId() const {
return instanceId_;
}
void EnableIdentityProviderAuthnRequest::setInstanceId(const std::string &instanceId) {
instanceId_ = instanceId;
setParameter(std::string("InstanceId"), instanceId);
}
std::string EnableIdentityProviderAuthnRequest::getIdentityProviderId() const {
return identityProviderId_;
}
void EnableIdentityProviderAuthnRequest::setIdentityProviderId(const std::string &identityProviderId) {
identityProviderId_ = identityProviderId;
setParameter(std::string("IdentityProviderId"), identityProviderId);
}

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/eiam/model/EnableIdentityProviderAuthnResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Eiam;
using namespace AlibabaCloud::Eiam::Model;
EnableIdentityProviderAuthnResult::EnableIdentityProviderAuthnResult() :
ServiceResult()
{}
EnableIdentityProviderAuthnResult::EnableIdentityProviderAuthnResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
EnableIdentityProviderAuthnResult::~EnableIdentityProviderAuthnResult()
{}
void EnableIdentityProviderAuthnResult::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/eiam/model/GetApplicationFederatedCredentialRequest.h>
using AlibabaCloud::Eiam::Model::GetApplicationFederatedCredentialRequest;
GetApplicationFederatedCredentialRequest::GetApplicationFederatedCredentialRequest()
: RpcServiceRequest("eiam", "2021-12-01", "GetApplicationFederatedCredential") {
setMethod(HttpRequest::Method::Post);
}
GetApplicationFederatedCredentialRequest::~GetApplicationFederatedCredentialRequest() {}
std::string GetApplicationFederatedCredentialRequest::getApplicationFederatedCredentialId() const {
return applicationFederatedCredentialId_;
}
void GetApplicationFederatedCredentialRequest::setApplicationFederatedCredentialId(const std::string &applicationFederatedCredentialId) {
applicationFederatedCredentialId_ = applicationFederatedCredentialId;
setParameter(std::string("ApplicationFederatedCredentialId"), applicationFederatedCredentialId);
}
std::string GetApplicationFederatedCredentialRequest::getApplicationId() const {
return applicationId_;
}
void GetApplicationFederatedCredentialRequest::setApplicationId(const std::string &applicationId) {
applicationId_ = applicationId;
setParameter(std::string("ApplicationId"), applicationId);
}
std::string GetApplicationFederatedCredentialRequest::getInstanceId() const {
return instanceId_;
}
void GetApplicationFederatedCredentialRequest::setInstanceId(const std::string &instanceId) {
instanceId_ = instanceId;
setParameter(std::string("InstanceId"), instanceId);
}

View File

@@ -0,0 +1,84 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/eiam/model/GetApplicationFederatedCredentialResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Eiam;
using namespace AlibabaCloud::Eiam::Model;
GetApplicationFederatedCredentialResult::GetApplicationFederatedCredentialResult() :
ServiceResult()
{}
GetApplicationFederatedCredentialResult::GetApplicationFederatedCredentialResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetApplicationFederatedCredentialResult::~GetApplicationFederatedCredentialResult()
{}
void GetApplicationFederatedCredentialResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto applicationFederatedCredentialNode = value["ApplicationFederatedCredential"];
if(!applicationFederatedCredentialNode["InstanceId"].isNull())
applicationFederatedCredential_.instanceId = applicationFederatedCredentialNode["InstanceId"].asString();
if(!applicationFederatedCredentialNode["ApplicationFederatedCredentialId"].isNull())
applicationFederatedCredential_.applicationFederatedCredentialId = applicationFederatedCredentialNode["ApplicationFederatedCredentialId"].asString();
if(!applicationFederatedCredentialNode["ApplicationId"].isNull())
applicationFederatedCredential_.applicationId = applicationFederatedCredentialNode["ApplicationId"].asString();
if(!applicationFederatedCredentialNode["FederatedCredentialProviderId"].isNull())
applicationFederatedCredential_.federatedCredentialProviderId = applicationFederatedCredentialNode["FederatedCredentialProviderId"].asString();
if(!applicationFederatedCredentialNode["ApplicationFederatedCredentialType"].isNull())
applicationFederatedCredential_.applicationFederatedCredentialType = applicationFederatedCredentialNode["ApplicationFederatedCredentialType"].asString();
if(!applicationFederatedCredentialNode["ApplicationFederatedCredentialName"].isNull())
applicationFederatedCredential_.applicationFederatedCredentialName = applicationFederatedCredentialNode["ApplicationFederatedCredentialName"].asString();
if(!applicationFederatedCredentialNode["Status"].isNull())
applicationFederatedCredential_.status = applicationFederatedCredentialNode["Status"].asString();
if(!applicationFederatedCredentialNode["Description"].isNull())
applicationFederatedCredential_.description = applicationFederatedCredentialNode["Description"].asString();
if(!applicationFederatedCredentialNode["CreateTime"].isNull())
applicationFederatedCredential_.createTime = std::stol(applicationFederatedCredentialNode["CreateTime"].asString());
if(!applicationFederatedCredentialNode["UpdateTime"].isNull())
applicationFederatedCredential_.updateTime = std::stol(applicationFederatedCredentialNode["UpdateTime"].asString());
if(!applicationFederatedCredentialNode["LastUsedTime"].isNull())
applicationFederatedCredential_.lastUsedTime = std::stol(applicationFederatedCredentialNode["LastUsedTime"].asString());
if(!applicationFederatedCredentialNode["VerificationCondition"].isNull())
applicationFederatedCredential_.verificationCondition = applicationFederatedCredentialNode["VerificationCondition"].asString();
auto allAttributeMappingsNode = applicationFederatedCredentialNode["AttributeMappings"]["AttributeMapping"];
for (auto applicationFederatedCredentialNodeAttributeMappingsAttributeMapping : allAttributeMappingsNode)
{
ApplicationFederatedCredential::AttributeMapping attributeMappingObject;
if(!applicationFederatedCredentialNodeAttributeMappingsAttributeMapping["SourceValueExpression"].isNull())
attributeMappingObject.sourceValueExpression = applicationFederatedCredentialNodeAttributeMappingsAttributeMapping["SourceValueExpression"].asString();
if(!applicationFederatedCredentialNodeAttributeMappingsAttributeMapping["TargetField"].isNull())
attributeMappingObject.targetField = applicationFederatedCredentialNodeAttributeMappingsAttributeMapping["TargetField"].asString();
applicationFederatedCredential_.attributeMappings.push_back(attributeMappingObject);
}
}
GetApplicationFederatedCredentialResult::ApplicationFederatedCredential GetApplicationFederatedCredentialResult::getApplicationFederatedCredential()const
{
return applicationFederatedCredential_;
}

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/eiam/model/GetApplicationTemplateRequest.h>
using AlibabaCloud::Eiam::Model::GetApplicationTemplateRequest;
GetApplicationTemplateRequest::GetApplicationTemplateRequest()
: RpcServiceRequest("eiam", "2021-12-01", "GetApplicationTemplate") {
setMethod(HttpRequest::Method::Post);
}
GetApplicationTemplateRequest::~GetApplicationTemplateRequest() {}
std::string GetApplicationTemplateRequest::getApplicationTemplateId() const {
return applicationTemplateId_;
}
void GetApplicationTemplateRequest::setApplicationTemplateId(const std::string &applicationTemplateId) {
applicationTemplateId_ = applicationTemplateId;
setParameter(std::string("ApplicationTemplateId"), applicationTemplateId);
}

View File

@@ -0,0 +1,76 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/eiam/model/GetApplicationTemplateResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Eiam;
using namespace AlibabaCloud::Eiam::Model;
GetApplicationTemplateResult::GetApplicationTemplateResult() :
ServiceResult()
{}
GetApplicationTemplateResult::GetApplicationTemplateResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetApplicationTemplateResult::~GetApplicationTemplateResult()
{}
void GetApplicationTemplateResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto applicationTemplateNode = value["ApplicationTemplate"];
if(!applicationTemplateNode["ApplicationTemplateId"].isNull())
applicationTemplate_.applicationTemplateId = applicationTemplateNode["ApplicationTemplateId"].asString();
if(!applicationTemplateNode["ApplicationTemplateName"].isNull())
applicationTemplate_.applicationTemplateName = applicationTemplateNode["ApplicationTemplateName"].asString();
if(!applicationTemplateNode["Description"].isNull())
applicationTemplate_.description = applicationTemplateNode["Description"].asString();
if(!applicationTemplateNode["LogoUrl"].isNull())
applicationTemplate_.logoUrl = applicationTemplateNode["LogoUrl"].asString();
if(!applicationTemplateNode["HelpDocumentUrl"].isNull())
applicationTemplate_.helpDocumentUrl = applicationTemplateNode["HelpDocumentUrl"].asString();
if(!applicationTemplateNode["CreateTime"].isNull())
applicationTemplate_.createTime = std::stol(applicationTemplateNode["CreateTime"].asString());
if(!applicationTemplateNode["UpdateTime"].isNull())
applicationTemplate_.updateTime = std::stol(applicationTemplateNode["UpdateTime"].asString());
if(!applicationTemplateNode["ServiceManaged"].isNull())
applicationTemplate_.serviceManaged = applicationTemplateNode["ServiceManaged"].asString() == "true";
if(!applicationTemplateNode["ManagedServiceCode"].isNull())
applicationTemplate_.managedServiceCode = applicationTemplateNode["ManagedServiceCode"].asString();
if(!applicationTemplateNode["ServiceConsoleUrl"].isNull())
applicationTemplate_.serviceConsoleUrl = applicationTemplateNode["ServiceConsoleUrl"].asString();
auto saleInfoNode = applicationTemplateNode["SaleInfo"];
if(!saleInfoNode["AlwaysFree"].isNull())
applicationTemplate_.saleInfo.alwaysFree = saleInfoNode["AlwaysFree"].asString() == "true";
auto allSsoTypes = applicationTemplateNode["SsoTypes"]["ssoType"];
for (auto value : allSsoTypes)
applicationTemplate_.ssoTypes.push_back(value.asString());
}
GetApplicationTemplateResult::ApplicationTemplate GetApplicationTemplateResult::getApplicationTemplate()const
{
return applicationTemplate_;
}

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/eiam/model/GetBrandRequest.h>
using AlibabaCloud::Eiam::Model::GetBrandRequest;
GetBrandRequest::GetBrandRequest()
: RpcServiceRequest("eiam", "2021-12-01", "GetBrand") {
setMethod(HttpRequest::Method::Post);
}
GetBrandRequest::~GetBrandRequest() {}
std::string GetBrandRequest::getInstanceId() const {
return instanceId_;
}
void GetBrandRequest::setInstanceId(const std::string &instanceId) {
instanceId_ = instanceId;
setParameter(std::string("InstanceId"), instanceId);
}
std::string GetBrandRequest::getBrandId() const {
return brandId_;
}
void GetBrandRequest::setBrandId(const std::string &brandId) {
brandId_ = brandId;
setParameter(std::string("BrandId"), brandId);
}

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/eiam/model/GetBrandResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Eiam;
using namespace AlibabaCloud::Eiam::Model;
GetBrandResult::GetBrandResult() :
ServiceResult()
{}
GetBrandResult::GetBrandResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetBrandResult::~GetBrandResult()
{}
void GetBrandResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto brandNode = value["Brand"];
if(!brandNode["InstanceId"].isNull())
brand_.instanceId = brandNode["InstanceId"].asString();
if(!brandNode["BrandId"].isNull())
brand_.brandId = brandNode["BrandId"].asString();
if(!brandNode["BrandName"].isNull())
brand_.brandName = brandNode["BrandName"].asString();
if(!brandNode["BrandType"].isNull())
brand_.brandType = brandNode["BrandType"].asString();
if(!brandNode["Status"].isNull())
brand_.status = brandNode["Status"].asString();
}
GetBrandResult::Brand GetBrandResult::getBrand()const
{
return brand_;
}

View File

@@ -56,6 +56,8 @@ void GetDomainResult::parse(const std::string &payload)
domain_.createTime = std::stol(domainNode["CreateTime"].asString());
if(!domainNode["UpdateTime"].isNull())
domain_.updateTime = std::stol(domainNode["UpdateTime"].asString());
if(!domainNode["BrandId"].isNull())
domain_.brandId = domainNode["BrandId"].asString();
auto filingNode = domainNode["Filing"];
if(!filingNode["IcpNumber"].isNull())
domain_.filing.icpNumber = filingNode["IcpNumber"].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/eiam/model/GetFederatedCredentialProviderRequest.h>
using AlibabaCloud::Eiam::Model::GetFederatedCredentialProviderRequest;
GetFederatedCredentialProviderRequest::GetFederatedCredentialProviderRequest()
: RpcServiceRequest("eiam", "2021-12-01", "GetFederatedCredentialProvider") {
setMethod(HttpRequest::Method::Post);
}
GetFederatedCredentialProviderRequest::~GetFederatedCredentialProviderRequest() {}
std::string GetFederatedCredentialProviderRequest::getInstanceId() const {
return instanceId_;
}
void GetFederatedCredentialProviderRequest::setInstanceId(const std::string &instanceId) {
instanceId_ = instanceId;
setParameter(std::string("InstanceId"), instanceId);
}
std::string GetFederatedCredentialProviderRequest::getFederatedCredentialProviderId() const {
return federatedCredentialProviderId_;
}
void GetFederatedCredentialProviderRequest::setFederatedCredentialProviderId(const std::string &federatedCredentialProviderId) {
federatedCredentialProviderId_ = federatedCredentialProviderId;
setParameter(std::string("FederatedCredentialProviderId"), federatedCredentialProviderId);
}

View File

@@ -0,0 +1,132 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/eiam/model/GetFederatedCredentialProviderResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Eiam;
using namespace AlibabaCloud::Eiam::Model;
GetFederatedCredentialProviderResult::GetFederatedCredentialProviderResult() :
ServiceResult()
{}
GetFederatedCredentialProviderResult::GetFederatedCredentialProviderResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetFederatedCredentialProviderResult::~GetFederatedCredentialProviderResult()
{}
void GetFederatedCredentialProviderResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto federatedCredentialProviderNode = value["FederatedCredentialProvider"];
if(!federatedCredentialProviderNode["InstanceId"].isNull())
federatedCredentialProvider_.instanceId = federatedCredentialProviderNode["InstanceId"].asString();
if(!federatedCredentialProviderNode["FederatedCredentialProviderId"].isNull())
federatedCredentialProvider_.federatedCredentialProviderId = federatedCredentialProviderNode["FederatedCredentialProviderId"].asString();
if(!federatedCredentialProviderNode["FederatedCredentialProviderName"].isNull())
federatedCredentialProvider_.federatedCredentialProviderName = federatedCredentialProviderNode["FederatedCredentialProviderName"].asString();
if(!federatedCredentialProviderNode["FederatedCredentialProviderType"].isNull())
federatedCredentialProvider_.federatedCredentialProviderType = federatedCredentialProviderNode["FederatedCredentialProviderType"].asString();
if(!federatedCredentialProviderNode["Description"].isNull())
federatedCredentialProvider_.description = federatedCredentialProviderNode["Description"].asString();
if(!federatedCredentialProviderNode["NetworkAccessEndpointId"].isNull())
federatedCredentialProvider_.networkAccessEndpointId = federatedCredentialProviderNode["NetworkAccessEndpointId"].asString();
if(!federatedCredentialProviderNode["Status"].isNull())
federatedCredentialProvider_.status = federatedCredentialProviderNode["Status"].asString();
if(!federatedCredentialProviderNode["CreateTime"].isNull())
federatedCredentialProvider_.createTime = std::stol(federatedCredentialProviderNode["CreateTime"].asString());
if(!federatedCredentialProviderNode["UpdateTime"].isNull())
federatedCredentialProvider_.updateTime = std::stol(federatedCredentialProviderNode["UpdateTime"].asString());
auto oidcProviderConfigNode = federatedCredentialProviderNode["OidcProviderConfig"];
if(!oidcProviderConfigNode["JwksSource"].isNull())
federatedCredentialProvider_.oidcProviderConfig.jwksSource = oidcProviderConfigNode["JwksSource"].asString();
if(!oidcProviderConfigNode["JwksUri"].isNull())
federatedCredentialProvider_.oidcProviderConfig.jwksUri = oidcProviderConfigNode["JwksUri"].asString();
if(!oidcProviderConfigNode["StaticJwks"].isNull())
federatedCredentialProvider_.oidcProviderConfig.staticJwks = oidcProviderConfigNode["StaticJwks"].asString();
if(!oidcProviderConfigNode["Issuer"].isNull())
federatedCredentialProvider_.oidcProviderConfig.issuer = oidcProviderConfigNode["Issuer"].asString();
if(!oidcProviderConfigNode["TrustCondition"].isNull())
federatedCredentialProvider_.oidcProviderConfig.trustCondition = oidcProviderConfigNode["TrustCondition"].asString();
if(!oidcProviderConfigNode["DynamicJwks"].isNull())
federatedCredentialProvider_.oidcProviderConfig.dynamicJwks = oidcProviderConfigNode["DynamicJwks"].asString();
if(!oidcProviderConfigNode["JwksLastObtainedTime"].isNull())
federatedCredentialProvider_.oidcProviderConfig.jwksLastObtainedTime = std::stol(oidcProviderConfigNode["JwksLastObtainedTime"].asString());
auto allAudiences = oidcProviderConfigNode["Audiences"]["Auidence"];
for (auto value : allAudiences)
federatedCredentialProvider_.oidcProviderConfig.audiences.push_back(value.asString());
auto pkcs7ProviderConfigNode = federatedCredentialProviderNode["Pkcs7ProviderConfig"];
if(!pkcs7ProviderConfigNode["TrustAnchorSource"].isNull())
federatedCredentialProvider_.pkcs7ProviderConfig.trustAnchorSource = pkcs7ProviderConfigNode["TrustAnchorSource"].asString();
if(!pkcs7ProviderConfigNode["TrustCondition"].isNull())
federatedCredentialProvider_.pkcs7ProviderConfig.trustCondition = pkcs7ProviderConfigNode["TrustCondition"].asString();
if(!pkcs7ProviderConfigNode["CmsVerificationMode"].isNull())
federatedCredentialProvider_.pkcs7ProviderConfig.cmsVerificationMode = pkcs7ProviderConfigNode["CmsVerificationMode"].asString();
if(!pkcs7ProviderConfigNode["SigningTimeValueExpression"].isNull())
federatedCredentialProvider_.pkcs7ProviderConfig.signingTimeValueExpression = pkcs7ProviderConfigNode["SigningTimeValueExpression"].asString();
if(!pkcs7ProviderConfigNode["SignatureEffectiveTime"].isNull())
federatedCredentialProvider_.pkcs7ProviderConfig.signatureEffectiveTime = std::stol(pkcs7ProviderConfigNode["SignatureEffectiveTime"].asString());
auto allCertificatesNode = pkcs7ProviderConfigNode["Certificates"]["Certificate"];
for (auto pkcs7ProviderConfigNodeCertificatesCertificate : allCertificatesNode)
{
FederatedCredentialProvider::Pkcs7ProviderConfig::Certificate certificateObject;
if(!pkcs7ProviderConfigNodeCertificatesCertificate["Fingerprint"].isNull())
certificateObject.fingerprint = pkcs7ProviderConfigNodeCertificatesCertificate["Fingerprint"].asString();
if(!pkcs7ProviderConfigNodeCertificatesCertificate["Content"].isNull())
certificateObject.content = pkcs7ProviderConfigNodeCertificatesCertificate["Content"].asString();
auto certificateMetadataNode = value["CertificateMetadata"];
if(!certificateMetadataNode["NotBefore"].isNull())
certificateObject.certificateMetadata.notBefore = std::stol(certificateMetadataNode["NotBefore"].asString());
if(!certificateMetadataNode["NotAfter"].isNull())
certificateObject.certificateMetadata.notAfter = std::stol(certificateMetadataNode["NotAfter"].asString());
federatedCredentialProvider_.pkcs7ProviderConfig.certificates.push_back(certificateObject);
}
auto privateCaProviderConfigNode = federatedCredentialProviderNode["PrivateCaProviderConfig"];
if(!privateCaProviderConfigNode["TrustAnchorSource"].isNull())
federatedCredentialProvider_.privateCaProviderConfig.trustAnchorSource = privateCaProviderConfigNode["TrustAnchorSource"].asString();
if(!privateCaProviderConfigNode["TrustCondition"].isNull())
federatedCredentialProvider_.privateCaProviderConfig.trustCondition = privateCaProviderConfigNode["TrustCondition"].asString();
auto allCertificates1Node = privateCaProviderConfigNode["Certificates"]["Certificate"];
for (auto privateCaProviderConfigNodeCertificatesCertificate : allCertificates1Node)
{
FederatedCredentialProvider::PrivateCaProviderConfig::Certificate2 certificate2Object;
if(!privateCaProviderConfigNodeCertificatesCertificate["Fingerprint"].isNull())
certificate2Object.fingerprint = privateCaProviderConfigNodeCertificatesCertificate["Fingerprint"].asString();
if(!privateCaProviderConfigNodeCertificatesCertificate["Content"].isNull())
certificate2Object.content = privateCaProviderConfigNodeCertificatesCertificate["Content"].asString();
auto certificateMetadata3Node = value["CertificateMetadata"];
if(!certificateMetadata3Node["NotBefore"].isNull())
certificate2Object.certificateMetadata3.notBefore = std::stol(certificateMetadata3Node["NotBefore"].asString());
if(!certificateMetadata3Node["NotAfter"].isNull())
certificate2Object.certificateMetadata3.notAfter = std::stol(certificateMetadata3Node["NotAfter"].asString());
federatedCredentialProvider_.privateCaProviderConfig.certificates1.push_back(certificate2Object);
}
}
GetFederatedCredentialProviderResult::FederatedCredentialProvider GetFederatedCredentialProviderResult::getFederatedCredentialProvider()const
{
return federatedCredentialProvider_;
}

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/eiam/model/GetLoginRedirectApplicationForBrandRequest.h>
using AlibabaCloud::Eiam::Model::GetLoginRedirectApplicationForBrandRequest;
GetLoginRedirectApplicationForBrandRequest::GetLoginRedirectApplicationForBrandRequest()
: RpcServiceRequest("eiam", "2021-12-01", "GetLoginRedirectApplicationForBrand") {
setMethod(HttpRequest::Method::Post);
}
GetLoginRedirectApplicationForBrandRequest::~GetLoginRedirectApplicationForBrandRequest() {}
std::string GetLoginRedirectApplicationForBrandRequest::getInstanceId() const {
return instanceId_;
}
void GetLoginRedirectApplicationForBrandRequest::setInstanceId(const std::string &instanceId) {
instanceId_ = instanceId;
setParameter(std::string("InstanceId"), instanceId);
}
std::string GetLoginRedirectApplicationForBrandRequest::getBrandId() const {
return brandId_;
}
void GetLoginRedirectApplicationForBrandRequest::setBrandId(const std::string &brandId) {
brandId_ = brandId;
setParameter(std::string("BrandId"), brandId);
}

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/eiam/model/GetLoginRedirectApplicationForBrandResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Eiam;
using namespace AlibabaCloud::Eiam::Model;
GetLoginRedirectApplicationForBrandResult::GetLoginRedirectApplicationForBrandResult() :
ServiceResult()
{}
GetLoginRedirectApplicationForBrandResult::GetLoginRedirectApplicationForBrandResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetLoginRedirectApplicationForBrandResult::~GetLoginRedirectApplicationForBrandResult()
{}
void GetLoginRedirectApplicationForBrandResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto brandLoginRedirectApplicationNode = value["BrandLoginRedirectApplication"];
if(!brandLoginRedirectApplicationNode["InstanceId"].isNull())
brandLoginRedirectApplication_.instanceId = brandLoginRedirectApplicationNode["InstanceId"].asString();
if(!brandLoginRedirectApplicationNode["BrandId"].isNull())
brandLoginRedirectApplication_.brandId = brandLoginRedirectApplicationNode["BrandId"].asString();
if(!brandLoginRedirectApplicationNode["ApplicationId"].isNull())
brandLoginRedirectApplication_.applicationId = brandLoginRedirectApplicationNode["ApplicationId"].asString();
}
GetLoginRedirectApplicationForBrandResult::BrandLoginRedirectApplication GetLoginRedirectApplicationForBrandResult::getBrandLoginRedirectApplication()const
{
return brandLoginRedirectApplication_;
}

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/eiam/model/GetNetworkZoneRequest.h>
using AlibabaCloud::Eiam::Model::GetNetworkZoneRequest;
GetNetworkZoneRequest::GetNetworkZoneRequest()
: RpcServiceRequest("eiam", "2021-12-01", "GetNetworkZone") {
setMethod(HttpRequest::Method::Post);
}
GetNetworkZoneRequest::~GetNetworkZoneRequest() {}
std::string GetNetworkZoneRequest::getNetworkZoneId() const {
return networkZoneId_;
}
void GetNetworkZoneRequest::setNetworkZoneId(const std::string &networkZoneId) {
networkZoneId_ = networkZoneId;
setParameter(std::string("NetworkZoneId"), networkZoneId);
}
std::string GetNetworkZoneRequest::getInstanceId() const {
return instanceId_;
}
void GetNetworkZoneRequest::setInstanceId(const std::string &instanceId) {
instanceId_ = instanceId;
setParameter(std::string("InstanceId"), instanceId);
}

View File

@@ -0,0 +1,68 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/eiam/model/GetNetworkZoneResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Eiam;
using namespace AlibabaCloud::Eiam::Model;
GetNetworkZoneResult::GetNetworkZoneResult() :
ServiceResult()
{}
GetNetworkZoneResult::GetNetworkZoneResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetNetworkZoneResult::~GetNetworkZoneResult()
{}
void GetNetworkZoneResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto networkZoneNode = value["NetworkZone"];
if(!networkZoneNode["InstanceId"].isNull())
networkZone_.instanceId = networkZoneNode["InstanceId"].asString();
if(!networkZoneNode["NetworkZoneId"].isNull())
networkZone_.networkZoneId = networkZoneNode["NetworkZoneId"].asString();
if(!networkZoneNode["NetworkZoneName"].isNull())
networkZone_.networkZoneName = networkZoneNode["NetworkZoneName"].asString();
if(!networkZoneNode["Description"].isNull())
networkZone_.description = networkZoneNode["Description"].asString();
if(!networkZoneNode["NetworkZoneType"].isNull())
networkZone_.networkZoneType = networkZoneNode["NetworkZoneType"].asString();
if(!networkZoneNode["VpcId"].isNull())
networkZone_.vpcId = networkZoneNode["VpcId"].asString();
auto allIpv4Cidrs = networkZoneNode["Ipv4Cidrs"]["ipv4Cidrs"];
for (auto value : allIpv4Cidrs)
networkZone_.ipv4Cidrs.push_back(value.asString());
auto allIpv6Cidrs = networkZoneNode["Ipv6Cidrs"]["ipv6Cidrs"];
for (auto value : allIpv6Cidrs)
networkZone_.ipv6Cidrs.push_back(value.asString());
}
GetNetworkZoneResult::NetworkZone GetNetworkZoneResult::getNetworkZone()const
{
return networkZone_;
}

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/eiam/model/ListApplicationAccountsForUserRequest.h>
using AlibabaCloud::Eiam::Model::ListApplicationAccountsForUserRequest;
ListApplicationAccountsForUserRequest::ListApplicationAccountsForUserRequest()
: RpcServiceRequest("eiam", "2021-12-01", "ListApplicationAccountsForUser") {
setMethod(HttpRequest::Method::Post);
}
ListApplicationAccountsForUserRequest::~ListApplicationAccountsForUserRequest() {}
std::string ListApplicationAccountsForUserRequest::getUserId() const {
return userId_;
}
void ListApplicationAccountsForUserRequest::setUserId(const std::string &userId) {
userId_ = userId;
setParameter(std::string("UserId"), userId);
}
std::string ListApplicationAccountsForUserRequest::getApplicationId() const {
return applicationId_;
}
void ListApplicationAccountsForUserRequest::setApplicationId(const std::string &applicationId) {
applicationId_ = applicationId;
setParameter(std::string("ApplicationId"), applicationId);
}
std::string ListApplicationAccountsForUserRequest::getInstanceId() const {
return instanceId_;
}
void ListApplicationAccountsForUserRequest::setInstanceId(const std::string &instanceId) {
instanceId_ = instanceId;
setParameter(std::string("InstanceId"), instanceId);
}

View File

@@ -0,0 +1,86 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/eiam/model/ListApplicationAccountsForUserResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Eiam;
using namespace AlibabaCloud::Eiam::Model;
ListApplicationAccountsForUserResult::ListApplicationAccountsForUserResult() :
ServiceResult()
{}
ListApplicationAccountsForUserResult::ListApplicationAccountsForUserResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ListApplicationAccountsForUserResult::~ListApplicationAccountsForUserResult()
{}
void ListApplicationAccountsForUserResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allApplicationAccountsNode = value["ApplicationAccounts"]["ApplicationAccount"];
for (auto valueApplicationAccountsApplicationAccount : allApplicationAccountsNode)
{
ApplicationAccount applicationAccountsObject;
if(!valueApplicationAccountsApplicationAccount["InstanceId"].isNull())
applicationAccountsObject.instanceId = valueApplicationAccountsApplicationAccount["InstanceId"].asString();
if(!valueApplicationAccountsApplicationAccount["ApplicationId"].isNull())
applicationAccountsObject.applicationId = valueApplicationAccountsApplicationAccount["ApplicationId"].asString();
if(!valueApplicationAccountsApplicationAccount["ApplicationAccountId"].isNull())
applicationAccountsObject.applicationAccountId = valueApplicationAccountsApplicationAccount["ApplicationAccountId"].asString();
if(!valueApplicationAccountsApplicationAccount["UserId"].isNull())
applicationAccountsObject.userId = valueApplicationAccountsApplicationAccount["UserId"].asString();
if(!valueApplicationAccountsApplicationAccount["ApplicationUsername"].isNull())
applicationAccountsObject.applicationUsername = valueApplicationAccountsApplicationAccount["ApplicationUsername"].asString();
if(!valueApplicationAccountsApplicationAccount["CreateTime"].isNull())
applicationAccountsObject.createTime = std::stol(valueApplicationAccountsApplicationAccount["CreateTime"].asString());
auto allApplicationUserAttributesNode = valueApplicationAccountsApplicationAccount["ApplicationUserAttributes"]["ApplicationUserAttribut"];
for (auto valueApplicationAccountsApplicationAccountApplicationUserAttributesApplicationUserAttribut : allApplicationUserAttributesNode)
{
ApplicationAccount::ApplicationUserAttribut applicationUserAttributesObject;
if(!valueApplicationAccountsApplicationAccountApplicationUserAttributesApplicationUserAttribut["AttributeName"].isNull())
applicationUserAttributesObject.attributeName = valueApplicationAccountsApplicationAccountApplicationUserAttributesApplicationUserAttribut["AttributeName"].asString();
if(!valueApplicationAccountsApplicationAccountApplicationUserAttributesApplicationUserAttribut["AttributeType"].isNull())
applicationUserAttributesObject.attributeType = valueApplicationAccountsApplicationAccountApplicationUserAttributesApplicationUserAttribut["AttributeType"].asString();
if(!valueApplicationAccountsApplicationAccountApplicationUserAttributesApplicationUserAttribut["AttributeValueExpression"].isNull())
applicationUserAttributesObject.attributeValueExpression = valueApplicationAccountsApplicationAccountApplicationUserAttributesApplicationUserAttribut["AttributeValueExpression"].asString();
applicationAccountsObject.applicationUserAttributes.push_back(applicationUserAttributesObject);
}
applicationAccounts_.push_back(applicationAccountsObject);
}
if(!value["TotalCount"].isNull())
totalCount_ = std::stol(value["TotalCount"].asString());
}
long ListApplicationAccountsForUserResult::getTotalCount()const
{
return totalCount_;
}
std::vector<ListApplicationAccountsForUserResult::ApplicationAccount> ListApplicationAccountsForUserResult::getApplicationAccounts()const
{
return applicationAccounts_;
}

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/eiam/model/ListApplicationAccountsRequest.h>
using AlibabaCloud::Eiam::Model::ListApplicationAccountsRequest;
ListApplicationAccountsRequest::ListApplicationAccountsRequest()
: RpcServiceRequest("eiam", "2021-12-01", "ListApplicationAccounts") {
setMethod(HttpRequest::Method::Post);
}
ListApplicationAccountsRequest::~ListApplicationAccountsRequest() {}
long ListApplicationAccountsRequest::getPageNumber() const {
return pageNumber_;
}
void ListApplicationAccountsRequest::setPageNumber(long pageNumber) {
pageNumber_ = pageNumber;
setParameter(std::string("PageNumber"), std::to_string(pageNumber));
}
long ListApplicationAccountsRequest::getPageSize() const {
return pageSize_;
}
void ListApplicationAccountsRequest::setPageSize(long pageSize) {
pageSize_ = pageSize;
setParameter(std::string("PageSize"), std::to_string(pageSize));
}
std::string ListApplicationAccountsRequest::getApplicationId() const {
return applicationId_;
}
void ListApplicationAccountsRequest::setApplicationId(const std::string &applicationId) {
applicationId_ = applicationId;
setParameter(std::string("ApplicationId"), applicationId);
}
std::string ListApplicationAccountsRequest::getInstanceId() const {
return instanceId_;
}
void ListApplicationAccountsRequest::setInstanceId(const std::string &instanceId) {
instanceId_ = instanceId;
setParameter(std::string("InstanceId"), instanceId);
}

View File

@@ -0,0 +1,86 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/eiam/model/ListApplicationAccountsResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Eiam;
using namespace AlibabaCloud::Eiam::Model;
ListApplicationAccountsResult::ListApplicationAccountsResult() :
ServiceResult()
{}
ListApplicationAccountsResult::ListApplicationAccountsResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ListApplicationAccountsResult::~ListApplicationAccountsResult()
{}
void ListApplicationAccountsResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allApplicationAccountsNode = value["ApplicationAccounts"]["ApplicationAccount"];
for (auto valueApplicationAccountsApplicationAccount : allApplicationAccountsNode)
{
ApplicationAccount applicationAccountsObject;
if(!valueApplicationAccountsApplicationAccount["InstanceId"].isNull())
applicationAccountsObject.instanceId = valueApplicationAccountsApplicationAccount["InstanceId"].asString();
if(!valueApplicationAccountsApplicationAccount["ApplicationId"].isNull())
applicationAccountsObject.applicationId = valueApplicationAccountsApplicationAccount["ApplicationId"].asString();
if(!valueApplicationAccountsApplicationAccount["ApplicationAccountId"].isNull())
applicationAccountsObject.applicationAccountId = valueApplicationAccountsApplicationAccount["ApplicationAccountId"].asString();
if(!valueApplicationAccountsApplicationAccount["UserId"].isNull())
applicationAccountsObject.userId = valueApplicationAccountsApplicationAccount["UserId"].asString();
if(!valueApplicationAccountsApplicationAccount["ApplicationUsername"].isNull())
applicationAccountsObject.applicationUsername = valueApplicationAccountsApplicationAccount["ApplicationUsername"].asString();
if(!valueApplicationAccountsApplicationAccount["CreateTime"].isNull())
applicationAccountsObject.createTime = std::stol(valueApplicationAccountsApplicationAccount["CreateTime"].asString());
auto allApplicationUserAttributesNode = valueApplicationAccountsApplicationAccount["ApplicationUserAttributes"]["ApplicationUserAttribut"];
for (auto valueApplicationAccountsApplicationAccountApplicationUserAttributesApplicationUserAttribut : allApplicationUserAttributesNode)
{
ApplicationAccount::ApplicationUserAttribut applicationUserAttributesObject;
if(!valueApplicationAccountsApplicationAccountApplicationUserAttributesApplicationUserAttribut["AttributeName"].isNull())
applicationUserAttributesObject.attributeName = valueApplicationAccountsApplicationAccountApplicationUserAttributesApplicationUserAttribut["AttributeName"].asString();
if(!valueApplicationAccountsApplicationAccountApplicationUserAttributesApplicationUserAttribut["AttributeType"].isNull())
applicationUserAttributesObject.attributeType = valueApplicationAccountsApplicationAccountApplicationUserAttributesApplicationUserAttribut["AttributeType"].asString();
if(!valueApplicationAccountsApplicationAccountApplicationUserAttributesApplicationUserAttribut["AttributeValueExpression"].isNull())
applicationUserAttributesObject.attributeValueExpression = valueApplicationAccountsApplicationAccountApplicationUserAttributesApplicationUserAttribut["AttributeValueExpression"].asString();
applicationAccountsObject.applicationUserAttributes.push_back(applicationUserAttributesObject);
}
applicationAccounts_.push_back(applicationAccountsObject);
}
if(!value["TotalCount"].isNull())
totalCount_ = std::stol(value["TotalCount"].asString());
}
long ListApplicationAccountsResult::getTotalCount()const
{
return totalCount_;
}
std::vector<ListApplicationAccountsResult::ApplicationAccount> ListApplicationAccountsResult::getApplicationAccounts()const
{
return applicationAccounts_;
}

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/eiam/model/ListApplicationFederatedCredentialsForProviderRequest.h>
using AlibabaCloud::Eiam::Model::ListApplicationFederatedCredentialsForProviderRequest;
ListApplicationFederatedCredentialsForProviderRequest::ListApplicationFederatedCredentialsForProviderRequest()
: RpcServiceRequest("eiam", "2021-12-01", "ListApplicationFederatedCredentialsForProvider") {
setMethod(HttpRequest::Method::Post);
}
ListApplicationFederatedCredentialsForProviderRequest::~ListApplicationFederatedCredentialsForProviderRequest() {}
std::string ListApplicationFederatedCredentialsForProviderRequest::getNextToken() const {
return nextToken_;
}
void ListApplicationFederatedCredentialsForProviderRequest::setNextToken(const std::string &nextToken) {
nextToken_ = nextToken;
setParameter(std::string("NextToken"), nextToken);
}
std::string ListApplicationFederatedCredentialsForProviderRequest::getFederatedCredentialProviderId() const {
return federatedCredentialProviderId_;
}
void ListApplicationFederatedCredentialsForProviderRequest::setFederatedCredentialProviderId(const std::string &federatedCredentialProviderId) {
federatedCredentialProviderId_ = federatedCredentialProviderId;
setParameter(std::string("FederatedCredentialProviderId"), federatedCredentialProviderId);
}
std::string ListApplicationFederatedCredentialsForProviderRequest::getPreviousToken() const {
return previousToken_;
}
void ListApplicationFederatedCredentialsForProviderRequest::setPreviousToken(const std::string &previousToken) {
previousToken_ = previousToken;
setParameter(std::string("PreviousToken"), previousToken);
}
std::string ListApplicationFederatedCredentialsForProviderRequest::getInstanceId() const {
return instanceId_;
}
void ListApplicationFederatedCredentialsForProviderRequest::setInstanceId(const std::string &instanceId) {
instanceId_ = instanceId;
setParameter(std::string("InstanceId"), instanceId);
}
int ListApplicationFederatedCredentialsForProviderRequest::getMaxResults() const {
return maxResults_;
}
void ListApplicationFederatedCredentialsForProviderRequest::setMaxResults(int maxResults) {
maxResults_ = maxResults;
setParameter(std::string("MaxResults"), std::to_string(maxResults));
}

View File

@@ -0,0 +1,105 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/eiam/model/ListApplicationFederatedCredentialsForProviderResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Eiam;
using namespace AlibabaCloud::Eiam::Model;
ListApplicationFederatedCredentialsForProviderResult::ListApplicationFederatedCredentialsForProviderResult() :
ServiceResult()
{}
ListApplicationFederatedCredentialsForProviderResult::ListApplicationFederatedCredentialsForProviderResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ListApplicationFederatedCredentialsForProviderResult::~ListApplicationFederatedCredentialsForProviderResult()
{}
void ListApplicationFederatedCredentialsForProviderResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allApplicationFederatedCredentialsNode = value["ApplicationFederatedCredentials"]["ApplicationFederatedCredential"];
for (auto valueApplicationFederatedCredentialsApplicationFederatedCredential : allApplicationFederatedCredentialsNode)
{
ApplicationFederatedCredential applicationFederatedCredentialsObject;
if(!valueApplicationFederatedCredentialsApplicationFederatedCredential["Status"].isNull())
applicationFederatedCredentialsObject.status = valueApplicationFederatedCredentialsApplicationFederatedCredential["Status"].asString();
if(!valueApplicationFederatedCredentialsApplicationFederatedCredential["Description"].isNull())
applicationFederatedCredentialsObject.description = valueApplicationFederatedCredentialsApplicationFederatedCredential["Description"].asString();
if(!valueApplicationFederatedCredentialsApplicationFederatedCredential["InstanceId"].isNull())
applicationFederatedCredentialsObject.instanceId = valueApplicationFederatedCredentialsApplicationFederatedCredential["InstanceId"].asString();
if(!valueApplicationFederatedCredentialsApplicationFederatedCredential["ApplicationFederatedCredentialType"].isNull())
applicationFederatedCredentialsObject.applicationFederatedCredentialType = valueApplicationFederatedCredentialsApplicationFederatedCredential["ApplicationFederatedCredentialType"].asString();
if(!valueApplicationFederatedCredentialsApplicationFederatedCredential["CreateTime"].isNull())
applicationFederatedCredentialsObject.createTime = std::stol(valueApplicationFederatedCredentialsApplicationFederatedCredential["CreateTime"].asString());
if(!valueApplicationFederatedCredentialsApplicationFederatedCredential["LastUsedTime"].isNull())
applicationFederatedCredentialsObject.lastUsedTime = std::stol(valueApplicationFederatedCredentialsApplicationFederatedCredential["LastUsedTime"].asString());
if(!valueApplicationFederatedCredentialsApplicationFederatedCredential["UpdateTime"].isNull())
applicationFederatedCredentialsObject.updateTime = std::stol(valueApplicationFederatedCredentialsApplicationFederatedCredential["UpdateTime"].asString());
if(!valueApplicationFederatedCredentialsApplicationFederatedCredential["ApplicationFederatedCredentialName"].isNull())
applicationFederatedCredentialsObject.applicationFederatedCredentialName = valueApplicationFederatedCredentialsApplicationFederatedCredential["ApplicationFederatedCredentialName"].asString();
if(!valueApplicationFederatedCredentialsApplicationFederatedCredential["ApplicationId"].isNull())
applicationFederatedCredentialsObject.applicationId = valueApplicationFederatedCredentialsApplicationFederatedCredential["ApplicationId"].asString();
if(!valueApplicationFederatedCredentialsApplicationFederatedCredential["FederatedCredentialProviderId"].isNull())
applicationFederatedCredentialsObject.federatedCredentialProviderId = valueApplicationFederatedCredentialsApplicationFederatedCredential["FederatedCredentialProviderId"].asString();
if(!valueApplicationFederatedCredentialsApplicationFederatedCredential["ApplicationFederatedCredentialId"].isNull())
applicationFederatedCredentialsObject.applicationFederatedCredentialId = valueApplicationFederatedCredentialsApplicationFederatedCredential["ApplicationFederatedCredentialId"].asString();
applicationFederatedCredentials_.push_back(applicationFederatedCredentialsObject);
}
if(!value["TotalCount"].isNull())
totalCount_ = std::stoi(value["TotalCount"].asString());
if(!value["NextToken"].isNull())
nextToken_ = value["NextToken"].asString();
if(!value["PreviousToken"].isNull())
previousToken_ = value["PreviousToken"].asString();
if(!value["MaxResults"].isNull())
maxResults_ = std::stoi(value["MaxResults"].asString());
}
int ListApplicationFederatedCredentialsForProviderResult::getTotalCount()const
{
return totalCount_;
}
std::string ListApplicationFederatedCredentialsForProviderResult::getPreviousToken()const
{
return previousToken_;
}
std::string ListApplicationFederatedCredentialsForProviderResult::getNextToken()const
{
return nextToken_;
}
std::vector<ListApplicationFederatedCredentialsForProviderResult::ApplicationFederatedCredential> ListApplicationFederatedCredentialsForProviderResult::getApplicationFederatedCredentials()const
{
return applicationFederatedCredentials_;
}
int ListApplicationFederatedCredentialsForProviderResult::getMaxResults()const
{
return maxResults_;
}

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/eiam/model/ListApplicationFederatedCredentialsRequest.h>
using AlibabaCloud::Eiam::Model::ListApplicationFederatedCredentialsRequest;
ListApplicationFederatedCredentialsRequest::ListApplicationFederatedCredentialsRequest()
: RpcServiceRequest("eiam", "2021-12-01", "ListApplicationFederatedCredentials") {
setMethod(HttpRequest::Method::Post);
}
ListApplicationFederatedCredentialsRequest::~ListApplicationFederatedCredentialsRequest() {}
std::string ListApplicationFederatedCredentialsRequest::getNextToken() const {
return nextToken_;
}
void ListApplicationFederatedCredentialsRequest::setNextToken(const std::string &nextToken) {
nextToken_ = nextToken;
setParameter(std::string("NextToken"), nextToken);
}
std::string ListApplicationFederatedCredentialsRequest::getApplicationId() const {
return applicationId_;
}
void ListApplicationFederatedCredentialsRequest::setApplicationId(const std::string &applicationId) {
applicationId_ = applicationId;
setParameter(std::string("ApplicationId"), applicationId);
}
std::string ListApplicationFederatedCredentialsRequest::getPreviousToken() const {
return previousToken_;
}
void ListApplicationFederatedCredentialsRequest::setPreviousToken(const std::string &previousToken) {
previousToken_ = previousToken;
setParameter(std::string("PreviousToken"), previousToken);
}
std::string ListApplicationFederatedCredentialsRequest::getInstanceId() const {
return instanceId_;
}
void ListApplicationFederatedCredentialsRequest::setInstanceId(const std::string &instanceId) {
instanceId_ = instanceId;
setParameter(std::string("InstanceId"), instanceId);
}
std::string ListApplicationFederatedCredentialsRequest::getApplicationFederatedCredentialType() const {
return applicationFederatedCredentialType_;
}
void ListApplicationFederatedCredentialsRequest::setApplicationFederatedCredentialType(const std::string &applicationFederatedCredentialType) {
applicationFederatedCredentialType_ = applicationFederatedCredentialType;
setParameter(std::string("ApplicationFederatedCredentialType"), applicationFederatedCredentialType);
}
int ListApplicationFederatedCredentialsRequest::getMaxResults() const {
return maxResults_;
}
void ListApplicationFederatedCredentialsRequest::setMaxResults(int maxResults) {
maxResults_ = maxResults;
setParameter(std::string("MaxResults"), std::to_string(maxResults));
}

View File

@@ -0,0 +1,105 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/eiam/model/ListApplicationFederatedCredentialsResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Eiam;
using namespace AlibabaCloud::Eiam::Model;
ListApplicationFederatedCredentialsResult::ListApplicationFederatedCredentialsResult() :
ServiceResult()
{}
ListApplicationFederatedCredentialsResult::ListApplicationFederatedCredentialsResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ListApplicationFederatedCredentialsResult::~ListApplicationFederatedCredentialsResult()
{}
void ListApplicationFederatedCredentialsResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allApplicationFederatedCredentialsNode = value["ApplicationFederatedCredentials"]["ApplicationFederatedCredential"];
for (auto valueApplicationFederatedCredentialsApplicationFederatedCredential : allApplicationFederatedCredentialsNode)
{
ApplicationFederatedCredential applicationFederatedCredentialsObject;
if(!valueApplicationFederatedCredentialsApplicationFederatedCredential["Status"].isNull())
applicationFederatedCredentialsObject.status = valueApplicationFederatedCredentialsApplicationFederatedCredential["Status"].asString();
if(!valueApplicationFederatedCredentialsApplicationFederatedCredential["Description"].isNull())
applicationFederatedCredentialsObject.description = valueApplicationFederatedCredentialsApplicationFederatedCredential["Description"].asString();
if(!valueApplicationFederatedCredentialsApplicationFederatedCredential["InstanceId"].isNull())
applicationFederatedCredentialsObject.instanceId = valueApplicationFederatedCredentialsApplicationFederatedCredential["InstanceId"].asString();
if(!valueApplicationFederatedCredentialsApplicationFederatedCredential["ApplicationFederatedCredentialType"].isNull())
applicationFederatedCredentialsObject.applicationFederatedCredentialType = valueApplicationFederatedCredentialsApplicationFederatedCredential["ApplicationFederatedCredentialType"].asString();
if(!valueApplicationFederatedCredentialsApplicationFederatedCredential["CreateTime"].isNull())
applicationFederatedCredentialsObject.createTime = std::stol(valueApplicationFederatedCredentialsApplicationFederatedCredential["CreateTime"].asString());
if(!valueApplicationFederatedCredentialsApplicationFederatedCredential["LastUsedTime"].isNull())
applicationFederatedCredentialsObject.lastUsedTime = std::stol(valueApplicationFederatedCredentialsApplicationFederatedCredential["LastUsedTime"].asString());
if(!valueApplicationFederatedCredentialsApplicationFederatedCredential["UpdateTime"].isNull())
applicationFederatedCredentialsObject.updateTime = std::stol(valueApplicationFederatedCredentialsApplicationFederatedCredential["UpdateTime"].asString());
if(!valueApplicationFederatedCredentialsApplicationFederatedCredential["ApplicationFederatedCredentialName"].isNull())
applicationFederatedCredentialsObject.applicationFederatedCredentialName = valueApplicationFederatedCredentialsApplicationFederatedCredential["ApplicationFederatedCredentialName"].asString();
if(!valueApplicationFederatedCredentialsApplicationFederatedCredential["ApplicationId"].isNull())
applicationFederatedCredentialsObject.applicationId = valueApplicationFederatedCredentialsApplicationFederatedCredential["ApplicationId"].asString();
if(!valueApplicationFederatedCredentialsApplicationFederatedCredential["FederatedCredentialProviderId"].isNull())
applicationFederatedCredentialsObject.federatedCredentialProviderId = valueApplicationFederatedCredentialsApplicationFederatedCredential["FederatedCredentialProviderId"].asString();
if(!valueApplicationFederatedCredentialsApplicationFederatedCredential["ApplicationFederatedCredentialId"].isNull())
applicationFederatedCredentialsObject.applicationFederatedCredentialId = valueApplicationFederatedCredentialsApplicationFederatedCredential["ApplicationFederatedCredentialId"].asString();
applicationFederatedCredentials_.push_back(applicationFederatedCredentialsObject);
}
if(!value["TotalCount"].isNull())
totalCount_ = std::stol(value["TotalCount"].asString());
if(!value["NextToken"].isNull())
nextToken_ = value["NextToken"].asString();
if(!value["PreviousToken"].isNull())
previousToken_ = value["PreviousToken"].asString();
if(!value["MaxResults"].isNull())
maxResults_ = std::stoi(value["MaxResults"].asString());
}
long ListApplicationFederatedCredentialsResult::getTotalCount()const
{
return totalCount_;
}
std::string ListApplicationFederatedCredentialsResult::getPreviousToken()const
{
return previousToken_;
}
std::string ListApplicationFederatedCredentialsResult::getNextToken()const
{
return nextToken_;
}
std::vector<ListApplicationFederatedCredentialsResult::ApplicationFederatedCredential> ListApplicationFederatedCredentialsResult::getApplicationFederatedCredentials()const
{
return applicationFederatedCredentials_;
}
int ListApplicationFederatedCredentialsResult::getMaxResults()const
{
return maxResults_;
}

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/eiam/model/ListApplicationSupportedProvisionProtocolTypesRequest.h>
using AlibabaCloud::Eiam::Model::ListApplicationSupportedProvisionProtocolTypesRequest;
ListApplicationSupportedProvisionProtocolTypesRequest::ListApplicationSupportedProvisionProtocolTypesRequest()
: RpcServiceRequest("eiam", "2021-12-01", "ListApplicationSupportedProvisionProtocolTypes") {
setMethod(HttpRequest::Method::Post);
}
ListApplicationSupportedProvisionProtocolTypesRequest::~ListApplicationSupportedProvisionProtocolTypesRequest() {}
std::string ListApplicationSupportedProvisionProtocolTypesRequest::getInstanceId() const {
return instanceId_;
}
void ListApplicationSupportedProvisionProtocolTypesRequest::setInstanceId(const std::string &instanceId) {
instanceId_ = instanceId;
setParameter(std::string("InstanceId"), instanceId);
}
std::string ListApplicationSupportedProvisionProtocolTypesRequest::getApplicationId() const {
return applicationId_;
}
void ListApplicationSupportedProvisionProtocolTypesRequest::setApplicationId(const std::string &applicationId) {
applicationId_ = applicationId;
setParameter(std::string("ApplicationId"), applicationId);
}

View File

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

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/eiam/model/ListApplicationTokensRequest.h>
using AlibabaCloud::Eiam::Model::ListApplicationTokensRequest;
ListApplicationTokensRequest::ListApplicationTokensRequest()
: RpcServiceRequest("eiam", "2021-12-01", "ListApplicationTokens") {
setMethod(HttpRequest::Method::Post);
}
ListApplicationTokensRequest::~ListApplicationTokensRequest() {}
std::string ListApplicationTokensRequest::getApplicationId() const {
return applicationId_;
}
void ListApplicationTokensRequest::setApplicationId(const std::string &applicationId) {
applicationId_ = applicationId;
setParameter(std::string("ApplicationId"), applicationId);
}
std::string ListApplicationTokensRequest::getApplicationTokenType() const {
return applicationTokenType_;
}
void ListApplicationTokensRequest::setApplicationTokenType(const std::string &applicationTokenType) {
applicationTokenType_ = applicationTokenType;
setParameter(std::string("ApplicationTokenType"), applicationTokenType);
}
std::string ListApplicationTokensRequest::getInstanceId() const {
return instanceId_;
}
void ListApplicationTokensRequest::setInstanceId(const std::string &instanceId) {
instanceId_ = instanceId;
setParameter(std::string("InstanceId"), instanceId);
}

View File

@@ -0,0 +1,77 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/eiam/model/ListApplicationTokensResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Eiam;
using namespace AlibabaCloud::Eiam::Model;
ListApplicationTokensResult::ListApplicationTokensResult() :
ServiceResult()
{}
ListApplicationTokensResult::ListApplicationTokensResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ListApplicationTokensResult::~ListApplicationTokensResult()
{}
void ListApplicationTokensResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allApplicationTokensNode = value["ApplicationTokens"]["ApplicationToken"];
for (auto valueApplicationTokensApplicationToken : allApplicationTokensNode)
{
ApplicationToken applicationTokensObject;
if(!valueApplicationTokensApplicationToken["AliUid"].isNull())
applicationTokensObject.aliUid = std::stol(valueApplicationTokensApplicationToken["AliUid"].asString());
if(!valueApplicationTokensApplicationToken["InstanceId"].isNull())
applicationTokensObject.instanceId = valueApplicationTokensApplicationToken["InstanceId"].asString();
if(!valueApplicationTokensApplicationToken["ApplicationId"].isNull())
applicationTokensObject.applicationId = valueApplicationTokensApplicationToken["ApplicationId"].asString();
if(!valueApplicationTokensApplicationToken["ApplicationTokenId"].isNull())
applicationTokensObject.applicationTokenId = valueApplicationTokensApplicationToken["ApplicationTokenId"].asString();
if(!valueApplicationTokensApplicationToken["ApplicationTokenType"].isNull())
applicationTokensObject.applicationTokenType = valueApplicationTokensApplicationToken["ApplicationTokenType"].asString();
if(!valueApplicationTokensApplicationToken["ApplicationToken"].isNull())
applicationTokensObject.applicationToken = valueApplicationTokensApplicationToken["ApplicationToken"].asString();
if(!valueApplicationTokensApplicationToken["Status"].isNull())
applicationTokensObject.status = valueApplicationTokensApplicationToken["Status"].asString();
if(!valueApplicationTokensApplicationToken["Description"].isNull())
applicationTokensObject.description = valueApplicationTokensApplicationToken["Description"].asString();
if(!valueApplicationTokensApplicationToken["ExpirationTime"].isNull())
applicationTokensObject.expirationTime = std::stol(valueApplicationTokensApplicationToken["ExpirationTime"].asString());
if(!valueApplicationTokensApplicationToken["LastUsedTime"].isNull())
applicationTokensObject.lastUsedTime = std::stol(valueApplicationTokensApplicationToken["LastUsedTime"].asString());
if(!valueApplicationTokensApplicationToken["CreateTime"].isNull())
applicationTokensObject.createTime = std::stol(valueApplicationTokensApplicationToken["CreateTime"].asString());
applicationTokens_.push_back(applicationTokensObject);
}
}
std::vector<ListApplicationTokensResult::ApplicationToken> ListApplicationTokensResult::getApplicationTokens()const
{
return applicationTokens_;
}

View File

@@ -0,0 +1,74 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/eiam/model/ListApplicationsForGroupRequest.h>
using AlibabaCloud::Eiam::Model::ListApplicationsForGroupRequest;
ListApplicationsForGroupRequest::ListApplicationsForGroupRequest()
: RpcServiceRequest("eiam", "2021-12-01", "ListApplicationsForGroup") {
setMethod(HttpRequest::Method::Post);
}
ListApplicationsForGroupRequest::~ListApplicationsForGroupRequest() {}
long ListApplicationsForGroupRequest::getPageNumber() const {
return pageNumber_;
}
void ListApplicationsForGroupRequest::setPageNumber(long pageNumber) {
pageNumber_ = pageNumber;
setParameter(std::string("PageNumber"), std::to_string(pageNumber));
}
long ListApplicationsForGroupRequest::getPageSize() const {
return pageSize_;
}
void ListApplicationsForGroupRequest::setPageSize(long pageSize) {
pageSize_ = pageSize;
setParameter(std::string("PageSize"), std::to_string(pageSize));
}
std::string ListApplicationsForGroupRequest::getGroupId() const {
return groupId_;
}
void ListApplicationsForGroupRequest::setGroupId(const std::string &groupId) {
groupId_ = groupId;
setParameter(std::string("GroupId"), groupId);
}
std::vector<ListApplicationsForGroupRequest::std::string> ListApplicationsForGroupRequest::getApplicationIds() const {
return applicationIds_;
}
void ListApplicationsForGroupRequest::setApplicationIds(const std::vector<ListApplicationsForGroupRequest::std::string> &applicationIds) {
applicationIds_ = applicationIds;
for(int dep1 = 0; dep1 != applicationIds.size(); dep1++) {
setParameter(std::string("ApplicationIds") + "." + std::to_string(dep1 + 1), applicationIds[dep1]);
}
}
std::string ListApplicationsForGroupRequest::getInstanceId() const {
return instanceId_;
}
void ListApplicationsForGroupRequest::setInstanceId(const std::string &instanceId) {
instanceId_ = instanceId;
setParameter(std::string("InstanceId"), instanceId);
}

View File

@@ -0,0 +1,68 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/eiam/model/ListApplicationsForGroupResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Eiam;
using namespace AlibabaCloud::Eiam::Model;
ListApplicationsForGroupResult::ListApplicationsForGroupResult() :
ServiceResult()
{}
ListApplicationsForGroupResult::ListApplicationsForGroupResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ListApplicationsForGroupResult::~ListApplicationsForGroupResult()
{}
void ListApplicationsForGroupResult::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["ApplicationId"].isNull())
applicationsObject.applicationId = valueApplicationsApplication["ApplicationId"].asString();
if(!valueApplicationsApplication["HasDirectAuthorization"].isNull())
applicationsObject.hasDirectAuthorization = valueApplicationsApplication["HasDirectAuthorization"].asString() == "true";
if(!valueApplicationsApplication["HasInheritAuthorization"].isNull())
applicationsObject.hasInheritAuthorization = valueApplicationsApplication["HasInheritAuthorization"].asString() == "true";
applications_.push_back(applicationsObject);
}
if(!value["TotalCount"].isNull())
totalCount_ = std::stol(value["TotalCount"].asString());
}
long ListApplicationsForGroupResult::getTotalCount()const
{
return totalCount_;
}
std::vector<ListApplicationsForGroupResult::Application> ListApplicationsForGroupResult::getApplications()const
{
return applications_;
}

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/eiam/model/ListApplicationsForNetworkAccessEndpointRequest.h>
using AlibabaCloud::Eiam::Model::ListApplicationsForNetworkAccessEndpointRequest;
ListApplicationsForNetworkAccessEndpointRequest::ListApplicationsForNetworkAccessEndpointRequest()
: RpcServiceRequest("eiam", "2021-12-01", "ListApplicationsForNetworkAccessEndpoint") {
setMethod(HttpRequest::Method::Post);
}
ListApplicationsForNetworkAccessEndpointRequest::~ListApplicationsForNetworkAccessEndpointRequest() {}
std::string ListApplicationsForNetworkAccessEndpointRequest::getNetworkAccessEndpointId() const {
return networkAccessEndpointId_;
}
void ListApplicationsForNetworkAccessEndpointRequest::setNetworkAccessEndpointId(const std::string &networkAccessEndpointId) {
networkAccessEndpointId_ = networkAccessEndpointId;
setParameter(std::string("NetworkAccessEndpointId"), networkAccessEndpointId);
}
std::string ListApplicationsForNetworkAccessEndpointRequest::getNextToken() const {
return nextToken_;
}
void ListApplicationsForNetworkAccessEndpointRequest::setNextToken(const std::string &nextToken) {
nextToken_ = nextToken;
setParameter(std::string("NextToken"), nextToken);
}
std::string ListApplicationsForNetworkAccessEndpointRequest::getInstanceId() const {
return instanceId_;
}
void ListApplicationsForNetworkAccessEndpointRequest::setInstanceId(const std::string &instanceId) {
instanceId_ = instanceId;
setParameter(std::string("InstanceId"), instanceId);
}
long ListApplicationsForNetworkAccessEndpointRequest::getMaxResults() const {
return maxResults_;
}
void ListApplicationsForNetworkAccessEndpointRequest::setMaxResults(long maxResults) {
maxResults_ = maxResults;
setParameter(std::string("MaxResults"), std::to_string(maxResults));
}

View File

@@ -0,0 +1,75 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/eiam/model/ListApplicationsForNetworkAccessEndpointResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Eiam;
using namespace AlibabaCloud::Eiam::Model;
ListApplicationsForNetworkAccessEndpointResult::ListApplicationsForNetworkAccessEndpointResult() :
ServiceResult()
{}
ListApplicationsForNetworkAccessEndpointResult::ListApplicationsForNetworkAccessEndpointResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ListApplicationsForNetworkAccessEndpointResult::~ListApplicationsForNetworkAccessEndpointResult()
{}
void ListApplicationsForNetworkAccessEndpointResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allApplicationsForNetworkAccessEndpointNode = value["ApplicationsForNetworkAccessEndpoint"]["ApplicationForNetworkAccessEndpoint"];
for (auto valueApplicationsForNetworkAccessEndpointApplicationForNetworkAccessEndpoint : allApplicationsForNetworkAccessEndpointNode)
{
ApplicationForNetworkAccessEndpoint applicationsForNetworkAccessEndpointObject;
if(!valueApplicationsForNetworkAccessEndpointApplicationForNetworkAccessEndpoint["InstanceId"].isNull())
applicationsForNetworkAccessEndpointObject.instanceId = valueApplicationsForNetworkAccessEndpointApplicationForNetworkAccessEndpoint["InstanceId"].asString();
if(!valueApplicationsForNetworkAccessEndpointApplicationForNetworkAccessEndpoint["ApplicationId"].isNull())
applicationsForNetworkAccessEndpointObject.applicationId = valueApplicationsForNetworkAccessEndpointApplicationForNetworkAccessEndpoint["ApplicationId"].asString();
if(!valueApplicationsForNetworkAccessEndpointApplicationForNetworkAccessEndpoint["ApplicationName"].isNull())
applicationsForNetworkAccessEndpointObject.applicationName = valueApplicationsForNetworkAccessEndpointApplicationForNetworkAccessEndpoint["ApplicationName"].asString();
applicationsForNetworkAccessEndpoint_.push_back(applicationsForNetworkAccessEndpointObject);
}
if(!value["TotalCount"].isNull())
totalCount_ = std::stol(value["TotalCount"].asString());
if(!value["NextToken"].isNull())
nextToken_ = value["NextToken"].asString();
}
long ListApplicationsForNetworkAccessEndpointResult::getTotalCount()const
{
return totalCount_;
}
std::string ListApplicationsForNetworkAccessEndpointResult::getNextToken()const
{
return nextToken_;
}
std::vector<ListApplicationsForNetworkAccessEndpointResult::ApplicationForNetworkAccessEndpoint> ListApplicationsForNetworkAccessEndpointResult::getApplicationsForNetworkAccessEndpoint()const
{
return applicationsForNetworkAccessEndpoint_;
}

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/eiam/model/ListApplicationsForNetworkZoneRequest.h>
using AlibabaCloud::Eiam::Model::ListApplicationsForNetworkZoneRequest;
ListApplicationsForNetworkZoneRequest::ListApplicationsForNetworkZoneRequest()
: RpcServiceRequest("eiam", "2021-12-01", "ListApplicationsForNetworkZone") {
setMethod(HttpRequest::Method::Post);
}
ListApplicationsForNetworkZoneRequest::~ListApplicationsForNetworkZoneRequest() {}
std::string ListApplicationsForNetworkZoneRequest::getNextToken() const {
return nextToken_;
}
void ListApplicationsForNetworkZoneRequest::setNextToken(const std::string &nextToken) {
nextToken_ = nextToken;
setParameter(std::string("NextToken"), nextToken);
}
std::string ListApplicationsForNetworkZoneRequest::getPreviousToken() const {
return previousToken_;
}
void ListApplicationsForNetworkZoneRequest::setPreviousToken(const std::string &previousToken) {
previousToken_ = previousToken;
setParameter(std::string("PreviousToken"), previousToken);
}
std::string ListApplicationsForNetworkZoneRequest::getNetworkZoneId() const {
return networkZoneId_;
}
void ListApplicationsForNetworkZoneRequest::setNetworkZoneId(const std::string &networkZoneId) {
networkZoneId_ = networkZoneId;
setParameter(std::string("NetworkZoneId"), networkZoneId);
}
std::string ListApplicationsForNetworkZoneRequest::getInstanceId() const {
return instanceId_;
}
void ListApplicationsForNetworkZoneRequest::setInstanceId(const std::string &instanceId) {
instanceId_ = instanceId;
setParameter(std::string("InstanceId"), instanceId);
}
int ListApplicationsForNetworkZoneRequest::getMaxResults() const {
return maxResults_;
}
void ListApplicationsForNetworkZoneRequest::setMaxResults(int maxResults) {
maxResults_ = maxResults;
setParameter(std::string("MaxResults"), std::to_string(maxResults));
}

View File

@@ -0,0 +1,89 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/eiam/model/ListApplicationsForNetworkZoneResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Eiam;
using namespace AlibabaCloud::Eiam::Model;
ListApplicationsForNetworkZoneResult::ListApplicationsForNetworkZoneResult() :
ServiceResult()
{}
ListApplicationsForNetworkZoneResult::ListApplicationsForNetworkZoneResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ListApplicationsForNetworkZoneResult::~ListApplicationsForNetworkZoneResult()
{}
void ListApplicationsForNetworkZoneResult::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["InstanceId"].isNull())
applicationsObject.instanceId = valueApplicationsApplication["InstanceId"].asString();
if(!valueApplicationsApplication["ApplicationId"].isNull())
applicationsObject.applicationId = valueApplicationsApplication["ApplicationId"].asString();
if(!valueApplicationsApplication["ApplicationName"].isNull())
applicationsObject.applicationName = valueApplicationsApplication["ApplicationName"].asString();
applications_.push_back(applicationsObject);
}
if(!value["TotalCount"].isNull())
totalCount_ = std::stol(value["TotalCount"].asString());
if(!value["NextToken"].isNull())
nextToken_ = value["NextToken"].asString();
if(!value["PreviousToken"].isNull())
previousToken_ = value["PreviousToken"].asString();
if(!value["MaxResults"].isNull())
maxResults_ = std::stoi(value["MaxResults"].asString());
}
long ListApplicationsForNetworkZoneResult::getTotalCount()const
{
return totalCount_;
}
std::string ListApplicationsForNetworkZoneResult::getPreviousToken()const
{
return previousToken_;
}
std::vector<ListApplicationsForNetworkZoneResult::Application> ListApplicationsForNetworkZoneResult::getApplications()const
{
return applications_;
}
std::string ListApplicationsForNetworkZoneResult::getNextToken()const
{
return nextToken_;
}
int ListApplicationsForNetworkZoneResult::getMaxResults()const
{
return maxResults_;
}

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/eiam/model/ListBrandsRequest.h>
using AlibabaCloud::Eiam::Model::ListBrandsRequest;
ListBrandsRequest::ListBrandsRequest()
: RpcServiceRequest("eiam", "2021-12-01", "ListBrands") {
setMethod(HttpRequest::Method::Post);
}
ListBrandsRequest::~ListBrandsRequest() {}
std::string ListBrandsRequest::getNextToken() const {
return nextToken_;
}
void ListBrandsRequest::setNextToken(const std::string &nextToken) {
nextToken_ = nextToken;
setParameter(std::string("NextToken"), nextToken);
}
std::string ListBrandsRequest::getPreviousToken() const {
return previousToken_;
}
void ListBrandsRequest::setPreviousToken(const std::string &previousToken) {
previousToken_ = previousToken;
setParameter(std::string("PreviousToken"), previousToken);
}
std::string ListBrandsRequest::getInstanceId() const {
return instanceId_;
}
void ListBrandsRequest::setInstanceId(const std::string &instanceId) {
instanceId_ = instanceId;
setParameter(std::string("InstanceId"), instanceId);
}
long ListBrandsRequest::getMaxResults() const {
return maxResults_;
}
void ListBrandsRequest::setMaxResults(long maxResults) {
maxResults_ = maxResults;
setParameter(std::string("MaxResults"), std::to_string(maxResults));
}

View File

@@ -0,0 +1,93 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/eiam/model/ListBrandsResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Eiam;
using namespace AlibabaCloud::Eiam::Model;
ListBrandsResult::ListBrandsResult() :
ServiceResult()
{}
ListBrandsResult::ListBrandsResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ListBrandsResult::~ListBrandsResult()
{}
void ListBrandsResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allBrandsNode = value["Brands"]["Brand"];
for (auto valueBrandsBrand : allBrandsNode)
{
Brand brandsObject;
if(!valueBrandsBrand["InstanceId"].isNull())
brandsObject.instanceId = valueBrandsBrand["InstanceId"].asString();
if(!valueBrandsBrand["BrandId"].isNull())
brandsObject.brandId = valueBrandsBrand["BrandId"].asString();
if(!valueBrandsBrand["BrandName"].isNull())
brandsObject.brandName = valueBrandsBrand["BrandName"].asString();
if(!valueBrandsBrand["BrandType"].isNull())
brandsObject.brandType = valueBrandsBrand["BrandType"].asString();
if(!valueBrandsBrand["Status"].isNull())
brandsObject.status = valueBrandsBrand["Status"].asString();
brands_.push_back(brandsObject);
}
if(!value["TotalCount"].isNull())
totalCount_ = std::stol(value["TotalCount"].asString());
if(!value["NextToken"].isNull())
nextToken_ = value["NextToken"].asString();
if(!value["PreviousToken"].isNull())
previousToken_ = value["PreviousToken"].asString();
if(!value["MaxResults"].isNull())
maxResults_ = std::stol(value["MaxResults"].asString());
}
long ListBrandsResult::getTotalCount()const
{
return totalCount_;
}
std::string ListBrandsResult::getPreviousToken()const
{
return previousToken_;
}
std::string ListBrandsResult::getNextToken()const
{
return nextToken_;
}
long ListBrandsResult::getMaxResults()const
{
return maxResults_;
}
std::vector<ListBrandsResult::Brand> ListBrandsResult::getBrands()const
{
return brands_;
}

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/eiam/model/ListConditionalAccessPoliciesForApplicationRequest.h>
using AlibabaCloud::Eiam::Model::ListConditionalAccessPoliciesForApplicationRequest;
ListConditionalAccessPoliciesForApplicationRequest::ListConditionalAccessPoliciesForApplicationRequest()
: RpcServiceRequest("eiam", "2021-12-01", "ListConditionalAccessPoliciesForApplication") {
setMethod(HttpRequest::Method::Post);
}
ListConditionalAccessPoliciesForApplicationRequest::~ListConditionalAccessPoliciesForApplicationRequest() {}
std::string ListConditionalAccessPoliciesForApplicationRequest::getInstanceId() const {
return instanceId_;
}
void ListConditionalAccessPoliciesForApplicationRequest::setInstanceId(const std::string &instanceId) {
instanceId_ = instanceId;
setParameter(std::string("InstanceId"), instanceId);
}
std::string ListConditionalAccessPoliciesForApplicationRequest::getApplicationId() const {
return applicationId_;
}
void ListConditionalAccessPoliciesForApplicationRequest::setApplicationId(const std::string &applicationId) {
applicationId_ = applicationId;
setParameter(std::string("ApplicationId"), applicationId);
}

View File

@@ -0,0 +1,123 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/eiam/model/ListConditionalAccessPoliciesForApplicationResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Eiam;
using namespace AlibabaCloud::Eiam::Model;
ListConditionalAccessPoliciesForApplicationResult::ListConditionalAccessPoliciesForApplicationResult() :
ServiceResult()
{}
ListConditionalAccessPoliciesForApplicationResult::ListConditionalAccessPoliciesForApplicationResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ListConditionalAccessPoliciesForApplicationResult::~ListConditionalAccessPoliciesForApplicationResult()
{}
void ListConditionalAccessPoliciesForApplicationResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allConditionalAccessPoliciesNode = value["ConditionalAccessPolicies"]["ConditionalAccessPolicy"];
for (auto valueConditionalAccessPoliciesConditionalAccessPolicy : allConditionalAccessPoliciesNode)
{
ConditionalAccessPolicy conditionalAccessPoliciesObject;
if(!valueConditionalAccessPoliciesConditionalAccessPolicy["InstanceId"].isNull())
conditionalAccessPoliciesObject.instanceId = valueConditionalAccessPoliciesConditionalAccessPolicy["InstanceId"].asString();
if(!valueConditionalAccessPoliciesConditionalAccessPolicy["ConditionalAccessPolicyId"].isNull())
conditionalAccessPoliciesObject.conditionalAccessPolicyId = valueConditionalAccessPoliciesConditionalAccessPolicy["ConditionalAccessPolicyId"].asString();
if(!valueConditionalAccessPoliciesConditionalAccessPolicy["ConditionalAccessPolicyName"].isNull())
conditionalAccessPoliciesObject.conditionalAccessPolicyName = valueConditionalAccessPoliciesConditionalAccessPolicy["ConditionalAccessPolicyName"].asString();
if(!valueConditionalAccessPoliciesConditionalAccessPolicy["Description"].isNull())
conditionalAccessPoliciesObject.description = valueConditionalAccessPoliciesConditionalAccessPolicy["Description"].asString();
if(!valueConditionalAccessPoliciesConditionalAccessPolicy["ConditionalAccessPolicyType"].isNull())
conditionalAccessPoliciesObject.conditionalAccessPolicyType = valueConditionalAccessPoliciesConditionalAccessPolicy["ConditionalAccessPolicyType"].asString();
if(!valueConditionalAccessPoliciesConditionalAccessPolicy["Status"].isNull())
conditionalAccessPoliciesObject.status = valueConditionalAccessPoliciesConditionalAccessPolicy["Status"].asString();
if(!valueConditionalAccessPoliciesConditionalAccessPolicy["DecisionType"].isNull())
conditionalAccessPoliciesObject.decisionType = valueConditionalAccessPoliciesConditionalAccessPolicy["DecisionType"].asString();
if(!valueConditionalAccessPoliciesConditionalAccessPolicy["EvaluateAt"].isNull())
conditionalAccessPoliciesObject.evaluateAt = valueConditionalAccessPoliciesConditionalAccessPolicy["EvaluateAt"].asString();
if(!valueConditionalAccessPoliciesConditionalAccessPolicy["Priority"].isNull())
conditionalAccessPoliciesObject.priority = std::stoi(valueConditionalAccessPoliciesConditionalAccessPolicy["Priority"].asString());
if(!valueConditionalAccessPoliciesConditionalAccessPolicy["CreateTime"].isNull())
conditionalAccessPoliciesObject.createTime = std::stol(valueConditionalAccessPoliciesConditionalAccessPolicy["CreateTime"].asString());
if(!valueConditionalAccessPoliciesConditionalAccessPolicy["LastUpdatedTime"].isNull())
conditionalAccessPoliciesObject.lastUpdatedTime = std::stol(valueConditionalAccessPoliciesConditionalAccessPolicy["LastUpdatedTime"].asString());
auto decisionConfigNode = value["DecisionConfig"];
if(!decisionConfigNode["Effect"].isNull())
conditionalAccessPoliciesObject.decisionConfig.effect = decisionConfigNode["Effect"].asString();
if(!decisionConfigNode["MfaType"].isNull())
conditionalAccessPoliciesObject.decisionConfig.mfaType = decisionConfigNode["MfaType"].asString();
if(!decisionConfigNode["MfaAuthenticationIntervalSeconds"].isNull())
conditionalAccessPoliciesObject.decisionConfig.mfaAuthenticationIntervalSeconds = std::stol(decisionConfigNode["MfaAuthenticationIntervalSeconds"].asString());
if(!decisionConfigNode["ActiveSessionReuseStatus"].isNull())
conditionalAccessPoliciesObject.decisionConfig.activeSessionReuseStatus = decisionConfigNode["ActiveSessionReuseStatus"].asString();
auto allMfaAuthenticationMethods = decisionConfigNode["MfaAuthenticationMethods"]["MfaAuthenticationMethod"];
for (auto value : allMfaAuthenticationMethods)
conditionalAccessPoliciesObject.decisionConfig.mfaAuthenticationMethods.push_back(value.asString());
auto conditionsConfigNode = value["ConditionsConfig"];
auto applicationsNode = conditionsConfigNode["Applications"];
auto allIncludeApplications = applicationsNode["IncludeApplications"]["IncludeApplication"];
for (auto value : allIncludeApplications)
conditionalAccessPoliciesObject.conditionsConfig.applications.includeApplications.push_back(value.asString());
auto allExcludeApplications = applicationsNode["ExcludeApplications"]["ExcludeApplication"];
for (auto value : allExcludeApplications)
conditionalAccessPoliciesObject.conditionsConfig.applications.excludeApplications.push_back(value.asString());
auto usersNode = conditionsConfigNode["Users"];
auto allIncludeUsers = usersNode["IncludeUsers"]["IncludeUser"];
for (auto value : allIncludeUsers)
conditionalAccessPoliciesObject.conditionsConfig.users.includeUsers.push_back(value.asString());
auto allExcludeUsers = usersNode["ExcludeUsers"]["ExcludeUser"];
for (auto value : allExcludeUsers)
conditionalAccessPoliciesObject.conditionsConfig.users.excludeUsers.push_back(value.asString());
auto allIncludeGroups = usersNode["IncludeGroups"]["IncludeGroup"];
for (auto value : allIncludeGroups)
conditionalAccessPoliciesObject.conditionsConfig.users.includeGroups.push_back(value.asString());
auto allExcludeGroups = usersNode["ExcludeGroups"]["ExcludeGroup"];
for (auto value : allExcludeGroups)
conditionalAccessPoliciesObject.conditionsConfig.users.excludeGroups.push_back(value.asString());
auto allIncludeOrganizationalUnits = usersNode["IncludeOrganizationalUnits"]["IncludeOrganizationalUnit"];
for (auto value : allIncludeOrganizationalUnits)
conditionalAccessPoliciesObject.conditionsConfig.users.includeOrganizationalUnits.push_back(value.asString());
auto allExcludeOrganizationalUnits = usersNode["ExcludeOrganizationalUnits"]["ExcludeOrganizationalUnit"];
for (auto value : allExcludeOrganizationalUnits)
conditionalAccessPoliciesObject.conditionsConfig.users.excludeOrganizationalUnits.push_back(value.asString());
auto networkZonesNode = conditionsConfigNode["NetworkZones"];
auto allIncludeNetworkZones = networkZonesNode["IncludeNetworkZones"]["IncludeNetworkZon"];
for (auto value : allIncludeNetworkZones)
conditionalAccessPoliciesObject.conditionsConfig.networkZones.includeNetworkZones.push_back(value.asString());
auto allExcludeNetworkZones = networkZonesNode["ExcludeNetworkZones"]["ExcludeNetworkZon"];
for (auto value : allExcludeNetworkZones)
conditionalAccessPoliciesObject.conditionsConfig.networkZones.excludeNetworkZones.push_back(value.asString());
conditionalAccessPolicies_.push_back(conditionalAccessPoliciesObject);
}
}
std::vector<ListConditionalAccessPoliciesForApplicationResult::ConditionalAccessPolicy> ListConditionalAccessPoliciesForApplicationResult::getConditionalAccessPolicies()const
{
return conditionalAccessPolicies_;
}

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/eiam/model/ListConditionalAccessPoliciesForUserRequest.h>
using AlibabaCloud::Eiam::Model::ListConditionalAccessPoliciesForUserRequest;
ListConditionalAccessPoliciesForUserRequest::ListConditionalAccessPoliciesForUserRequest()
: RpcServiceRequest("eiam", "2021-12-01", "ListConditionalAccessPoliciesForUser") {
setMethod(HttpRequest::Method::Post);
}
ListConditionalAccessPoliciesForUserRequest::~ListConditionalAccessPoliciesForUserRequest() {}
std::string ListConditionalAccessPoliciesForUserRequest::getUserId() const {
return userId_;
}
void ListConditionalAccessPoliciesForUserRequest::setUserId(const std::string &userId) {
userId_ = userId;
setParameter(std::string("UserId"), userId);
}
std::string ListConditionalAccessPoliciesForUserRequest::getInstanceId() const {
return instanceId_;
}
void ListConditionalAccessPoliciesForUserRequest::setInstanceId(const std::string &instanceId) {
instanceId_ = instanceId;
setParameter(std::string("InstanceId"), instanceId);
}

View File

@@ -0,0 +1,123 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/eiam/model/ListConditionalAccessPoliciesForUserResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Eiam;
using namespace AlibabaCloud::Eiam::Model;
ListConditionalAccessPoliciesForUserResult::ListConditionalAccessPoliciesForUserResult() :
ServiceResult()
{}
ListConditionalAccessPoliciesForUserResult::ListConditionalAccessPoliciesForUserResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ListConditionalAccessPoliciesForUserResult::~ListConditionalAccessPoliciesForUserResult()
{}
void ListConditionalAccessPoliciesForUserResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allConditionalAccessPoliciesNode = value["ConditionalAccessPolicies"]["ConditionalAccessPolicy"];
for (auto valueConditionalAccessPoliciesConditionalAccessPolicy : allConditionalAccessPoliciesNode)
{
ConditionalAccessPolicy conditionalAccessPoliciesObject;
if(!valueConditionalAccessPoliciesConditionalAccessPolicy["InstanceId"].isNull())
conditionalAccessPoliciesObject.instanceId = valueConditionalAccessPoliciesConditionalAccessPolicy["InstanceId"].asString();
if(!valueConditionalAccessPoliciesConditionalAccessPolicy["ConditionalAccessPolicyId"].isNull())
conditionalAccessPoliciesObject.conditionalAccessPolicyId = valueConditionalAccessPoliciesConditionalAccessPolicy["ConditionalAccessPolicyId"].asString();
if(!valueConditionalAccessPoliciesConditionalAccessPolicy["ConditionalAccessPolicyName"].isNull())
conditionalAccessPoliciesObject.conditionalAccessPolicyName = valueConditionalAccessPoliciesConditionalAccessPolicy["ConditionalAccessPolicyName"].asString();
if(!valueConditionalAccessPoliciesConditionalAccessPolicy["Description"].isNull())
conditionalAccessPoliciesObject.description = valueConditionalAccessPoliciesConditionalAccessPolicy["Description"].asString();
if(!valueConditionalAccessPoliciesConditionalAccessPolicy["ConditionalAccessPolicyType"].isNull())
conditionalAccessPoliciesObject.conditionalAccessPolicyType = valueConditionalAccessPoliciesConditionalAccessPolicy["ConditionalAccessPolicyType"].asString();
if(!valueConditionalAccessPoliciesConditionalAccessPolicy["Status"].isNull())
conditionalAccessPoliciesObject.status = valueConditionalAccessPoliciesConditionalAccessPolicy["Status"].asString();
if(!valueConditionalAccessPoliciesConditionalAccessPolicy["DecisionType"].isNull())
conditionalAccessPoliciesObject.decisionType = valueConditionalAccessPoliciesConditionalAccessPolicy["DecisionType"].asString();
if(!valueConditionalAccessPoliciesConditionalAccessPolicy["EvaluateAt"].isNull())
conditionalAccessPoliciesObject.evaluateAt = valueConditionalAccessPoliciesConditionalAccessPolicy["EvaluateAt"].asString();
if(!valueConditionalAccessPoliciesConditionalAccessPolicy["Priority"].isNull())
conditionalAccessPoliciesObject.priority = std::stoi(valueConditionalAccessPoliciesConditionalAccessPolicy["Priority"].asString());
if(!valueConditionalAccessPoliciesConditionalAccessPolicy["CreateTime"].isNull())
conditionalAccessPoliciesObject.createTime = std::stol(valueConditionalAccessPoliciesConditionalAccessPolicy["CreateTime"].asString());
if(!valueConditionalAccessPoliciesConditionalAccessPolicy["LastUpdatedTime"].isNull())
conditionalAccessPoliciesObject.lastUpdatedTime = std::stol(valueConditionalAccessPoliciesConditionalAccessPolicy["LastUpdatedTime"].asString());
auto decisionConfigNode = value["DecisionConfig"];
if(!decisionConfigNode["Effect"].isNull())
conditionalAccessPoliciesObject.decisionConfig.effect = decisionConfigNode["Effect"].asString();
if(!decisionConfigNode["MfaType"].isNull())
conditionalAccessPoliciesObject.decisionConfig.mfaType = decisionConfigNode["MfaType"].asString();
if(!decisionConfigNode["MfaAuthenticationIntervalSeconds"].isNull())
conditionalAccessPoliciesObject.decisionConfig.mfaAuthenticationIntervalSeconds = std::stol(decisionConfigNode["MfaAuthenticationIntervalSeconds"].asString());
if(!decisionConfigNode["ActiveSessionReuseStatus"].isNull())
conditionalAccessPoliciesObject.decisionConfig.activeSessionReuseStatus = decisionConfigNode["ActiveSessionReuseStatus"].asString();
auto allMfaAuthenticationMethods = decisionConfigNode["MfaAuthenticationMethods"]["MfaAuthenticationMethod"];
for (auto value : allMfaAuthenticationMethods)
conditionalAccessPoliciesObject.decisionConfig.mfaAuthenticationMethods.push_back(value.asString());
auto conditionsConfigNode = value["ConditionsConfig"];
auto applicationsNode = conditionsConfigNode["Applications"];
auto allIncludeApplications = applicationsNode["IncludeApplications"]["IncludeApplication"];
for (auto value : allIncludeApplications)
conditionalAccessPoliciesObject.conditionsConfig.applications.includeApplications.push_back(value.asString());
auto allExcludeApplications = applicationsNode["ExcludeApplications"]["ExcludeApplication"];
for (auto value : allExcludeApplications)
conditionalAccessPoliciesObject.conditionsConfig.applications.excludeApplications.push_back(value.asString());
auto usersNode = conditionsConfigNode["Users"];
auto allIncludeUsers = usersNode["IncludeUsers"]["IncludeUser"];
for (auto value : allIncludeUsers)
conditionalAccessPoliciesObject.conditionsConfig.users.includeUsers.push_back(value.asString());
auto allExcludeUsers = usersNode["ExcludeUsers"]["ExcludeUser"];
for (auto value : allExcludeUsers)
conditionalAccessPoliciesObject.conditionsConfig.users.excludeUsers.push_back(value.asString());
auto allIncludeGroups = usersNode["IncludeGroups"]["IncludeGroup"];
for (auto value : allIncludeGroups)
conditionalAccessPoliciesObject.conditionsConfig.users.includeGroups.push_back(value.asString());
auto allExcludeGroups = usersNode["ExcludeGroups"]["ExcludeGroup"];
for (auto value : allExcludeGroups)
conditionalAccessPoliciesObject.conditionsConfig.users.excludeGroups.push_back(value.asString());
auto allIncludeOrganizationalUnits = usersNode["IncludeOrganizationalUnits"]["IncludeOrganizationalUnit"];
for (auto value : allIncludeOrganizationalUnits)
conditionalAccessPoliciesObject.conditionsConfig.users.includeOrganizationalUnits.push_back(value.asString());
auto allExcludeOrganizationalUnits = usersNode["ExcludeOrganizationalUnits"]["ExcludeOrganizationalUnit"];
for (auto value : allExcludeOrganizationalUnits)
conditionalAccessPoliciesObject.conditionsConfig.users.excludeOrganizationalUnits.push_back(value.asString());
auto networkZonesNode = conditionsConfigNode["NetworkZones"];
auto allIncludeNetworkZones = networkZonesNode["IncludeNetworkZones"]["IncludeNetworkZon"];
for (auto value : allIncludeNetworkZones)
conditionalAccessPoliciesObject.conditionsConfig.networkZones.includeNetworkZones.push_back(value.asString());
auto allExcludeNetworkZones = networkZonesNode["ExcludeNetworkZones"]["ExcludeNetworkZon"];
for (auto value : allExcludeNetworkZones)
conditionalAccessPoliciesObject.conditionsConfig.networkZones.excludeNetworkZones.push_back(value.asString());
conditionalAccessPolicies_.push_back(conditionalAccessPoliciesObject);
}
}
std::vector<ListConditionalAccessPoliciesForUserResult::ConditionalAccessPolicy> ListConditionalAccessPoliciesForUserResult::getConditionalAccessPolicies()const
{
return conditionalAccessPolicies_;
}

View File

@@ -34,3 +34,12 @@ void ListDomainsRequest::setInstanceId(const std::string &instanceId) {
setParameter(std::string("InstanceId"), instanceId);
}
std::string ListDomainsRequest::getBrandId() const {
return brandId_;
}
void ListDomainsRequest::setBrandId(const std::string &brandId) {
brandId_ = brandId;
setParameter(std::string("BrandId"), brandId);
}

View File

@@ -59,6 +59,8 @@ void ListDomainsResult::parse(const std::string &payload)
domainsObject.createTime = std::stol(valueDomainsDomain["CreateTime"].asString());
if(!valueDomainsDomain["UpdateTime"].isNull())
domainsObject.updateTime = std::stol(valueDomainsDomain["UpdateTime"].asString());
if(!valueDomainsDomain["BrandId"].isNull())
domainsObject.brandId = valueDomainsDomain["BrandId"].asString();
auto filingNode = value["Filing"];
if(!filingNode["IcpNumber"].isNull())
domainsObject.filing.icpNumber = filingNode["IcpNumber"].asString();

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/eiam/model/ListFederatedCredentialProvidersRequest.h>
using AlibabaCloud::Eiam::Model::ListFederatedCredentialProvidersRequest;
ListFederatedCredentialProvidersRequest::ListFederatedCredentialProvidersRequest()
: RpcServiceRequest("eiam", "2021-12-01", "ListFederatedCredentialProviders") {
setMethod(HttpRequest::Method::Post);
}
ListFederatedCredentialProvidersRequest::~ListFederatedCredentialProvidersRequest() {}
std::string ListFederatedCredentialProvidersRequest::getFederatedCredentialProviderName() const {
return federatedCredentialProviderName_;
}
void ListFederatedCredentialProvidersRequest::setFederatedCredentialProviderName(const std::string &federatedCredentialProviderName) {
federatedCredentialProviderName_ = federatedCredentialProviderName;
setParameter(std::string("FederatedCredentialProviderName"), federatedCredentialProviderName);
}
std::string ListFederatedCredentialProvidersRequest::getNextToken() const {
return nextToken_;
}
void ListFederatedCredentialProvidersRequest::setNextToken(const std::string &nextToken) {
nextToken_ = nextToken;
setParameter(std::string("NextToken"), nextToken);
}
std::string ListFederatedCredentialProvidersRequest::getFederatedCredentialProviderType() const {
return federatedCredentialProviderType_;
}
void ListFederatedCredentialProvidersRequest::setFederatedCredentialProviderType(const std::string &federatedCredentialProviderType) {
federatedCredentialProviderType_ = federatedCredentialProviderType;
setParameter(std::string("FederatedCredentialProviderType"), federatedCredentialProviderType);
}
std::string ListFederatedCredentialProvidersRequest::getPreviousToken() const {
return previousToken_;
}
void ListFederatedCredentialProvidersRequest::setPreviousToken(const std::string &previousToken) {
previousToken_ = previousToken;
setParameter(std::string("PreviousToken"), previousToken);
}
std::string ListFederatedCredentialProvidersRequest::getInstanceId() const {
return instanceId_;
}
void ListFederatedCredentialProvidersRequest::setInstanceId(const std::string &instanceId) {
instanceId_ = instanceId;
setParameter(std::string("InstanceId"), instanceId);
}
int ListFederatedCredentialProvidersRequest::getMaxResults() const {
return maxResults_;
}
void ListFederatedCredentialProvidersRequest::setMaxResults(int maxResults) {
maxResults_ = maxResults;
setParameter(std::string("MaxResults"), std::to_string(maxResults));
}

View File

@@ -0,0 +1,165 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/eiam/model/ListFederatedCredentialProvidersResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Eiam;
using namespace AlibabaCloud::Eiam::Model;
ListFederatedCredentialProvidersResult::ListFederatedCredentialProvidersResult() :
ServiceResult()
{}
ListFederatedCredentialProvidersResult::ListFederatedCredentialProvidersResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ListFederatedCredentialProvidersResult::~ListFederatedCredentialProvidersResult()
{}
void ListFederatedCredentialProvidersResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allFederatedCredentialProvidersNode = value["FederatedCredentialProviders"]["FederatedCredentialProvider"];
for (auto valueFederatedCredentialProvidersFederatedCredentialProvider : allFederatedCredentialProvidersNode)
{
FederatedCredentialProvider federatedCredentialProvidersObject;
if(!valueFederatedCredentialProvidersFederatedCredentialProvider["Status"].isNull())
federatedCredentialProvidersObject.status = valueFederatedCredentialProvidersFederatedCredentialProvider["Status"].asString();
if(!valueFederatedCredentialProvidersFederatedCredentialProvider["Description"].isNull())
federatedCredentialProvidersObject.description = valueFederatedCredentialProvidersFederatedCredentialProvider["Description"].asString();
if(!valueFederatedCredentialProvidersFederatedCredentialProvider["InstanceId"].isNull())
federatedCredentialProvidersObject.instanceId = valueFederatedCredentialProvidersFederatedCredentialProvider["InstanceId"].asString();
if(!valueFederatedCredentialProvidersFederatedCredentialProvider["CreateTime"].isNull())
federatedCredentialProvidersObject.createTime = std::stol(valueFederatedCredentialProvidersFederatedCredentialProvider["CreateTime"].asString());
if(!valueFederatedCredentialProvidersFederatedCredentialProvider["UpdateTime"].isNull())
federatedCredentialProvidersObject.updateTime = std::stol(valueFederatedCredentialProvidersFederatedCredentialProvider["UpdateTime"].asString());
if(!valueFederatedCredentialProvidersFederatedCredentialProvider["FederatedCredentialProviderType"].isNull())
federatedCredentialProvidersObject.federatedCredentialProviderType = valueFederatedCredentialProvidersFederatedCredentialProvider["FederatedCredentialProviderType"].asString();
if(!valueFederatedCredentialProvidersFederatedCredentialProvider["NetworkAccessEndpointId"].isNull())
federatedCredentialProvidersObject.networkAccessEndpointId = valueFederatedCredentialProvidersFederatedCredentialProvider["NetworkAccessEndpointId"].asString();
if(!valueFederatedCredentialProvidersFederatedCredentialProvider["FederatedCredentialProviderName"].isNull())
federatedCredentialProvidersObject.federatedCredentialProviderName = valueFederatedCredentialProvidersFederatedCredentialProvider["FederatedCredentialProviderName"].asString();
if(!valueFederatedCredentialProvidersFederatedCredentialProvider["FederatedCredentialProviderId"].isNull())
federatedCredentialProvidersObject.federatedCredentialProviderId = valueFederatedCredentialProvidersFederatedCredentialProvider["FederatedCredentialProviderId"].asString();
auto privateCaProviderConfigNode = value["PrivateCaProviderConfig"];
if(!privateCaProviderConfigNode["TrustAnchorSource"].isNull())
federatedCredentialProvidersObject.privateCaProviderConfig.trustAnchorSource = privateCaProviderConfigNode["TrustAnchorSource"].asString();
if(!privateCaProviderConfigNode["TrustCondition"].isNull())
federatedCredentialProvidersObject.privateCaProviderConfig.trustCondition = privateCaProviderConfigNode["TrustCondition"].asString();
auto allCertificatesNode = privateCaProviderConfigNode["Certificates"]["Certificate"];
for (auto privateCaProviderConfigNodeCertificatesCertificate : allCertificatesNode)
{
FederatedCredentialProvider::PrivateCaProviderConfig::Certificate certificateObject;
if(!privateCaProviderConfigNodeCertificatesCertificate["Fingerprint"].isNull())
certificateObject.fingerprint = privateCaProviderConfigNodeCertificatesCertificate["Fingerprint"].asString();
if(!privateCaProviderConfigNodeCertificatesCertificate["Content"].isNull())
certificateObject.content = privateCaProviderConfigNodeCertificatesCertificate["Content"].asString();
auto certificateMetadataNode = value["CertificateMetadata"];
if(!certificateMetadataNode["NotBefore"].isNull())
certificateObject.certificateMetadata.notBefore = std::stol(certificateMetadataNode["NotBefore"].asString());
if(!certificateMetadataNode["NotAfter"].isNull())
certificateObject.certificateMetadata.notAfter = std::stol(certificateMetadataNode["NotAfter"].asString());
federatedCredentialProvidersObject.privateCaProviderConfig.certificates.push_back(certificateObject);
}
auto oidcProviderConfigNode = value["OidcProviderConfig"];
if(!oidcProviderConfigNode["JwksUri"].isNull())
federatedCredentialProvidersObject.oidcProviderConfig.jwksUri = oidcProviderConfigNode["JwksUri"].asString();
if(!oidcProviderConfigNode["Issuer"].isNull())
federatedCredentialProvidersObject.oidcProviderConfig.issuer = oidcProviderConfigNode["Issuer"].asString();
if(!oidcProviderConfigNode["JwksLastObtainedTime"].isNull())
federatedCredentialProvidersObject.oidcProviderConfig.jwksLastObtainedTime = std::stol(oidcProviderConfigNode["JwksLastObtainedTime"].asString());
if(!oidcProviderConfigNode["StaticJwks"].isNull())
federatedCredentialProvidersObject.oidcProviderConfig.staticJwks = oidcProviderConfigNode["StaticJwks"].asString();
if(!oidcProviderConfigNode["JwksSource"].isNull())
federatedCredentialProvidersObject.oidcProviderConfig.jwksSource = oidcProviderConfigNode["JwksSource"].asString();
if(!oidcProviderConfigNode["TrustCondition"].isNull())
federatedCredentialProvidersObject.oidcProviderConfig.trustCondition = oidcProviderConfigNode["TrustCondition"].asString();
if(!oidcProviderConfigNode["DynamicJwks"].isNull())
federatedCredentialProvidersObject.oidcProviderConfig.dynamicJwks = oidcProviderConfigNode["DynamicJwks"].asString();
auto allAudiences = oidcProviderConfigNode["Audiences"]["Auidence"];
for (auto value : allAudiences)
federatedCredentialProvidersObject.oidcProviderConfig.audiences.push_back(value.asString());
auto pkcs7ProviderConfigNode = value["Pkcs7ProviderConfig"];
if(!pkcs7ProviderConfigNode["SignatureEffectiveTime"].isNull())
federatedCredentialProvidersObject.pkcs7ProviderConfig.signatureEffectiveTime = std::stol(pkcs7ProviderConfigNode["SignatureEffectiveTime"].asString());
if(!pkcs7ProviderConfigNode["TrustAnchorSource"].isNull())
federatedCredentialProvidersObject.pkcs7ProviderConfig.trustAnchorSource = pkcs7ProviderConfigNode["TrustAnchorSource"].asString();
if(!pkcs7ProviderConfigNode["CmsVerificationMode"].isNull())
federatedCredentialProvidersObject.pkcs7ProviderConfig.cmsVerificationMode = pkcs7ProviderConfigNode["CmsVerificationMode"].asString();
if(!pkcs7ProviderConfigNode["SigningTimeValueExpression"].isNull())
federatedCredentialProvidersObject.pkcs7ProviderConfig.signingTimeValueExpression = pkcs7ProviderConfigNode["SigningTimeValueExpression"].asString();
if(!pkcs7ProviderConfigNode["TrustCondition"].isNull())
federatedCredentialProvidersObject.pkcs7ProviderConfig.trustCondition = pkcs7ProviderConfigNode["TrustCondition"].asString();
auto allCertificates1Node = pkcs7ProviderConfigNode["Certificates"]["Certificate"];
for (auto pkcs7ProviderConfigNodeCertificatesCertificate : allCertificates1Node)
{
FederatedCredentialProvider::Pkcs7ProviderConfig::Certificate2 certificate2Object;
if(!pkcs7ProviderConfigNodeCertificatesCertificate["Fingerprint"].isNull())
certificate2Object.fingerprint = pkcs7ProviderConfigNodeCertificatesCertificate["Fingerprint"].asString();
if(!pkcs7ProviderConfigNodeCertificatesCertificate["Content"].isNull())
certificate2Object.content = pkcs7ProviderConfigNodeCertificatesCertificate["Content"].asString();
auto certificateMetadata3Node = value["CertificateMetadata"];
if(!certificateMetadata3Node["NotBefore"].isNull())
certificate2Object.certificateMetadata3.notBefore = std::stol(certificateMetadata3Node["NotBefore"].asString());
if(!certificateMetadata3Node["NotAfter"].isNull())
certificate2Object.certificateMetadata3.notAfter = std::stol(certificateMetadata3Node["NotAfter"].asString());
federatedCredentialProvidersObject.pkcs7ProviderConfig.certificates1.push_back(certificate2Object);
}
federatedCredentialProviders_.push_back(federatedCredentialProvidersObject);
}
if(!value["TotalCount"].isNull())
totalCount_ = std::stoi(value["TotalCount"].asString());
if(!value["NextToken"].isNull())
nextToken_ = value["NextToken"].asString();
if(!value["PreviousToken"].isNull())
previousToken_ = value["PreviousToken"].asString();
if(!value["MaxResults"].isNull())
maxResults_ = std::stoi(value["MaxResults"].asString());
}
std::vector<ListFederatedCredentialProvidersResult::FederatedCredentialProvider> ListFederatedCredentialProvidersResult::getFederatedCredentialProviders()const
{
return federatedCredentialProviders_;
}
int ListFederatedCredentialProvidersResult::getTotalCount()const
{
return totalCount_;
}
std::string ListFederatedCredentialProvidersResult::getPreviousToken()const
{
return previousToken_;
}
std::string ListFederatedCredentialProvidersResult::getNextToken()const
{
return nextToken_;
}
int ListFederatedCredentialProvidersResult::getMaxResults()const
{
return maxResults_;
}

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/eiam/model/ListIdentityProvidersForNetworkAccessEndpointRequest.h>
using AlibabaCloud::Eiam::Model::ListIdentityProvidersForNetworkAccessEndpointRequest;
ListIdentityProvidersForNetworkAccessEndpointRequest::ListIdentityProvidersForNetworkAccessEndpointRequest()
: RpcServiceRequest("eiam", "2021-12-01", "ListIdentityProvidersForNetworkAccessEndpoint") {
setMethod(HttpRequest::Method::Post);
}
ListIdentityProvidersForNetworkAccessEndpointRequest::~ListIdentityProvidersForNetworkAccessEndpointRequest() {}
std::string ListIdentityProvidersForNetworkAccessEndpointRequest::getNetworkAccessEndpointId() const {
return networkAccessEndpointId_;
}
void ListIdentityProvidersForNetworkAccessEndpointRequest::setNetworkAccessEndpointId(const std::string &networkAccessEndpointId) {
networkAccessEndpointId_ = networkAccessEndpointId;
setParameter(std::string("NetworkAccessEndpointId"), networkAccessEndpointId);
}
std::string ListIdentityProvidersForNetworkAccessEndpointRequest::getNextToken() const {
return nextToken_;
}
void ListIdentityProvidersForNetworkAccessEndpointRequest::setNextToken(const std::string &nextToken) {
nextToken_ = nextToken;
setParameter(std::string("NextToken"), nextToken);
}
std::string ListIdentityProvidersForNetworkAccessEndpointRequest::getInstanceId() const {
return instanceId_;
}
void ListIdentityProvidersForNetworkAccessEndpointRequest::setInstanceId(const std::string &instanceId) {
instanceId_ = instanceId;
setParameter(std::string("InstanceId"), instanceId);
}
long ListIdentityProvidersForNetworkAccessEndpointRequest::getMaxResults() const {
return maxResults_;
}
void ListIdentityProvidersForNetworkAccessEndpointRequest::setMaxResults(long maxResults) {
maxResults_ = maxResults;
setParameter(std::string("MaxResults"), std::to_string(maxResults));
}

View File

@@ -0,0 +1,75 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/eiam/model/ListIdentityProvidersForNetworkAccessEndpointResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Eiam;
using namespace AlibabaCloud::Eiam::Model;
ListIdentityProvidersForNetworkAccessEndpointResult::ListIdentityProvidersForNetworkAccessEndpointResult() :
ServiceResult()
{}
ListIdentityProvidersForNetworkAccessEndpointResult::ListIdentityProvidersForNetworkAccessEndpointResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ListIdentityProvidersForNetworkAccessEndpointResult::~ListIdentityProvidersForNetworkAccessEndpointResult()
{}
void ListIdentityProvidersForNetworkAccessEndpointResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allIdentityProvidersForNetworkAccessEndpointNode = value["IdentityProvidersForNetworkAccessEndpoint"]["IdentityProviderForNetworkAccessEndpoint"];
for (auto valueIdentityProvidersForNetworkAccessEndpointIdentityProviderForNetworkAccessEndpoint : allIdentityProvidersForNetworkAccessEndpointNode)
{
IdentityProviderForNetworkAccessEndpoint identityProvidersForNetworkAccessEndpointObject;
if(!valueIdentityProvidersForNetworkAccessEndpointIdentityProviderForNetworkAccessEndpoint["InstanceId"].isNull())
identityProvidersForNetworkAccessEndpointObject.instanceId = valueIdentityProvidersForNetworkAccessEndpointIdentityProviderForNetworkAccessEndpoint["InstanceId"].asString();
if(!valueIdentityProvidersForNetworkAccessEndpointIdentityProviderForNetworkAccessEndpoint["IdentityProviderId"].isNull())
identityProvidersForNetworkAccessEndpointObject.identityProviderId = valueIdentityProvidersForNetworkAccessEndpointIdentityProviderForNetworkAccessEndpoint["IdentityProviderId"].asString();
if(!valueIdentityProvidersForNetworkAccessEndpointIdentityProviderForNetworkAccessEndpoint["IdentityProviderName"].isNull())
identityProvidersForNetworkAccessEndpointObject.identityProviderName = valueIdentityProvidersForNetworkAccessEndpointIdentityProviderForNetworkAccessEndpoint["IdentityProviderName"].asString();
identityProvidersForNetworkAccessEndpoint_.push_back(identityProvidersForNetworkAccessEndpointObject);
}
if(!value["TotalCount"].isNull())
totalCount_ = std::stol(value["TotalCount"].asString());
if(!value["NextToken"].isNull())
nextToken_ = value["NextToken"].asString();
}
long ListIdentityProvidersForNetworkAccessEndpointResult::getTotalCount()const
{
return totalCount_;
}
std::string ListIdentityProvidersForNetworkAccessEndpointResult::getNextToken()const
{
return nextToken_;
}
std::vector<ListIdentityProvidersForNetworkAccessEndpointResult::IdentityProviderForNetworkAccessEndpoint> ListIdentityProvidersForNetworkAccessEndpointResult::getIdentityProvidersForNetworkAccessEndpoint()const
{
return identityProvidersForNetworkAccessEndpoint_;
}

View File

@@ -0,0 +1,74 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/eiam/model/ListNetworkZonesRequest.h>
using AlibabaCloud::Eiam::Model::ListNetworkZonesRequest;
ListNetworkZonesRequest::ListNetworkZonesRequest()
: RpcServiceRequest("eiam", "2021-12-01", "ListNetworkZones") {
setMethod(HttpRequest::Method::Post);
}
ListNetworkZonesRequest::~ListNetworkZonesRequest() {}
std::vector<ListNetworkZonesRequest::std::string> ListNetworkZonesRequest::getNetworkZoneIds() const {
return networkZoneIds_;
}
void ListNetworkZonesRequest::setNetworkZoneIds(const std::vector<ListNetworkZonesRequest::std::string> &networkZoneIds) {
networkZoneIds_ = networkZoneIds;
for(int dep1 = 0; dep1 != networkZoneIds.size(); dep1++) {
setParameter(std::string("NetworkZoneIds") + "." + std::to_string(dep1 + 1), networkZoneIds[dep1]);
}
}
std::string ListNetworkZonesRequest::getNextToken() const {
return nextToken_;
}
void ListNetworkZonesRequest::setNextToken(const std::string &nextToken) {
nextToken_ = nextToken;
setParameter(std::string("NextToken"), nextToken);
}
std::string ListNetworkZonesRequest::getPreviousToken() const {
return previousToken_;
}
void ListNetworkZonesRequest::setPreviousToken(const std::string &previousToken) {
previousToken_ = previousToken;
setParameter(std::string("PreviousToken"), previousToken);
}
std::string ListNetworkZonesRequest::getInstanceId() const {
return instanceId_;
}
void ListNetworkZonesRequest::setInstanceId(const std::string &instanceId) {
instanceId_ = instanceId;
setParameter(std::string("InstanceId"), instanceId);
}
long ListNetworkZonesRequest::getMaxResults() const {
return maxResults_;
}
void ListNetworkZonesRequest::setMaxResults(long maxResults) {
maxResults_ = maxResults;
setParameter(std::string("MaxResults"), std::to_string(maxResults));
}

View File

@@ -0,0 +1,94 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/eiam/model/ListNetworkZonesResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Eiam;
using namespace AlibabaCloud::Eiam::Model;
ListNetworkZonesResult::ListNetworkZonesResult() :
ServiceResult()
{}
ListNetworkZonesResult::ListNetworkZonesResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ListNetworkZonesResult::~ListNetworkZonesResult()
{}
void ListNetworkZonesResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allNetworkZonesNode = value["NetworkZones"]["NetworkZone"];
for (auto valueNetworkZonesNetworkZone : allNetworkZonesNode)
{
NetworkZone networkZonesObject;
if(!valueNetworkZonesNetworkZone["InstanceId"].isNull())
networkZonesObject.instanceId = valueNetworkZonesNetworkZone["InstanceId"].asString();
if(!valueNetworkZonesNetworkZone["NetworkZoneId"].isNull())
networkZonesObject.networkZoneId = valueNetworkZonesNetworkZone["NetworkZoneId"].asString();
if(!valueNetworkZonesNetworkZone["NetworkZoneName"].isNull())
networkZonesObject.networkZoneName = valueNetworkZonesNetworkZone["NetworkZoneName"].asString();
if(!valueNetworkZonesNetworkZone["Description"].isNull())
networkZonesObject.description = valueNetworkZonesNetworkZone["Description"].asString();
if(!valueNetworkZonesNetworkZone["NetworkZoneType"].isNull())
networkZonesObject.networkZoneType = valueNetworkZonesNetworkZone["NetworkZoneType"].asString();
if(!valueNetworkZonesNetworkZone["VpcId"].isNull())
networkZonesObject.vpcId = valueNetworkZonesNetworkZone["VpcId"].asString();
auto allIpv4Cidrs = value["Ipv4Cidrs"]["ipv4Cidrs"];
for (auto value : allIpv4Cidrs)
networkZonesObject.ipv4Cidrs.push_back(value.asString());
auto allIpv6Cidrs = value["Ipv6Cidrs"]["ipv6Cidrs"];
for (auto value : allIpv6Cidrs)
networkZonesObject.ipv6Cidrs.push_back(value.asString());
networkZones_.push_back(networkZonesObject);
}
if(!value["TotalCount"].isNull())
totalCount_ = std::stol(value["TotalCount"].asString());
if(!value["NextToken"].isNull())
nextToken_ = value["NextToken"].asString();
if(!value["PreviousToken"].isNull())
previousToken_ = value["PreviousToken"].asString();
}
std::vector<ListNetworkZonesResult::NetworkZone> ListNetworkZonesResult::getNetworkZones()const
{
return networkZones_;
}
long ListNetworkZonesResult::getTotalCount()const
{
return totalCount_;
}
std::string ListNetworkZonesResult::getPreviousToken()const
{
return previousToken_;
}
std::string ListNetworkZonesResult::getNextToken()const
{
return nextToken_;
}

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/eiam/model/ObtainApplicationTokenRequest.h>
using AlibabaCloud::Eiam::Model::ObtainApplicationTokenRequest;
ObtainApplicationTokenRequest::ObtainApplicationTokenRequest()
: RpcServiceRequest("eiam", "2021-12-01", "ObtainApplicationToken") {
setMethod(HttpRequest::Method::Post);
}
ObtainApplicationTokenRequest::~ObtainApplicationTokenRequest() {}
std::string ObtainApplicationTokenRequest::getApplicationId() const {
return applicationId_;
}
void ObtainApplicationTokenRequest::setApplicationId(const std::string &applicationId) {
applicationId_ = applicationId;
setParameter(std::string("ApplicationId"), applicationId);
}
std::string ObtainApplicationTokenRequest::getApplicationTokenId() const {
return applicationTokenId_;
}
void ObtainApplicationTokenRequest::setApplicationTokenId(const std::string &applicationTokenId) {
applicationTokenId_ = applicationTokenId;
setParameter(std::string("ApplicationTokenId"), applicationTokenId);
}
std::string ObtainApplicationTokenRequest::getInstanceId() const {
return instanceId_;
}
void ObtainApplicationTokenRequest::setInstanceId(const std::string &instanceId) {
instanceId_ = instanceId;
setParameter(std::string("InstanceId"), instanceId);
}

View File

@@ -0,0 +1,68 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/eiam/model/ObtainApplicationTokenResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Eiam;
using namespace AlibabaCloud::Eiam::Model;
ObtainApplicationTokenResult::ObtainApplicationTokenResult() :
ServiceResult()
{}
ObtainApplicationTokenResult::ObtainApplicationTokenResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ObtainApplicationTokenResult::~ObtainApplicationTokenResult()
{}
void ObtainApplicationTokenResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto applicationTokenNode = value["ApplicationToken"];
if(!applicationTokenNode["InstanceId"].isNull())
applicationToken_.instanceId = applicationTokenNode["InstanceId"].asString();
if(!applicationTokenNode["ApplicationId"].isNull())
applicationToken_.applicationId = applicationTokenNode["ApplicationId"].asString();
if(!applicationTokenNode["ApplicationTokenId"].isNull())
applicationToken_.applicationTokenId = applicationTokenNode["ApplicationTokenId"].asString();
if(!applicationTokenNode["ApplicationTokenType"].isNull())
applicationToken_.applicationTokenType = applicationTokenNode["ApplicationTokenType"].asString();
if(!applicationTokenNode["ApplicationToken"].isNull())
applicationToken_.applicationToken = applicationTokenNode["ApplicationToken"].asString();
if(!applicationTokenNode["Status"].isNull())
applicationToken_.status = applicationTokenNode["Status"].asString();
if(!applicationTokenNode["ExpirationTime"].isNull())
applicationToken_.expirationTime = std::stol(applicationTokenNode["ExpirationTime"].asString());
if(!applicationTokenNode["LastUsedTime"].isNull())
applicationToken_.lastUsedTime = std::stol(applicationTokenNode["LastUsedTime"].asString());
if(!applicationTokenNode["CreateTime"].isNull())
applicationToken_.createTime = std::stol(applicationTokenNode["CreateTime"].asString());
}
ObtainApplicationTokenResult::ApplicationToken ObtainApplicationTokenResult::getApplicationToken()const
{
return applicationToken_;
}

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/eiam/model/RemoveApplicationAccountFromUserRequest.h>
using AlibabaCloud::Eiam::Model::RemoveApplicationAccountFromUserRequest;
RemoveApplicationAccountFromUserRequest::RemoveApplicationAccountFromUserRequest()
: RpcServiceRequest("eiam", "2021-12-01", "RemoveApplicationAccountFromUser") {
setMethod(HttpRequest::Method::Post);
}
RemoveApplicationAccountFromUserRequest::~RemoveApplicationAccountFromUserRequest() {}
std::string RemoveApplicationAccountFromUserRequest::getUserId() const {
return userId_;
}
void RemoveApplicationAccountFromUserRequest::setUserId(const std::string &userId) {
userId_ = userId;
setParameter(std::string("UserId"), userId);
}
std::string RemoveApplicationAccountFromUserRequest::getApplicationId() const {
return applicationId_;
}
void RemoveApplicationAccountFromUserRequest::setApplicationId(const std::string &applicationId) {
applicationId_ = applicationId;
setParameter(std::string("ApplicationId"), applicationId);
}
std::string RemoveApplicationAccountFromUserRequest::getApplicationAccountId() const {
return applicationAccountId_;
}
void RemoveApplicationAccountFromUserRequest::setApplicationAccountId(const std::string &applicationAccountId) {
applicationAccountId_ = applicationAccountId;
setParameter(std::string("ApplicationAccountId"), applicationAccountId);
}
std::string RemoveApplicationAccountFromUserRequest::getInstanceId() const {
return instanceId_;
}
void RemoveApplicationAccountFromUserRequest::setInstanceId(const std::string &instanceId) {
instanceId_ = instanceId;
setParameter(std::string("InstanceId"), instanceId);
}

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/eiam/model/RemoveApplicationAccountFromUserResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Eiam;
using namespace AlibabaCloud::Eiam::Model;
RemoveApplicationAccountFromUserResult::RemoveApplicationAccountFromUserResult() :
ServiceResult()
{}
RemoveApplicationAccountFromUserResult::RemoveApplicationAccountFromUserResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
RemoveApplicationAccountFromUserResult::~RemoveApplicationAccountFromUserResult()
{}
void RemoveApplicationAccountFromUserResult::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/eiam/model/SetLoginRedirectApplicationForBrandRequest.h>
using AlibabaCloud::Eiam::Model::SetLoginRedirectApplicationForBrandRequest;
SetLoginRedirectApplicationForBrandRequest::SetLoginRedirectApplicationForBrandRequest()
: RpcServiceRequest("eiam", "2021-12-01", "SetLoginRedirectApplicationForBrand") {
setMethod(HttpRequest::Method::Post);
}
SetLoginRedirectApplicationForBrandRequest::~SetLoginRedirectApplicationForBrandRequest() {}
std::string SetLoginRedirectApplicationForBrandRequest::getBrandId() const {
return brandId_;
}
void SetLoginRedirectApplicationForBrandRequest::setBrandId(const std::string &brandId) {
brandId_ = brandId;
setParameter(std::string("BrandId"), brandId);
}
std::string SetLoginRedirectApplicationForBrandRequest::getApplicationId() const {
return applicationId_;
}
void SetLoginRedirectApplicationForBrandRequest::setApplicationId(const std::string &applicationId) {
applicationId_ = applicationId;
setParameter(std::string("ApplicationId"), applicationId);
}
std::string SetLoginRedirectApplicationForBrandRequest::getInstanceId() const {
return instanceId_;
}
void SetLoginRedirectApplicationForBrandRequest::setInstanceId(const std::string &instanceId) {
instanceId_ = instanceId;
setParameter(std::string("InstanceId"), instanceId);
}

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/eiam/model/SetLoginRedirectApplicationForBrandResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Eiam;
using namespace AlibabaCloud::Eiam::Model;
SetLoginRedirectApplicationForBrandResult::SetLoginRedirectApplicationForBrandResult() :
ServiceResult()
{}
SetLoginRedirectApplicationForBrandResult::SetLoginRedirectApplicationForBrandResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
SetLoginRedirectApplicationForBrandResult::~SetLoginRedirectApplicationForBrandResult()
{}
void SetLoginRedirectApplicationForBrandResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

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/eiam/model/UpdateApplicationFederatedCredentialDescriptionRequest.h>
using AlibabaCloud::Eiam::Model::UpdateApplicationFederatedCredentialDescriptionRequest;
UpdateApplicationFederatedCredentialDescriptionRequest::UpdateApplicationFederatedCredentialDescriptionRequest()
: RpcServiceRequest("eiam", "2021-12-01", "UpdateApplicationFederatedCredentialDescription") {
setMethod(HttpRequest::Method::Post);
}
UpdateApplicationFederatedCredentialDescriptionRequest::~UpdateApplicationFederatedCredentialDescriptionRequest() {}
std::string UpdateApplicationFederatedCredentialDescriptionRequest::getApplicationFederatedCredentialId() const {
return applicationFederatedCredentialId_;
}
void UpdateApplicationFederatedCredentialDescriptionRequest::setApplicationFederatedCredentialId(const std::string &applicationFederatedCredentialId) {
applicationFederatedCredentialId_ = applicationFederatedCredentialId;
setParameter(std::string("ApplicationFederatedCredentialId"), applicationFederatedCredentialId);
}
std::string UpdateApplicationFederatedCredentialDescriptionRequest::getDescription() const {
return description_;
}
void UpdateApplicationFederatedCredentialDescriptionRequest::setDescription(const std::string &description) {
description_ = description;
setParameter(std::string("Description"), description);
}
std::string UpdateApplicationFederatedCredentialDescriptionRequest::getApplicationId() const {
return applicationId_;
}
void UpdateApplicationFederatedCredentialDescriptionRequest::setApplicationId(const std::string &applicationId) {
applicationId_ = applicationId;
setParameter(std::string("ApplicationId"), applicationId);
}
std::string UpdateApplicationFederatedCredentialDescriptionRequest::getInstanceId() const {
return instanceId_;
}
void UpdateApplicationFederatedCredentialDescriptionRequest::setInstanceId(const std::string &instanceId) {
instanceId_ = instanceId;
setParameter(std::string("InstanceId"), instanceId);
}

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/eiam/model/UpdateApplicationFederatedCredentialDescriptionResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Eiam;
using namespace AlibabaCloud::Eiam::Model;
UpdateApplicationFederatedCredentialDescriptionResult::UpdateApplicationFederatedCredentialDescriptionResult() :
ServiceResult()
{}
UpdateApplicationFederatedCredentialDescriptionResult::UpdateApplicationFederatedCredentialDescriptionResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
UpdateApplicationFederatedCredentialDescriptionResult::~UpdateApplicationFederatedCredentialDescriptionResult()
{}
void UpdateApplicationFederatedCredentialDescriptionResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

View File

@@ -0,0 +1,75 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/eiam/model/UpdateApplicationFederatedCredentialRequest.h>
using AlibabaCloud::Eiam::Model::UpdateApplicationFederatedCredentialRequest;
UpdateApplicationFederatedCredentialRequest::UpdateApplicationFederatedCredentialRequest()
: RpcServiceRequest("eiam", "2021-12-01", "UpdateApplicationFederatedCredential") {
setMethod(HttpRequest::Method::Post);
}
UpdateApplicationFederatedCredentialRequest::~UpdateApplicationFederatedCredentialRequest() {}
std::string UpdateApplicationFederatedCredentialRequest::getApplicationFederatedCredentialId() const {
return applicationFederatedCredentialId_;
}
void UpdateApplicationFederatedCredentialRequest::setApplicationFederatedCredentialId(const std::string &applicationFederatedCredentialId) {
applicationFederatedCredentialId_ = applicationFederatedCredentialId;
setParameter(std::string("ApplicationFederatedCredentialId"), applicationFederatedCredentialId);
}
std::vector<UpdateApplicationFederatedCredentialRequest::AttributeMappings> UpdateApplicationFederatedCredentialRequest::getAttributeMappings() const {
return attributeMappings_;
}
void UpdateApplicationFederatedCredentialRequest::setAttributeMappings(const std::vector<UpdateApplicationFederatedCredentialRequest::AttributeMappings> &attributeMappings) {
attributeMappings_ = attributeMappings;
for(int dep1 = 0; dep1 != attributeMappings.size(); dep1++) {
setParameter(std::string("AttributeMappings") + "." + std::to_string(dep1 + 1) + ".SourceValueExpression", attributeMappings[dep1].sourceValueExpression);
setParameter(std::string("AttributeMappings") + "." + std::to_string(dep1 + 1) + ".TargetField", attributeMappings[dep1].targetField);
}
}
std::string UpdateApplicationFederatedCredentialRequest::getApplicationId() const {
return applicationId_;
}
void UpdateApplicationFederatedCredentialRequest::setApplicationId(const std::string &applicationId) {
applicationId_ = applicationId;
setParameter(std::string("ApplicationId"), applicationId);
}
std::string UpdateApplicationFederatedCredentialRequest::getInstanceId() const {
return instanceId_;
}
void UpdateApplicationFederatedCredentialRequest::setInstanceId(const std::string &instanceId) {
instanceId_ = instanceId;
setParameter(std::string("InstanceId"), instanceId);
}
std::string UpdateApplicationFederatedCredentialRequest::getVerificationCondition() const {
return verificationCondition_;
}
void UpdateApplicationFederatedCredentialRequest::setVerificationCondition(const std::string &verificationCondition) {
verificationCondition_ = verificationCondition;
setParameter(std::string("VerificationCondition"), verificationCondition);
}

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/eiam/model/UpdateApplicationFederatedCredentialResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Eiam;
using namespace AlibabaCloud::Eiam::Model;
UpdateApplicationFederatedCredentialResult::UpdateApplicationFederatedCredentialResult() :
ServiceResult()
{}
UpdateApplicationFederatedCredentialResult::UpdateApplicationFederatedCredentialResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
UpdateApplicationFederatedCredentialResult::~UpdateApplicationFederatedCredentialResult()
{}
void UpdateApplicationFederatedCredentialResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

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/eiam/model/UpdateApplicationInfoRequest.h>
using AlibabaCloud::Eiam::Model::UpdateApplicationInfoRequest;
UpdateApplicationInfoRequest::UpdateApplicationInfoRequest()
: RpcServiceRequest("eiam", "2021-12-01", "UpdateApplicationInfo") {
setMethod(HttpRequest::Method::Post);
}
UpdateApplicationInfoRequest::~UpdateApplicationInfoRequest() {}
std::string UpdateApplicationInfoRequest::getClientToken() const {
return clientToken_;
}
void UpdateApplicationInfoRequest::setClientToken(const std::string &clientToken) {
clientToken_ = clientToken;
setParameter(std::string("ClientToken"), clientToken);
}
std::string UpdateApplicationInfoRequest::getLogoUrl() const {
return logoUrl_;
}
void UpdateApplicationInfoRequest::setLogoUrl(const std::string &logoUrl) {
logoUrl_ = logoUrl;
setParameter(std::string("LogoUrl"), logoUrl);
}
std::string UpdateApplicationInfoRequest::getApplicationId() const {
return applicationId_;
}
void UpdateApplicationInfoRequest::setApplicationId(const std::string &applicationId) {
applicationId_ = applicationId;
setParameter(std::string("ApplicationId"), applicationId);
}
std::string UpdateApplicationInfoRequest::getApplicationName() const {
return applicationName_;
}
void UpdateApplicationInfoRequest::setApplicationName(const std::string &applicationName) {
applicationName_ = applicationName;
setParameter(std::string("ApplicationName"), applicationName);
}
std::vector<UpdateApplicationInfoRequest::std::string> UpdateApplicationInfoRequest::getApplicationVisibility() const {
return applicationVisibility_;
}
void UpdateApplicationInfoRequest::setApplicationVisibility(const std::vector<UpdateApplicationInfoRequest::std::string> &applicationVisibility) {
applicationVisibility_ = applicationVisibility;
for(int dep1 = 0; dep1 != applicationVisibility.size(); dep1++) {
setParameter(std::string("ApplicationVisibility") + "." + std::to_string(dep1 + 1), applicationVisibility[dep1]);
}
}
std::string UpdateApplicationInfoRequest::getInstanceId() const {
return instanceId_;
}
void UpdateApplicationInfoRequest::setInstanceId(const std::string &instanceId) {
instanceId_ = instanceId;
setParameter(std::string("InstanceId"), instanceId);
}

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/eiam/model/UpdateApplicationInfoResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Eiam;
using namespace AlibabaCloud::Eiam::Model;
UpdateApplicationInfoResult::UpdateApplicationInfoResult() :
ServiceResult()
{}
UpdateApplicationInfoResult::UpdateApplicationInfoResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
UpdateApplicationInfoResult::~UpdateApplicationInfoResult()
{}
void UpdateApplicationInfoResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

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