Add AuthId.

This commit is contained in:
sdk-team
2022-02-23 09:42:15 +00:00
parent d5af7a4c61
commit 89a2517800
116 changed files with 206 additions and 8080 deletions

View File

@@ -31,21 +31,21 @@ CloudauthClient::CloudauthClient(const Credentials &credentials, const ClientCon
RpcServiceClient(SERVICE_NAME, std::make_shared<SimpleCredentialsProvider>(credentials), configuration)
{
auto locationClient = std::make_shared<LocationClient>(credentials, configuration);
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "");
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "cloudauth");
}
CloudauthClient::CloudauthClient(const std::shared_ptr<CredentialsProvider>& credentialsProvider, const ClientConfiguration & configuration) :
RpcServiceClient(SERVICE_NAME, credentialsProvider, configuration)
{
auto locationClient = std::make_shared<LocationClient>(credentialsProvider, configuration);
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "");
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "cloudauth");
}
CloudauthClient::CloudauthClient(const std::string & accessKeyId, const std::string & accessKeySecret, const ClientConfiguration & configuration) :
RpcServiceClient(SERVICE_NAME, std::make_shared<SimpleCredentialsProvider>(accessKeyId, accessKeySecret), configuration)
{
auto locationClient = std::make_shared<LocationClient>(accessKeyId, accessKeySecret, configuration);
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "");
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "cloudauth");
}
CloudauthClient::~CloudauthClient()
@@ -195,114 +195,6 @@ CloudauthClient::CreateAuthKeyOutcomeCallable CloudauthClient::createAuthKeyCall
return task->get_future();
}
CloudauthClient::CreateFaceConfigOutcome CloudauthClient::createFaceConfig(const CreateFaceConfigRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return CreateFaceConfigOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return CreateFaceConfigOutcome(CreateFaceConfigResult(outcome.result()));
else
return CreateFaceConfigOutcome(outcome.error());
}
void CloudauthClient::createFaceConfigAsync(const CreateFaceConfigRequest& request, const CreateFaceConfigAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, createFaceConfig(request), context);
};
asyncExecute(new Runnable(fn));
}
CloudauthClient::CreateFaceConfigOutcomeCallable CloudauthClient::createFaceConfigCallable(const CreateFaceConfigRequest &request) const
{
auto task = std::make_shared<std::packaged_task<CreateFaceConfigOutcome()>>(
[this, request]()
{
return this->createFaceConfig(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
CloudauthClient::CreateRPSDKOutcome CloudauthClient::createRPSDK(const CreateRPSDKRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return CreateRPSDKOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return CreateRPSDKOutcome(CreateRPSDKResult(outcome.result()));
else
return CreateRPSDKOutcome(outcome.error());
}
void CloudauthClient::createRPSDKAsync(const CreateRPSDKRequest& request, const CreateRPSDKAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, createRPSDK(request), context);
};
asyncExecute(new Runnable(fn));
}
CloudauthClient::CreateRPSDKOutcomeCallable CloudauthClient::createRPSDKCallable(const CreateRPSDKRequest &request) const
{
auto task = std::make_shared<std::packaged_task<CreateRPSDKOutcome()>>(
[this, request]()
{
return this->createRPSDK(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
CloudauthClient::CreateVerifySDKOutcome CloudauthClient::createVerifySDK(const CreateVerifySDKRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return CreateVerifySDKOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return CreateVerifySDKOutcome(CreateVerifySDKResult(outcome.result()));
else
return CreateVerifySDKOutcome(outcome.error());
}
void CloudauthClient::createVerifySDKAsync(const CreateVerifySDKRequest& request, const CreateVerifySDKAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, createVerifySDK(request), context);
};
asyncExecute(new Runnable(fn));
}
CloudauthClient::CreateVerifySDKOutcomeCallable CloudauthClient::createVerifySDKCallable(const CreateVerifySDKRequest &request) const
{
auto task = std::make_shared<std::packaged_task<CreateVerifySDKOutcome()>>(
[this, request]()
{
return this->createVerifySDK(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
CloudauthClient::CreateVerifySettingOutcome CloudauthClient::createVerifySetting(const CreateVerifySettingRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -339,186 +231,6 @@ CloudauthClient::CreateVerifySettingOutcomeCallable CloudauthClient::createVerif
return task->get_future();
}
CloudauthClient::CreateWhitelistOutcome CloudauthClient::createWhitelist(const CreateWhitelistRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return CreateWhitelistOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return CreateWhitelistOutcome(CreateWhitelistResult(outcome.result()));
else
return CreateWhitelistOutcome(outcome.error());
}
void CloudauthClient::createWhitelistAsync(const CreateWhitelistRequest& request, const CreateWhitelistAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, createWhitelist(request), context);
};
asyncExecute(new Runnable(fn));
}
CloudauthClient::CreateWhitelistOutcomeCallable CloudauthClient::createWhitelistCallable(const CreateWhitelistRequest &request) const
{
auto task = std::make_shared<std::packaged_task<CreateWhitelistOutcome()>>(
[this, request]()
{
return this->createWhitelist(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
CloudauthClient::CreateWhitelistSettingOutcome CloudauthClient::createWhitelistSetting(const CreateWhitelistSettingRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return CreateWhitelistSettingOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return CreateWhitelistSettingOutcome(CreateWhitelistSettingResult(outcome.result()));
else
return CreateWhitelistSettingOutcome(outcome.error());
}
void CloudauthClient::createWhitelistSettingAsync(const CreateWhitelistSettingRequest& request, const CreateWhitelistSettingAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, createWhitelistSetting(request), context);
};
asyncExecute(new Runnable(fn));
}
CloudauthClient::CreateWhitelistSettingOutcomeCallable CloudauthClient::createWhitelistSettingCallable(const CreateWhitelistSettingRequest &request) const
{
auto task = std::make_shared<std::packaged_task<CreateWhitelistSettingOutcome()>>(
[this, request]()
{
return this->createWhitelistSetting(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
CloudauthClient::DeleteWhitelistOutcome CloudauthClient::deleteWhitelist(const DeleteWhitelistRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DeleteWhitelistOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DeleteWhitelistOutcome(DeleteWhitelistResult(outcome.result()));
else
return DeleteWhitelistOutcome(outcome.error());
}
void CloudauthClient::deleteWhitelistAsync(const DeleteWhitelistRequest& request, const DeleteWhitelistAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, deleteWhitelist(request), context);
};
asyncExecute(new Runnable(fn));
}
CloudauthClient::DeleteWhitelistOutcomeCallable CloudauthClient::deleteWhitelistCallable(const DeleteWhitelistRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DeleteWhitelistOutcome()>>(
[this, request]()
{
return this->deleteWhitelist(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
CloudauthClient::DeleteWhitelistSettingOutcome CloudauthClient::deleteWhitelistSetting(const DeleteWhitelistSettingRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DeleteWhitelistSettingOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DeleteWhitelistSettingOutcome(DeleteWhitelistSettingResult(outcome.result()));
else
return DeleteWhitelistSettingOutcome(outcome.error());
}
void CloudauthClient::deleteWhitelistSettingAsync(const DeleteWhitelistSettingRequest& request, const DeleteWhitelistSettingAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, deleteWhitelistSetting(request), context);
};
asyncExecute(new Runnable(fn));
}
CloudauthClient::DeleteWhitelistSettingOutcomeCallable CloudauthClient::deleteWhitelistSettingCallable(const DeleteWhitelistSettingRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DeleteWhitelistSettingOutcome()>>(
[this, request]()
{
return this->deleteWhitelistSetting(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
CloudauthClient::DescribeAppInfoOutcome CloudauthClient::describeAppInfo(const DescribeAppInfoRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DescribeAppInfoOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DescribeAppInfoOutcome(DescribeAppInfoResult(outcome.result()));
else
return DescribeAppInfoOutcome(outcome.error());
}
void CloudauthClient::describeAppInfoAsync(const DescribeAppInfoRequest& request, const DescribeAppInfoAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, describeAppInfo(request), context);
};
asyncExecute(new Runnable(fn));
}
CloudauthClient::DescribeAppInfoOutcomeCallable CloudauthClient::describeAppInfoCallable(const DescribeAppInfoRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DescribeAppInfoOutcome()>>(
[this, request]()
{
return this->describeAppInfo(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
CloudauthClient::DescribeDeviceInfoOutcome CloudauthClient::describeDeviceInfo(const DescribeDeviceInfoRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -555,78 +267,6 @@ CloudauthClient::DescribeDeviceInfoOutcomeCallable CloudauthClient::describeDevi
return task->get_future();
}
CloudauthClient::DescribeFaceConfigOutcome CloudauthClient::describeFaceConfig(const DescribeFaceConfigRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DescribeFaceConfigOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DescribeFaceConfigOutcome(DescribeFaceConfigResult(outcome.result()));
else
return DescribeFaceConfigOutcome(outcome.error());
}
void CloudauthClient::describeFaceConfigAsync(const DescribeFaceConfigRequest& request, const DescribeFaceConfigAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, describeFaceConfig(request), context);
};
asyncExecute(new Runnable(fn));
}
CloudauthClient::DescribeFaceConfigOutcomeCallable CloudauthClient::describeFaceConfigCallable(const DescribeFaceConfigRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DescribeFaceConfigOutcome()>>(
[this, request]()
{
return this->describeFaceConfig(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
CloudauthClient::DescribeFaceUsageOutcome CloudauthClient::describeFaceUsage(const DescribeFaceUsageRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DescribeFaceUsageOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DescribeFaceUsageOutcome(DescribeFaceUsageResult(outcome.result()));
else
return DescribeFaceUsageOutcome(outcome.error());
}
void CloudauthClient::describeFaceUsageAsync(const DescribeFaceUsageRequest& request, const DescribeFaceUsageAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, describeFaceUsage(request), context);
};
asyncExecute(new Runnable(fn));
}
CloudauthClient::DescribeFaceUsageOutcomeCallable CloudauthClient::describeFaceUsageCallable(const DescribeFaceUsageRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DescribeFaceUsageOutcome()>>(
[this, request]()
{
return this->describeFaceUsage(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
CloudauthClient::DescribeFaceVerifyOutcome CloudauthClient::describeFaceVerify(const DescribeFaceVerifyRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -699,222 +339,6 @@ CloudauthClient::DescribeOssUploadTokenOutcomeCallable CloudauthClient::describe
return task->get_future();
}
CloudauthClient::DescribeRPSDKOutcome CloudauthClient::describeRPSDK(const DescribeRPSDKRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DescribeRPSDKOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DescribeRPSDKOutcome(DescribeRPSDKResult(outcome.result()));
else
return DescribeRPSDKOutcome(outcome.error());
}
void CloudauthClient::describeRPSDKAsync(const DescribeRPSDKRequest& request, const DescribeRPSDKAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, describeRPSDK(request), context);
};
asyncExecute(new Runnable(fn));
}
CloudauthClient::DescribeRPSDKOutcomeCallable CloudauthClient::describeRPSDKCallable(const DescribeRPSDKRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DescribeRPSDKOutcome()>>(
[this, request]()
{
return this->describeRPSDK(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
CloudauthClient::DescribeSdkUrlOutcome CloudauthClient::describeSdkUrl(const DescribeSdkUrlRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DescribeSdkUrlOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DescribeSdkUrlOutcome(DescribeSdkUrlResult(outcome.result()));
else
return DescribeSdkUrlOutcome(outcome.error());
}
void CloudauthClient::describeSdkUrlAsync(const DescribeSdkUrlRequest& request, const DescribeSdkUrlAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, describeSdkUrl(request), context);
};
asyncExecute(new Runnable(fn));
}
CloudauthClient::DescribeSdkUrlOutcomeCallable CloudauthClient::describeSdkUrlCallable(const DescribeSdkUrlRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DescribeSdkUrlOutcome()>>(
[this, request]()
{
return this->describeSdkUrl(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
CloudauthClient::DescribeUpdatePackageResultOutcome CloudauthClient::describeUpdatePackageResult(const DescribeUpdatePackageResultRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DescribeUpdatePackageResultOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DescribeUpdatePackageResultOutcome(DescribeUpdatePackageResultResult(outcome.result()));
else
return DescribeUpdatePackageResultOutcome(outcome.error());
}
void CloudauthClient::describeUpdatePackageResultAsync(const DescribeUpdatePackageResultRequest& request, const DescribeUpdatePackageResultAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, describeUpdatePackageResult(request), context);
};
asyncExecute(new Runnable(fn));
}
CloudauthClient::DescribeUpdatePackageResultOutcomeCallable CloudauthClient::describeUpdatePackageResultCallable(const DescribeUpdatePackageResultRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DescribeUpdatePackageResultOutcome()>>(
[this, request]()
{
return this->describeUpdatePackageResult(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
CloudauthClient::DescribeUploadInfoOutcome CloudauthClient::describeUploadInfo(const DescribeUploadInfoRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DescribeUploadInfoOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DescribeUploadInfoOutcome(DescribeUploadInfoResult(outcome.result()));
else
return DescribeUploadInfoOutcome(outcome.error());
}
void CloudauthClient::describeUploadInfoAsync(const DescribeUploadInfoRequest& request, const DescribeUploadInfoAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, describeUploadInfo(request), context);
};
asyncExecute(new Runnable(fn));
}
CloudauthClient::DescribeUploadInfoOutcomeCallable CloudauthClient::describeUploadInfoCallable(const DescribeUploadInfoRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DescribeUploadInfoOutcome()>>(
[this, request]()
{
return this->describeUploadInfo(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
CloudauthClient::DescribeUserStatusOutcome CloudauthClient::describeUserStatus(const DescribeUserStatusRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DescribeUserStatusOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DescribeUserStatusOutcome(DescribeUserStatusResult(outcome.result()));
else
return DescribeUserStatusOutcome(outcome.error());
}
void CloudauthClient::describeUserStatusAsync(const DescribeUserStatusRequest& request, const DescribeUserStatusAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, describeUserStatus(request), context);
};
asyncExecute(new Runnable(fn));
}
CloudauthClient::DescribeUserStatusOutcomeCallable CloudauthClient::describeUserStatusCallable(const DescribeUserStatusRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DescribeUserStatusOutcome()>>(
[this, request]()
{
return this->describeUserStatus(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
CloudauthClient::DescribeVerifyRecordsOutcome CloudauthClient::describeVerifyRecords(const DescribeVerifyRecordsRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DescribeVerifyRecordsOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DescribeVerifyRecordsOutcome(DescribeVerifyRecordsResult(outcome.result()));
else
return DescribeVerifyRecordsOutcome(outcome.error());
}
void CloudauthClient::describeVerifyRecordsAsync(const DescribeVerifyRecordsRequest& request, const DescribeVerifyRecordsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, describeVerifyRecords(request), context);
};
asyncExecute(new Runnable(fn));
}
CloudauthClient::DescribeVerifyRecordsOutcomeCallable CloudauthClient::describeVerifyRecordsCallable(const DescribeVerifyRecordsRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DescribeVerifyRecordsOutcome()>>(
[this, request]()
{
return this->describeVerifyRecords(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
CloudauthClient::DescribeVerifyResultOutcome CloudauthClient::describeVerifyResult(const DescribeVerifyResultRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -987,42 +411,6 @@ CloudauthClient::DescribeVerifySDKOutcomeCallable CloudauthClient::describeVerif
return task->get_future();
}
CloudauthClient::DescribeVerifySettingOutcome CloudauthClient::describeVerifySetting(const DescribeVerifySettingRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DescribeVerifySettingOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DescribeVerifySettingOutcome(DescribeVerifySettingResult(outcome.result()));
else
return DescribeVerifySettingOutcome(outcome.error());
}
void CloudauthClient::describeVerifySettingAsync(const DescribeVerifySettingRequest& request, const DescribeVerifySettingAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, describeVerifySetting(request), context);
};
asyncExecute(new Runnable(fn));
}
CloudauthClient::DescribeVerifySettingOutcomeCallable CloudauthClient::describeVerifySettingCallable(const DescribeVerifySettingRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DescribeVerifySettingOutcome()>>(
[this, request]()
{
return this->describeVerifySetting(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
CloudauthClient::DescribeVerifyTokenOutcome CloudauthClient::describeVerifyToken(const DescribeVerifyTokenRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -1059,114 +447,6 @@ CloudauthClient::DescribeVerifyTokenOutcomeCallable CloudauthClient::describeVer
return task->get_future();
}
CloudauthClient::DescribeVerifyUsageOutcome CloudauthClient::describeVerifyUsage(const DescribeVerifyUsageRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DescribeVerifyUsageOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DescribeVerifyUsageOutcome(DescribeVerifyUsageResult(outcome.result()));
else
return DescribeVerifyUsageOutcome(outcome.error());
}
void CloudauthClient::describeVerifyUsageAsync(const DescribeVerifyUsageRequest& request, const DescribeVerifyUsageAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, describeVerifyUsage(request), context);
};
asyncExecute(new Runnable(fn));
}
CloudauthClient::DescribeVerifyUsageOutcomeCallable CloudauthClient::describeVerifyUsageCallable(const DescribeVerifyUsageRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DescribeVerifyUsageOutcome()>>(
[this, request]()
{
return this->describeVerifyUsage(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
CloudauthClient::DescribeWhitelistOutcome CloudauthClient::describeWhitelist(const DescribeWhitelistRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DescribeWhitelistOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DescribeWhitelistOutcome(DescribeWhitelistResult(outcome.result()));
else
return DescribeWhitelistOutcome(outcome.error());
}
void CloudauthClient::describeWhitelistAsync(const DescribeWhitelistRequest& request, const DescribeWhitelistAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, describeWhitelist(request), context);
};
asyncExecute(new Runnable(fn));
}
CloudauthClient::DescribeWhitelistOutcomeCallable CloudauthClient::describeWhitelistCallable(const DescribeWhitelistRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DescribeWhitelistOutcome()>>(
[this, request]()
{
return this->describeWhitelist(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
CloudauthClient::DescribeWhitelistSettingOutcome CloudauthClient::describeWhitelistSetting(const DescribeWhitelistSettingRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DescribeWhitelistSettingOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DescribeWhitelistSettingOutcome(DescribeWhitelistSettingResult(outcome.result()));
else
return DescribeWhitelistSettingOutcome(outcome.error());
}
void CloudauthClient::describeWhitelistSettingAsync(const DescribeWhitelistSettingRequest& request, const DescribeWhitelistSettingAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, describeWhitelistSetting(request), context);
};
asyncExecute(new Runnable(fn));
}
CloudauthClient::DescribeWhitelistSettingOutcomeCallable CloudauthClient::describeWhitelistSettingCallable(const DescribeWhitelistSettingRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DescribeWhitelistSettingOutcome()>>(
[this, request]()
{
return this->describeWhitelistSetting(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
CloudauthClient::DetectFaceAttributesOutcome CloudauthClient::detectFaceAttributes(const DetectFaceAttributesRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -1203,42 +483,6 @@ CloudauthClient::DetectFaceAttributesOutcomeCallable CloudauthClient::detectFace
return task->get_future();
}
CloudauthClient::InitDeviceOutcome CloudauthClient::initDevice(const InitDeviceRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return InitDeviceOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return InitDeviceOutcome(InitDeviceResult(outcome.result()));
else
return InitDeviceOutcome(outcome.error());
}
void CloudauthClient::initDeviceAsync(const InitDeviceRequest& request, const InitDeviceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, initDevice(request), context);
};
asyncExecute(new Runnable(fn));
}
CloudauthClient::InitDeviceOutcomeCallable CloudauthClient::initDeviceCallable(const InitDeviceRequest &request) const
{
auto task = std::make_shared<std::packaged_task<InitDeviceOutcome()>>(
[this, request]()
{
return this->initDevice(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
CloudauthClient::InitFaceVerifyOutcome CloudauthClient::initFaceVerify(const InitFaceVerifyRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -1347,150 +591,6 @@ CloudauthClient::ModifyDeviceInfoOutcomeCallable CloudauthClient::modifyDeviceIn
return task->get_future();
}
CloudauthClient::UpdateAppPackageOutcome CloudauthClient::updateAppPackage(const UpdateAppPackageRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return UpdateAppPackageOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return UpdateAppPackageOutcome(UpdateAppPackageResult(outcome.result()));
else
return UpdateAppPackageOutcome(outcome.error());
}
void CloudauthClient::updateAppPackageAsync(const UpdateAppPackageRequest& request, const UpdateAppPackageAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, updateAppPackage(request), context);
};
asyncExecute(new Runnable(fn));
}
CloudauthClient::UpdateAppPackageOutcomeCallable CloudauthClient::updateAppPackageCallable(const UpdateAppPackageRequest &request) const
{
auto task = std::make_shared<std::packaged_task<UpdateAppPackageOutcome()>>(
[this, request]()
{
return this->updateAppPackage(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
CloudauthClient::UpdateFaceConfigOutcome CloudauthClient::updateFaceConfig(const UpdateFaceConfigRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return UpdateFaceConfigOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return UpdateFaceConfigOutcome(UpdateFaceConfigResult(outcome.result()));
else
return UpdateFaceConfigOutcome(outcome.error());
}
void CloudauthClient::updateFaceConfigAsync(const UpdateFaceConfigRequest& request, const UpdateFaceConfigAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, updateFaceConfig(request), context);
};
asyncExecute(new Runnable(fn));
}
CloudauthClient::UpdateFaceConfigOutcomeCallable CloudauthClient::updateFaceConfigCallable(const UpdateFaceConfigRequest &request) const
{
auto task = std::make_shared<std::packaged_task<UpdateFaceConfigOutcome()>>(
[this, request]()
{
return this->updateFaceConfig(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
CloudauthClient::UpdateVerifySettingOutcome CloudauthClient::updateVerifySetting(const UpdateVerifySettingRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return UpdateVerifySettingOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return UpdateVerifySettingOutcome(UpdateVerifySettingResult(outcome.result()));
else
return UpdateVerifySettingOutcome(outcome.error());
}
void CloudauthClient::updateVerifySettingAsync(const UpdateVerifySettingRequest& request, const UpdateVerifySettingAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, updateVerifySetting(request), context);
};
asyncExecute(new Runnable(fn));
}
CloudauthClient::UpdateVerifySettingOutcomeCallable CloudauthClient::updateVerifySettingCallable(const UpdateVerifySettingRequest &request) const
{
auto task = std::make_shared<std::packaged_task<UpdateVerifySettingOutcome()>>(
[this, request]()
{
return this->updateVerifySetting(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
CloudauthClient::VerifyDeviceOutcome CloudauthClient::verifyDevice(const VerifyDeviceRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return VerifyDeviceOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return VerifyDeviceOutcome(VerifyDeviceResult(outcome.result()));
else
return VerifyDeviceOutcome(outcome.error());
}
void CloudauthClient::verifyDeviceAsync(const VerifyDeviceRequest& request, const VerifyDeviceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, verifyDevice(request), context);
};
asyncExecute(new Runnable(fn));
}
CloudauthClient::VerifyDeviceOutcomeCallable CloudauthClient::verifyDeviceCallable(const VerifyDeviceRequest &request) const
{
auto task = std::make_shared<std::packaged_task<VerifyDeviceOutcome()>>(
[this, request]()
{
return this->verifyDevice(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
CloudauthClient::VerifyMaterialOutcome CloudauthClient::verifyMaterial(const VerifyMaterialRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();

View File

@@ -27,17 +27,6 @@ CompareFaceVerifyRequest::CompareFaceVerifyRequest() :
CompareFaceVerifyRequest::~CompareFaceVerifyRequest()
{}
std::string CompareFaceVerifyRequest::getTargetFaceContrastPictureUrl()const
{
return targetFaceContrastPictureUrl_;
}
void CompareFaceVerifyRequest::setTargetFaceContrastPictureUrl(const std::string& targetFaceContrastPictureUrl)
{
targetFaceContrastPictureUrl_ = targetFaceContrastPictureUrl;
setBodyParameter("TargetFaceContrastPictureUrl", targetFaceContrastPictureUrl);
}
std::string CompareFaceVerifyRequest::getProductCode()const
{
return productCode_;
@@ -60,17 +49,6 @@ void CompareFaceVerifyRequest::setTargetCertifyId(const std::string& targetCerti
setBodyParameter("TargetCertifyId", targetCertifyId);
}
std::string CompareFaceVerifyRequest::getSourceOssObjectName()const
{
return sourceOssObjectName_;
}
void CompareFaceVerifyRequest::setSourceOssObjectName(const std::string& sourceOssObjectName)
{
sourceOssObjectName_ = sourceOssObjectName;
setBodyParameter("SourceOssObjectName", sourceOssObjectName);
}
std::string CompareFaceVerifyRequest::getTargetFaceContrastPicture()const
{
return targetFaceContrastPicture_;
@@ -93,17 +71,6 @@ void CompareFaceVerifyRequest::setTargetOssBucketName(const std::string& targetO
setBodyParameter("TargetOssBucketName", targetOssBucketName);
}
std::string CompareFaceVerifyRequest::getSourceOssBucketName()const
{
return sourceOssBucketName_;
}
void CompareFaceVerifyRequest::setSourceOssBucketName(const std::string& sourceOssBucketName)
{
sourceOssBucketName_ = sourceOssBucketName;
setBodyParameter("SourceOssBucketName", sourceOssBucketName);
}
std::string CompareFaceVerifyRequest::getOuterOrderNo()const
{
return outerOrderNo_;
@@ -115,17 +82,6 @@ void CompareFaceVerifyRequest::setOuterOrderNo(const std::string& outerOrderNo)
setBodyParameter("OuterOrderNo", outerOrderNo);
}
std::string CompareFaceVerifyRequest::getTargetOssObjectName()const
{
return targetOssObjectName_;
}
void CompareFaceVerifyRequest::setTargetOssObjectName(const std::string& targetOssObjectName)
{
targetOssObjectName_ = targetOssObjectName;
setBodyParameter("TargetOssObjectName", targetOssObjectName);
}
std::string CompareFaceVerifyRequest::getSourceFaceContrastPicture()const
{
return sourceFaceContrastPicture_;
@@ -137,6 +93,61 @@ void CompareFaceVerifyRequest::setSourceFaceContrastPicture(const std::string& s
setBodyParameter("SourceFaceContrastPicture", sourceFaceContrastPicture);
}
std::string CompareFaceVerifyRequest::getSourceCertifyId()const
{
return sourceCertifyId_;
}
void CompareFaceVerifyRequest::setSourceCertifyId(const std::string& sourceCertifyId)
{
sourceCertifyId_ = sourceCertifyId;
setBodyParameter("SourceCertifyId", sourceCertifyId);
}
std::string CompareFaceVerifyRequest::getTargetFaceContrastPictureUrl()const
{
return targetFaceContrastPictureUrl_;
}
void CompareFaceVerifyRequest::setTargetFaceContrastPictureUrl(const std::string& targetFaceContrastPictureUrl)
{
targetFaceContrastPictureUrl_ = targetFaceContrastPictureUrl;
setBodyParameter("TargetFaceContrastPictureUrl", targetFaceContrastPictureUrl);
}
std::string CompareFaceVerifyRequest::getSourceOssObjectName()const
{
return sourceOssObjectName_;
}
void CompareFaceVerifyRequest::setSourceOssObjectName(const std::string& sourceOssObjectName)
{
sourceOssObjectName_ = sourceOssObjectName;
setBodyParameter("SourceOssObjectName", sourceOssObjectName);
}
std::string CompareFaceVerifyRequest::getSourceOssBucketName()const
{
return sourceOssBucketName_;
}
void CompareFaceVerifyRequest::setSourceOssBucketName(const std::string& sourceOssBucketName)
{
sourceOssBucketName_ = sourceOssBucketName;
setBodyParameter("SourceOssBucketName", sourceOssBucketName);
}
std::string CompareFaceVerifyRequest::getTargetOssObjectName()const
{
return targetOssObjectName_;
}
void CompareFaceVerifyRequest::setTargetOssObjectName(const std::string& targetOssObjectName)
{
targetOssObjectName_ = targetOssObjectName;
setBodyParameter("TargetOssObjectName", targetOssObjectName);
}
long CompareFaceVerifyRequest::getSceneId()const
{
return sceneId_;
@@ -159,17 +170,6 @@ void CompareFaceVerifyRequest::setSourceFaceContrastPictureUrl(const std::string
setBodyParameter("SourceFaceContrastPictureUrl", sourceFaceContrastPictureUrl);
}
std::string CompareFaceVerifyRequest::getSourceCertifyId()const
{
return sourceCertifyId_;
}
void CompareFaceVerifyRequest::setSourceCertifyId(const std::string& sourceCertifyId)
{
sourceCertifyId_ = sourceCertifyId;
setBodyParameter("SourceCertifyId", sourceCertifyId);
}
std::string CompareFaceVerifyRequest::getCrop()const
{
return crop_;

View File

@@ -44,12 +44,12 @@ void CompareFacesResult::parse(const std::string &payload)
data_.similarityScore = std::stof(dataNode["SimilarityScore"].asString());
if(!dataNode["ConfidenceThresholds"].isNull())
data_.confidenceThresholds = dataNode["ConfidenceThresholds"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}

View File

@@ -1,73 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/cloudauth/model/CreateFaceConfigRequest.h>
using AlibabaCloud::Cloudauth::Model::CreateFaceConfigRequest;
CreateFaceConfigRequest::CreateFaceConfigRequest() :
RpcServiceRequest("cloudauth", "2019-03-07", "CreateFaceConfig")
{
setMethod(HttpRequest::Method::Post);
}
CreateFaceConfigRequest::~CreateFaceConfigRequest()
{}
std::string CreateFaceConfigRequest::getBizName()const
{
return bizName_;
}
void CreateFaceConfigRequest::setBizName(const std::string& bizName)
{
bizName_ = bizName;
setParameter("BizName", bizName);
}
std::string CreateFaceConfigRequest::getBizType()const
{
return bizType_;
}
void CreateFaceConfigRequest::setBizType(const std::string& bizType)
{
bizType_ = bizType;
setParameter("BizType", bizType);
}
std::string CreateFaceConfigRequest::getSourceIp()const
{
return sourceIp_;
}
void CreateFaceConfigRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setParameter("SourceIp", sourceIp);
}
std::string CreateFaceConfigRequest::getLang()const
{
return lang_;
}
void CreateFaceConfigRequest::setLang(const std::string& lang)
{
lang_ = lang;
setParameter("Lang", lang);
}

View File

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

View File

@@ -1,73 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/cloudauth/model/CreateRPSDKRequest.h>
using AlibabaCloud::Cloudauth::Model::CreateRPSDKRequest;
CreateRPSDKRequest::CreateRPSDKRequest() :
RpcServiceRequest("cloudauth", "2019-03-07", "CreateRPSDK")
{
setMethod(HttpRequest::Method::Post);
}
CreateRPSDKRequest::~CreateRPSDKRequest()
{}
std::string CreateRPSDKRequest::getAppUrl()const
{
return appUrl_;
}
void CreateRPSDKRequest::setAppUrl(const std::string& appUrl)
{
appUrl_ = appUrl;
setParameter("AppUrl", appUrl);
}
std::string CreateRPSDKRequest::getPlatform()const
{
return platform_;
}
void CreateRPSDKRequest::setPlatform(const std::string& platform)
{
platform_ = platform;
setParameter("Platform", platform);
}
std::string CreateRPSDKRequest::getSourceIp()const
{
return sourceIp_;
}
void CreateRPSDKRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setParameter("SourceIp", sourceIp);
}
std::string CreateRPSDKRequest::getLang()const
{
return lang_;
}
void CreateRPSDKRequest::setLang(const std::string& lang)
{
lang_ = lang;
setParameter("Lang", lang);
}

View File

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

View File

@@ -1,73 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/cloudauth/model/CreateVerifySDKRequest.h>
using AlibabaCloud::Cloudauth::Model::CreateVerifySDKRequest;
CreateVerifySDKRequest::CreateVerifySDKRequest() :
RpcServiceRequest("cloudauth", "2019-03-07", "CreateVerifySDK")
{
setMethod(HttpRequest::Method::Post);
}
CreateVerifySDKRequest::~CreateVerifySDKRequest()
{}
std::string CreateVerifySDKRequest::getAppUrl()const
{
return appUrl_;
}
void CreateVerifySDKRequest::setAppUrl(const std::string& appUrl)
{
appUrl_ = appUrl;
setParameter("AppUrl", appUrl);
}
std::string CreateVerifySDKRequest::getPlatform()const
{
return platform_;
}
void CreateVerifySDKRequest::setPlatform(const std::string& platform)
{
platform_ = platform;
setParameter("Platform", platform);
}
std::string CreateVerifySDKRequest::getSourceIp()const
{
return sourceIp_;
}
void CreateVerifySDKRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setParameter("SourceIp", sourceIp);
}
std::string CreateVerifySDKRequest::getLang()const
{
return lang_;
}
void CreateVerifySDKRequest::setLang(const std::string& lang)
{
lang_ = lang;
setParameter("Lang", lang);
}

View File

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

View File

@@ -1,95 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/cloudauth/model/CreateWhitelistRequest.h>
using AlibabaCloud::Cloudauth::Model::CreateWhitelistRequest;
CreateWhitelistRequest::CreateWhitelistRequest() :
RpcServiceRequest("cloudauth", "2019-03-07", "CreateWhitelist")
{
setMethod(HttpRequest::Method::Post);
}
CreateWhitelistRequest::~CreateWhitelistRequest()
{}
std::string CreateWhitelistRequest::getValidDay()const
{
return validDay_;
}
void CreateWhitelistRequest::setValidDay(const std::string& validDay)
{
validDay_ = validDay;
setParameter("ValidDay", validDay);
}
std::string CreateWhitelistRequest::getBizType()const
{
return bizType_;
}
void CreateWhitelistRequest::setBizType(const std::string& bizType)
{
bizType_ = bizType;
setParameter("BizType", bizType);
}
std::string CreateWhitelistRequest::getIdCardNum()const
{
return idCardNum_;
}
void CreateWhitelistRequest::setIdCardNum(const std::string& idCardNum)
{
idCardNum_ = idCardNum;
setParameter("IdCardNum", idCardNum);
}
std::string CreateWhitelistRequest::getSourceIp()const
{
return sourceIp_;
}
void CreateWhitelistRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setParameter("SourceIp", sourceIp);
}
std::string CreateWhitelistRequest::getBizId()const
{
return bizId_;
}
void CreateWhitelistRequest::setBizId(const std::string& bizId)
{
bizId_ = bizId;
setParameter("BizId", bizId);
}
std::string CreateWhitelistRequest::getLang()const
{
return lang_;
}
void CreateWhitelistRequest::setLang(const std::string& lang)
{
lang_ = lang;
setParameter("Lang", lang);
}

View File

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

View File

@@ -1,106 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/cloudauth/model/CreateWhitelistSettingRequest.h>
using AlibabaCloud::Cloudauth::Model::CreateWhitelistSettingRequest;
CreateWhitelistSettingRequest::CreateWhitelistSettingRequest() :
RpcServiceRequest("cloudauth", "2019-03-07", "CreateWhitelistSetting")
{
setMethod(HttpRequest::Method::Post);
}
CreateWhitelistSettingRequest::~CreateWhitelistSettingRequest()
{}
std::string CreateWhitelistSettingRequest::getCertifyId()const
{
return certifyId_;
}
void CreateWhitelistSettingRequest::setCertifyId(const std::string& certifyId)
{
certifyId_ = certifyId;
setParameter("CertifyId", certifyId);
}
std::string CreateWhitelistSettingRequest::getCertNo()const
{
return certNo_;
}
void CreateWhitelistSettingRequest::setCertNo(const std::string& certNo)
{
certNo_ = certNo;
setParameter("CertNo", certNo);
}
std::string CreateWhitelistSettingRequest::getSourceIp()const
{
return sourceIp_;
}
void CreateWhitelistSettingRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setParameter("SourceIp", sourceIp);
}
std::string CreateWhitelistSettingRequest::getLang()const
{
return lang_;
}
void CreateWhitelistSettingRequest::setLang(const std::string& lang)
{
lang_ = lang;
setParameter("Lang", lang);
}
int CreateWhitelistSettingRequest::getValidDay()const
{
return validDay_;
}
void CreateWhitelistSettingRequest::setValidDay(int validDay)
{
validDay_ = validDay;
setParameter("ValidDay", std::to_string(validDay));
}
std::string CreateWhitelistSettingRequest::getServiceCode()const
{
return serviceCode_;
}
void CreateWhitelistSettingRequest::setServiceCode(const std::string& serviceCode)
{
serviceCode_ = serviceCode;
setParameter("ServiceCode", serviceCode);
}
long CreateWhitelistSettingRequest::getSceneId()const
{
return sceneId_;
}
void CreateWhitelistSettingRequest::setSceneId(long sceneId)
{
sceneId_ = sceneId;
setParameter("SceneId", std::to_string(sceneId));
}

View File

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

View File

@@ -1,62 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/cloudauth/model/DeleteWhitelistRequest.h>
using AlibabaCloud::Cloudauth::Model::DeleteWhitelistRequest;
DeleteWhitelistRequest::DeleteWhitelistRequest() :
RpcServiceRequest("cloudauth", "2019-03-07", "DeleteWhitelist")
{
setMethod(HttpRequest::Method::Post);
}
DeleteWhitelistRequest::~DeleteWhitelistRequest()
{}
std::string DeleteWhitelistRequest::getSourceIp()const
{
return sourceIp_;
}
void DeleteWhitelistRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setParameter("SourceIp", sourceIp);
}
std::string DeleteWhitelistRequest::getIds()const
{
return ids_;
}
void DeleteWhitelistRequest::setIds(const std::string& ids)
{
ids_ = ids;
setParameter("Ids", ids);
}
std::string DeleteWhitelistRequest::getLang()const
{
return lang_;
}
void DeleteWhitelistRequest::setLang(const std::string& lang)
{
lang_ = lang;
setParameter("Lang", lang);
}

View File

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

View File

@@ -1,73 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/cloudauth/model/DeleteWhitelistSettingRequest.h>
using AlibabaCloud::Cloudauth::Model::DeleteWhitelistSettingRequest;
DeleteWhitelistSettingRequest::DeleteWhitelistSettingRequest() :
RpcServiceRequest("cloudauth", "2019-03-07", "DeleteWhitelistSetting")
{
setMethod(HttpRequest::Method::Post);
}
DeleteWhitelistSettingRequest::~DeleteWhitelistSettingRequest()
{}
std::string DeleteWhitelistSettingRequest::getSourceIp()const
{
return sourceIp_;
}
void DeleteWhitelistSettingRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setParameter("SourceIp", sourceIp);
}
std::string DeleteWhitelistSettingRequest::getLang()const
{
return lang_;
}
void DeleteWhitelistSettingRequest::setLang(const std::string& lang)
{
lang_ = lang;
setParameter("Lang", lang);
}
std::string DeleteWhitelistSettingRequest::getServiceCode()const
{
return serviceCode_;
}
void DeleteWhitelistSettingRequest::setServiceCode(const std::string& serviceCode)
{
serviceCode_ = serviceCode;
setParameter("ServiceCode", serviceCode);
}
std::string DeleteWhitelistSettingRequest::getIds()const
{
return ids_;
}
void DeleteWhitelistSettingRequest::setIds(const std::string& ids)
{
ids_ = ids;
setParameter("Ids", ids);
}

View File

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

View File

@@ -1,73 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/cloudauth/model/DescribeAppInfoRequest.h>
using AlibabaCloud::Cloudauth::Model::DescribeAppInfoRequest;
DescribeAppInfoRequest::DescribeAppInfoRequest() :
RpcServiceRequest("cloudauth", "2019-03-07", "DescribeAppInfo")
{
setMethod(HttpRequest::Method::Post);
}
DescribeAppInfoRequest::~DescribeAppInfoRequest()
{}
int DescribeAppInfoRequest::getCurrentPage()const
{
return currentPage_;
}
void DescribeAppInfoRequest::setCurrentPage(int currentPage)
{
currentPage_ = currentPage;
setParameter("CurrentPage", std::to_string(currentPage));
}
std::string DescribeAppInfoRequest::getPlatform()const
{
return platform_;
}
void DescribeAppInfoRequest::setPlatform(const std::string& platform)
{
platform_ = platform;
setParameter("Platform", platform);
}
std::string DescribeAppInfoRequest::getSourceIp()const
{
return sourceIp_;
}
void DescribeAppInfoRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setParameter("SourceIp", sourceIp);
}
int DescribeAppInfoRequest::getPageSize()const
{
return pageSize_;
}
void DescribeAppInfoRequest::setPageSize(int pageSize)
{
pageSize_ = pageSize;
setParameter("PageSize", std::to_string(pageSize));
}

View File

@@ -1,96 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/cloudauth/model/DescribeAppInfoResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Cloudauth;
using namespace AlibabaCloud::Cloudauth::Model;
DescribeAppInfoResult::DescribeAppInfoResult() :
ServiceResult()
{}
DescribeAppInfoResult::DescribeAppInfoResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeAppInfoResult::~DescribeAppInfoResult()
{}
void DescribeAppInfoResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allAppInfoListNode = value["AppInfoList"]["AppInfo"];
for (auto valueAppInfoListAppInfo : allAppInfoListNode)
{
AppInfo appInfoListObject;
if(!valueAppInfoListAppInfo["Id"].isNull())
appInfoListObject.id = std::stol(valueAppInfoListAppInfo["Id"].asString());
if(!valueAppInfoListAppInfo["Name"].isNull())
appInfoListObject.name = valueAppInfoListAppInfo["Name"].asString();
if(!valueAppInfoListAppInfo["PackageName"].isNull())
appInfoListObject.packageName = valueAppInfoListAppInfo["PackageName"].asString();
if(!valueAppInfoListAppInfo["Icon"].isNull())
appInfoListObject.icon = valueAppInfoListAppInfo["Icon"].asString();
if(!valueAppInfoListAppInfo["StartDate"].isNull())
appInfoListObject.startDate = valueAppInfoListAppInfo["StartDate"].asString();
if(!valueAppInfoListAppInfo["EndDate"].isNull())
appInfoListObject.endDate = valueAppInfoListAppInfo["EndDate"].asString();
if(!valueAppInfoListAppInfo["Type"].isNull())
appInfoListObject.type = std::stoi(valueAppInfoListAppInfo["Type"].asString());
auto packageInfoNode = value["PackageInfo"];
if(!packageInfoNode["Version"].isNull())
appInfoListObject.packageInfo.version = packageInfoNode["Version"].asString();
auto debugPackageInfoNode = value["DebugPackageInfo"];
if(!debugPackageInfoNode["Version"].isNull())
appInfoListObject.debugPackageInfo.version = debugPackageInfoNode["Version"].asString();
appInfoList_.push_back(appInfoListObject);
}
if(!value["PageSize"].isNull())
pageSize_ = std::stoi(value["PageSize"].asString());
if(!value["CurrentPage"].isNull())
currentPage_ = std::stoi(value["CurrentPage"].asString());
if(!value["TotalCount"].isNull())
totalCount_ = std::stoi(value["TotalCount"].asString());
}
int DescribeAppInfoResult::getTotalCount()const
{
return totalCount_;
}
int DescribeAppInfoResult::getPageSize()const
{
return pageSize_;
}
int DescribeAppInfoResult::getCurrentPage()const
{
return currentPage_;
}
std::vector<DescribeAppInfoResult::AppInfo> DescribeAppInfoResult::getAppInfoList()const
{
return appInfoList_;
}

View File

@@ -1,51 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/cloudauth/model/DescribeFaceConfigRequest.h>
using AlibabaCloud::Cloudauth::Model::DescribeFaceConfigRequest;
DescribeFaceConfigRequest::DescribeFaceConfigRequest() :
RpcServiceRequest("cloudauth", "2019-03-07", "DescribeFaceConfig")
{
setMethod(HttpRequest::Method::Post);
}
DescribeFaceConfigRequest::~DescribeFaceConfigRequest()
{}
std::string DescribeFaceConfigRequest::getSourceIp()const
{
return sourceIp_;
}
void DescribeFaceConfigRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setParameter("SourceIp", sourceIp);
}
std::string DescribeFaceConfigRequest::getLang()const
{
return lang_;
}
void DescribeFaceConfigRequest::setLang(const std::string& lang)
{
lang_ = lang;
setParameter("Lang", lang);
}

View File

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

View File

@@ -1,62 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/cloudauth/model/DescribeFaceUsageRequest.h>
using AlibabaCloud::Cloudauth::Model::DescribeFaceUsageRequest;
DescribeFaceUsageRequest::DescribeFaceUsageRequest() :
RpcServiceRequest("cloudauth", "2019-03-07", "DescribeFaceUsage")
{
setMethod(HttpRequest::Method::Post);
}
DescribeFaceUsageRequest::~DescribeFaceUsageRequest()
{}
std::string DescribeFaceUsageRequest::getStartDate()const
{
return startDate_;
}
void DescribeFaceUsageRequest::setStartDate(const std::string& startDate)
{
startDate_ = startDate;
setParameter("StartDate", startDate);
}
std::string DescribeFaceUsageRequest::getEndDate()const
{
return endDate_;
}
void DescribeFaceUsageRequest::setEndDate(const std::string& endDate)
{
endDate_ = endDate;
setParameter("EndDate", endDate);
}
std::string DescribeFaceUsageRequest::getSourceIp()const
{
return sourceIp_;
}
void DescribeFaceUsageRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setParameter("SourceIp", sourceIp);
}

View File

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

View File

@@ -1,62 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/cloudauth/model/DescribeRPSDKRequest.h>
using AlibabaCloud::Cloudauth::Model::DescribeRPSDKRequest;
DescribeRPSDKRequest::DescribeRPSDKRequest() :
RpcServiceRequest("cloudauth", "2019-03-07", "DescribeRPSDK")
{
setMethod(HttpRequest::Method::Post);
}
DescribeRPSDKRequest::~DescribeRPSDKRequest()
{}
std::string DescribeRPSDKRequest::getSourceIp()const
{
return sourceIp_;
}
void DescribeRPSDKRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setParameter("SourceIp", sourceIp);
}
std::string DescribeRPSDKRequest::getLang()const
{
return lang_;
}
void DescribeRPSDKRequest::setLang(const std::string& lang)
{
lang_ = lang;
setParameter("Lang", lang);
}
std::string DescribeRPSDKRequest::getTaskId()const
{
return taskId_;
}
void DescribeRPSDKRequest::setTaskId(const std::string& taskId)
{
taskId_ = taskId;
setParameter("TaskId", taskId);
}

View File

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

View File

@@ -1,62 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/cloudauth/model/DescribeSdkUrlRequest.h>
using AlibabaCloud::Cloudauth::Model::DescribeSdkUrlRequest;
DescribeSdkUrlRequest::DescribeSdkUrlRequest() :
RpcServiceRequest("cloudauth", "2019-03-07", "DescribeSdkUrl")
{
setMethod(HttpRequest::Method::Post);
}
DescribeSdkUrlRequest::~DescribeSdkUrlRequest()
{}
bool DescribeSdkUrlRequest::getDebug()const
{
return debug_;
}
void DescribeSdkUrlRequest::setDebug(bool debug)
{
debug_ = debug;
setParameter("Debug", debug ? "true" : "false");
}
std::string DescribeSdkUrlRequest::getSourceIp()const
{
return sourceIp_;
}
void DescribeSdkUrlRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setParameter("SourceIp", sourceIp);
}
long DescribeSdkUrlRequest::getId()const
{
return id_;
}
void DescribeSdkUrlRequest::setId(long id)
{
id_ = id;
setParameter("Id", std::to_string(id));
}

View File

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

View File

@@ -1,51 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/cloudauth/model/DescribeUpdatePackageResultRequest.h>
using AlibabaCloud::Cloudauth::Model::DescribeUpdatePackageResultRequest;
DescribeUpdatePackageResultRequest::DescribeUpdatePackageResultRequest() :
RpcServiceRequest("cloudauth", "2019-03-07", "DescribeUpdatePackageResult")
{
setMethod(HttpRequest::Method::Post);
}
DescribeUpdatePackageResultRequest::~DescribeUpdatePackageResultRequest()
{}
std::string DescribeUpdatePackageResultRequest::getSourceIp()const
{
return sourceIp_;
}
void DescribeUpdatePackageResultRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setParameter("SourceIp", sourceIp);
}
std::string DescribeUpdatePackageResultRequest::getTaskId()const
{
return taskId_;
}
void DescribeUpdatePackageResultRequest::setTaskId(const std::string& taskId)
{
taskId_ = taskId;
setParameter("TaskId", taskId);
}

View File

@@ -1,70 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/cloudauth/model/DescribeUpdatePackageResultResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Cloudauth;
using namespace AlibabaCloud::Cloudauth::Model;
DescribeUpdatePackageResultResult::DescribeUpdatePackageResultResult() :
ServiceResult()
{}
DescribeUpdatePackageResultResult::DescribeUpdatePackageResultResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeUpdatePackageResultResult::~DescribeUpdatePackageResultResult()
{}
void DescribeUpdatePackageResultResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto appInfoNode = value["AppInfo"];
if(!appInfoNode["Id"].isNull())
appInfo_.id = std::stol(appInfoNode["Id"].asString());
if(!appInfoNode["Name"].isNull())
appInfo_.name = appInfoNode["Name"].asString();
if(!appInfoNode["PackageName"].isNull())
appInfo_.packageName = appInfoNode["PackageName"].asString();
if(!appInfoNode["Icon"].isNull())
appInfo_.icon = appInfoNode["Icon"].asString();
if(!appInfoNode["StartDate"].isNull())
appInfo_.startDate = appInfoNode["StartDate"].asString();
if(!appInfoNode["EndDate"].isNull())
appInfo_.endDate = appInfoNode["EndDate"].asString();
if(!appInfoNode["Type"].isNull())
appInfo_.type = std::stoi(appInfoNode["Type"].asString());
auto packageInfoNode = appInfoNode["PackageInfo"];
if(!packageInfoNode["Version"].isNull())
appInfo_.packageInfo.version = packageInfoNode["Version"].asString();
auto debugPackageInfoNode = appInfoNode["DebugPackageInfo"];
if(!debugPackageInfoNode["Version"].isNull())
appInfo_.debugPackageInfo.version = debugPackageInfoNode["Version"].asString();
}
DescribeUpdatePackageResultResult::AppInfo DescribeUpdatePackageResultResult::getAppInfo()const
{
return appInfo_;
}

View File

@@ -1,51 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/cloudauth/model/DescribeUploadInfoRequest.h>
using AlibabaCloud::Cloudauth::Model::DescribeUploadInfoRequest;
DescribeUploadInfoRequest::DescribeUploadInfoRequest() :
RpcServiceRequest("cloudauth", "2019-03-07", "DescribeUploadInfo")
{
setMethod(HttpRequest::Method::Post);
}
DescribeUploadInfoRequest::~DescribeUploadInfoRequest()
{}
std::string DescribeUploadInfoRequest::getBiz()const
{
return biz_;
}
void DescribeUploadInfoRequest::setBiz(const std::string& biz)
{
biz_ = biz;
setParameter("Biz", biz);
}
std::string DescribeUploadInfoRequest::getSourceIp()const
{
return sourceIp_;
}
void DescribeUploadInfoRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setParameter("SourceIp", sourceIp);
}

View File

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

View File

@@ -1,40 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/cloudauth/model/DescribeUserStatusRequest.h>
using AlibabaCloud::Cloudauth::Model::DescribeUserStatusRequest;
DescribeUserStatusRequest::DescribeUserStatusRequest() :
RpcServiceRequest("cloudauth", "2019-03-07", "DescribeUserStatus")
{
setMethod(HttpRequest::Method::Post);
}
DescribeUserStatusRequest::~DescribeUserStatusRequest()
{}
std::string DescribeUserStatusRequest::getSourceIp()const
{
return sourceIp_;
}
void DescribeUserStatusRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setParameter("SourceIp", sourceIp);
}

View File

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

View File

@@ -1,150 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/cloudauth/model/DescribeVerifyRecordsRequest.h>
using AlibabaCloud::Cloudauth::Model::DescribeVerifyRecordsRequest;
DescribeVerifyRecordsRequest::DescribeVerifyRecordsRequest() :
RpcServiceRequest("cloudauth", "2019-03-07", "DescribeVerifyRecords")
{
setMethod(HttpRequest::Method::Post);
}
DescribeVerifyRecordsRequest::~DescribeVerifyRecordsRequest()
{}
std::string DescribeVerifyRecordsRequest::getStatusList()const
{
return statusList_;
}
void DescribeVerifyRecordsRequest::setStatusList(const std::string& statusList)
{
statusList_ = statusList;
setParameter("StatusList", statusList);
}
std::string DescribeVerifyRecordsRequest::getStartDate()const
{
return startDate_;
}
void DescribeVerifyRecordsRequest::setStartDate(const std::string& startDate)
{
startDate_ = startDate;
setParameter("StartDate", startDate);
}
std::string DescribeVerifyRecordsRequest::getSourceIp()const
{
return sourceIp_;
}
void DescribeVerifyRecordsRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setParameter("SourceIp", sourceIp);
}
int DescribeVerifyRecordsRequest::getPageSize()const
{
return pageSize_;
}
void DescribeVerifyRecordsRequest::setPageSize(int pageSize)
{
pageSize_ = pageSize;
setParameter("PageSize", std::to_string(pageSize));
}
int DescribeVerifyRecordsRequest::getTotalCount()const
{
return totalCount_;
}
void DescribeVerifyRecordsRequest::setTotalCount(int totalCount)
{
totalCount_ = totalCount;
setParameter("TotalCount", std::to_string(totalCount));
}
int DescribeVerifyRecordsRequest::getCurrentPage()const
{
return currentPage_;
}
void DescribeVerifyRecordsRequest::setCurrentPage(int currentPage)
{
currentPage_ = currentPage;
setParameter("CurrentPage", std::to_string(currentPage));
}
std::string DescribeVerifyRecordsRequest::getQueryId()const
{
return queryId_;
}
void DescribeVerifyRecordsRequest::setQueryId(const std::string& queryId)
{
queryId_ = queryId;
setParameter("QueryId", queryId);
}
std::string DescribeVerifyRecordsRequest::getBizType()const
{
return bizType_;
}
void DescribeVerifyRecordsRequest::setBizType(const std::string& bizType)
{
bizType_ = bizType;
setParameter("BizType", bizType);
}
std::string DescribeVerifyRecordsRequest::getIdCardNum()const
{
return idCardNum_;
}
void DescribeVerifyRecordsRequest::setIdCardNum(const std::string& idCardNum)
{
idCardNum_ = idCardNum;
setParameter("IdCardNum", idCardNum);
}
std::string DescribeVerifyRecordsRequest::getEndDate()const
{
return endDate_;
}
void DescribeVerifyRecordsRequest::setEndDate(const std::string& endDate)
{
endDate_ = endDate;
setParameter("EndDate", endDate);
}
std::string DescribeVerifyRecordsRequest::getBizId()const
{
return bizId_;
}
void DescribeVerifyRecordsRequest::setBizId(const std::string& bizId)
{
bizId_ = bizId;
setParameter("BizId", bizId);
}

View File

@@ -1,129 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/cloudauth/model/DescribeVerifyRecordsResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Cloudauth;
using namespace AlibabaCloud::Cloudauth::Model;
DescribeVerifyRecordsResult::DescribeVerifyRecordsResult() :
ServiceResult()
{}
DescribeVerifyRecordsResult::DescribeVerifyRecordsResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeVerifyRecordsResult::~DescribeVerifyRecordsResult()
{}
void DescribeVerifyRecordsResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allRecordsListNode = value["RecordsList"]["Records"];
for (auto valueRecordsListRecords : allRecordsListNode)
{
Records recordsListObject;
if(!valueRecordsListRecords["BizType"].isNull())
recordsListObject.bizType = valueRecordsListRecords["BizType"].asString();
if(!valueRecordsListRecords["BizId"].isNull())
recordsListObject.bizId = valueRecordsListRecords["BizId"].asString();
if(!valueRecordsListRecords["DataStats"].isNull())
recordsListObject.dataStats = valueRecordsListRecords["DataStats"].asString();
if(!valueRecordsListRecords["VerifyId"].isNull())
recordsListObject.verifyId = valueRecordsListRecords["VerifyId"].asString();
if(!valueRecordsListRecords["FinishTime"].isNull())
recordsListObject.finishTime = std::stol(valueRecordsListRecords["FinishTime"].asString());
if(!valueRecordsListRecords["Status"].isNull())
recordsListObject.status = std::stoi(valueRecordsListRecords["Status"].asString());
if(!valueRecordsListRecords["IdCardFaceComparisonScore"].isNull())
recordsListObject.idCardFaceComparisonScore = std::stof(valueRecordsListRecords["IdCardFaceComparisonScore"].asString());
if(!valueRecordsListRecords["AuthorityComparisonScore"].isNull())
recordsListObject.authorityComparisonScore = std::stof(valueRecordsListRecords["AuthorityComparisonScore"].asString());
auto materialNode = value["Material"];
if(!materialNode["FaceImageUrl"].isNull())
recordsListObject.material.faceImageUrl = materialNode["FaceImageUrl"].asString();
if(!materialNode["IdCardName"].isNull())
recordsListObject.material.idCardName = materialNode["IdCardName"].asString();
if(!materialNode["IdCardNumber"].isNull())
recordsListObject.material.idCardNumber = materialNode["IdCardNumber"].asString();
auto idCardInfoNode = materialNode["IdCardInfo"];
if(!idCardInfoNode["FrontImageUrl"].isNull())
recordsListObject.material.idCardInfo.frontImageUrl = idCardInfoNode["FrontImageUrl"].asString();
if(!idCardInfoNode["BackImageUrl"].isNull())
recordsListObject.material.idCardInfo.backImageUrl = idCardInfoNode["BackImageUrl"].asString();
if(!idCardInfoNode["Name"].isNull())
recordsListObject.material.idCardInfo.name = idCardInfoNode["Name"].asString();
if(!idCardInfoNode["Number"].isNull())
recordsListObject.material.idCardInfo.number = idCardInfoNode["Number"].asString();
if(!idCardInfoNode["Address"].isNull())
recordsListObject.material.idCardInfo.address = idCardInfoNode["Address"].asString();
if(!idCardInfoNode["Birth"].isNull())
recordsListObject.material.idCardInfo.birth = idCardInfoNode["Birth"].asString();
if(!idCardInfoNode["Sex"].isNull())
recordsListObject.material.idCardInfo.sex = idCardInfoNode["Sex"].asString();
if(!idCardInfoNode["Nationality"].isNull())
recordsListObject.material.idCardInfo.nationality = idCardInfoNode["Nationality"].asString();
if(!idCardInfoNode["Authority"].isNull())
recordsListObject.material.idCardInfo.authority = idCardInfoNode["Authority"].asString();
if(!idCardInfoNode["StartDate"].isNull())
recordsListObject.material.idCardInfo.startDate = idCardInfoNode["StartDate"].asString();
if(!idCardInfoNode["EndDate"].isNull())
recordsListObject.material.idCardInfo.endDate = idCardInfoNode["EndDate"].asString();
recordsList_.push_back(recordsListObject);
}
if(!value["TotalCount"].isNull())
totalCount_ = std::stoi(value["TotalCount"].asString());
if(!value["PageSize"].isNull())
pageSize_ = std::stoi(value["PageSize"].asString());
if(!value["CurrentPage"].isNull())
currentPage_ = std::stoi(value["CurrentPage"].asString());
if(!value["QueryId"].isNull())
queryId_ = value["QueryId"].asString();
}
int DescribeVerifyRecordsResult::getTotalCount()const
{
return totalCount_;
}
int DescribeVerifyRecordsResult::getPageSize()const
{
return pageSize_;
}
int DescribeVerifyRecordsResult::getCurrentPage()const
{
return currentPage_;
}
std::vector<DescribeVerifyRecordsResult::Records> DescribeVerifyRecordsResult::getRecordsList()const
{
return recordsList_;
}
std::string DescribeVerifyRecordsResult::getQueryId()const
{
return queryId_;
}

View File

@@ -40,48 +40,48 @@ void DescribeVerifyResultResult::parse(const std::string &payload)
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto materialNode = value["Material"];
if(!materialNode["FaceImageUrl"].isNull())
material_.faceImageUrl = materialNode["FaceImageUrl"].asString();
if(!materialNode["IdCardName"].isNull())
material_.idCardName = materialNode["IdCardName"].asString();
if(!materialNode["IdCardNumber"].isNull())
material_.idCardNumber = materialNode["IdCardNumber"].asString();
if(!materialNode["FaceQuality"].isNull())
material_.faceQuality = materialNode["FaceQuality"].asString();
if(!materialNode["FaceGlobalUrl"].isNull())
material_.faceGlobalUrl = materialNode["FaceGlobalUrl"].asString();
if(!materialNode["FaceImageUrl"].isNull())
material_.faceImageUrl = materialNode["FaceImageUrl"].asString();
if(!materialNode["FaceMask"].isNull())
material_.faceMask = materialNode["FaceMask"].asString() == "true";
if(!materialNode["IdCardName"].isNull())
material_.idCardName = materialNode["IdCardName"].asString();
if(!materialNode["FaceQuality"].isNull())
material_.faceQuality = materialNode["FaceQuality"].asString();
auto idCardInfoNode = materialNode["IdCardInfo"];
if(!idCardInfoNode["Number"].isNull())
material_.idCardInfo.number = idCardInfoNode["Number"].asString();
if(!idCardInfoNode["Address"].isNull())
material_.idCardInfo.address = idCardInfoNode["Address"].asString();
if(!idCardInfoNode["Nationality"].isNull())
material_.idCardInfo.nationality = idCardInfoNode["Nationality"].asString();
if(!idCardInfoNode["EndDate"].isNull())
material_.idCardInfo.endDate = idCardInfoNode["EndDate"].asString();
if(!idCardInfoNode["FrontImageUrl"].isNull())
material_.idCardInfo.frontImageUrl = idCardInfoNode["FrontImageUrl"].asString();
if(!idCardInfoNode["Authority"].isNull())
material_.idCardInfo.authority = idCardInfoNode["Authority"].asString();
if(!idCardInfoNode["Sex"].isNull())
material_.idCardInfo.sex = idCardInfoNode["Sex"].asString();
if(!idCardInfoNode["Name"].isNull())
material_.idCardInfo.name = idCardInfoNode["Name"].asString();
if(!idCardInfoNode["Birth"].isNull())
material_.idCardInfo.birth = idCardInfoNode["Birth"].asString();
if(!idCardInfoNode["BackImageUrl"].isNull())
material_.idCardInfo.backImageUrl = idCardInfoNode["BackImageUrl"].asString();
if(!idCardInfoNode["EndDate"].isNull())
material_.idCardInfo.endDate = idCardInfoNode["EndDate"].asString();
if(!idCardInfoNode["Authority"].isNull())
material_.idCardInfo.authority = idCardInfoNode["Authority"].asString();
if(!idCardInfoNode["Address"].isNull())
material_.idCardInfo.address = idCardInfoNode["Address"].asString();
if(!idCardInfoNode["Number"].isNull())
material_.idCardInfo.number = idCardInfoNode["Number"].asString();
if(!idCardInfoNode["StartDate"].isNull())
material_.idCardInfo.startDate = idCardInfoNode["StartDate"].asString();
if(!idCardInfoNode["BackImageUrl"].isNull())
material_.idCardInfo.backImageUrl = idCardInfoNode["BackImageUrl"].asString();
if(!idCardInfoNode["Nationality"].isNull())
material_.idCardInfo.nationality = idCardInfoNode["Nationality"].asString();
if(!idCardInfoNode["Birth"].isNull())
material_.idCardInfo.birth = idCardInfoNode["Birth"].asString();
if(!idCardInfoNode["Name"].isNull())
material_.idCardInfo.name = idCardInfoNode["Name"].asString();
if(!idCardInfoNode["FrontImageUrl"].isNull())
material_.idCardInfo.frontImageUrl = idCardInfoNode["FrontImageUrl"].asString();
auto allVideoUrls = materialNode["VideoUrls"]["VideoUrl"];
for (auto value : allVideoUrls)
material_.videoUrls.push_back(value.asString());
if(!value["VerifyStatus"].isNull())
verifyStatus_ = std::stoi(value["VerifyStatus"].asString());
if(!value["AuthorityComparisionScore"].isNull())
authorityComparisionScore_ = std::stof(value["AuthorityComparisionScore"].asString());
if(!value["VerifyStatus"].isNull())
verifyStatus_ = std::stoi(value["VerifyStatus"].asString());
if(!value["FaceComparisonScore"].isNull())
faceComparisonScore_ = std::stof(value["FaceComparisonScore"].asString());
if(!value["IdCardFaceComparisonScore"].isNull())

View File

@@ -1,40 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/cloudauth/model/DescribeVerifySettingRequest.h>
using AlibabaCloud::Cloudauth::Model::DescribeVerifySettingRequest;
DescribeVerifySettingRequest::DescribeVerifySettingRequest() :
RpcServiceRequest("cloudauth", "2019-03-07", "DescribeVerifySetting")
{
setMethod(HttpRequest::Method::Post);
}
DescribeVerifySettingRequest::~DescribeVerifySettingRequest()
{}
std::string DescribeVerifySettingRequest::getSourceIp()const
{
return sourceIp_;
}
void DescribeVerifySettingRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setParameter("SourceIp", sourceIp);
}

View File

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

View File

@@ -1,73 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/cloudauth/model/DescribeVerifyUsageRequest.h>
using AlibabaCloud::Cloudauth::Model::DescribeVerifyUsageRequest;
DescribeVerifyUsageRequest::DescribeVerifyUsageRequest() :
RpcServiceRequest("cloudauth", "2019-03-07", "DescribeVerifyUsage")
{
setMethod(HttpRequest::Method::Post);
}
DescribeVerifyUsageRequest::~DescribeVerifyUsageRequest()
{}
std::string DescribeVerifyUsageRequest::getStartDate()const
{
return startDate_;
}
void DescribeVerifyUsageRequest::setStartDate(const std::string& startDate)
{
startDate_ = startDate;
setParameter("StartDate", startDate);
}
std::string DescribeVerifyUsageRequest::getBizType()const
{
return bizType_;
}
void DescribeVerifyUsageRequest::setBizType(const std::string& bizType)
{
bizType_ = bizType;
setParameter("BizType", bizType);
}
std::string DescribeVerifyUsageRequest::getEndDate()const
{
return endDate_;
}
void DescribeVerifyUsageRequest::setEndDate(const std::string& endDate)
{
endDate_ = endDate;
setParameter("EndDate", endDate);
}
std::string DescribeVerifyUsageRequest::getSourceIp()const
{
return sourceIp_;
}
void DescribeVerifyUsageRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setParameter("SourceIp", sourceIp);
}

View File

@@ -1,72 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/cloudauth/model/DescribeVerifyUsageResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Cloudauth;
using namespace AlibabaCloud::Cloudauth::Model;
DescribeVerifyUsageResult::DescribeVerifyUsageResult() :
ServiceResult()
{}
DescribeVerifyUsageResult::DescribeVerifyUsageResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeVerifyUsageResult::~DescribeVerifyUsageResult()
{}
void DescribeVerifyUsageResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allVerifyUsageListNode = value["VerifyUsageList"]["VerifyUsage"];
for (auto valueVerifyUsageListVerifyUsage : allVerifyUsageListNode)
{
VerifyUsage verifyUsageListObject;
if(!valueVerifyUsageListVerifyUsage["BizType"].isNull())
verifyUsageListObject.bizType = valueVerifyUsageListVerifyUsage["BizType"].asString();
if(!valueVerifyUsageListVerifyUsage["Date"].isNull())
verifyUsageListObject.date = valueVerifyUsageListVerifyUsage["Date"].asString();
if(!valueVerifyUsageListVerifyUsage["TotalCount"].isNull())
verifyUsageListObject.totalCount = std::stol(valueVerifyUsageListVerifyUsage["TotalCount"].asString());
if(!valueVerifyUsageListVerifyUsage["PassCount"].isNull())
verifyUsageListObject.passCount = std::stol(valueVerifyUsageListVerifyUsage["PassCount"].asString());
if(!valueVerifyUsageListVerifyUsage["FailCount"].isNull())
verifyUsageListObject.failCount = std::stol(valueVerifyUsageListVerifyUsage["FailCount"].asString());
verifyUsageList_.push_back(verifyUsageListObject);
}
if(!value["TotalCount"].isNull())
totalCount_ = std::stoi(value["TotalCount"].asString());
}
std::vector<DescribeVerifyUsageResult::VerifyUsage> DescribeVerifyUsageResult::getVerifyUsageList()const
{
return verifyUsageList_;
}
int DescribeVerifyUsageResult::getTotalCount()const
{
return totalCount_;
}

View File

@@ -1,139 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/cloudauth/model/DescribeWhitelistRequest.h>
using AlibabaCloud::Cloudauth::Model::DescribeWhitelistRequest;
DescribeWhitelistRequest::DescribeWhitelistRequest() :
RpcServiceRequest("cloudauth", "2019-03-07", "DescribeWhitelist")
{
setMethod(HttpRequest::Method::Post);
}
DescribeWhitelistRequest::~DescribeWhitelistRequest()
{}
std::string DescribeWhitelistRequest::getValidEndDate()const
{
return validEndDate_;
}
void DescribeWhitelistRequest::setValidEndDate(const std::string& validEndDate)
{
validEndDate_ = validEndDate;
setParameter("ValidEndDate", validEndDate);
}
std::string DescribeWhitelistRequest::getValid()const
{
return valid_;
}
void DescribeWhitelistRequest::setValid(const std::string& valid)
{
valid_ = valid;
setParameter("Valid", valid);
}
std::string DescribeWhitelistRequest::getSourceIp()const
{
return sourceIp_;
}
void DescribeWhitelistRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setParameter("SourceIp", sourceIp);
}
int DescribeWhitelistRequest::getPageSize()const
{
return pageSize_;
}
void DescribeWhitelistRequest::setPageSize(int pageSize)
{
pageSize_ = pageSize;
setParameter("PageSize", std::to_string(pageSize));
}
std::string DescribeWhitelistRequest::getLang()const
{
return lang_;
}
void DescribeWhitelistRequest::setLang(const std::string& lang)
{
lang_ = lang;
setParameter("Lang", lang);
}
int DescribeWhitelistRequest::getCurrentPage()const
{
return currentPage_;
}
void DescribeWhitelistRequest::setCurrentPage(int currentPage)
{
currentPage_ = currentPage;
setParameter("CurrentPage", std::to_string(currentPage));
}
std::string DescribeWhitelistRequest::getBizType()const
{
return bizType_;
}
void DescribeWhitelistRequest::setBizType(const std::string& bizType)
{
bizType_ = bizType;
setParameter("BizType", bizType);
}
std::string DescribeWhitelistRequest::getIdCardNum()const
{
return idCardNum_;
}
void DescribeWhitelistRequest::setIdCardNum(const std::string& idCardNum)
{
idCardNum_ = idCardNum;
setParameter("IdCardNum", idCardNum);
}
std::string DescribeWhitelistRequest::getBizId()const
{
return bizId_;
}
void DescribeWhitelistRequest::setBizId(const std::string& bizId)
{
bizId_ = bizId;
setParameter("BizId", bizId);
}
std::string DescribeWhitelistRequest::getValidStartDate()const
{
return validStartDate_;
}
void DescribeWhitelistRequest::setValidStartDate(const std::string& validStartDate)
{
validStartDate_ = validStartDate;
setParameter("ValidStartDate", validStartDate);
}

View File

@@ -1,96 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/cloudauth/model/DescribeWhitelistResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Cloudauth;
using namespace AlibabaCloud::Cloudauth::Model;
DescribeWhitelistResult::DescribeWhitelistResult() :
ServiceResult()
{}
DescribeWhitelistResult::DescribeWhitelistResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeWhitelistResult::~DescribeWhitelistResult()
{}
void DescribeWhitelistResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allItemsNode = value["Items"]["Item"];
for (auto valueItemsItem : allItemsNode)
{
Item itemsObject;
if(!valueItemsItem["Id"].isNull())
itemsObject.id = std::stol(valueItemsItem["Id"].asString());
if(!valueItemsItem["Uid"].isNull())
itemsObject.uid = std::stol(valueItemsItem["Uid"].asString());
if(!valueItemsItem["BizType"].isNull())
itemsObject.bizType = valueItemsItem["BizType"].asString();
if(!valueItemsItem["StartDate"].isNull())
itemsObject.startDate = std::stol(valueItemsItem["StartDate"].asString());
if(!valueItemsItem["EndDate"].isNull())
itemsObject.endDate = std::stol(valueItemsItem["EndDate"].asString());
if(!valueItemsItem["IdCardNum"].isNull())
itemsObject.idCardNum = valueItemsItem["IdCardNum"].asString();
if(!valueItemsItem["BizId"].isNull())
itemsObject.bizId = valueItemsItem["BizId"].asString();
if(!valueItemsItem["Valid"].isNull())
itemsObject.valid = std::stoi(valueItemsItem["Valid"].asString());
if(!valueItemsItem["GmtCreate"].isNull())
itemsObject.gmtCreate = std::stol(valueItemsItem["GmtCreate"].asString());
if(!valueItemsItem["GmtModified"].isNull())
itemsObject.gmtModified = std::stol(valueItemsItem["GmtModified"].asString());
items_.push_back(itemsObject);
}
if(!value["TotalCount"].isNull())
totalCount_ = std::stoi(value["TotalCount"].asString());
if(!value["CurrentPage"].isNull())
currentPage_ = std::stoi(value["CurrentPage"].asString());
if(!value["PageSize"].isNull())
pageSize_ = std::stoi(value["PageSize"].asString());
}
int DescribeWhitelistResult::getTotalCount()const
{
return totalCount_;
}
int DescribeWhitelistResult::getPageSize()const
{
return pageSize_;
}
int DescribeWhitelistResult::getCurrentPage()const
{
return currentPage_;
}
std::vector<DescribeWhitelistResult::Item> DescribeWhitelistResult::getItems()const
{
return items_;
}

View File

@@ -1,150 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/cloudauth/model/DescribeWhitelistSettingRequest.h>
using AlibabaCloud::Cloudauth::Model::DescribeWhitelistSettingRequest;
DescribeWhitelistSettingRequest::DescribeWhitelistSettingRequest() :
RpcServiceRequest("cloudauth", "2019-03-07", "DescribeWhitelistSetting")
{
setMethod(HttpRequest::Method::Post);
}
DescribeWhitelistSettingRequest::~DescribeWhitelistSettingRequest()
{}
long DescribeWhitelistSettingRequest::getValidEndDate()const
{
return validEndDate_;
}
void DescribeWhitelistSettingRequest::setValidEndDate(long validEndDate)
{
validEndDate_ = validEndDate;
setParameter("ValidEndDate", std::to_string(validEndDate));
}
std::string DescribeWhitelistSettingRequest::getCertifyId()const
{
return certifyId_;
}
void DescribeWhitelistSettingRequest::setCertifyId(const std::string& certifyId)
{
certifyId_ = certifyId;
setParameter("CertifyId", certifyId);
}
std::string DescribeWhitelistSettingRequest::getCertNo()const
{
return certNo_;
}
void DescribeWhitelistSettingRequest::setCertNo(const std::string& certNo)
{
certNo_ = certNo;
setParameter("CertNo", certNo);
}
std::string DescribeWhitelistSettingRequest::getSourceIp()const
{
return sourceIp_;
}
void DescribeWhitelistSettingRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setParameter("SourceIp", sourceIp);
}
int DescribeWhitelistSettingRequest::getPageSize()const
{
return pageSize_;
}
void DescribeWhitelistSettingRequest::setPageSize(int pageSize)
{
pageSize_ = pageSize;
setParameter("PageSize", std::to_string(pageSize));
}
std::string DescribeWhitelistSettingRequest::getLang()const
{
return lang_;
}
void DescribeWhitelistSettingRequest::setLang(const std::string& lang)
{
lang_ = lang;
setParameter("Lang", lang);
}
int DescribeWhitelistSettingRequest::getCurrentPage()const
{
return currentPage_;
}
void DescribeWhitelistSettingRequest::setCurrentPage(int currentPage)
{
currentPage_ = currentPage;
setParameter("CurrentPage", std::to_string(currentPage));
}
std::string DescribeWhitelistSettingRequest::getServiceCode()const
{
return serviceCode_;
}
void DescribeWhitelistSettingRequest::setServiceCode(const std::string& serviceCode)
{
serviceCode_ = serviceCode;
setParameter("ServiceCode", serviceCode);
}
long DescribeWhitelistSettingRequest::getSceneId()const
{
return sceneId_;
}
void DescribeWhitelistSettingRequest::setSceneId(long sceneId)
{
sceneId_ = sceneId;
setParameter("SceneId", std::to_string(sceneId));
}
long DescribeWhitelistSettingRequest::getValidStartDate()const
{
return validStartDate_;
}
void DescribeWhitelistSettingRequest::setValidStartDate(long validStartDate)
{
validStartDate_ = validStartDate;
setParameter("ValidStartDate", std::to_string(validStartDate));
}
std::string DescribeWhitelistSettingRequest::getStatus()const
{
return status_;
}
void DescribeWhitelistSettingRequest::setStatus(const std::string& status)
{
status_ = status;
setParameter("Status", status);
}

View File

@@ -1,94 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/cloudauth/model/DescribeWhitelistSettingResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Cloudauth;
using namespace AlibabaCloud::Cloudauth::Model;
DescribeWhitelistSettingResult::DescribeWhitelistSettingResult() :
ServiceResult()
{}
DescribeWhitelistSettingResult::DescribeWhitelistSettingResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeWhitelistSettingResult::~DescribeWhitelistSettingResult()
{}
void DescribeWhitelistSettingResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allItemsNode = value["Items"]["Item"];
for (auto valueItemsItem : allItemsNode)
{
Item itemsObject;
if(!valueItemsItem["Id"].isNull())
itemsObject.id = std::stol(valueItemsItem["Id"].asString());
if(!valueItemsItem["SceneId"].isNull())
itemsObject.sceneId = std::stol(valueItemsItem["SceneId"].asString());
if(!valueItemsItem["ValidStartDate"].isNull())
itemsObject.validStartDate = valueItemsItem["ValidStartDate"].asString();
if(!valueItemsItem["ValidEndDate"].isNull())
itemsObject.validEndDate = valueItemsItem["ValidEndDate"].asString();
if(!valueItemsItem["CertNo"].isNull())
itemsObject.certNo = valueItemsItem["CertNo"].asString();
if(!valueItemsItem["CertifyId"].isNull())
itemsObject.certifyId = valueItemsItem["CertifyId"].asString();
if(!valueItemsItem["Status"].isNull())
itemsObject.status = valueItemsItem["Status"].asString();
if(!valueItemsItem["GmtCreate"].isNull())
itemsObject.gmtCreate = valueItemsItem["GmtCreate"].asString();
if(!valueItemsItem["GmtModified"].isNull())
itemsObject.gmtModified = valueItemsItem["GmtModified"].asString();
items_.push_back(itemsObject);
}
if(!value["TotalCount"].isNull())
totalCount_ = std::stoi(value["TotalCount"].asString());
if(!value["CurrentPage"].isNull())
currentPage_ = std::stoi(value["CurrentPage"].asString());
if(!value["PageSize"].isNull())
pageSize_ = std::stoi(value["PageSize"].asString());
}
int DescribeWhitelistSettingResult::getTotalCount()const
{
return totalCount_;
}
int DescribeWhitelistSettingResult::getPageSize()const
{
return pageSize_;
}
int DescribeWhitelistSettingResult::getCurrentPage()const
{
return currentPage_;
}
std::vector<DescribeWhitelistSettingResult::Item> DescribeWhitelistSettingResult::getItems()const
{
return items_;
}

View File

@@ -40,45 +40,45 @@ void DetectFaceAttributesResult::parse(const std::string &payload)
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto dataNode = value["Data"];
if(!dataNode["ImgWidth"].isNull())
data_.imgWidth = std::stoi(dataNode["ImgWidth"].asString());
if(!dataNode["ImgHeight"].isNull())
data_.imgHeight = std::stoi(dataNode["ImgHeight"].asString());
if(!dataNode["ImgWidth"].isNull())
data_.imgWidth = std::stoi(dataNode["ImgWidth"].asString());
auto allFaceInfosNode = dataNode["FaceInfos"]["FaceAttributesDetectInfo"];
for (auto dataNodeFaceInfosFaceAttributesDetectInfo : allFaceInfosNode)
{
Data::FaceAttributesDetectInfo faceAttributesDetectInfoObject;
auto faceRectNode = value["FaceRect"];
if(!faceRectNode["Top"].isNull())
faceAttributesDetectInfoObject.faceRect.top = std::stoi(faceRectNode["Top"].asString());
if(!faceRectNode["Left"].isNull())
faceAttributesDetectInfoObject.faceRect.left = std::stoi(faceRectNode["Left"].asString());
if(!faceRectNode["Top"].isNull())
faceAttributesDetectInfoObject.faceRect.top = std::stoi(faceRectNode["Top"].asString());
if(!faceRectNode["Width"].isNull())
faceAttributesDetectInfoObject.faceRect.width = std::stoi(faceRectNode["Width"].asString());
if(!faceRectNode["Height"].isNull())
faceAttributesDetectInfoObject.faceRect.height = std::stoi(faceRectNode["Height"].asString());
auto faceAttributesNode = value["FaceAttributes"];
if(!faceAttributesNode["Age"].isNull())
faceAttributesDetectInfoObject.faceAttributes.age = std::stoi(faceAttributesNode["Age"].asString());
if(!faceAttributesNode["Glasses"].isNull())
faceAttributesDetectInfoObject.faceAttributes.glasses = faceAttributesNode["Glasses"].asString();
if(!faceAttributesNode["Facetype"].isNull())
faceAttributesDetectInfoObject.faceAttributes.facetype = faceAttributesNode["Facetype"].asString();
if(!faceAttributesNode["Blur"].isNull())
faceAttributesDetectInfoObject.faceAttributes.blur = std::stof(faceAttributesNode["Blur"].asString());
if(!faceAttributesNode["Facequal"].isNull())
faceAttributesDetectInfoObject.faceAttributes.facequal = std::stof(faceAttributesNode["Facequal"].asString());
if(!faceAttributesNode["Integrity"].isNull())
faceAttributesDetectInfoObject.faceAttributes.integrity = std::stoi(faceAttributesNode["Integrity"].asString());
if(!faceAttributesNode["Facetype"].isNull())
faceAttributesDetectInfoObject.faceAttributes.facetype = faceAttributesNode["Facetype"].asString();
if(!faceAttributesNode["Respirator"].isNull())
faceAttributesDetectInfoObject.faceAttributes.respirator = faceAttributesNode["Respirator"].asString();
if(!faceAttributesNode["AppearanceScore"].isNull())
faceAttributesDetectInfoObject.faceAttributes.appearanceScore = std::stof(faceAttributesNode["AppearanceScore"].asString());
if(!faceAttributesNode["Age"].isNull())
faceAttributesDetectInfoObject.faceAttributes.age = std::stoi(faceAttributesNode["Age"].asString());
if(!faceAttributesNode["Blur"].isNull())
faceAttributesDetectInfoObject.faceAttributes.blur = std::stof(faceAttributesNode["Blur"].asString());
auto genderNode = faceAttributesNode["Gender"];
if(!genderNode["Score"].isNull())
faceAttributesDetectInfoObject.faceAttributes.gender.score = std::stof(genderNode["Score"].asString());
if(!genderNode["Value"].isNull())
faceAttributesDetectInfoObject.faceAttributes.gender.value = genderNode["Value"].asString();
if(!genderNode["Score"].isNull())
faceAttributesDetectInfoObject.faceAttributes.gender.score = std::stof(genderNode["Score"].asString());
auto smilingNode = faceAttributesNode["Smiling"];
if(!smilingNode["Value"].isNull())
faceAttributesDetectInfoObject.faceAttributes.smiling.value = std::stof(smilingNode["Value"].asString());
@@ -93,12 +93,12 @@ void DetectFaceAttributesResult::parse(const std::string &payload)
faceAttributesDetectInfoObject.faceAttributes.headpose.yawAngle = std::stof(headposeNode["YawAngle"].asString());
data_.faceInfos.push_back(faceAttributesDetectInfoObject);
}
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}

View File

@@ -1,172 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/cloudauth/model/InitDeviceRequest.h>
using AlibabaCloud::Cloudauth::Model::InitDeviceRequest;
InitDeviceRequest::InitDeviceRequest() :
RpcServiceRequest("cloudauth", "2019-03-07", "InitDevice")
{
setMethod(HttpRequest::Method::Post);
}
InitDeviceRequest::~InitDeviceRequest()
{}
std::string InitDeviceRequest::getChannel()const
{
return channel_;
}
void InitDeviceRequest::setChannel(const std::string& channel)
{
channel_ = channel;
setParameter("Channel", channel);
}
std::string InitDeviceRequest::getBizData()const
{
return bizData_;
}
void InitDeviceRequest::setBizData(const std::string& bizData)
{
bizData_ = bizData;
setParameter("BizData", bizData);
}
std::string InitDeviceRequest::getMerchant()const
{
return merchant_;
}
void InitDeviceRequest::setMerchant(const std::string& merchant)
{
merchant_ = merchant;
setParameter("Merchant", merchant);
}
std::string InitDeviceRequest::getAppVersion()const
{
return appVersion_;
}
void InitDeviceRequest::setAppVersion(const std::string& appVersion)
{
appVersion_ = appVersion;
setParameter("AppVersion", appVersion);
}
std::string InitDeviceRequest::getDeviceToken()const
{
return deviceToken_;
}
void InitDeviceRequest::setDeviceToken(const std::string& deviceToken)
{
deviceToken_ = deviceToken;
setParameter("DeviceToken", deviceToken);
}
std::string InitDeviceRequest::getCertifyId()const
{
return certifyId_;
}
void InitDeviceRequest::setCertifyId(const std::string& certifyId)
{
certifyId_ = certifyId;
setParameter("CertifyId", certifyId);
}
std::string InitDeviceRequest::getWebUmidToken()const
{
return webUmidToken_;
}
void InitDeviceRequest::setWebUmidToken(const std::string& webUmidToken)
{
webUmidToken_ = webUmidToken;
setBodyParameter("WebUmidToken", webUmidToken);
}
std::string InitDeviceRequest::getOuterOrderNo()const
{
return outerOrderNo_;
}
void InitDeviceRequest::setOuterOrderNo(const std::string& outerOrderNo)
{
outerOrderNo_ = outerOrderNo;
setParameter("OuterOrderNo", outerOrderNo);
}
std::string InitDeviceRequest::getProduceNode()const
{
return produceNode_;
}
void InitDeviceRequest::setProduceNode(const std::string& produceNode)
{
produceNode_ = produceNode;
setParameter("ProduceNode", produceNode);
}
std::string InitDeviceRequest::getUaToken()const
{
return uaToken_;
}
void InitDeviceRequest::setUaToken(const std::string& uaToken)
{
uaToken_ = uaToken;
setBodyParameter("UaToken", uaToken);
}
std::string InitDeviceRequest::getProductName()const
{
return productName_;
}
void InitDeviceRequest::setProductName(const std::string& productName)
{
productName_ = productName;
setParameter("ProductName", productName);
}
std::string InitDeviceRequest::getCertifyPrincipal()const
{
return certifyPrincipal_;
}
void InitDeviceRequest::setCertifyPrincipal(const std::string& certifyPrincipal)
{
certifyPrincipal_ = certifyPrincipal;
setParameter("CertifyPrincipal", certifyPrincipal);
}
std::string InitDeviceRequest::getMetaInfo()const
{
return metaInfo_;
}
void InitDeviceRequest::setMetaInfo(const std::string& metaInfo)
{
metaInfo_ = metaInfo;
setParameter("MetaInfo", metaInfo);
}

View File

@@ -1,94 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/cloudauth/model/InitDeviceResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Cloudauth;
using namespace AlibabaCloud::Cloudauth::Model;
InitDeviceResult::InitDeviceResult() :
ServiceResult()
{}
InitDeviceResult::InitDeviceResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
InitDeviceResult::~InitDeviceResult()
{}
void InitDeviceResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto resultObjectNode = value["ResultObject"];
if(!resultObjectNode["CertifyId"].isNull())
resultObject_.certifyId = resultObjectNode["CertifyId"].asString();
if(!resultObjectNode["Protocol"].isNull())
resultObject_.protocol = resultObjectNode["Protocol"].asString();
if(!resultObjectNode["ExtParams"].isNull())
resultObject_.extParams = resultObjectNode["ExtParams"].asString();
if(!resultObjectNode["RetCode"].isNull())
resultObject_.retCode = resultObjectNode["RetCode"].asString();
if(!resultObjectNode["RetCodeSub"].isNull())
resultObject_.retCodeSub = resultObjectNode["RetCodeSub"].asString();
if(!resultObjectNode["RetMessageSub"].isNull())
resultObject_.retMessageSub = resultObjectNode["RetMessageSub"].asString();
if(!resultObjectNode["Message"].isNull())
resultObject_.message = resultObjectNode["Message"].asString();
if(!resultObjectNode["OssEndPoint"].isNull())
resultObject_.ossEndPoint = resultObjectNode["OssEndPoint"].asString();
if(!resultObjectNode["AccessKeyId"].isNull())
resultObject_.accessKeyId = resultObjectNode["AccessKeyId"].asString();
if(!resultObjectNode["AccessKeySecret"].isNull())
resultObject_.accessKeySecret = resultObjectNode["AccessKeySecret"].asString();
if(!resultObjectNode["SecurityToken"].isNull())
resultObject_.securityToken = resultObjectNode["SecurityToken"].asString();
if(!resultObjectNode["BucketName"].isNull())
resultObject_.bucketName = resultObjectNode["BucketName"].asString();
if(!resultObjectNode["FileNamePrefix"].isNull())
resultObject_.fileNamePrefix = resultObjectNode["FileNamePrefix"].asString();
if(!resultObjectNode["FileName"].isNull())
resultObject_.fileName = resultObjectNode["FileName"].asString();
if(!resultObjectNode["PresignedUrl"].isNull())
resultObject_.presignedUrl = resultObjectNode["PresignedUrl"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["Code"].isNull())
code_ = value["Code"].asString();
}
InitDeviceResult::ResultObject InitDeviceResult::getResultObject()const
{
return resultObject_;
}
std::string InitDeviceResult::getMessage()const
{
return message_;
}
std::string InitDeviceResult::getCode()const
{
return code_;
}

View File

@@ -181,6 +181,17 @@ void InitFaceVerifyRequest::setMobile(const std::string& mobile)
setParameter("Mobile", mobile);
}
std::string InitFaceVerifyRequest::getAuthId()const
{
return authId_;
}
void InitFaceVerifyRequest::setAuthId(const std::string& authId)
{
authId_ = authId;
setBodyParameter("AuthId", authId);
}
long InitFaceVerifyRequest::getSceneId()const
{
return sceneId_;
@@ -247,3 +258,14 @@ void InitFaceVerifyRequest::setCrop(const std::string& crop)
setBodyParameter("Crop", crop);
}
std::string InitFaceVerifyRequest::getCertifyUrlType()const
{
return certifyUrlType_;
}
void InitFaceVerifyRequest::setCertifyUrlType(const std::string& certifyUrlType)
{
certifyUrlType_ = certifyUrlType;
setParameter("CertifyUrlType", certifyUrlType);
}

View File

@@ -38,17 +38,6 @@ void LivenessFaceVerifyRequest::setProductCode(const std::string& productCode)
setBodyParameter("ProductCode", productCode);
}
std::string LivenessFaceVerifyRequest::getOssObjectName()const
{
return ossObjectName_;
}
void LivenessFaceVerifyRequest::setOssObjectName(const std::string& ossObjectName)
{
ossObjectName_ = ossObjectName;
setBodyParameter("OssObjectName", ossObjectName);
}
std::string LivenessFaceVerifyRequest::getFaceContrastPicture()const
{
return faceContrastPicture_;
@@ -60,28 +49,6 @@ void LivenessFaceVerifyRequest::setFaceContrastPicture(const std::string& faceCo
setBodyParameter("FaceContrastPicture", faceContrastPicture);
}
std::string LivenessFaceVerifyRequest::getIp()const
{
return ip_;
}
void LivenessFaceVerifyRequest::setIp(const std::string& ip)
{
ip_ = ip;
setBodyParameter("Ip", ip);
}
std::string LivenessFaceVerifyRequest::getMobile()const
{
return mobile_;
}
void LivenessFaceVerifyRequest::setMobile(const std::string& mobile)
{
mobile_ = mobile;
setBodyParameter("Mobile", mobile);
}
std::string LivenessFaceVerifyRequest::getDeviceToken()const
{
return deviceToken_;
@@ -137,6 +104,50 @@ void LivenessFaceVerifyRequest::setFaceContrastPictureUrl(const std::string& fac
setBodyParameter("FaceContrastPictureUrl", faceContrastPictureUrl);
}
std::string LivenessFaceVerifyRequest::getModel()const
{
return model_;
}
void LivenessFaceVerifyRequest::setModel(const std::string& model)
{
model_ = model;
setParameter("Model", model);
}
std::string LivenessFaceVerifyRequest::getOssObjectName()const
{
return ossObjectName_;
}
void LivenessFaceVerifyRequest::setOssObjectName(const std::string& ossObjectName)
{
ossObjectName_ = ossObjectName;
setBodyParameter("OssObjectName", ossObjectName);
}
std::string LivenessFaceVerifyRequest::getIp()const
{
return ip_;
}
void LivenessFaceVerifyRequest::setIp(const std::string& ip)
{
ip_ = ip;
setBodyParameter("Ip", ip);
}
std::string LivenessFaceVerifyRequest::getMobile()const
{
return mobile_;
}
void LivenessFaceVerifyRequest::setMobile(const std::string& mobile)
{
mobile_ = mobile;
setBodyParameter("Mobile", mobile);
}
long LivenessFaceVerifyRequest::getSceneId()const
{
return sceneId_;
@@ -159,17 +170,6 @@ void LivenessFaceVerifyRequest::setOssBucketName(const std::string& ossBucketNam
setBodyParameter("OssBucketName", ossBucketName);
}
std::string LivenessFaceVerifyRequest::getModel()const
{
return model_;
}
void LivenessFaceVerifyRequest::setModel(const std::string& model)
{
model_ = model;
setParameter("Model", model);
}
std::string LivenessFaceVerifyRequest::getCrop()const
{
return crop_;

View File

@@ -1,84 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/cloudauth/model/UpdateAppPackageRequest.h>
using AlibabaCloud::Cloudauth::Model::UpdateAppPackageRequest;
UpdateAppPackageRequest::UpdateAppPackageRequest() :
RpcServiceRequest("cloudauth", "2019-03-07", "UpdateAppPackage")
{
setMethod(HttpRequest::Method::Post);
}
UpdateAppPackageRequest::~UpdateAppPackageRequest()
{}
bool UpdateAppPackageRequest::getDebug()const
{
return debug_;
}
void UpdateAppPackageRequest::setDebug(bool debug)
{
debug_ = debug;
setParameter("Debug", debug ? "true" : "false");
}
std::string UpdateAppPackageRequest::getPlatform()const
{
return platform_;
}
void UpdateAppPackageRequest::setPlatform(const std::string& platform)
{
platform_ = platform;
setParameter("Platform", platform);
}
std::string UpdateAppPackageRequest::getSourceIp()const
{
return sourceIp_;
}
void UpdateAppPackageRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setParameter("SourceIp", sourceIp);
}
std::string UpdateAppPackageRequest::getPackageUrl()const
{
return packageUrl_;
}
void UpdateAppPackageRequest::setPackageUrl(const std::string& packageUrl)
{
packageUrl_ = packageUrl;
setParameter("PackageUrl", packageUrl);
}
long UpdateAppPackageRequest::getId()const
{
return id_;
}
void UpdateAppPackageRequest::setId(long id)
{
id_ = id;
setParameter("Id", std::to_string(id));
}

View File

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

View File

@@ -1,73 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/cloudauth/model/UpdateFaceConfigRequest.h>
using AlibabaCloud::Cloudauth::Model::UpdateFaceConfigRequest;
UpdateFaceConfigRequest::UpdateFaceConfigRequest() :
RpcServiceRequest("cloudauth", "2019-03-07", "UpdateFaceConfig")
{
setMethod(HttpRequest::Method::Post);
}
UpdateFaceConfigRequest::~UpdateFaceConfigRequest()
{}
std::string UpdateFaceConfigRequest::getBizName()const
{
return bizName_;
}
void UpdateFaceConfigRequest::setBizName(const std::string& bizName)
{
bizName_ = bizName;
setParameter("BizName", bizName);
}
std::string UpdateFaceConfigRequest::getBizType()const
{
return bizType_;
}
void UpdateFaceConfigRequest::setBizType(const std::string& bizType)
{
bizType_ = bizType;
setParameter("BizType", bizType);
}
std::string UpdateFaceConfigRequest::getSourceIp()const
{
return sourceIp_;
}
void UpdateFaceConfigRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setParameter("SourceIp", sourceIp);
}
std::string UpdateFaceConfigRequest::getLang()const
{
return lang_;
}
void UpdateFaceConfigRequest::setLang(const std::string& lang)
{
lang_ = lang;
setParameter("Lang", lang);
}

View File

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

View File

@@ -1,106 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/cloudauth/model/UpdateVerifySettingRequest.h>
using AlibabaCloud::Cloudauth::Model::UpdateVerifySettingRequest;
UpdateVerifySettingRequest::UpdateVerifySettingRequest() :
RpcServiceRequest("cloudauth", "2019-03-07", "UpdateVerifySetting")
{
setMethod(HttpRequest::Method::Post);
}
UpdateVerifySettingRequest::~UpdateVerifySettingRequest()
{}
bool UpdateVerifySettingRequest::getGuideStep()const
{
return guideStep_;
}
void UpdateVerifySettingRequest::setGuideStep(bool guideStep)
{
guideStep_ = guideStep;
setParameter("GuideStep", guideStep ? "true" : "false");
}
bool UpdateVerifySettingRequest::getResultStep()const
{
return resultStep_;
}
void UpdateVerifySettingRequest::setResultStep(bool resultStep)
{
resultStep_ = resultStep;
setParameter("ResultStep", resultStep ? "true" : "false");
}
std::string UpdateVerifySettingRequest::getSourceIp()const
{
return sourceIp_;
}
void UpdateVerifySettingRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setParameter("SourceIp", sourceIp);
}
std::string UpdateVerifySettingRequest::getSolution()const
{
return solution_;
}
void UpdateVerifySettingRequest::setSolution(const std::string& solution)
{
solution_ = solution;
setParameter("Solution", solution);
}
std::string UpdateVerifySettingRequest::getBizName()const
{
return bizName_;
}
void UpdateVerifySettingRequest::setBizName(const std::string& bizName)
{
bizName_ = bizName;
setParameter("BizName", bizName);
}
std::string UpdateVerifySettingRequest::getBizType()const
{
return bizType_;
}
void UpdateVerifySettingRequest::setBizType(const std::string& bizType)
{
bizType_ = bizType;
setParameter("BizType", bizType);
}
bool UpdateVerifySettingRequest::getPrivacyStep()const
{
return privacyStep_;
}
void UpdateVerifySettingRequest::setPrivacyStep(bool privacyStep)
{
privacyStep_ = privacyStep;
setParameter("PrivacyStep", privacyStep ? "true" : "false");
}

View File

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

View File

@@ -1,84 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/cloudauth/model/VerifyDeviceRequest.h>
using AlibabaCloud::Cloudauth::Model::VerifyDeviceRequest;
VerifyDeviceRequest::VerifyDeviceRequest() :
RpcServiceRequest("cloudauth", "2019-03-07", "VerifyDevice")
{
setMethod(HttpRequest::Method::Post);
}
VerifyDeviceRequest::~VerifyDeviceRequest()
{}
std::string VerifyDeviceRequest::getExtInfo()const
{
return extInfo_;
}
void VerifyDeviceRequest::setExtInfo(const std::string& extInfo)
{
extInfo_ = extInfo;
setBodyParameter("ExtInfo", extInfo);
}
std::string VerifyDeviceRequest::getCertifyData()const
{
return certifyData_;
}
void VerifyDeviceRequest::setCertifyData(const std::string& certifyData)
{
certifyData_ = certifyData;
setParameter("CertifyData", certifyData);
}
std::string VerifyDeviceRequest::getAppVersion()const
{
return appVersion_;
}
void VerifyDeviceRequest::setAppVersion(const std::string& appVersion)
{
appVersion_ = appVersion;
setParameter("AppVersion", appVersion);
}
std::string VerifyDeviceRequest::getDeviceToken()const
{
return deviceToken_;
}
void VerifyDeviceRequest::setDeviceToken(const std::string& deviceToken)
{
deviceToken_ = deviceToken;
setBodyParameter("DeviceToken", deviceToken);
}
std::string VerifyDeviceRequest::getCertifyId()const
{
return certifyId_;
}
void VerifyDeviceRequest::setCertifyId(const std::string& certifyId)
{
certifyId_ = certifyId;
setParameter("CertifyId", certifyId);
}

View File

@@ -1,76 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/cloudauth/model/VerifyDeviceResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Cloudauth;
using namespace AlibabaCloud::Cloudauth::Model;
VerifyDeviceResult::VerifyDeviceResult() :
ServiceResult()
{}
VerifyDeviceResult::VerifyDeviceResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
VerifyDeviceResult::~VerifyDeviceResult()
{}
void VerifyDeviceResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto resultObjectNode = value["ResultObject"];
if(!resultObjectNode["ValidationRetCode"].isNull())
resultObject_.validationRetCode = resultObjectNode["ValidationRetCode"].asString();
if(!resultObjectNode["ProductRetCode"].isNull())
resultObject_.productRetCode = resultObjectNode["ProductRetCode"].asString();
if(!resultObjectNode["RetCodeSub"].isNull())
resultObject_.retCodeSub = resultObjectNode["RetCodeSub"].asString();
if(!resultObjectNode["RetMessageSub"].isNull())
resultObject_.retMessageSub = resultObjectNode["RetMessageSub"].asString();
if(!resultObjectNode["HasNext"].isNull())
resultObject_.hasNext = resultObjectNode["HasNext"].asString();
if(!resultObjectNode["ExtParams"].isNull())
resultObject_.extParams = resultObjectNode["ExtParams"].asString();
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
}
VerifyDeviceResult::ResultObject VerifyDeviceResult::getResultObject()const
{
return resultObject_;
}
std::string VerifyDeviceResult::getMessage()const
{
return message_;
}
std::string VerifyDeviceResult::getCode()const
{
return code_;
}